rails_config_i18n 0.3.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. data/.bundle/config +2 -0
  2. data/.gitignore +4 -0
  3. data/Gemfile +10 -0
  4. data/LICENSE +23 -0
  5. data/README.md +243 -0
  6. data/Rakefile +28 -0
  7. data/autotest/discover.rb +2 -0
  8. data/init.rb +1 -0
  9. data/lib/generators/rails_config/install_generator.rb +32 -0
  10. data/lib/generators/rails_config/templates/rails_config.rb +4 -0
  11. data/lib/generators/rails_config/templates/settings/development.yml +1 -0
  12. data/lib/generators/rails_config/templates/settings/production.yml +1 -0
  13. data/lib/generators/rails_config/templates/settings/test.yml +1 -0
  14. data/lib/generators/rails_config/templates/settings.local.yml +1 -0
  15. data/lib/generators/rails_config/templates/settings.yml +1 -0
  16. data/lib/rails_config/integration/rails.rb +38 -0
  17. data/lib/rails_config/integration/sinatra.rb +31 -0
  18. data/lib/rails_config/options.rb +100 -0
  19. data/lib/rails_config/rack/reloader.rb +15 -0
  20. data/lib/rails_config/rails_config.rb +55 -0
  21. data/lib/rails_config/sources/yaml_source.rb +24 -0
  22. data/lib/rails_config/vendor/deep_merge.rb +180 -0
  23. data/lib/rails_config/version.rb +3 -0
  24. data/lib/rails_config_i18n.rb +1 -0
  25. data/rails_config.gemspec +26 -0
  26. data/spec/fixtures/bool_override/config1.yml +2 -0
  27. data/spec/fixtures/bool_override/config2.yml +2 -0
  28. data/spec/fixtures/custom_types/hash.yml +7 -0
  29. data/spec/fixtures/deep_merge/config1.yml +28 -0
  30. data/spec/fixtures/deep_merge/config2.yml +28 -0
  31. data/spec/fixtures/deep_merge2/config1.yml +3 -0
  32. data/spec/fixtures/deep_merge2/config2.yml +2 -0
  33. data/spec/fixtures/development.yml +4 -0
  34. data/spec/fixtures/empty1.yml +0 -0
  35. data/spec/fixtures/empty2.yml +0 -0
  36. data/spec/fixtures/locales/settings.en.yml +3 -0
  37. data/spec/fixtures/locales/settings.zh-CN.yml +2 -0
  38. data/spec/fixtures/settings.yml +3 -0
  39. data/spec/fixtures/settings2.yml +1 -0
  40. data/spec/fixtures/with_erb.yml +4 -0
  41. data/spec/rails_config_spec.rb +235 -0
  42. data/spec/sources/yaml_source_spec.rb +69 -0
  43. data/spec/spec_helper.rb +25 -0
  44. metadata +191 -0
