rails3_assist 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -12,8 +12,8 @@ begin
12
12
 
13
13
  gem.add_dependency "require_all", "~> 1.2.0"
14
14
  gem.add_dependency "sugar-high", "~> 0.3.0"
15
- gem.add_dependency "activesupport", "~> 3.0"
16
- gem.add_dependency "migration_assist", "~> 0.1.4"
15
+ gem.add_dependency "activesupport", ">= 3.0"
16
+ gem.add_dependency "migration_assist", "~> 0.1.7"
17
17
  gem.add_dependency "thor", ">= 0.14.0"
18
18
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
19
19
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
@@ -23,6 +23,14 @@ module Rails3::Assist::File
23
23
  def gem_file
24
24
  File.join(Rails3::Assist::Directory.root_dir, 'Gemfile')
25
25
  end
26
+
27
+ def has_gem? name
28
+ File.new(gem_file).read =~ /gem\s+('|")#{name}\1/
29
+ end
30
+
31
+ def has_gem_version? name, version = nil
32
+ File.new(gem_file).read =~ /gem\s+('|")#{name}\1,\s*('|")#{version}\2/
33
+ end
26
34
 
27
35
  # read_application_file
28
36
  # append_to_application_file
@@ -5,5 +5,3 @@ module RSpec
5
5
  modules :content_matchers
6
6
  end
7
7
  end
8
-
9
- # require_all File.dirname(__FILE__) + '/matchers'
@@ -1,184 +1,182 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rails3_assist}
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
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"]
12
- s.date = %q{2010-10-21}
12
+ s.date = %q{2010-12-01}
13
13
  s.description = %q{Basic file operation helpers for working with Rails 3 artifacts}
14
14
  s.email = %q{kmandrup@gmail.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
- "README.markdown"
17
+ "README.markdown"
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
- ".gitignore",
22
- ".rspec",
23
- "LICENSE",
24
- "README.markdown",
25
- "Rakefile",
26
- "VERSION",
27
- "lib/rails3_assist.rb",
28
- "lib/rails3_assist/app.rb",
29
- "lib/rails3_assist/artifact.rb",
30
- "lib/rails3_assist/artifact/directory.rb",
31
- "lib/rails3_assist/artifact/files.rb",
32
- "lib/rails3_assist/artifact/path.rb",
33
- "lib/rails3_assist/directory.rb",
34
- "lib/rails3_assist/directory/app.rb",
35
- "lib/rails3_assist/directory/container.rb",
36
- "lib/rails3_assist/directory/root.rb",
37
- "lib/rails3_assist/file.rb",
38
- "lib/rails3_assist/file/application.rb",
39
- "lib/rails3_assist/file/environment.rb",
40
- "lib/rails3_assist/file/special.rb",
41
- "lib/rails3_assist/files.rb",
42
- "lib/rails3_assist/namespaces.rb",
43
- "lib/rails3_assist/rspec.rb",
44
- "lib/rails3_assist/rspec/configure.rb",
45
- "rails3_assist.gemspec",
46
- "rails_generator.log",
47
- "spec/fixtures.rb",
48
- "spec/fixtures/.gitignore",
49
- "spec/fixtures/Gemfile",
50
- "spec/fixtures/Gemfile.lock",
51
- "spec/fixtures/README",
52
- "spec/fixtures/Rakefile",
53
- "spec/fixtures/app/controllers/application_controller.rb",
54
- "spec/fixtures/app/controllers/users_controller.rb",
55
- "spec/fixtures/app/helpers/application_helper.rb",
56
- "spec/fixtures/app/helpers/users_helper.rb",
57
- "spec/fixtures/app/mailers/user_mailer.rb",
58
- "spec/fixtures/app/models/user.rb",
59
- "spec/fixtures/app/models/user_observer.rb",
60
- "spec/fixtures/app/permits/user_permit.rb",
61
- "spec/fixtures/app/views/layouts/application.html.erb",
62
- "spec/fixtures/app/views/users/_form.html.erb",
63
- "spec/fixtures/app/views/users/edit.html.erb",
64
- "spec/fixtures/app/views/users/index.html.erb",
65
- "spec/fixtures/app/views/users/new.html.erb",
66
- "spec/fixtures/app/views/users/show.html.erb",
67
- "spec/fixtures/config.ru",
68
- "spec/fixtures/config/application.rb",
69
- "spec/fixtures/config/boot.rb",
70
- "spec/fixtures/config/database.yml",
71
- "spec/fixtures/config/environment.rb",
72
- "spec/fixtures/config/environments/development.rb",
73
- "spec/fixtures/config/environments/production.rb",
74
- "spec/fixtures/config/environments/test.rb",
75
- "spec/fixtures/config/initializers/backtrace_silencers.rb",
76
- "spec/fixtures/config/initializers/inflections.rb",
77
- "spec/fixtures/config/initializers/mime_types.rb",
78
- "spec/fixtures/config/initializers/secret_token.rb",
79
- "spec/fixtures/config/initializers/session_store.rb",
80
- "spec/fixtures/config/locales/en.yml",
81
- "spec/fixtures/config/routes.rb",
82
- "spec/fixtures/db/migrate/20100831135208_create_users.rb",
83
- "spec/fixtures/db/seeds.rb",
84
- "spec/fixtures/doc/README_FOR_APP",
85
- "spec/fixtures/lib/tasks/.gitkeep",
86
- "spec/fixtures/log/development.log",
87
- "spec/fixtures/log/production.log",
88
- "spec/fixtures/log/server.log",
89
- "spec/fixtures/log/test.log",
90
- "spec/fixtures/public/404.html",
91
- "spec/fixtures/public/422.html",
92
- "spec/fixtures/public/500.html",
93
- "spec/fixtures/public/favicon.ico",
94
- "spec/fixtures/public/images/rails.png",
95
- "spec/fixtures/public/index.html",
96
- "spec/fixtures/public/javascripts/application.js",
97
- "spec/fixtures/public/javascripts/controls.js",
98
- "spec/fixtures/public/javascripts/dragdrop.js",
99
- "spec/fixtures/public/javascripts/effects.js",
100
- "spec/fixtures/public/javascripts/prototype.js",
101
- "spec/fixtures/public/javascripts/rails.js",
102
- "spec/fixtures/public/robots.txt",
103
- "spec/fixtures/public/stylesheets/.gitkeep",
104
- "spec/fixtures/public/stylesheets/scaffold.css",
105
- "spec/fixtures/script/rails",
106
- "spec/fixtures/test/fixtures/users.yml",
107
- "spec/fixtures/test/functional/users_controller_test.rb",
108
- "spec/fixtures/test/performance/browsing_test.rb",
109
- "spec/fixtures/test/test_helper.rb",
110
- "spec/fixtures/test/unit/helpers/users_helper_test.rb",
111
- "spec/fixtures/test/unit/user_test.rb",
112
- "spec/fixtures/vendor/plugins/.gitkeep",
113
- "spec/load_spec.rb",
114
- "spec/rails3_assist/app_spec.rb",
115
- "spec/rails3_assist/artifact/directory_spec.rb",
116
- "spec/rails3_assist/artifact/files_spec.rb",
117
- "spec/rails3_assist/artifact/path_spec.rb",
118
- "spec/rails3_assist/artifact_spec.rb",
119
- "spec/rails3_assist/directory/app_spec.rb",
120
- "spec/rails3_assist/directory/container_spec.rb",
121
- "spec/rails3_assist/directory/root_spec.rb",
122
- "spec/rails3_assist/directory_spec.rb",
123
- "spec/rails3_assist/file/application_spec.rb",
124
- "spec/rails3_assist/file/environment_spec.rb",
125
- "spec/rails3_assist/file/special_spec.rb",
126
- "spec/rails3_assist/file_spec.rb",
127
- "spec/rails3_assist/files_spec.rb",
128
- "spec/rails3_assist/rspec/have_app_config_spec.rb",
129
- "spec/spec_helper.rb"
21
+ ".rspec",
22
+ "LICENSE",
23
+ "README.markdown",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "lib/rails3_assist.rb",
27
+ "lib/rails3_assist/app.rb",
28
+ "lib/rails3_assist/artifact.rb",
29
+ "lib/rails3_assist/artifact/directory.rb",
30
+ "lib/rails3_assist/artifact/files.rb",
31
+ "lib/rails3_assist/artifact/path.rb",
32
+ "lib/rails3_assist/directory.rb",
33
+ "lib/rails3_assist/directory/app.rb",
34
+ "lib/rails3_assist/directory/container.rb",
35
+ "lib/rails3_assist/directory/root.rb",
36
+ "lib/rails3_assist/file.rb",
37
+ "lib/rails3_assist/file/application.rb",
38
+ "lib/rails3_assist/file/environment.rb",
39
+ "lib/rails3_assist/file/special.rb",
40
+ "lib/rails3_assist/files.rb",
41
+ "lib/rails3_assist/namespaces.rb",
42
+ "lib/rails3_assist/rspec.rb",
43
+ "lib/rails3_assist/rspec/configure.rb",
44
+ "rails3_assist.gemspec",
45
+ "rails_generator.log",
46
+ "spec/fixtures.rb",
47
+ "spec/fixtures/.gitignore",
48
+ "spec/fixtures/Gemfile",
49
+ "spec/fixtures/Gemfile.lock",
50
+ "spec/fixtures/README",
51
+ "spec/fixtures/Rakefile",
52
+ "spec/fixtures/app/controllers/application_controller.rb",
53
+ "spec/fixtures/app/controllers/users_controller.rb",
54
+ "spec/fixtures/app/helpers/application_helper.rb",
55
+ "spec/fixtures/app/helpers/users_helper.rb",
56
+ "spec/fixtures/app/mailers/user_mailer.rb",
57
+ "spec/fixtures/app/models/user.rb",
58
+ "spec/fixtures/app/models/user_observer.rb",
59
+ "spec/fixtures/app/permits/user_permit.rb",
60
+ "spec/fixtures/app/views/layouts/application.html.erb",
61
+ "spec/fixtures/app/views/users/_form.html.erb",
62
+ "spec/fixtures/app/views/users/edit.html.erb",
63
+ "spec/fixtures/app/views/users/index.html.erb",
64
+ "spec/fixtures/app/views/users/new.html.erb",
65
+ "spec/fixtures/app/views/users/show.html.erb",
66
+ "spec/fixtures/config.ru",
67
+ "spec/fixtures/config/application.rb",
68
+ "spec/fixtures/config/boot.rb",
69
+ "spec/fixtures/config/database.yml",
70
+ "spec/fixtures/config/environment.rb",
71
+ "spec/fixtures/config/environments/development.rb",
72
+ "spec/fixtures/config/environments/production.rb",
73
+ "spec/fixtures/config/environments/test.rb",
74
+ "spec/fixtures/config/initializers/backtrace_silencers.rb",
75
+ "spec/fixtures/config/initializers/inflections.rb",
76
+ "spec/fixtures/config/initializers/mime_types.rb",
77
+ "spec/fixtures/config/initializers/secret_token.rb",
78
+ "spec/fixtures/config/initializers/session_store.rb",
79
+ "spec/fixtures/config/locales/en.yml",
80
+ "spec/fixtures/config/routes.rb",
81
+ "spec/fixtures/db/migrate/20100831135208_create_users.rb",
82
+ "spec/fixtures/db/seeds.rb",
83
+ "spec/fixtures/doc/README_FOR_APP",
84
+ "spec/fixtures/lib/tasks/.gitkeep",
85
+ "spec/fixtures/log/development.log",
86
+ "spec/fixtures/log/production.log",
87
+ "spec/fixtures/log/server.log",
88
+ "spec/fixtures/log/test.log",
89
+ "spec/fixtures/public/404.html",
90
+ "spec/fixtures/public/422.html",
91
+ "spec/fixtures/public/500.html",
92
+ "spec/fixtures/public/favicon.ico",
93
+ "spec/fixtures/public/images/rails.png",
94
+ "spec/fixtures/public/index.html",
95
+ "spec/fixtures/public/javascripts/application.js",
96
+ "spec/fixtures/public/javascripts/controls.js",
97
+ "spec/fixtures/public/javascripts/dragdrop.js",
98
+ "spec/fixtures/public/javascripts/effects.js",
99
+ "spec/fixtures/public/javascripts/prototype.js",
100
+ "spec/fixtures/public/javascripts/rails.js",
101
+ "spec/fixtures/public/robots.txt",
102
+ "spec/fixtures/public/stylesheets/.gitkeep",
103
+ "spec/fixtures/public/stylesheets/scaffold.css",
104
+ "spec/fixtures/script/rails",
105
+ "spec/fixtures/test/fixtures/users.yml",
106
+ "spec/fixtures/test/functional/users_controller_test.rb",
107
+ "spec/fixtures/test/performance/browsing_test.rb",
108
+ "spec/fixtures/test/test_helper.rb",
109
+ "spec/fixtures/test/unit/helpers/users_helper_test.rb",
110
+ "spec/fixtures/test/unit/user_test.rb",
111
+ "spec/fixtures/vendor/plugins/.gitkeep",
112
+ "spec/load_spec.rb",
113
+ "spec/rails3_assist/app_spec.rb",
114
+ "spec/rails3_assist/artifact/directory_spec.rb",
115
+ "spec/rails3_assist/artifact/files_spec.rb",
116
+ "spec/rails3_assist/artifact/path_spec.rb",
117
+ "spec/rails3_assist/artifact_spec.rb",
118
+ "spec/rails3_assist/directory/app_spec.rb",
119
+ "spec/rails3_assist/directory/container_spec.rb",
120
+ "spec/rails3_assist/directory/root_spec.rb",
121
+ "spec/rails3_assist/directory_spec.rb",
122
+ "spec/rails3_assist/file/application_spec.rb",
123
+ "spec/rails3_assist/file/environment_spec.rb",
124
+ "spec/rails3_assist/file/special_spec.rb",
125
+ "spec/rails3_assist/file_spec.rb",
126
+ "spec/rails3_assist/files_spec.rb",
127
+ "spec/rails3_assist/rspec/have_app_config_spec.rb",
128
+ "spec/spec_helper.rb"
130
129
  ]
131
130
  s.homepage = %q{http://github.com/kristianmandrup/rails3-assist}
132
- s.rdoc_options = ["--charset=UTF-8"]
133
131
  s.require_paths = ["lib"]
134
132
  s.rubygems_version = %q{1.3.7}
135
133
  s.summary = %q{File operation helpers for Rails 3 artifacts}
136
134
  s.test_files = [
135
+ "spec/fixtures.rb",
137
136
  "spec/fixtures/app/controllers/application_controller.rb",
138
- "spec/fixtures/app/controllers/users_controller.rb",
139
- "spec/fixtures/app/helpers/application_helper.rb",
140
- "spec/fixtures/app/helpers/users_helper.rb",
141
- "spec/fixtures/app/mailers/user_mailer.rb",
142
- "spec/fixtures/app/models/user.rb",
143
- "spec/fixtures/app/models/user_observer.rb",
144
- "spec/fixtures/app/permits/user_permit.rb",
145
- "spec/fixtures/config/application.rb",
146
- "spec/fixtures/config/boot.rb",
147
- "spec/fixtures/config/environment.rb",
148
- "spec/fixtures/config/environments/development.rb",
149
- "spec/fixtures/config/environments/production.rb",
150
- "spec/fixtures/config/environments/test.rb",
151
- "spec/fixtures/config/initializers/backtrace_silencers.rb",
152
- "spec/fixtures/config/initializers/inflections.rb",
153
- "spec/fixtures/config/initializers/mime_types.rb",
154
- "spec/fixtures/config/initializers/secret_token.rb",
155
- "spec/fixtures/config/initializers/session_store.rb",
156
- "spec/fixtures/config/routes.rb",
157
- "spec/fixtures/db/migrate/20100831135208_create_users.rb",
158
- "spec/fixtures/db/seeds.rb",
159
- "spec/fixtures/test/functional/users_controller_test.rb",
160
- "spec/fixtures/test/performance/browsing_test.rb",
161
- "spec/fixtures/test/test_helper.rb",
162
- "spec/fixtures/test/unit/helpers/users_helper_test.rb",
163
- "spec/fixtures/test/unit/user_test.rb",
164
- "spec/fixtures.rb",
165
- "spec/load_spec.rb",
166
- "spec/rails3_assist/app_spec.rb",
167
- "spec/rails3_assist/artifact/directory_spec.rb",
168
- "spec/rails3_assist/artifact/files_spec.rb",
169
- "spec/rails3_assist/artifact/path_spec.rb",
170
- "spec/rails3_assist/artifact_spec.rb",
171
- "spec/rails3_assist/directory/app_spec.rb",
172
- "spec/rails3_assist/directory/container_spec.rb",
173
- "spec/rails3_assist/directory/root_spec.rb",
174
- "spec/rails3_assist/directory_spec.rb",
175
- "spec/rails3_assist/file/application_spec.rb",
176
- "spec/rails3_assist/file/environment_spec.rb",
177
- "spec/rails3_assist/file/special_spec.rb",
178
- "spec/rails3_assist/file_spec.rb",
179
- "spec/rails3_assist/files_spec.rb",
180
- "spec/rails3_assist/rspec/have_app_config_spec.rb",
181
- "spec/spec_helper.rb"
137
+ "spec/fixtures/app/controllers/users_controller.rb",
138
+ "spec/fixtures/app/helpers/application_helper.rb",
139
+ "spec/fixtures/app/helpers/users_helper.rb",
140
+ "spec/fixtures/app/mailers/user_mailer.rb",
141
+ "spec/fixtures/app/models/user.rb",
142
+ "spec/fixtures/app/models/user_observer.rb",
143
+ "spec/fixtures/app/permits/user_permit.rb",
144
+ "spec/fixtures/config/application.rb",
145
+ "spec/fixtures/config/boot.rb",
146
+ "spec/fixtures/config/environment.rb",
147
+ "spec/fixtures/config/environments/development.rb",
148
+ "spec/fixtures/config/environments/production.rb",
149
+ "spec/fixtures/config/environments/test.rb",
150
+ "spec/fixtures/config/initializers/backtrace_silencers.rb",
151
+ "spec/fixtures/config/initializers/inflections.rb",
152
+ "spec/fixtures/config/initializers/mime_types.rb",
153
+ "spec/fixtures/config/initializers/secret_token.rb",
154
+ "spec/fixtures/config/initializers/session_store.rb",
155
+ "spec/fixtures/config/routes.rb",
156
+ "spec/fixtures/db/migrate/20100831135208_create_users.rb",
157
+ "spec/fixtures/db/seeds.rb",
158
+ "spec/fixtures/test/functional/users_controller_test.rb",
159
+ "spec/fixtures/test/performance/browsing_test.rb",
160
+ "spec/fixtures/test/test_helper.rb",
161
+ "spec/fixtures/test/unit/helpers/users_helper_test.rb",
162
+ "spec/fixtures/test/unit/user_test.rb",
163
+ "spec/load_spec.rb",
164
+ "spec/rails3_assist/app_spec.rb",
165
+ "spec/rails3_assist/artifact/directory_spec.rb",
166
+ "spec/rails3_assist/artifact/files_spec.rb",
167
+ "spec/rails3_assist/artifact/path_spec.rb",
168
+ "spec/rails3_assist/artifact_spec.rb",
169
+ "spec/rails3_assist/directory/app_spec.rb",
170
+ "spec/rails3_assist/directory/container_spec.rb",
171
+ "spec/rails3_assist/directory/root_spec.rb",
172
+ "spec/rails3_assist/directory_spec.rb",
173
+ "spec/rails3_assist/file/application_spec.rb",
174
+ "spec/rails3_assist/file/environment_spec.rb",
175
+ "spec/rails3_assist/file/special_spec.rb",
176
+ "spec/rails3_assist/file_spec.rb",
177
+ "spec/rails3_assist/files_spec.rb",
178
+ "spec/rails3_assist/rspec/have_app_config_spec.rb",
179
+ "spec/spec_helper.rb"
182
180
  ]
183
181
 
184
182
  if s.respond_to? :specification_version then
@@ -190,16 +188,16 @@ Gem::Specification.new do |s|
190
188
  s.add_development_dependency(%q<rails-app-spec>, ["~> 0.3.0"])
191
189
  s.add_runtime_dependency(%q<require_all>, ["~> 1.2.0"])
192
190
  s.add_runtime_dependency(%q<sugar-high>, ["~> 0.3.0"])
193
- s.add_runtime_dependency(%q<activesupport>, ["~> 3.0"])
194
- s.add_runtime_dependency(%q<migration_assist>, ["~> 0.1.4"])
191
+ s.add_runtime_dependency(%q<activesupport>, [">= 3.0"])
192
+ s.add_runtime_dependency(%q<migration_assist>, ["~> 0.1.7"])
195
193
  s.add_runtime_dependency(%q<thor>, [">= 0.14.0"])
196
194
  else
197
195
  s.add_dependency(%q<rspec>, [">= 2.0.0"])
198
196
  s.add_dependency(%q<rails-app-spec>, ["~> 0.3.0"])
199
197
  s.add_dependency(%q<require_all>, ["~> 1.2.0"])
200
198
  s.add_dependency(%q<sugar-high>, ["~> 0.3.0"])
201
- s.add_dependency(%q<activesupport>, ["~> 3.0"])
202
- s.add_dependency(%q<migration_assist>, ["~> 0.1.4"])
199
+ s.add_dependency(%q<activesupport>, [">= 3.0"])
200
+ s.add_dependency(%q<migration_assist>, ["~> 0.1.7"])
203
201
  s.add_dependency(%q<thor>, [">= 0.14.0"])
204
202
  end
205
203
  else
@@ -207,8 +205,8 @@ Gem::Specification.new do |s|
207
205
  s.add_dependency(%q<rails-app-spec>, ["~> 0.3.0"])
208
206
  s.add_dependency(%q<require_all>, ["~> 1.2.0"])
209
207
  s.add_dependency(%q<sugar-high>, ["~> 0.3.0"])
210
- s.add_dependency(%q<activesupport>, ["~> 3.0"])
211
- s.add_dependency(%q<migration_assist>, ["~> 0.1.4"])
208
+ s.add_dependency(%q<activesupport>, [">= 3.0"])
209
+ s.add_dependency(%q<migration_assist>, ["~> 0.1.7"])
212
210
  s.add_dependency(%q<thor>, [">= 0.14.0"])
213
211
  end
214
212
  end
@@ -56,4 +56,36 @@ describe Rails3::Assist::File::Special do
56
56
  end
57
57
  }
58
58
  end
59
+
60
+ describe '#gem_file' do
61
+ it 'should return the Gemfile path' do
62
+ AppDir.new.gem_file.should match /Gemfile/
63
+ end
64
+ end
65
+
66
+ describe '#read_gem_file' do
67
+ it 'should read the Gemfile' do
68
+ AppDir.new.read_gem_file.should match /gem 'rails'/
69
+ end
70
+ end
71
+
72
+ describe '#has_gem?' do
73
+ it 'should be true that it has the rails gem' do
74
+ AppDir.new.has_gem?(:rails).should be_true
75
+ end
76
+
77
+ it 'should be false that it has the rails2 gem' do
78
+ AppDir.new.has_gem?(:rails2).should be_false
79
+ end
80
+ end
81
+
82
+ describe '#has_gem_version?' do
83
+ it 'should be true that it has the rails gem 3.0.0' do
84
+ AppDir.new.has_gem_version?(:rails, '3.0.0').should be_true
85
+ end
86
+
87
+ it 'should be false that it has the rails gem 3.0.1' do
88
+ AppDir.new.has_gem_version?(:rails, '3.0.1').should be_false
89
+ end
90
+ end
59
91
  end
@@ -72,58 +72,19 @@ describe Rails3::Assist::Files do
72
72
  describe '#initializer_files' do
73
73
  it "should return files for initializer directory" do
74
74
  CLASS.initializer_files.file_names.should include('mime_types.rb', 'secret_token.rb')
75
- end
76
-
77
- it "should return files for initializer directory" do
78
- files = CLASS.initializer_files('mime').file_names
79
- files.should include('mime_types.rb')
80
- files.should_not include('secret_token.rb')
81
- end
82
-
83
- it "should return files for initializer directory, in a block" do
84
- CLASS.initializer_files('mime') do |files|
85
- files.file_names.should include('mime_types.rb')
86
- files.file_names.should_not include('secret_token.rb')
87
- end
88
- end
75
+ end
89
76
  end
90
77
 
91
78
 
92
79
  describe '#locale_files' do
93
80
  it "should return files for locale directory" do
94
81
  CLASS.locale_files.file_names.should include('en.yml')
95
- end
96
-
97
- it "should return files for initializer directory" do
98
- files = CLASS.initializer_files('mime').file_names
99
- files.should include('mime_types.rb')
100
- files.should_not include('secret_token.rb')
101
- end
102
-
103
- it "should return files for initializer directory, in a block" do
104
- CLASS.initializer_files('mime') do |files|
105
- files.file_names.should include('mime_types.rb')
106
- files.file_names.should_not include('secret_token.rb')
107
- end
108
- end
82
+ end
109
83
  end
110
84
 
111
85
  describe '#css_files' do
112
86
  it "should return files for css directory" do
113
87
  CLASS.css_files.file_names.should include('scaffold.css')
114
- end
115
-
116
- it "should return files for initializer directory" do
117
- files = CLASS.initializer_files('mime').file_names
118
- files.should include('mime_types.rb')
119
- files.should_not include('secret_token.rb')
120
- end
121
-
122
- it "should return files for initializer directory, in a block" do
123
- CLASS.initializer_files('mime') do |files|
124
- files.file_names.should include('mime_types.rb')
125
- files.file_names.should_not include('secret_token.rb')
126
- end
127
- end
88
+ end
128
89
  end
129
90
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 0
9
- version: 0.3.0
8
+ - 1
9
+ version: 0.3.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kristian Mandrup
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-10-21 00:00:00 +02:00
17
+ date: 2010-12-01 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -83,7 +83,7 @@ dependencies:
83
83
  requirement: &id005 !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
86
- - - ~>
86
+ - - ">="
87
87
  - !ruby/object:Gem::Version
88
88
  segments:
89
89
  - 3
@@ -102,8 +102,8 @@ dependencies:
102
102
  segments:
103
103
  - 0
104
104
  - 1
105
- - 4
106
- version: 0.1.4
105
+ - 7
106
+ version: 0.1.7
107
107
  type: :runtime
108
108
  version_requirements: *id006
109
109
  - !ruby/object:Gem::Dependency
@@ -132,7 +132,6 @@ extra_rdoc_files:
132
132
  - README.markdown
133
133
  files:
134
134
  - .document
135
- - .gitignore
136
135
  - .rspec
137
136
  - LICENSE
138
137
  - README.markdown
@@ -246,8 +245,8 @@ homepage: http://github.com/kristianmandrup/rails3-assist
246
245
  licenses: []
247
246
 
248
247
  post_install_message:
249
- rdoc_options:
250
- - --charset=UTF-8
248
+ rdoc_options: []
249
+
251
250
  require_paths:
252
251
  - lib
253
252
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -274,6 +273,7 @@ signing_key:
274
273
  specification_version: 3
275
274
  summary: File operation helpers for Rails 3 artifacts
276
275
  test_files:
276
+ - spec/fixtures.rb
277
277
  - spec/fixtures/app/controllers/application_controller.rb
278
278
  - spec/fixtures/app/controllers/users_controller.rb
279
279
  - spec/fixtures/app/helpers/application_helper.rb
@@ -301,7 +301,6 @@ test_files:
301
301
  - spec/fixtures/test/test_helper.rb
302
302
  - spec/fixtures/test/unit/helpers/users_helper_test.rb
303
303
  - spec/fixtures/test/unit/user_test.rb
304
- - spec/fixtures.rb
305
304
  - spec/load_spec.rb
306
305
  - spec/rails3_assist/app_spec.rb
307
306
  - spec/rails3_assist/artifact/directory_spec.rb
data/.gitignore DELETED
@@ -1,21 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
-
21
- ## PROJECT::SPECIFIC