rails3_assist 0.2.12 → 0.2.13

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ begin
7
7
  gem.email = "kmandrup@gmail.com"
8
8
  gem.homepage = "http://github.com/kristianmandrup/rails3-assist"
9
9
  gem.authors = ["Kristian Mandrup"]
10
- gem.add_development_dependency "rspec", ">= 2.0.0.rc"
10
+ gem.add_development_dependency "rspec", ">= 2.0.0"
11
11
  gem.add_development_dependency 'rails-app-spec', '~> 0.2.14'
12
12
 
13
13
  gem.add_dependency "require_all", "~> 1.2.0"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.12
1
+ 0.2.13
@@ -4,14 +4,18 @@ module Rails3::Assist::File
4
4
  module Special
5
5
  module Methods
6
6
  # application_file, environment_file
7
- [:application, :environment].each do |name|
7
+ [:application, :environment, :routes, :boot].each do |name|
8
8
  class_eval %{
9
9
  def #{name}_file
10
10
  File.join(Rails3::Assist::Directory.config_dir, '#{name}.rb')
11
- end
11
+ end
12
12
  }
13
13
  end
14
14
 
15
+ def database_file
16
+ File.join(Rails3::Assist::Directory.config_dir, 'database.yml')
17
+ end
18
+
15
19
  def seed_file
16
20
  File.join(Rails3::Assist::Directory.db_dir, 'seeds.rb')
17
21
  end
@@ -22,7 +26,7 @@ module Rails3::Assist::File
22
26
 
23
27
  # read_application_file
24
28
  # append_to_application_file
25
- [:application, :environment, :seed, :gem].each do |name|
29
+ [:application, :environment, :seed, :gem, :routes, :boot, :database].each do |name|
26
30
  class_eval %{
27
31
  def read_#{name}_file
28
32
  fname = #{name}_file
@@ -3,7 +3,7 @@ require_all File.dirname(__FILE__) + '/file'
3
3
  module Rails3::Assist
4
4
  module File
5
5
  module Methods
6
- {:initializer => 'rb', :db => 'rb', :migration => 'rb', :locale => 'yml', :javascript => 'js', :stylesheet => 'css'}.each_pair do |name, ext|
6
+ {:initializer => 'rb', :db => 'rb', :migration => 'rb', :locale => 'yml', :javascript => 'js', :stylesheet => 'css', :config => '.rb', :db => '.rb'}.each_pair do |name, ext|
7
7
  plural_name = name.to_s.pluralize
8
8
  pure_ext = ext.gsub /^\./, ''
9
9
  class_eval %{
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rails3_assist}
8
- s.version = "0.2.12"
8
+ s.version = "0.2.13"
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-07}
12
+ s.date = %q{2010-10-18}
13
13
  s.description = %q{Assist in operating on Rails 3 artifacts including migrations}
14
14
  s.email = %q{kmandrup@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -186,7 +186,7 @@ Gem::Specification.new do |s|
186
186
  s.specification_version = 3
187
187
 
188
188
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
189
- s.add_development_dependency(%q<rspec>, [">= 2.0.0.rc"])
189
+ s.add_development_dependency(%q<rspec>, [">= 2.0.0"])
190
190
  s.add_development_dependency(%q<rails-app-spec>, ["~> 0.2.14"])
191
191
  s.add_runtime_dependency(%q<require_all>, ["~> 1.2.0"])
192
192
  s.add_runtime_dependency(%q<sugar-high>, ["~> 0.2.10"])
@@ -194,7 +194,7 @@ Gem::Specification.new do |s|
194
194
  s.add_runtime_dependency(%q<migration_assist>, ["~> 0.1.4"])
195
195
  s.add_runtime_dependency(%q<thor>, ["~> 0.14.0"])
196
196
  else
197
- s.add_dependency(%q<rspec>, [">= 2.0.0.rc"])
197
+ s.add_dependency(%q<rspec>, [">= 2.0.0"])
198
198
  s.add_dependency(%q<rails-app-spec>, ["~> 0.2.14"])
199
199
  s.add_dependency(%q<require_all>, ["~> 1.2.0"])
200
200
  s.add_dependency(%q<sugar-high>, ["~> 0.2.10"])
@@ -203,7 +203,7 @@ Gem::Specification.new do |s|
203
203
  s.add_dependency(%q<thor>, ["~> 0.14.0"])
204
204
  end
205
205
  else
206
- s.add_dependency(%q<rspec>, [">= 2.0.0.rc"])
206
+ s.add_dependency(%q<rspec>, [">= 2.0.0"])
207
207
  s.add_dependency(%q<rails-app-spec>, ["~> 0.2.14"])
208
208
  s.add_dependency(%q<require_all>, ["~> 1.2.0"])
209
209
  s.add_dependency(%q<sugar-high>, ["~> 0.2.10"])
@@ -12,7 +12,7 @@ describe Rails3::Assist::File::Special do
12
12
  Rails3::Assist::Directory.rails_root = fixtures_dir
13
13
  end
14
14
 
15
- [:application, :environment, :seed].each do |name|
15
+ [:application, :environment, :seed, :routes, :boot].each do |name|
16
16
  eval %{
17
17
  before :each do
18
18
  file_name = CLASS.#{name}_file
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 12
9
- version: 0.2.12
8
+ - 13
9
+ version: 0.2.13
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-07 00:00:00 +02:00
17
+ date: 2010-10-18 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -29,8 +29,7 @@ dependencies:
29
29
  - 2
30
30
  - 0
31
31
  - 0
32
- - rc
33
- version: 2.0.0.rc
32
+ version: 2.0.0
34
33
  type: :development
35
34
  version_requirements: *id001
36
35
  - !ruby/object:Gem::Dependency