@samitouri / QOS-React-2 / commits / de2832c0c0
Fork 0

The library for web and native user interfaces.

Only re-write docs _config on version bumps

Doesn't fix, but mostly addresses the concerns in #24. Some churn at version bumps is far better than what we have right now.

Paul O’Shannessy committed May 30, 2013 at 14:42 UTC de2832c0c0ec1b54f06334ae25a0bf8fc947dc9e
1 file changed +4 -2
docs/Rakefile
+4 -2
@@ -23,8 +23,10 @@ desc "update version to match ../package.json"
23 task :update_version do
24 react_version = JSON.parse(File.read('../package.json'))['version']
25 site_config = YAML.load_file('_config.yml')
26 - site_config['react_version'] = react_version
27 - File.open('_config.yml', 'w+') { |f| f.write(site_config.to_yaml) }
26 + if site_config['react_version'] != react_version
27 + site_config['react_version'] = react_version
28 + File.open('_config.yml', 'w+') { |f| f.write(site_config.to_yaml) }
29 + end
30 end
31
32 desc "build into ../../react-gh-pages"