elasticonf-rails 1.0.0.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (177) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +25 -0
  5. data/Appraisals +19 -0
  6. data/Gemfile +7 -0
  7. data/Gemfile.lock +138 -0
  8. data/LICENSE +20 -0
  9. data/README.md +42 -0
  10. data/Rakefile +15 -0
  11. data/bin/appraisal +16 -0
  12. data/bin/autospec +16 -0
  13. data/bin/rake +16 -0
  14. data/bin/rspec +16 -0
  15. data/bin/yard +16 -0
  16. data/bin/yardoc +16 -0
  17. data/bin/yri +16 -0
  18. data/elasticonf-rails.gemspec +30 -0
  19. data/gemfiles/rails_3.0.gemfile +11 -0
  20. data/gemfiles/rails_3.1.gemfile +11 -0
  21. data/gemfiles/rails_3.2.gemfile +11 -0
  22. data/gemfiles/rails_4.0.gemfile +11 -0
  23. data/gemfiles/rails_4.1.gemfile +11 -0
  24. data/lib/elasticonf-rails.rb +1 -0
  25. data/lib/elasticonf_rails/railtie.rb +18 -0
  26. data/lib/elasticonf_rails/version.rb +3 -0
  27. data/lib/elasticonf_rails.rb +2 -0
  28. data/spec/apps/rails_3.0/Rakefile +7 -0
  29. data/spec/apps/rails_3.0/app/controllers/application_controller.rb +3 -0
  30. data/spec/apps/rails_3.0/app/helpers/application_helper.rb +2 -0
  31. data/spec/apps/rails_3.0/app/views/layouts/application.html.erb +14 -0
  32. data/spec/apps/rails_3.0/config/application.rb +13 -0
  33. data/spec/apps/rails_3.0/config/boot.rb +6 -0
  34. data/spec/apps/rails_3.0/config/database.yml +22 -0
  35. data/spec/apps/rails_3.0/config/environment.rb +5 -0
  36. data/spec/apps/rails_3.0/config/environments/development.rb +26 -0
  37. data/spec/apps/rails_3.0/config/environments/production.rb +49 -0
  38. data/spec/apps/rails_3.0/config/environments/test.rb +35 -0
  39. data/spec/apps/rails_3.0/config/initializers/backtrace_silencers.rb +7 -0
  40. data/spec/apps/rails_3.0/config/initializers/inflections.rb +10 -0
  41. data/spec/apps/rails_3.0/config/initializers/mime_types.rb +5 -0
  42. data/spec/apps/rails_3.0/config/initializers/secret_token.rb +7 -0
  43. data/spec/apps/rails_3.0/config/initializers/session_store.rb +8 -0
  44. data/spec/apps/rails_3.0/config/initializers/some_initializer.rb +7 -0
  45. data/spec/apps/rails_3.0/config/locales/en.yml +5 -0
  46. data/spec/apps/rails_3.0/config/routes.rb +2 -0
  47. data/spec/apps/rails_3.0/config/settings.yml +1 -0
  48. data/spec/apps/rails_3.0/config.ru +4 -0
  49. data/spec/apps/rails_3.0/db/seeds.rb +7 -0
  50. data/spec/apps/rails_3.0/public/404.html +26 -0
  51. data/spec/apps/rails_3.0/public/422.html +26 -0
  52. data/spec/apps/rails_3.0/public/500.html +26 -0
  53. data/spec/apps/rails_3.0/script/rails +6 -0
  54. data/spec/apps/rails_3.1/Rakefile +7 -0
  55. data/spec/apps/rails_3.1/app/assets/images/rails.png +0 -0
  56. data/spec/apps/rails_3.1/app/assets/javascripts/application.js +9 -0
  57. data/spec/apps/rails_3.1/app/assets/stylesheets/application.css +7 -0
  58. data/spec/apps/rails_3.1/app/controllers/application_controller.rb +3 -0
  59. data/spec/apps/rails_3.1/app/helpers/application_helper.rb +2 -0
  60. data/spec/apps/rails_3.1/app/views/layouts/application.html.erb +14 -0
  61. data/spec/apps/rails_3.1/config/application.rb +17 -0
  62. data/spec/apps/rails_3.1/config/boot.rb +6 -0
  63. data/spec/apps/rails_3.1/config/database.yml +25 -0
  64. data/spec/apps/rails_3.1/config/environment.rb +5 -0
  65. data/spec/apps/rails_3.1/config/environments/development.rb +30 -0
  66. data/spec/apps/rails_3.1/config/environments/production.rb +60 -0
  67. data/spec/apps/rails_3.1/config/environments/test.rb +39 -0
  68. data/spec/apps/rails_3.1/config/initializers/backtrace_silencers.rb +7 -0
  69. data/spec/apps/rails_3.1/config/initializers/inflections.rb +10 -0
  70. data/spec/apps/rails_3.1/config/initializers/mime_types.rb +5 -0
  71. data/spec/apps/rails_3.1/config/initializers/secret_token.rb +7 -0
  72. data/spec/apps/rails_3.1/config/initializers/session_store.rb +8 -0
  73. data/spec/apps/rails_3.1/config/initializers/some_initializer.rb +7 -0
  74. data/spec/apps/rails_3.1/config/initializers/wrap_parameters.rb +14 -0
  75. data/spec/apps/rails_3.1/config/locales/en.yml +5 -0
  76. data/spec/apps/rails_3.1/config/routes.rb +2 -0
  77. data/spec/apps/rails_3.1/config/settings.yml +1 -0
  78. data/spec/apps/rails_3.1/config.ru +4 -0
  79. data/spec/apps/rails_3.1/db/seeds.rb +7 -0
  80. data/spec/apps/rails_3.1/public/404.html +26 -0
  81. data/spec/apps/rails_3.1/public/422.html +26 -0
  82. data/spec/apps/rails_3.1/public/500.html +26 -0
  83. data/spec/apps/rails_3.1/script/rails +6 -0
  84. data/spec/apps/rails_3.2/Rakefile +7 -0
  85. data/spec/apps/rails_3.2/app/assets/javascripts/application.js +15 -0
  86. data/spec/apps/rails_3.2/app/assets/stylesheets/application.css +13 -0
  87. data/spec/apps/rails_3.2/app/controllers/application_controller.rb +3 -0
  88. data/spec/apps/rails_3.2/app/helpers/application_helper.rb +2 -0
  89. data/spec/apps/rails_3.2/app/views/layouts/application.html.erb +14 -0
  90. data/spec/apps/rails_3.2/config/application.rb +18 -0
  91. data/spec/apps/rails_3.2/config/boot.rb +10 -0
  92. data/spec/apps/rails_3.2/config/database.yml +25 -0
  93. data/spec/apps/rails_3.2/config/environment.rb +5 -0
  94. data/spec/apps/rails_3.2/config/environments/development.rb +37 -0
  95. data/spec/apps/rails_3.2/config/environments/production.rb +67 -0
  96. data/spec/apps/rails_3.2/config/environments/test.rb +37 -0
  97. data/spec/apps/rails_3.2/config/initializers/backtrace_silencers.rb +7 -0
  98. data/spec/apps/rails_3.2/config/initializers/inflections.rb +15 -0
  99. data/spec/apps/rails_3.2/config/initializers/mime_types.rb +5 -0
  100. data/spec/apps/rails_3.2/config/initializers/secret_token.rb +7 -0
  101. data/spec/apps/rails_3.2/config/initializers/session_store.rb +8 -0
  102. data/spec/apps/rails_3.2/config/initializers/some_initializer.rb +7 -0
  103. data/spec/apps/rails_3.2/config/initializers/wrap_parameters.rb +14 -0
  104. data/spec/apps/rails_3.2/config/locales/en.yml +5 -0
  105. data/spec/apps/rails_3.2/config/routes.rb +2 -0
  106. data/spec/apps/rails_3.2/config/settings.yml +1 -0
  107. data/spec/apps/rails_3.2/config.ru +4 -0
  108. data/spec/apps/rails_3.2/db/.keep +0 -0
  109. data/spec/apps/rails_3.2/public/404.html +26 -0
  110. data/spec/apps/rails_3.2/public/422.html +26 -0
  111. data/spec/apps/rails_3.2/public/500.html +25 -0
  112. data/spec/apps/rails_3.2/script/rails +6 -0
  113. data/spec/apps/rails_4.0/Rakefile +6 -0
  114. data/spec/apps/rails_4.0/app/assets/images/.keep +0 -0
  115. data/spec/apps/rails_4.0/app/assets/javascripts/application.js +13 -0
  116. data/spec/apps/rails_4.0/app/assets/stylesheets/application.css +13 -0
  117. data/spec/apps/rails_4.0/app/controllers/application_controller.rb +5 -0
  118. data/spec/apps/rails_4.0/app/controllers/concerns/.keep +0 -0
  119. data/spec/apps/rails_4.0/app/helpers/application_helper.rb +2 -0
  120. data/spec/apps/rails_4.0/app/views/layouts/application.html.erb +14 -0
  121. data/spec/apps/rails_4.0/config/application.rb +17 -0
  122. data/spec/apps/rails_4.0/config/boot.rb +5 -0
  123. data/spec/apps/rails_4.0/config/database.yml +25 -0
  124. data/spec/apps/rails_4.0/config/environment.rb +5 -0
  125. data/spec/apps/rails_4.0/config/environments/development.rb +29 -0
  126. data/spec/apps/rails_4.0/config/environments/production.rb +80 -0
  127. data/spec/apps/rails_4.0/config/environments/test.rb +36 -0
  128. data/spec/apps/rails_4.0/config/initializers/backtrace_silencers.rb +7 -0
  129. data/spec/apps/rails_4.0/config/initializers/filter_parameter_logging.rb +4 -0
  130. data/spec/apps/rails_4.0/config/initializers/inflections.rb +16 -0
  131. data/spec/apps/rails_4.0/config/initializers/mime_types.rb +5 -0
  132. data/spec/apps/rails_4.0/config/initializers/secret_token.rb +12 -0
  133. data/spec/apps/rails_4.0/config/initializers/session_store.rb +3 -0
  134. data/spec/apps/rails_4.0/config/initializers/some_initializer.rb +7 -0
  135. data/spec/apps/rails_4.0/config/initializers/wrap_parameters.rb +14 -0
  136. data/spec/apps/rails_4.0/config/locales/en.yml +23 -0
  137. data/spec/apps/rails_4.0/config/routes.rb +2 -0
  138. data/spec/apps/rails_4.0/config/settings.yml +1 -0
  139. data/spec/apps/rails_4.0/config.ru +4 -0
  140. data/spec/apps/rails_4.0/db/.keep +0 -0
  141. data/spec/apps/rails_4.0/public/404.html +58 -0
  142. data/spec/apps/rails_4.0/public/422.html +58 -0
  143. data/spec/apps/rails_4.0/public/500.html +57 -0
  144. data/spec/apps/rails_4.1/Rakefile +6 -0
  145. data/spec/apps/rails_4.1/app/assets/images/.keep +0 -0
  146. data/spec/apps/rails_4.1/app/assets/javascripts/application.js +13 -0
  147. data/spec/apps/rails_4.1/app/assets/stylesheets/application.css +13 -0
  148. data/spec/apps/rails_4.1/app/controllers/application_controller.rb +5 -0
  149. data/spec/apps/rails_4.1/app/controllers/concerns/.keep +0 -0
  150. data/spec/apps/rails_4.1/app/helpers/application_helper.rb +2 -0
  151. data/spec/apps/rails_4.1/app/views/layouts/application.html.erb +14 -0
  152. data/spec/apps/rails_4.1/config/application.rb +17 -0
  153. data/spec/apps/rails_4.1/config/boot.rb +5 -0
  154. data/spec/apps/rails_4.1/config/database.yml +25 -0
  155. data/spec/apps/rails_4.1/config/environment.rb +5 -0
  156. data/spec/apps/rails_4.1/config/environments/development.rb +29 -0
  157. data/spec/apps/rails_4.1/config/environments/production.rb +80 -0
  158. data/spec/apps/rails_4.1/config/environments/test.rb +36 -0
  159. data/spec/apps/rails_4.1/config/initializers/backtrace_silencers.rb +7 -0
  160. data/spec/apps/rails_4.1/config/initializers/filter_parameter_logging.rb +4 -0
  161. data/spec/apps/rails_4.1/config/initializers/inflections.rb +16 -0
  162. data/spec/apps/rails_4.1/config/initializers/mime_types.rb +5 -0
  163. data/spec/apps/rails_4.1/config/initializers/secret_token.rb +12 -0
  164. data/spec/apps/rails_4.1/config/initializers/session_store.rb +3 -0
  165. data/spec/apps/rails_4.1/config/initializers/some_initializer.rb +7 -0
  166. data/spec/apps/rails_4.1/config/initializers/wrap_parameters.rb +14 -0
  167. data/spec/apps/rails_4.1/config/locales/en.yml +23 -0
  168. data/spec/apps/rails_4.1/config/routes.rb +2 -0
  169. data/spec/apps/rails_4.1/config/settings.yml +1 -0
  170. data/spec/apps/rails_4.1/config.ru +4 -0
  171. data/spec/apps/rails_4.1/db/.keep +0 -0
  172. data/spec/apps/rails_4.1/public/404.html +58 -0
  173. data/spec/apps/rails_4.1/public/422.html +58 -0
  174. data/spec/apps/rails_4.1/public/500.html +57 -0
  175. data/spec/lib/elasticonf_rails_spec.rb +13 -0
  176. data/spec/spec_helper.rb +16 -0
  177. metadata +318 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7648e7de52fea84667e6dbd59afdb779c3e842d9
