migrer 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: bd4914d61f688360460e1803b8fad79fb63df4e8
|
4
|
+
data.tar.gz: 0849a0784e55947b334fc6e57121e5a24b3c1180
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 72a3a7c0ff70d504c8f537610587b8aa7087fa74877082e941dadfa01bf7077410f59bf34846cb034ebf87fc82d53c188c8424723605df7f0a6b47c9862c4450
|
7
|
+
data.tar.gz: 8bfc03576d819677311a2354e6db7fa6f4758017a88fc038cd84fd9b0f216eca06348d08dc9b4ccd2cfc691da4ccf5835d08d40a66c9bcad07d2ca662a9070c6
|
data/LICENSE.txt
CHANGED
@@ -3,7 +3,7 @@ class Migrer::DataMigrationVersion < ActiveRecord::Base
|
|
3
3
|
attr_accessible :version
|
4
4
|
|
5
5
|
def self.all_from_files
|
6
|
-
filenames = Dir.entries("#{Rails.root}/db/data_migrate").select { |f| /^\d+.*\.rb$/ === f }
|
6
|
+
filenames = Dir.entries("#{Rails.root}/db/data_migrate").sort.select { |f| /^\d+.*\.rb$/ === f }
|
7
7
|
data_migrations = {}
|
8
8
|
|
9
9
|
filenames.each do |f|
|
@@ -4,8 +4,9 @@ Description:
|
|
4
4
|
Optional Arguments:
|
5
5
|
DESCRIPTION # a commented description in the created data migration file
|
6
6
|
|
7
|
-
|
7
|
+
Examples:
|
8
8
|
rails generate data_migration DataMigrationName "Optional description"
|
9
|
+
rails generate data_migration data_migration_name "Optional description"
|
9
10
|
|
10
11
|
This will create:
|
11
12
|
db/data_migrate/<timestamp>_data_migration_name.rb
|
data/lib/migrer/version.rb
CHANGED
data/migrer.gemspec
CHANGED
@@ -6,6 +6,7 @@ require 'migrer/version'
|
|
6
6
|
Gem::Specification.new do |gem|
|
7
7
|
gem.name = "migrer"
|
8
8
|
gem.version = Migrer::VERSION
|
9
|
+
gem.licenses = ['MIT']
|
9
10
|
gem.authors = ["Sathya Sekaran", "Michael Durnhofer"]
|
10
11
|
gem.email = ["sfsekaran@gmail.com"]
|
11
12
|
gem.description = %q{The polite data migration valet.}
|
@@ -19,5 +20,5 @@ Gem::Specification.new do |gem|
|
|
19
20
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
20
21
|
gem.require_paths = ["lib", "script", "db"]
|
21
22
|
|
22
|
-
gem.add_runtime_dependency "activerecord", "~> 3.2
|
23
|
+
gem.add_runtime_dependency "activerecord", "~> 3.2"
|
23
24
|
end
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: migrer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Sathya Sekaran
|
@@ -10,24 +9,22 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date:
|
12
|
+
date: 2014-04-27 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: activerecord
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
|
-
- - ~>
|
18
|
+
- - "~>"
|
21
19
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.2
|
20
|
+
version: '3.2'
|
23
21
|
type: :runtime
|
24
22
|
prerelease: false
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
24
|
requirements:
|
28
|
-
- - ~>
|
25
|
+
- - "~>"
|
29
26
|
- !ruby/object:Gem::Version
|
30
|
-
version: 3.2
|
27
|
+
version: '3.2'
|
31
28
|
description: The polite data migration valet.
|
32
29
|
email:
|
33
30
|
- sfsekaran@gmail.com
|
@@ -35,7 +32,7 @@ executables: []
|
|
35
32
|
extensions: []
|
36
33
|
extra_rdoc_files: []
|
37
34
|
files:
|
38
|
-
- .gitignore
|
35
|
+
- ".gitignore"
|
39
36
|
- Gemfile
|
40
37
|
- LICENSE.txt
|
41
38
|
- README.md
|
@@ -53,7 +50,9 @@ files:
|
|
53
50
|
- migrer.gemspec
|
54
51
|
- script/rails
|
55
52
|
homepage: http://github.com/sfsekaran/migrer
|
56
|
-
licenses:
|
53
|
+
licenses:
|
54
|
+
- MIT
|
55
|
+
metadata: {}
|
57
56
|
post_install_message:
|
58
57
|
rdoc_options: []
|
59
58
|
require_paths:
|
@@ -61,21 +60,19 @@ require_paths:
|
|
61
60
|
- script
|
62
61
|
- db
|
63
62
|
required_ruby_version: !ruby/object:Gem::Requirement
|
64
|
-
none: false
|
65
63
|
requirements:
|
66
|
-
- -
|
64
|
+
- - ">="
|
67
65
|
- !ruby/object:Gem::Version
|
68
66
|
version: '0'
|
69
67
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
|
-
none: false
|
71
68
|
requirements:
|
72
|
-
- -
|
69
|
+
- - ">="
|
73
70
|
- !ruby/object:Gem::Version
|
74
71
|
version: '0'
|
75
72
|
requirements: []
|
76
73
|
rubyforge_project: migrer
|
77
|
-
rubygems_version:
|
74
|
+
rubygems_version: 2.2.2
|
78
75
|
signing_key:
|
79
|
-
specification_version:
|
76
|
+
specification_version: 4
|
80
77
|
summary: The 'migrer' gem helps generate, execute, and keep track of data migrations.
|
81
78
|
test_files: []
|