diff options
| author | Daniel Morris <daniel@honestempire.com> | 2015-08-16 23:22:15 +0100 | 
|---|---|---|
| committer | Daniel Morris <daniel@honestempire.com> | 2015-08-16 23:22:15 +0100 | 
| commit | c3a9e97f848e27a4e6875879a24388d9af0d608f (patch) | |
| tree | b64bf60a71f4852934fed4d82c7ba6ae7d549a0d | |
| parent | 0e5ffa740caf6caa229f4a9315081d76d82dd18a (diff) | |
| download | rails-c3a9e97f848e27a4e6875879a24388d9af0d608f.tar.gz rails-c3a9e97f848e27a4e6875879a24388d9af0d608f.tar.bz2 rails-c3a9e97f848e27a4e6875879a24388d9af0d608f.zip | |
Plugins are generated with the version 0.1.0
The semantic versioning specification uses MAJOR.MINOR.PATCH – it would
make more sense to set the version to 0.1.0 for initial development
since a patch release cannot be created before a minor feature release.
| -rw-r--r-- | railties/CHANGELOG.md | 5 | ||||
| -rw-r--r-- | railties/lib/rails/generators/rails/plugin/templates/lib/%namespaced_name%/version.rb | 2 | 
2 files changed, 6 insertions, 1 deletions
| diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index bb16228731..21adac272d 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -1,3 +1,8 @@ +*   Plugins generated using `rails plugin new` are now generated with the +    version number set to 0.1.0. + +    *Daniel Morris* +  *   `I18n.load_path` is now reloaded under development so there's no need to      restart the server to make new locale files available. Also, I18n will no      longer raise for deleted locale files. diff --git a/railties/lib/rails/generators/rails/plugin/templates/lib/%namespaced_name%/version.rb b/railties/lib/rails/generators/rails/plugin/templates/lib/%namespaced_name%/version.rb index d257295988..b08f4ef9ae 100644 --- a/railties/lib/rails/generators/rails/plugin/templates/lib/%namespaced_name%/version.rb +++ b/railties/lib/rails/generators/rails/plugin/templates/lib/%namespaced_name%/version.rb @@ -1 +1 @@ -<%= wrap_in_modules 'VERSION = "0.0.1"' %> +<%= wrap_in_modules "VERSION = '0.1.0'" %> | 
