active_versioning 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 220dc1c86a58c37b37fbab4f0bc1d0b61e1b3a54
4
- data.tar.gz: dc5eae5f9a29abeb7faf1801f5056b2b43f5d772
3
+ metadata.gz: 9d19c8a3b3761a1629700f15c81e88b4158fd65e
4
+ data.tar.gz: 021dc5d964d3577811f29a52617993a71198c143
5
5
  SHA512:
6
- metadata.gz: 3bb7d3f63b4665ab983c1f16547f44431299ed27ab744f37bd0e996c37e0141578e1144500bf0ec8198d618eb6b652d9a6849ff1b4faee46f599c0994337724e
7
- data.tar.gz: b6b96bf1044f8a434359cf00dca1571b0be9f47639b6bd675207d0b5f800d7abddb987c7045f19eacfc7f359a3ccb14c899f744dba08dde65407133cd3d2c9fd
6
+ metadata.gz: 560a5941478c2512c334128e8f9a6f838d3b5cae3720784bd36a4cffe1591a277c62ec3e66c9d70f9bf726066b315f739fbde46ef9d96ee6b2ff9da3355a368f
7
+ data.tar.gz: 545ed05264a6b7d06bcf842b3e9d160d02cbf6cb5cfd2299cbad64404e84a569436e6e94d4fbe6b74de1e56ee9a35a2ddcb72fa9a1e904bfcdd925ef12c6b92d
@@ -1,3 +1,3 @@
1
1
  module ActiveVersioning
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -1,5 +1,5 @@
1
1
  require 'active_versioning/version'
2
- require 'generators/active_versioning_generator'
2
+ require 'generators/active_versioning/install_generator'
3
3
 
4
4
  module ActiveVersioning
5
5
  autoload :Errors, 'active_versioning/errors'
@@ -0,0 +1,18 @@
1
+ require 'rails/generators'
2
+ require 'rails/generators/active_record'
3
+
4
+ module ActiveVersioning
5
+ class InstallGenerator < Rails::Generators::Base
6
+ include ActiveRecord::Generators::Migration
7
+
8
+ source_root File.expand_path('../templates', __FILE__)
9
+
10
+ def install_models
11
+ copy_file 'models/version.rb', 'app/models/version.rb'
12
+ end
13
+
14
+ def install_migrations
15
+ migration_template 'migrations/create_versions.rb', 'db/migrate/create_versions.rb'
16
+ end
17
+ end
18
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_versioning
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Stenberg
@@ -177,9 +177,9 @@ files:
177
177
  - lib/active_versioning/model/versioned.rb
178
178
  - lib/active_versioning/version.rb
179
179
  - lib/active_versioning/version_manager.rb
180
- - lib/generators/active_versioning_generator.rb
181
- - lib/generators/templates/migrations/create_versions.rb
182
- - lib/generators/templates/models/version.rb
180
+ - lib/generators/active_versioning/install_generator.rb
181
+ - lib/generators/active_versioning/templates/migrations/create_versions.rb
182
+ - lib/generators/active_versioning/templates/models/version.rb
183
183
  homepage: https://github.com/vigetlabs/active_versioning
184
184
  licenses:
185
185
  - BSD
@@ -1,16 +0,0 @@
1
- require 'rails/generators'
2
- require 'rails/generators/active_record'
3
-
4
- class ActiveVersioningGenerator < Rails::Generators::Base
5
- include ActiveRecord::Generators::Migration
6
-
7
- source_root File.expand_path('../templates', __FILE__)
8
-
9
- def install_models
10
- copy_file 'models/version.rb', 'app/models/version.rb'
11
- end
12
-
13
- def install_migrations
14
- migration_template 'migrations/create_versions.rb', 'db/migrate/create_versions.rb'
15
- end
16
- end