4
+ data.tar.gz: 4893c59581906c5cec7b4a12a1026f2cbc21ded5
5
+ SHA512:
6
+ metadata.gz: 4fa7a7c1acbf024e97252e6ac935c70c468c0100835f0cb773ff28287c2bc1a25ccac88b769694317bc4c1fd604db2585abb5ce2b5b8479fac6a84f12434d6bd
7
+ data.tar.gz: 23bc585a79a1be9cabe710146bbde947237e62ac6f2bea7ea78627ece6cc293b656f6efda72089373988f2c48e68da02cbc2f8c879aaae9fd7dfa51085a7be43
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ .bundle/
2
+ vendor/bundle
3
+ pkg/
4
+ spec/apps/**/db/*.sqlite*
5
+ spec/apps/**/log/
6
+ gemfiles/*.lock
7
+ coverage/
8
+ doc/
9
+ .yardoc
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format progress
data/.travis.yml ADDED
@@ -0,0 +1,25 @@
1
+ language: ruby
2
+
3
+ rvm:
4
+ - ruby-head
5
+ - 2.1.1
6
+ - 2.1.0
7
+ - 2.0.0
8
+ - 1.9.3
9
+ - 1.9.2
10
+
11
+ matrix:
12
+ allow_failures:
13
+ - rvm: ruby-head
14
+ - rvm: 1.9.2
15
+
16
+ branches:
17
+ only:
18
+ - master
19
+
20
+ gemfile:
21
+ - gemfiles/rails_3.0.gemfile
22
+ - gemfiles/rails_3.1.gemfile
23
+ - gemfiles/rails_3.2.gemfile
24
+ - gemfiles/rails_4.0.gemfile
25
+ - gemfiles/rails_4.1.gemfile
data/Appraisals ADDED
@@ -0,0 +1,19 @@
1
+ appraise 'rails-3.0' do
2
+ gem 'rails', '~> 3.0.0'
3
+ end
4
+
5
+ appraise 'rails-3.1' do
6
+ gem 'rails', '~> 3.1.0'
7
+ end
8
+
9
+ appraise 'rails-3.2' do
10
+ gem 'rails', '~> 3.2.0'
11
+ end
12
+
13
+ appraise 'rails-4.0' do
14
+ gem 'rails', '~> 4.0.0'
15
+ end
16
+
17
+ appraise 'rails-4.1' do
18
+ gem 'rails', '~> 4.1.0'
19
+ end
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :test do
6
+ gem 'coveralls', require: false
7
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,138 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ elasticonf-rails (1.0.0.beta)
5
+ elasticonf (~> 1.1)
6
+ rails (>= 3.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actionmailer (4.1.4)
12
+ actionpack (= 4.1.4)
13
+ actionview (= 4.1.4)
14
+ mail (~> 2.5.4)
15
+ actionpack (4.1.4)
16
+ actionview (= 4.1.4)
17
+ activesupport (= 4.1.4)
18
+ rack (~> 1.5.2)
19
+ rack-test (~> 0.6.2)
20
+ actionview (4.1.4)
21
+ activesupport (= 4.1.4)
22
+ builder (~> 3.1)
23
+ erubis (~> 2.7.0)
24
+ activemodel (4.1.4)
25
+ activesupport (= 4.1.4)
26
+ builder (~> 3.1)
27
+ activerecord (4.1.4)
28
+ activemodel (= 4.1.4)
29
+ activesupport (= 4.1.4)
30
+ arel (~> 5.0.0)
31
+ activesupport (4.1.4)
32
+ i18n (~> 0.6, >= 0.6.9)
33
+ json (~> 1.7, >= 1.7.7)
34
+ minitest (~> 5.1)
35
+ thread_safe (~> 0.1)
36
+ tzinfo (~> 1.1)
37
+ appraisal (1.0.0)
38
+ bundler
39
+ rake
40
+ thor (>= 0.14.0)
41
+ arel (5.0.1.20140414130214)
42
+ builder (3.2.2)
43
+ coveralls (0.7.0)
44
+ multi_json (~> 1.3)
45
+ rest-client
46
+ simplecov (>= 0.7)
47
+ term-ansicolor
48
+ thor
49
+ diff-lcs (1.2.5)
50
+ docile (1.1.5)
51
+ elasticonf (1.1.2)
52
+ hashie (~> 3.1)
53
+ erubis (2.7.0)
54
+ hashie (3.2.0)
55
+ hike (1.2.3)
56
+ i18n (0.6.11)
57
+ json (1.8.1)
58
+ mail (2.5.4)
59
+ mime-types (~> 1.16)
60
+ treetop (~> 1.4.8)
61
+ mime-types (1.25.1)
62
+ minitest (5.4.0)
63
+ multi_json (1.10.1)
64
+ netrc (0.7.7)
65
+ polyglot (0.3.5)
66
+ rack (1.5.2)
67
+ rack-test (0.6.2)
68
+ rack (>= 1.0)
69
+ rails (4.1.4)
70
+ actionmailer (= 4.1.4)
71
+ actionpack (= 4.1.4)
72
+ actionview (= 4.1.4)
73
+ activemodel (= 4.1.4)
74
+ activerecord (= 4.1.4)
75
+ activesupport (= 4.1.4)
76
+ bundler (>= 1.3.0, < 2.0)
77
+ railties (= 4.1.4)
78
+ sprockets-rails (~> 2.0)
79
+ railties (4.1.4)
80
+ actionpack (= 4.1.4)
81
+ activesupport (= 4.1.4)
82
+ rake (>= 0.8.7)
83
+ thor (>= 0.18.1, < 2.0)
84
+ rake (10.3.2)
85
+ rest-client (1.7.1)
86
+ mime-types (>= 1.16, < 3.0)
87
+ netrc (~> 0.7)
88
+ rspec-core (2.14.8)
89
+ rspec-expectations (2.14.5)
90
+ diff-lcs (>= 1.1.3, < 2.0)
91
+ rspec-mocks (2.14.6)
92
+ rspec-rails (2.14.2)
93
+ actionpack (>= 3.0)
94
+ activemodel (>= 3.0)
95
+ activesupport (>= 3.0)
96
+ railties (>= 3.0)
97
+ rspec-core (~> 2.14.0)
98
+ rspec-expectations (~> 2.14.0)
99
+ rspec-mocks (~> 2.14.0)
100
+ simplecov (0.8.2)
101
+ docile (~> 1.1.0)
102
+ multi_json
103
+ simplecov-html (~> 0.8.0)
104
+ simplecov-html (0.8.0)
105
+ sprockets (2.12.1)
106
+ hike (~> 1.2)
107
+ multi_json (~> 1.0)
108
+ rack (~> 1.0)
109
+ tilt (~> 1.1, != 1.3.0)
110
+ sprockets-rails (2.1.3)
111
+ actionpack (>= 3.0)
112
+ activesupport (>= 3.0)
113
+ sprockets (~> 2.8)
114
+ sqlite3 (1.3.9)
115
+ term-ansicolor (1.3.0)
116
+ tins (~> 1.0)
117
+ thor (0.19.1)
118
+ thread_safe (0.3.4)
119
+ tilt (1.4.1)
120
+ tins (1.3.0)
121
+ treetop (1.4.15)
122
+ polyglot
123
+ polyglot (>= 0.3.1)
124
+ tzinfo (1.2.1)
125
+ thread_safe (~> 0.1)
126
+ yard (0.8.7.4)
127
+
128
+ PLATFORMS
129
+ ruby
130
+
131
+ DEPENDENCIES
132
+ appraisal
133
+ coveralls
134
+ elasticonf-rails!
135
+ rake (~> 10.3)
136
+ rspec-rails (~> 2.14.0)
137
+ sqlite3
138
+ yard (~> 0.8)
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2014 Sergey Rezvanov
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,42 @@
1
+ ElasticonfRails [![Build Status](https://travis-ci.org/rezwyi/elasticonf-rails.svg?branch=master)](https://travis-ci.org/rezwyi/elasticonf-rails) [![Dependency Status](https://gemnasium.com/rezwyi/elasticonf-rails.svg)](https://gemnasium.com/rezwyi/elasticonf-rails) [![Coverage Status](https://img.shields.io/coveralls/rezwyi/elasticonf-rails.svg)](https://coveralls.io/r/rezwyi/elasticonf-rails)
2
+ ===============
3
+
4
+ ElasticonfRails integrates [Elasticonf](https://github.com/rezwyi/elasticonf) to your Rails application. Elasticonf is a powerfull and flexible application config solution worked in any ruby program.
5
+
6
+ ## Installation
7
+
8
+ First add the following lines to your application `Gemfile`:
9
+
10
+ ``` ruby
11
+ gem 'elasticonf-rails', '~> 1.0.0'
12
+ ```
13
+
14
+ Then run `bundle install` to update your's gems bundle.
15
+
16
+ ## Configuration
17
+
18
+ Will be available soon.
19
+
20
+ ## Documentation
21
+
22
+ Will be available soon.
23
+
24
+ ## Testing
25
+
26
+ Run this commands in terminal:
27
+
28
+ 0. `cd some/path`
29
+ 0. `git clone git@github.com:rezwyi/elasticonf-rails.git`
30
+ 0. `cd elasticonf-rails/`
31
+ 0. `bin/appraisal install`
32
+ 0. `bin/rake`
33
+
34
+ Please note that ElasticonfRails uses [Appraisal](https://github.com/thoughtbot/appraisal) gem to test yourself against many versions of Rails (see `Appraisals` file). Running `bin/rake` will be invoke `bin/appraisal` and run test specs against every gemfile listed in the `gemfiles/` directory.
35
+
36
+ ## Versioning
37
+
38
+ ElasticonfRails uses RubyGems Rational Versioning Policy.
39
+
40
+ ## Copyright
41
+
42
+ See LICENSE file.
data/Rakefile ADDED
@@ -0,0 +1,15 @@
1
+ require 'rubygems'
2
+ require 'bundler/setup'
3
+ require 'rspec/core/rake_task'
4
+
5
+ Bundler::GemHelper.install_tasks
6
+
7
+ if !ENV['APPRAISAL_INITIALIZED'] && !ENV['TRAVIS']
8
+ require 'appraisal'
9
+ task default: :appraisal
10
+ else
11
+ RSpec::Core::RakeTask.new do |spec|
12
+ spec.pattern = 'spec/**/*_spec.rb'
13
+ end
14
+ task default: :spec
15
+ end
data/bin/appraisal ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'appraisal' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('appraisal', 'appraisal')
data/bin/autospec ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'autospec' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('rspec-core', 'autospec')
data/bin/rake ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'rake' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('rake', 'rake')
data/bin/rspec ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'rspec' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('rspec-core', 'rspec')
data/bin/yard ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'yard' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('yard', 'yard')
data/bin/yardoc ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'yardoc' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('yard', 'yardoc')
data/bin/yri ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'yri' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('yard', 'yri')
@@ -0,0 +1,30 @@
1
+ require File.expand_path('../lib/elasticonf_rails/version', __FILE__)
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = 'elasticonf-rails'
5
+ s.summary = 'ElasticonfRails integrates Elasticonf to your Ruby on Rails application'
6
+ s.description = s.summary
7
+
8
+ s.version = ElasticonfRails::VERSION
9
+ s.platform = Gem::Platform::RUBY
10
+
11
+ s.authors = ['Sergey Rezvanov']
12
+ s.email = ['sergey@rezvanov.info']
13
+ s.homepage = 'https://github.com/rezwyi/elasticonf-rails'
14
+
15
+ s.licenses = ['MIT']
16
+
17
+ s.files = `git ls-files`.split("\n")
18
+ s.require_paths = ['lib']
19
+
20
+ s.required_ruby_version = '>= 1.9'
21
+
22
+ s.add_dependency 'rails', '>= 3.0'
23
+ s.add_dependency 'elasticonf', '~> 1.1'
24
+
25
+ s.add_development_dependency 'appraisal'
26
+ s.add_development_dependency 'sqlite3'
27
+ s.add_development_dependency 'rake', '~> 10.3'
28
+ s.add_development_dependency 'rspec-rails', '~> 2.14.0'
29
+ s.add_development_dependency 'yard', '~> 0.8'
30
+ end
@@ -0,0 +1,11 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 3.0.0"
6
+
7
+ group :test do
8
+ gem "coveralls", :require => false
9
+ end
10
+
11
+ gemspec :path => "../"
@@ -0,0 +1,11 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 3.1.0"
6
+
7
+ group :test do
8
+ gem "coveralls", :require => false
9
+ end
10
+
11
+ gemspec :path => "../"
@@ -0,0 +1,11 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 3.2.0"
6
+
7
+ group :test do
8
+ gem "coveralls", :require => false
9
+ end
10
+
11
+ gemspec :path => "../"
@@ -0,0 +1,11 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 4.0.0"
6
+
7
+ group :test do
8
+ gem "coveralls", :require => false
9
+ end
10
+
11
+ gemspec :path => "../"
@@ -0,0 +1,11 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 4.1.0"
6
+
7
+ group :test do
8
+ gem "coveralls", :require => false
9
+ end
10
+
11
+ gemspec :path => "../"
@@ -0,0 +1 @@
1
+ require 'elasticonf_rails'
@@ -0,0 +1,18 @@
1
+ require 'elasticonf'
2
+
3
+ module ElasticonfRails
4
+ class Railtie < Rails::Railtie
5
+ ActiveSupport.on_load :before_configuration do
6
+ Elasticonf.configure do |config|
7
+ config.env = Rails.env.to_s
8
+ config.config_root = Rails.root.join('config')
9
+ end
10
+
11
+ Rails.root.join('config', 'initializers', 'elasticonf.rb').tap do |initializer|
12
+ require initializer if File.exist?(initializer)
13
+ end
14
+
15
+ Elasticonf.load!
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,3 @@
1
+ module ElasticonfRails
2
+ VERSION = '1.0.0.beta'
3
+ end
@@ -0,0 +1,2 @@
1
+ require 'elasticonf_rails/version'
2
+ require 'elasticonf_rails/railtie'
@@ -0,0 +1,7 @@
1
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
2
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
+
4
+ require File.expand_path('../config/application', __FILE__)
5
+ require 'rake'
6
+
7
+ Rails3::Application.load_tasks
@@ -0,0 +1,3 @@
1
+ class ApplicationController < ActionController::Base
2
+ protect_from_forgery
3
+ end
@@ -0,0 +1,2 @@
1
+ module ApplicationHelper
2
+ end
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Dummy</title>
5
+ <%= stylesheet_link_tag :all %>
6
+ <%= javascript_include_tag :defaults %>
7
+ <%= csrf_meta_tag %>
8
+ </head>
9
+ <body>
10
+
11
+ <%= yield %>
12
+
13
+ </body>
14
+ </html>
@@ -0,0 +1,13 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ require 'rails/all'
4
+
5
+ # If you have a Gemfile, require the gems listed there, including any gems
6
+ # you've limited to :test, :development, or :production.
7
+ Bundler.require(:default, Rails.env) if defined?(Bundler)
8
+
9
+ module Rails3
10
+ class Application < Rails::Application
11
+ config.option_from_elasticonf = Settings.some_option
12
+ end
13
+ end
@@ -0,0 +1,6 @@
1
+ require 'rubygems'
2
+
3
+ # Set up gems listed in the Gemfile.
4
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
5
+
6
+ require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
@@ -0,0 +1,22 @@
1
+ # SQLite version 3.x
2
+ # gem install sqlite3
3
+ development:
4
+ adapter: sqlite3
5
+ database: db/development.sqlite3
6
+ pool: 5
7
+ timeout: 5000
8
+
9
+ # Warning: The database defined as "test" will be erased and
10
+ # re-generated from your development database when you run "rake".
11
+ # Do not set this db to the same as development or production.
12
+ test:
13
+ adapter: sqlite3
14
+ database: db/test.sqlite3
15
+ pool: 5
16
+ timeout: 5000
17
+
18
+ production:
19
+ adapter: sqlite3
20
+ database: db/production.sqlite3
21
+ pool: 5
22
+ timeout: 5000
@@ -0,0 +1,5 @@
1
+ # Load the rails application
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the rails application
5
+ Rails3::Application.initialize!
@@ -0,0 +1,26 @@
1
+ Rails3::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # In the development environment your application's code is reloaded on
5
+ # every request. This slows down response time but is perfect for development
6
+ # since you don't have to restart the webserver when you make code changes.
7
+ config.cache_classes = false
8
+
9
+ # Log error messages when you accidentally call methods on nil.
10
+ config.whiny_nils = true
11
+
12
+ # Show full error reports and disable caching
13
+ config.consider_all_requests_local = true
14
+ config.action_view.debug_rjs = true
15
+ config.action_controller.perform_caching = false
16
+
17
+ # Don't care if the mailer can't send
18
+ config.action_mailer.raise_delivery_errors = false
19
+
20
+ # Print deprecation notices to the Rails logger
21
+ config.active_support.deprecation = :log
22
+
23
+ # Only use best-standards-support built into browsers
24
+ config.action_dispatch.best_standards_support = :builtin
25
+ end
26
+