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 +4 -4
- data/lib/active_versioning/version.rb +1 -1
- data/lib/active_versioning.rb +1 -1
- data/lib/generators/active_versioning/install_generator.rb +18 -0
- data/lib/generators/{templates → active_versioning/templates}/migrations/create_versions.rb +0 -0
- data/lib/generators/{templates → active_versioning/templates}/models/version.rb +0 -0
- metadata +4 -4
- data/lib/generators/active_versioning_generator.rb +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d19c8a3b3761a1629700f15c81e88b4158fd65e
|
4
|
+
data.tar.gz: 021dc5d964d3577811f29a52617993a71198c143
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 560a5941478c2512c334128e8f9a6f838d3b5cae3720784bd36a4cffe1591a277c62ec3e66c9d70f9bf726066b315f739fbde46ef9d96ee6b2ff9da3355a368f
|
7
|
+
data.tar.gz: 545ed05264a6b7d06bcf842b3e9d160d02cbf6cb5cfd2299cbad64404e84a569436e6e94d4fbe6b74de1e56ee9a35a2ddcb72fa9a1e904bfcdd925ef12c6b92d
|
data/lib/active_versioning.rb
CHANGED
@@ -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
|
File without changes
|
File without changes
|
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.
|
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/
|
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
|