metadata ADDED
@@ -0,0 +1,191 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rails_config_i18n
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.1.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Jacques Crocker
9
+ - Fred Wu
10
+ - Cedric Fung
11
+ autorequire:
12
+ bindir: bin
13
+ cert_chain: []
14
+ date: 2012-07-06 00:00:00.000000000 Z
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: activesupport
18
+ requirement: !ruby/object:Gem::Requirement
19
+ none: false
20
+ requirements:
21
+ - - ! '>='
22
+ - !ruby/object:Gem::Version
23
+ version: '3.0'
24
+ type: :runtime
25
+ prerelease: false
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ none: false
28
+ requirements:
29
+ - - ! '>='
30
+ - !ruby/object:Gem::Version
31
+ version: '3.0'
32
+ - !ruby/object:Gem::Dependency
33
+ name: i18n
34
+ requirement: !ruby/object:Gem::Requirement
35
+ none: false
36
+ requirements:
37
+ - - ! '>='
38
+ - !ruby/object:Gem::Version
39
+ version: '0.6'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ none: false
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0.6'
48
+ - !ruby/object:Gem::Dependency
49
+ name: rake
50
+ requirement: !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ type: :development
57
+ prerelease: false
58
+ version_requirements: !ruby/object:Gem::Requirement
59
+ none: false
60
+ requirements:
61
+ - - ! '>='
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
64
+ - !ruby/object:Gem::Dependency
65
+ name: rspec
66
+ requirement: !ruby/object:Gem::Requirement
67
+ none: false
68
+ requirements:
69
+ - - ~>
70
+ - !ruby/object:Gem::Version
71
+ version: '2.0'
72
+ type: :development
73
+ prerelease: false
74
+ version_requirements: !ruby/object:Gem::Requirement
75
+ none: false
76
+ requirements:
77
+ - - ~>
78
+ - !ruby/object:Gem::Version
79
+ version: '2.0'
80
+ - !ruby/object:Gem::Dependency
81
+ name: autotest
82
+ requirement: !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: !ruby/object:Gem::Requirement
91
+ none: false
92
+ requirements:
93
+ - - ! '>='
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ - !ruby/object:Gem::Dependency
97
+ name: growl-glue
98
+ requirement: !ruby/object:Gem::Requirement
99
+ none: false
100
+ requirements:
101
+ - - ! '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ none: false
108
+ requirements:
109
+ - - ! '>='
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ description: Easy to use Settings helper that loads its data in from config/settings.yml.
113
+ Handles adding multiple sources, multiple locales, and easy reloading.
114
+ email:
115
+ - railsjedi@gmail.com
116
+ - ifredwu@gmail.com
117
+ - wolfplanet@gmail.com
118
+ executables: []
119
+ extensions: []
120
+ extra_rdoc_files:
121
+ - README.md
122
+ files:
123
+ - .bundle/config
124
+ - .gitignore
125
+ - Gemfile
126
+ - LICENSE
127
+ - README.md
128
+ - Rakefile
129
+ - autotest/discover.rb
130
+ - init.rb
131
+ - lib/generators/rails_config/install_generator.rb
132
+ - lib/generators/rails_config/templates/rails_config.rb
133
+ - lib/generators/rails_config/templates/settings.local.yml
134
+ - lib/generators/rails_config/templates/settings.yml
135
+ - lib/generators/rails_config/templates/settings/development.yml
136
+ - lib/generators/rails_config/templates/settings/production.yml
137
+ - lib/generators/rails_config/templates/settings/test.yml
138
+ - lib/rails_config/integration/rails.rb
139
+ - lib/rails_config/integration/sinatra.rb
140
+ - lib/rails_config/options.rb
141
+ - lib/rails_config/rack/reloader.rb
142
+ - lib/rails_config/rails_config.rb
143
+ - lib/rails_config/sources/yaml_source.rb
144
+ - lib/rails_config/vendor/deep_merge.rb
145
+ - lib/rails_config/version.rb
146
+ - lib/rails_config_i18n.rb
147
+ - rails_config.gemspec
148
+ - spec/fixtures/bool_override/config1.yml
149
+ - spec/fixtures/bool_override/config2.yml
150
+ - spec/fixtures/custom_types/hash.yml
151
+ - spec/fixtures/deep_merge/config1.yml
152
+ - spec/fixtures/deep_merge/config2.yml
153
+ - spec/fixtures/deep_merge2/config1.yml
154
+ - spec/fixtures/deep_merge2/config2.yml
155
+ - spec/fixtures/development.yml
156
+ - spec/fixtures/empty1.yml
157
+ - spec/fixtures/empty2.yml
158
+ - spec/fixtures/locales/settings.en.yml
159
+ - spec/fixtures/locales/settings.zh-CN.yml
160
+ - spec/fixtures/settings.yml
161
+ - spec/fixtures/settings2.yml
162
+ - spec/fixtures/with_erb.yml
163
+ - spec/rails_config_spec.rb
164
+ - spec/sources/yaml_source_spec.rb
165
+ - spec/spec_helper.rb
166
+ homepage: http://github.com/abitno/rails_config_i18n
167
+ licenses: []
168
+ post_install_message:
169
+ rdoc_options:
170
+ - --charset=UTF-8
171
+ require_paths:
172
+ - lib
173
+ required_ruby_version: !ruby/object:Gem::Requirement
174
+ none: false
175
+ requirements:
176
+ - - ! '>='
177
+ - !ruby/object:Gem::Version
178
+ version: '0'
179
+ required_rubygems_version: !ruby/object:Gem::Requirement
180
+ none: false
181
+ requirements:
182
+ - - ! '>='
183
+ - !ruby/object:Gem::Version
184
+ version: '0'
185
+ requirements: []
186
+ rubyforge_project:
187
+ rubygems_version: 1.8.24
188
+ signing_key:
189
+ specification_version: 3
190
+ summary: Provides a Settings helper for rails3 that reads from config/settings(.locale).yml
191
+ test_files: []