rails_config 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/.bundle/config CHANGED
@@ -1,2 +1,2 @@
1
- ---
2
- BUNDLE_DISABLE_SHARED_GEMS: "1"
1
+ --- {}
2
+
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  .DS_Store
2
2
  pkg/*.gem
3
- .rvmrc
3
+ .rvmrc
4
+ Gemfile.lock
data/Rakefile CHANGED
@@ -8,11 +8,11 @@ require "rake"
8
8
  require "rspec"
9
9
  require "rspec/core/rake_task"
10
10
 
11
- Rspec::Core::RakeTask.new(:spec) do |spec|
11
+ RSpec::Core::RakeTask.new(:spec) do |spec|
12
12
  spec.pattern = "spec/**/*_spec.rb"
13
13
  end
14
14
 
15
- Rspec::Core::RakeTask.new('spec:progress') do |spec|
15
+ RSpec::Core::RakeTask.new('spec:progress') do |spec|
16
16
  spec.rspec_opts = %w(--format progress)
17
17
  spec.pattern = "spec/**/*_spec.rb"
18
18
  end
data/init.rb ADDED
@@ -0,0 +1 @@
1
+ require File.dirname(__FILE__) + '/lib/rails_config'
@@ -13,8 +13,18 @@ module RailsConfig
13
13
 
14
14
  def copy_settings
15
15
  template "settings.yml", "config/settings.yml"
16
+ template "settings.local.yml", "config/settings.local.yml"
16
17
  directory "settings", "config/settings"
17
18
  end
19
+
20
+ def modify_gitignore
21
+ append_to_file '.gitignore' do
22
+ "\n" +
23
+ "config/settings.local.yml\n" +
24
+ "config/settings/*.local.yml\n" +
25
+ "config/environments/*.local.yml\n"
26
+ end
27
+ end
18
28
  end
19
29
  end
20
30
  end
@@ -15,7 +15,11 @@ module RailsConfig
15
15
  RailsConfig.load_and_set_settings(
16
16
  Rails.root.join("config", "settings.yml").to_s,
17
17
  Rails.root.join("config", "settings", "#{Rails.env}.yml").to_s,
18
- Rails.root.join("config", "environments", "#{Rails.env}.yml").to_s
18
+ Rails.root.join("config", "environments", "#{Rails.env}.yml").to_s,
19
+
20
+ Rails.root.join("config", "settings.local.yml").to_s,
21
+ Rails.root.join("config", "settings", "#{Rails.env}.local.yml").to_s,
22
+ Rails.root.join("config", "environments", "#{Rails.env}.local.yml").to_s
19
23
  )
20
24
  end
21
25
 
@@ -73,4 +73,4 @@ module RailsConfig
73
73
  s
74
74
  end
75
75
  end
76
- end
76
+ end
@@ -1,3 +1,3 @@
1
1
  module RailsConfig
2
- VERSION = "0.2.3"
2
+ VERSION = '0.2.4'
3
3
  end
data/rails_config.gemspec CHANGED
@@ -16,7 +16,8 @@ Gem::Specification.new do |s|
16
16
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
17
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
18
 
19
- s.add_runtime_dependency "activesupport", "~> 3.0"
19
+ s.add_runtime_dependency "activesupport", ">= 3.0"
20
+ s.add_development_dependency "rake"
20
21
  s.add_development_dependency "rspec", "~> 2.0"
21
22
  s.add_development_dependency "autotest", ">= 0"
22
23
  s.add_development_dependency "growl-glue", ">= 0"
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rails_config
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.3
5
+ version: 0.2.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jacques Crocker
@@ -11,8 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2011-04-08 00:00:00 -07:00
15
- default_executable:
14
+ date: 2011-06-13 00:00:00 Z
16
15
  dependencies:
17
16
  - !ruby/object:Gem::Dependency
18
17
  name: activesupport
@@ -20,44 +19,55 @@ dependencies:
20
19
  requirement: &id001 !ruby/object:Gem::Requirement
21
20
  none: false
22
21
  requirements:
23
- - - ~>
22
+ - - ">="
24
23
  - !ruby/object:Gem::Version
25
24
  version: "3.0"
26
25
  type: :runtime
27
26
  version_requirements: *id001
28
27
  - !ruby/object:Gem::Dependency
29
- name: rspec
28
+ name: rake
30
29
  prerelease: false
31
30
  requirement: &id002 !ruby/object:Gem::Requirement
31
+ none: false
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: "0"
36
+ type: :development
37
+ version_requirements: *id002
38
+ - !ruby/object:Gem::Dependency
39
+ name: rspec
40
+ prerelease: false
41
+ requirement: &id003 !ruby/object:Gem::Requirement
32
42
  none: false
33
43
  requirements:
34
44
  - - ~>
35
45
  - !ruby/object:Gem::Version
36
46
  version: "2.0"
37
47
  type: :development
38
- version_requirements: *id002
48
+ version_requirements: *id003
39
49
  - !ruby/object:Gem::Dependency
40
50
  name: autotest
41
51
  prerelease: false
42
- requirement: &id003 !ruby/object:Gem::Requirement
52
+ requirement: &id004 !ruby/object:Gem::Requirement
43
53
  none: false
44
54
  requirements:
45
55
  - - ">="
46
56
  - !ruby/object:Gem::Version
47
57
  version: "0"
48
58
  type: :development
49
- version_requirements: *id003
59
+ version_requirements: *id004
50
60
  - !ruby/object:Gem::Dependency
51
61
  name: growl-glue
52
62
  prerelease: false
53
- requirement: &id004 !ruby/object:Gem::Requirement
63
+ requirement: &id005 !ruby/object:Gem::Requirement
54
64
  none: false
55
65
  requirements:
56
66
  - - ">="
57
67
  - !ruby/object:Gem::Version
58
68
  version: "0"
59
69
  type: :development
60
- version_requirements: *id004
70
+ version_requirements: *id005
61
71
  description: Easy to use Settings helper that loads its data in from config/settings.yml. Handles adding multiple sources, and easy reloading.
62
72
  email:
63
73
  - railsjedi@gmail.com
@@ -72,13 +82,14 @@ files:
72
82
  - .bundle/config
73
83
  - .gitignore
74
84
  - Gemfile
75
- - Gemfile.lock
76
85
  - LICENSE
77
86
  - README.md
78
87
  - Rakefile
79
88
  - autotest/discover.rb
89
+ - init.rb
80
90
  - lib/generators/rails_config/install_generator.rb
81
91
  - lib/generators/rails_config/templates/rails_config.rb
92
+ - lib/generators/rails_config/templates/settings.local.yml
82
93
  - lib/generators/rails_config/templates/settings.yml
83
94
  - lib/generators/rails_config/templates/settings/development.yml
84
95
  - lib/generators/rails_config/templates/settings/production.yml
@@ -108,7 +119,6 @@ files:
108
119
  - spec/rails_config_spec.rb
109
120
  - spec/sources/yaml_source_spec.rb
110
121
  - spec/spec_helper.rb
111
- has_rdoc: true
112
122
  homepage: http://github.com/railsjedi/rails_config
113
123
  licenses: []
114
124
 
@@ -132,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
142
  requirements: []
133
143
 
134
144
  rubyforge_project:
135
- rubygems_version: 1.6.2
145
+ rubygems_version: 1.8.5
136
146
  signing_key:
137
147
  specification_version: 3
138
148
  summary: Provides a Settings helper for rails3 that reads from config/settings.yml
data/Gemfile.lock DELETED
@@ -1,52 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- rails_config (0.2.3)
5
- activesupport (~> 3.0)
6
-
7
- GEM
8
- remote: http://rubygems.org/
9
- specs:
10
- activesupport (3.0.6)
11
- archive-tar-minitar (0.5.2)
12
- autotest (4.4.3)
13
- columnize (0.3.2)
14
- diff-lcs (1.1.2)
15
- growl-glue (1.0.7)
16
- linecache (0.43)
17
- linecache19 (0.5.11)
18
- ruby_core_source (>= 0.1.4)
19
- rspec (2.1.0)
20
- rspec-core (~> 2.1.0)
21
- rspec-expectations (~> 2.1.0)
22
- rspec-mocks (~> 2.1.0)
23
- rspec-core (2.1.0)
24
- rspec-expectations (2.1.0)
25
- diff-lcs (~> 1.1.2)
26
- rspec-mocks (2.1.0)
27
- ruby-debug (0.10.4)
28
- columnize (>= 0.1)
29
- ruby-debug-base (~> 0.10.4.0)
30
- ruby-debug-base (0.10.4)
31
- linecache (>= 0.3)
32
- ruby-debug-base19 (0.11.24)
33
- columnize (>= 0.3.1)
34
- linecache19 (>= 0.5.11)
35
- ruby_core_source (>= 0.1.4)
36
- ruby-debug19 (0.11.6)
37
- columnize (>= 0.3.1)
38
- linecache19 (>= 0.5.11)
39
- ruby-debug-base19 (>= 0.11.19)
40
- ruby_core_source (0.1.4)
41
- archive-tar-minitar (>= 0.5.2)
42
-
43
- PLATFORMS
44
- ruby
45
-
46
- DEPENDENCIES
47
- autotest
48
- growl-glue
49
- rails_config!
50
- rspec (~> 2.0)
51
- ruby-debug
52
- ruby-debug19