rails_assist 0.4.4 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,18 +1,12 @@
1
1
  source "http://rubygems.org"
2
- # Add dependencies required to use your gem here.
3
- # Example:
4
2
 
5
3
  gem "require_all", "~> 1.2.0"
6
- gem "sugar-high", "~> 0.4.0"
7
- gem "activesupport", ">= 3.0.7"
4
+ gem "sugar-high", "~> 0.5.0"
5
+ gem "activesupport", ">= 3.0.1"
8
6
 
9
- # gem "migration_assist", "~> 0.2.0"
10
-
11
- # Add dependencies to develop your gem here.
12
- # Include everything needed to run rake, tests, features, etc.
13
7
  group :development do
14
- gem "rspec", ">= 2.4.1"
15
- gem "bundler", "~> 1.0.0"
16
- gem "jeweler", "~> 1.5.2"
8
+ gem "rspec", ">= 2.4"
9
+ gem "bundler", "~> 1.0.10"
10
+ gem "jeweler", "~> 1.6.4"
17
11
  gem "rcov", ">= 0"
18
12
  end
data/Rakefile CHANGED
@@ -18,15 +18,6 @@ Jeweler::Tasks.new do |gem|
18
18
  gem.email = "kmandrup@gmail.com"
19
19
  gem.homepage = "http://github.com/kristianmandrup/rails-assist"
20
20
  gem.authors = ["Kristian Mandrup"]
21
-
22
- gem.add_dependency "require_all", "~> 1.2.0"
23
- gem.add_dependency "sugar-high", "~> 0.4.0"
24
- gem.add_dependency "activesupport", ">= 3.0.7"
25
-
26
- # Include your dependencies below. Runtime dependencies are required when using your gem,
27
- # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
28
- # gem.add_runtime_dependency 'jabber4r', '> 0.1'
29
- # gem.add_development_dependency 'rspec', '> 1.2.3'
30
21
  end
31
22
  Jeweler::RubygemsDotOrgTasks.new
32
23
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.4
1
+ 0.5.0
@@ -1,13 +1,18 @@
1
1
  module RailsAssist::File
2
- module Routes
2
+ module Routes
3
+ # insert as first route statement
3
4
  def insert_into_routes route_stmt=nil, &block
4
5
  statement = block ? yield : route_stmt
5
6
  routes_file.insert statement, :after => 'routes.draw do'
6
7
  end
8
+ alias_method :insert_as_first_route_statement, :insert_into_routes
7
9
 
10
+ # insert as last route statement
8
11
  def insert_last_in_routes route_stmt=nil, &block
9
12
  statement = block ? yield : route_stmt
10
13
  routes_file.insert statement, :before_last => 'end'
11
14
  end
15
+
16
+ alias_method :insert_as_last_route_statement, :insert_last_in_routes
12
17
  end
13
18
  end
data/rails_assist.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rails_assist}
8
- s.version = "0.4.4"
8
+ s.version = "0.5.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = [%q{Kristian Mandrup}]
12
- s.date = %q{2011-05-16}
11
+ s.authors = ["Kristian Mandrup"]
12
+ s.date = %q{2011-07-21}
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 = [
@@ -133,99 +133,38 @@ Gem::Specification.new do |s|
133
133
  "spec/spec_helper.rb"
134
134
  ]
