migration_assist 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.8
1
+ 0.1.9
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{migration_assist}
8
- s.version = "0.1.8"
8
+ s.version = "0.1.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kristian Mandrup"]
@@ -23,15 +23,12 @@ Gem::Specification.new do |s|
23
23
  "README.markdown",
24
24
  "Rakefile",
25
25
  "VERSION",
26
- "lib/generators/migration/migration_generator.rb",
27
- "lib/generators/migration/templates/create_users.erb",
28
26
  "lib/migration_assist.rb",
29
27
  "lib/migration_assist/class_methods.rb",
30
28
  "lib/migration_assist/helper/file_name.rb",
31
29
  "lib/migration_assist/implementation.rb",
32
30
  "lib/migration_assist/namespaces.rb",
33
31
  "migration_assist.gemspec",
34
- "spec/generators/migration_generator_spec.rb",
35
32
  "spec/load_spec.rb",
36
33
  "spec/migration_assist/class_methods_spec.rb",
37
34
  "spec/migration_assist/fixtures/001_migration_a.rb",
@@ -46,7 +43,6 @@ Gem::Specification.new do |s|
46
43
  s.rubygems_version = %q{1.3.7}
47
44
  s.summary = %q{Assists in handling migrations}
48
45
  s.test_files = [
49
- "spec/generators/migration_generator_spec.rb",
50
46
  "spec/load_spec.rb",
51
47
  "spec/migration_assist/class_methods_spec.rb",
52
48
  "spec/migration_assist/fixtures/001_migration_a.rb",
metadata CHANGED
@@ -1,122 +1,93 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: migration_assist
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 1
8
- - 8
9
- version: 0.1.8
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.9
5
+ prerelease: !!null
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Kristian Mandrup
13
- autorequire:
9
+ autorequire: !!null
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2010-12-20 00:00:00 +01:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2010-12-20 00:00:00.000000000 +01:00
13
+ default_executable: !!null
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
21
16
  name: rspec
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &2152872100 !ruby/object:Gem::Requirement
24
18
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 2
30
- - 0
31
- - 1
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
32
22
  version: 2.0.1
33
23
  type: :development
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: mocha
37
24
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: *2152872100
26
+ - !ruby/object:Gem::Dependency
27
+ name: mocha
28
+ requirement: &2152945540 !ruby/object:Gem::Requirement
39
29
  none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- segments:
44
- - 0
45
- - 9
46
- - 8
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
47
33
  version: 0.9.8
48
34
  type: :development
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: generator-spec
52
35
  prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
36
+ version_requirements: *2152945540
37
+ - !ruby/object:Gem::Dependency
38
+ name: generator-spec
39
+ requirement: &2153076520 !ruby/object:Gem::Requirement
54
40
  none: false
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- segments:
59
- - 0
60
- - 7
61
- - 1
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
62
44
  version: 0.7.1
63
45
  type: :development
64
- version_requirements: *id003
65
- - !ruby/object:Gem::Dependency
66
- name: require_all
67
46
  prerelease: false
68
- requirement: &id004 !ruby/object:Gem::Requirement
47
+ version_requirements: *2153076520
48
+ - !ruby/object:Gem::Dependency
49
+ name: require_all
50
+ requirement: &2153134500 !ruby/object:Gem::Requirement
69
51
  none: false
70
- requirements:
52
+ requirements:
71
53
  - - ~>
72
- - !ruby/object:Gem::Version
73
- segments:
74
- - 1
75
- - 2
76
- - 0
54
+ - !ruby/object:Gem::Version
77
55
  version: 1.2.0
78
56
  type: :runtime
79
- version_requirements: *id004
80
- - !ruby/object:Gem::Dependency
81
- name: rails
82
57
  prerelease: false
83
- requirement: &id005 !ruby/object:Gem::Requirement
58
+ version_requirements: *2153134500
59
+ - !ruby/object:Gem::Dependency
60
+ name: rails
61
+ requirement: &2153229880 !ruby/object:Gem::Requirement
84
62
  none: false
85
- requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- segments:
89
- - 3
90
- - 0
91
- - 1
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
92
66
  version: 3.0.1
93
67
  type: :runtime
94
- version_requirements: *id005
95
- description: Assists in handling migrations, including generating migration files from a Thor Generator
68
+ prerelease: false
69
+ version_requirements: *2153229880
70
+ description: Assists in handling migrations, including generating migration files
71
+ from a Thor Generator
96
72
  email: kmandrup@gmail.com
97
73
  executables: []
98
-
99
74
  extensions: []
100
-
101
- extra_rdoc_files:
75
+ extra_rdoc_files:
102
76
  - LICENSE
103
77
  - README.markdown
104
- files:
78
+ files:
105
79
  - .document
106
80
  - .rspec
107
81
  - LICENSE
108
82
  - README.markdown
109
83
  - Rakefile
110
84
  - VERSION
111
- - lib/generators/migration/migration_generator.rb
112
- - lib/generators/migration/templates/create_users.erb
113
85
  - lib/migration_assist.rb
114
86
  - lib/migration_assist/class_methods.rb
115
87
  - lib/migration_assist/helper/file_name.rb
116
88
  - lib/migration_assist/implementation.rb
117
89
  - lib/migration_assist/namespaces.rb
118
90
  - migration_assist.gemspec
119
- - spec/generators/migration_generator_spec.rb
120
91
  - spec/load_spec.rb
121
92
  - spec/migration_assist/class_methods_spec.rb
122
93
  - spec/migration_assist/fixtures/001_migration_a.rb
@@ -128,37 +99,29 @@ files:
128
99
  has_rdoc: true
129
100
  homepage: http://github.com/kristianmandrup/migration_assist
130
101
  licenses: []
131
-
132
- post_install_message:
102
+ post_install_message: !!null
133
103
  rdoc_options: []
134
-
135
- require_paths:
104
+ require_paths:
136
105
  - lib
137
- required_ruby_version: !ruby/object:Gem::Requirement
106
+ required_ruby_version: !ruby/object:Gem::Requirement
138
107
  none: false
139
- requirements:
140
- - - ">="
141
- - !ruby/object:Gem::Version
142
- segments:
143
- - 0
144
- version: "0"
145
- required_rubygems_version: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ! '>='
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ required_rubygems_version: !ruby/object:Gem::Requirement
146
113
  none: false
147
- requirements:
148
- - - ">="
149
- - !ruby/object:Gem::Version
150
- segments:
151
- - 0
152
- version: "0"
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
153
118
  requirements: []
154
-
155
- rubyforge_project:
156
- rubygems_version: 1.3.7
157
- signing_key:
119
+ rubyforge_project: !!null
120
+ rubygems_version: 1.5.0
121
+ signing_key: !!null
158
122
  specification_version: 3
159
123
  summary: Assists in handling migrations
160
- test_files:
161
- - spec/generators/migration_generator_spec.rb
124
+ test_files:
162
125
  - spec/load_spec.rb
163
126
  - spec/migration_assist/class_methods_spec.rb
164
127
  - spec/migration_assist/fixtures/001_migration_a.rb
@@ -1,18 +0,0 @@
1
- require 'rails/generators'
2
- require 'rails/generators/migration'
3
- require 'rails3_assist'
4
-
5
- class MigrationGenerator < Rails::Generators::NamedBase
6
- include Rails3::Migration::Assist
7
-
8
- desc "Creates a migration"
9
-
10
- def self.source_root
11
- @source_root ||= File.expand_path("../templates", __FILE__)
12
- end
13
-
14
- def create_migration
15
- # info "Create migration: #{name} from template: 'create_users'"
16
- migration name, 'create_users'
17
- end
18
- end
@@ -1,14 +0,0 @@
1
- class <%= name.camelize %> < ActiveRecord::Migration
2
- def self.up
3
- create_table :users do |t|
4
- t.string :name
5
- t.integer :age
6
- t.boolean :admin
7
- end
8
- end
9
-
10
- def self.down
11
- drop_table :users
12
- end
13
-
14
- end
@@ -1,45 +0,0 @@
1
- require 'spec_helper'
2
- # require 'migration-spec'
3
- # require 'rails3_assist'
4
-
5
- # RSpec::Generator.debug = true
6
- #
7
- # require_generator :migration
8
- #
9
- # describe 'migration_generator' do
10
- # use_orm :active_record
11
- # use_helpers :migration, :helper
12
- #
13
- # before :each do
14
- # setup_generator 'migration_generator' do
15
- # tests MigrationGenerator
16
- # end
17
- # remove_migration :create_users
18
- # end
19
- #
20
- # after :each do
21
- # end
22
- #
23
- # it "should generate create_user migration" do
24
- # with_generator do |g|
25
- # g.run_generator :create_users.args
26
- # g.should generate_migration :create_users do |content|
27
- # content.should have_migration :create_users do |klass|
28
- # klass.should have_up do |up|
29
- # up.should have_create_table :users do |user_tbl|
30
- # user_tbl.should have_columns :name => :string, :age => :integer, :admin => :boolean
31
- # user_tbl.should_not have_timestamps
32
- # end
33
- # end
34
- #
35
- # klass.should have_down do |up|
36
- # up.should have_drop_table :users
37
- # end
38
- # end
39
- # end
40
- # end
41
- # end
42
- # end
43
- #
44
- #
45
- #