135
135
  s.homepage = %q{http://github.com/kristianmandrup/rails-assist}
136
- s.require_paths = [%q{lib}]
137
- s.rubygems_version = %q{1.8.0}
136
+ s.require_paths = ["lib"]
137
+ s.rubygems_version = %q{1.6.2}
138
138
  s.summary = %q{File operation helpers for Rails 3 artifacts}
139
- s.test_files = [
140
- "spec/dir_spec_helper.rb",
141
- "spec/fixtures.rb",
142
- "spec/fixtures/app/controllers/application_controller.rb",
143
- "spec/fixtures/app/controllers/users_controller.rb",
144
- "spec/fixtures/app/helpers/application_helper.rb",
145
- "spec/fixtures/app/helpers/users_helper.rb",
146
- "spec/fixtures/app/licenses/blogging_license.rb",
147
- "spec/fixtures/app/mailers/user_mailer.rb",
148
- "spec/fixtures/app/models/user.rb",
149
- "spec/fixtures/app/models/user_observer.rb",
150
- "spec/fixtures/app/permits/user_permit.rb",
151
- "spec/fixtures/app/validators/email_validator.rb",
152
- "spec/fixtures/config/application.rb",
153
- "spec/fixtures/config/boot.rb",
154
- "spec/fixtures/config/environment.rb",
155
- "spec/fixtures/config/environments/development.rb",
156
- "spec/fixtures/config/environments/production.rb",
157
- "spec/fixtures/config/environments/test.rb",
158
- "spec/fixtures/config/initializers/backtrace_silencers.rb",
159
- "spec/fixtures/config/initializers/inflections.rb",
160
- "spec/fixtures/config/initializers/mime_types.rb",
161
- "spec/fixtures/config/initializers/my_init.rb",
162
- "spec/fixtures/config/initializers/secret_token.rb",
163
- "spec/fixtures/config/initializers/session_store.rb",
164
- "spec/fixtures/config/routes.rb",
165
- "spec/fixtures/db/migrate/20100831135208_create_users.rb",
166
- "spec/fixtures/db/seeds.rb",
167
- "spec/fixtures/test/functional/users_controller_test.rb",
168
- "spec/fixtures/test/performance/browsing_test.rb",
169
- "spec/fixtures/test/test_helper.rb",
170
- "spec/fixtures/test/unit/helpers/users_helper_test.rb",
171
- "spec/fixtures/test/unit/user_test.rb",
172
- "spec/load_spec.rb",
173
- "spec/rails_assist/app_spec.rb",
174
- "spec/rails_assist/artifact/directory_spec.rb",
175
- "spec/rails_assist/artifact/files_spec.rb",
176
- "spec/rails_assist/artifact/path_spec.rb",
177
- "spec/rails_assist/artifact_spec.rb",
178
- "spec/rails_assist/directory/app_spec.rb",
179
- "spec/rails_assist/directory/container_spec.rb",
180
- "spec/rails_assist/directory/root_spec.rb",
181
- "spec/rails_assist/directory_spec.rb",
182
- "spec/rails_assist/file/application_spec.rb",
183
- "spec/rails_assist/file/environment_spec.rb",
184
- "spec/rails_assist/file/special_spec.rb",
185
- "spec/rails_assist/file_spec.rb",
186
- "spec/rails_assist/files_spec.rb",
187
- "spec/rails_assist/rspec/have_app_config_spec.rb",
188
- "spec/rails_assist_spec.rb",
189
- "spec/spec_helper.rb"
190
- ]
191
139
 
192
140
  if s.respond_to? :specification_version then
193
141
  s.specification_version = 3
194
142
 
195
143
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
196
144
  s.add_runtime_dependency(%q<require_all>, ["~> 1.2.0"])
197
- s.add_runtime_dependency(%q<sugar-high>, ["~> 0.4.0"])
198
- s.add_runtime_dependency(%q<activesupport>, [">= 3.0.7"])
199
- s.add_development_dependency(%q<rspec>, [">= 2.4.1"])
200
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
201
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
145
+ s.add_runtime_dependency(%q<sugar-high>, ["~> 0.5.0"])
146
+ s.add_runtime_dependency(%q<activesupport>, [">= 3.0.1"])
147
+ s.add_development_dependency(%q<rspec>, [">= 2.4"])
148
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.10"])
149
+ s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
202
150
  s.add_development_dependency(%q<rcov>, [">= 0"])
203
- s.add_runtime_dependency(%q<require_all>, ["~> 1.2.0"])
204
- s.add_runtime_dependency(%q<sugar-high>, ["~> 0.4.0"])
205
- s.add_runtime_dependency(%q<activesupport>, [">= 3.0.7"])
206
151
  else
207
152
  s.add_dependency(%q<require_all>, ["~> 1.2.0"])
208
- s.add_dependency(%q<sugar-high>, ["~> 0.4.0"])
209
- s.add_dependency(%q<activesupport>, [">= 3.0.7"])
210
- s.add_dependency(%q<rspec>, [">= 2.4.1"])
211
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
212
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
153
+ s.add_dependency(%q<sugar-high>, ["~> 0.5.0"])
154
+ s.add_dependency(%q<activesupport>, [">= 3.0.1"])
155
+ s.add_dependency(%q<rspec>, [">= 2.4"])
156
+ s.add_dependency(%q<bundler>, ["~> 1.0.10"])
157
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
213
158
  s.add_dependency(%q<rcov>, [">= 0"])
214
- s.add_dependency(%q<require_all>, ["~> 1.2.0"])
215
- s.add_dependency(%q<sugar-high>, ["~> 0.4.0"])
216
- s.add_dependency(%q<activesupport>, [">= 3.0.7"])
217
159
  end
218
160
  else
219
161
  s.add_dependency(%q<require_all>, ["~> 1.2.0"])
220
- s.add_dependency(%q<sugar-high>, ["~> 0.4.0"])
221
- s.add_dependency(%q<activesupport>, [">= 3.0.7"])
222
- s.add_dependency(%q<rspec>, [">= 2.4.1"])
223
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
224
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
162
+ s.add_dependency(%q<sugar-high>, ["~> 0.5.0"])
163
+ s.add_dependency(%q<activesupport>, [">= 3.0.1"])
164
+ s.add_dependency(%q<rspec>, [">= 2.4"])
165
+ s.add_dependency(%q<bundler>, ["~> 1.0.10"])
166
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
225
167
  s.add_dependency(%q<rcov>, [">= 0"])
226
- s.add_dependency(%q<require_all>, ["~> 1.2.0"])
227
- s.add_dependency(%q<sugar-high>, ["~> 0.4.0"])
228
- s.add_dependency(%q<activesupport>, [">= 3.0.7"])
229
168
  end
230
169
  end
231
170
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_assist
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,12 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-05-16 00:00:00.000000000Z
12
+ date: 2011-07-21 00:00:00.000000000 +02:00
13
+ default_executable:
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: require_all
16
- requirement: &2160784640 !ruby/object:Gem::Requirement
17
+ requirement: &2157736100 !ruby/object:Gem::Requirement
17
18
  none: false
18
19
  requirements:
19
20
  - - ~>
@@ -21,65 +22,65 @@ dependencies:
21
22
  version: 1.2.0
22
23
  type: :runtime
23
24
  prerelease: false
24
- version_requirements: *2160784640
25
+ version_requirements: *2157736100
25
26
  - !ruby/object:Gem::Dependency
26
27
  name: sugar-high
27
- requirement: &2160783040 !ruby/object:Gem::Requirement
28
+ requirement: &2157735600 !ruby/object:Gem::Requirement
28
29
  none: false
29
30
  requirements:
30
31
  - - ~>
31
32
  - !ruby/object:Gem::Version
32
- version: 0.4.0
33
+ version: 0.5.0
33
34
  type: :runtime
34
35
  prerelease: false
35
- version_requirements: *2160783040
36
+ version_requirements: *2157735600
36
37
  - !ruby/object:Gem::Dependency
37
38
  name: activesupport
38
- requirement: &2160781540 !ruby/object:Gem::Requirement
39
+ requirement: &2157735080 !ruby/object:Gem::Requirement
39
40
  none: false
40
41
  requirements:
41
42
  - - ! '>='
42
43
  - !ruby/object:Gem::Version
43
- version: 3.0.7
44
+ version: 3.0.1
44
45
  type: :runtime
45
46
  prerelease: false
46
- version_requirements: *2160781540
47
+ version_requirements: *2157735080
47
48
  - !ruby/object:Gem::Dependency
48
49
  name: rspec
49
- requirement: &2160779840 !ruby/object:Gem::Requirement
50
+ requirement: &2157734560 !ruby/object:Gem::Requirement
50
51
  none: false
51
52
  requirements:
52
53
  - - ! '>='
53
54
  - !ruby/object:Gem::Version
54
- version: 2.4.1
55
+ version: '2.4'
55
56
  type: :development
56
57
  prerelease: false
57
- version_requirements: *2160779840
58
+ version_requirements: *2157734560
58
59
  - !ruby/object:Gem::Dependency
59
60
  name: bundler
60
- requirement: &2160778400 !ruby/object:Gem::Requirement
61
+ requirement: &2157734040 !ruby/object:Gem::Requirement
61
62
  none: false
62
63
  requirements:
63
64
  - - ~>
64
65
  - !ruby/object:Gem::Version
65
- version: 1.0.0
66
+ version: 1.0.10
66
67
  type: :development
67
68
  prerelease: false
68
- version_requirements: *2160778400
69
+ version_requirements: *2157734040
69
70
  - !ruby/object:Gem::Dependency
70
71
  name: jeweler
71
- requirement: &2160769880 !ruby/object:Gem::Requirement
72
+ requirement: &2157733500 !ruby/object:Gem::Requirement
72
73
  none: false
73
74
  requirements:
74
75
  - - ~>
75
76
  - !ruby/object:Gem::Version
76
- version: 1.5.2
77
+ version: 1.6.4
77
78
  type: :development
78
79
  prerelease: false
79
- version_requirements: *2160769880
80
+ version_requirements: *2157733500
80
81
  - !ruby/object:Gem::Dependency
81
82
  name: rcov
82
- requirement: &2160768380 !ruby/object:Gem::Requirement
83
+ requirement: &2157732920 !ruby/object:Gem::Requirement
83
84
  none: false
84
85
  requirements:
85
86
  - - ! '>='
@@ -87,40 +88,7 @@ dependencies:
87
88
  version: '0'
88
89
  type: :development
89
90
  prerelease: false
90
- version_requirements: *2160768380
91
- - !ruby/object:Gem::Dependency
92
- name: require_all
93
- requirement: &2160767200 !ruby/object:Gem::Requirement
94
- none: false
95
- requirements:
96
- - - ~>
97
- - !ruby/object:Gem::Version
98
- version: 1.2.0
99
- type: :runtime
100
- prerelease: false
101
- version_requirements: *2160767200
102
- - !ruby/object:Gem::Dependency
103
- name: sugar-high
104
- requirement: &2160764580 !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ~>
108
- - !ruby/object:Gem::Version
109
- version: 0.4.0
110
- type: :runtime
111
- prerelease: false
112
- version_requirements: *2160764580
113
- - !ruby/object:Gem::Dependency
114
- name: activesupport
115
- requirement: &2160761920 !ruby/object:Gem::Requirement
116
- none: false
117
- requirements:
118
- - - ! '>='
119
- - !ruby/object:Gem::Version
120
- version: 3.0.7
121
- type: :runtime
122
- prerelease: false
123
- version_requirements: *2160761920
91
+ version_requirements: *2157732920
124
92
  description: Basic file operation helpers for working with Rails 3 artifacts
125
93
  email: kmandrup@gmail.com
126
94
  executables: []
@@ -243,6 +211,7 @@ files:
243
211
  - spec/rails_assist/rspec/have_app_config_spec.rb
244
212
  - spec/rails_assist_spec.rb
245
213
  - spec/spec_helper.rb
214
+ has_rdoc: true
246
215
  homepage: http://github.com/kristianmandrup/rails-assist
247
216
  licenses: []
248
217
  post_install_message:
@@ -257,7 +226,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
257
226
  version: '0'
258
227
  segments:
259
228
  - 0
260
- hash: -3638037880998592164
229
+ hash: -2479610579229436750
261
230
  required_rubygems_version: !ruby/object:Gem::Requirement
262
231
  none: false
263
232
  requirements:
@@ -266,58 +235,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
266
235
  version: '0'
267
236
  requirements: []
268
237
  rubyforge_project:
269
- rubygems_version: 1.8.0
238
+ rubygems_version: 1.6.2
270
239
  signing_key:
271
240
  specification_version: 3
272
241
  summary: File operation helpers for Rails 3 artifacts
273
- test_files:
274
- - spec/dir_spec_helper.rb
275
- - spec/fixtures.rb
276
- - spec/fixtures/app/controllers/application_controller.rb
277
- - spec/fixtures/app/controllers/users_controller.rb
278
- - spec/fixtures/app/helpers/application_helper.rb
279
- - spec/fixtures/app/helpers/users_helper.rb
280
- - spec/fixtures/app/licenses/blogging_license.rb
281
- - spec/fixtures/app/mailers/user_mailer.rb
282
- - spec/fixtures/app/models/user.rb
283
- - spec/fixtures/app/models/user_observer.rb
284
- - spec/fixtures/app/permits/user_permit.rb
285
- - spec/fixtures/app/validators/email_validator.rb
286
- - spec/fixtures/config/application.rb
287
- - spec/fixtures/config/boot.rb
288
- - spec/fixtures/config/environment.rb
289
- - spec/fixtures/config/environments/development.rb
290
- - spec/fixtures/config/environments/production.rb
291
- - spec/fixtures/config/environments/test.rb
292
- - spec/fixtures/config/initializers/backtrace_silencers.rb
293
- - spec/fixtures/config/initializers/inflections.rb
294
- - spec/fixtures/config/initializers/mime_types.rb
295
- - spec/fixtures/config/initializers/my_init.rb
296
- - spec/fixtures/config/initializers/secret_token.rb
297
- - spec/fixtures/config/initializers/session_store.rb
298
- - spec/fixtures/config/routes.rb
299
- - spec/fixtures/db/migrate/20100831135208_create_users.rb
300
- - spec/fixtures/db/seeds.rb
301
- - spec/fixtures/test/functional/users_controller_test.rb
302
- - spec/fixtures/test/performance/browsing_test.rb
303
- - spec/fixtures/test/test_helper.rb
304
- - spec/fixtures/test/unit/helpers/users_helper_test.rb
305
- - spec/fixtures/test/unit/user_test.rb
306
- - spec/load_spec.rb
307
- - spec/rails_assist/app_spec.rb
308
- - spec/rails_assist/artifact/directory_spec.rb
309
- - spec/rails_assist/artifact/files_spec.rb
310
- - spec/rails_assist/artifact/path_spec.rb
311
- - spec/rails_assist/artifact_spec.rb
312
- - spec/rails_assist/directory/app_spec.rb
313
- - spec/rails_assist/directory/container_spec.rb
314
- - spec/rails_assist/directory/root_spec.rb
315
- - spec/rails_assist/directory_spec.rb
316
- - spec/rails_assist/file/application_spec.rb
317
- - spec/rails_assist/file/environment_spec.rb
318
- - spec/rails_assist/file/special_spec.rb
319
- - spec/rails_assist/file_spec.rb
320
- - spec/rails_assist/files_spec.rb
321
- - spec/rails_assist/rspec/have_app_config_spec.rb
322
- - spec/rails_assist_spec.rb
323
- - spec/spec_helper.rb
242
+ test_files: []