elasticonf-rails 1.0.0.beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +25 -0
- data/Appraisals +19 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +138 -0
- data/LICENSE +20 -0
- data/README.md +42 -0
- data/Rakefile +15 -0
- data/bin/appraisal +16 -0
- data/bin/autospec +16 -0
- data/bin/rake +16 -0
- data/bin/rspec +16 -0
- data/bin/yard +16 -0
- data/bin/yardoc +16 -0
- data/bin/yri +16 -0
- data/elasticonf-rails.gemspec +30 -0
- data/gemfiles/rails_3.0.gemfile +11 -0
- data/gemfiles/rails_3.1.gemfile +11 -0
- data/gemfiles/rails_3.2.gemfile +11 -0
- data/gemfiles/rails_4.0.gemfile +11 -0
- data/gemfiles/rails_4.1.gemfile +11 -0
- data/lib/elasticonf-rails.rb +1 -0
- data/lib/elasticonf_rails/railtie.rb +18 -0
- data/lib/elasticonf_rails/version.rb +3 -0
- data/lib/elasticonf_rails.rb +2 -0
- data/spec/apps/rails_3.0/Rakefile +7 -0
- data/spec/apps/rails_3.0/app/controllers/application_controller.rb +3 -0
- data/spec/apps/rails_3.0/app/helpers/application_helper.rb +2 -0
- data/spec/apps/rails_3.0/app/views/layouts/application.html.erb +14 -0
- data/spec/apps/rails_3.0/config/application.rb +13 -0
- data/spec/apps/rails_3.0/config/boot.rb +6 -0
- data/spec/apps/rails_3.0/config/database.yml +22 -0
- data/spec/apps/rails_3.0/config/environment.rb +5 -0
- data/spec/apps/rails_3.0/config/environments/development.rb +26 -0
- data/spec/apps/rails_3.0/config/environments/production.rb +49 -0
- data/spec/apps/rails_3.0/config/environments/test.rb +35 -0
- data/spec/apps/rails_3.0/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/apps/rails_3.0/config/initializers/inflections.rb +10 -0
- data/spec/apps/rails_3.0/config/initializers/mime_types.rb +5 -0
- data/spec/apps/rails_3.0/config/initializers/secret_token.rb +7 -0
- data/spec/apps/rails_3.0/config/initializers/session_store.rb +8 -0
- data/spec/apps/rails_3.0/config/initializers/some_initializer.rb +7 -0
- data/spec/apps/rails_3.0/config/locales/en.yml +5 -0
- data/spec/apps/rails_3.0/config/routes.rb +2 -0
- data/spec/apps/rails_3.0/config/settings.yml +1 -0
- data/spec/apps/rails_3.0/config.ru +4 -0
- data/spec/apps/rails_3.0/db/seeds.rb +7 -0
- data/spec/apps/rails_3.0/public/404.html +26 -0
- data/spec/apps/rails_3.0/public/422.html +26 -0
- data/spec/apps/rails_3.0/public/500.html +26 -0
- data/spec/apps/rails_3.0/script/rails +6 -0
- data/spec/apps/rails_3.1/Rakefile +7 -0
- data/spec/apps/rails_3.1/app/assets/images/rails.png +0 -0
- data/spec/apps/rails_3.1/app/assets/javascripts/application.js +9 -0
- data/spec/apps/rails_3.1/app/assets/stylesheets/application.css +7 -0
- data/spec/apps/rails_3.1/app/controllers/application_controller.rb +3 -0
- data/spec/apps/rails_3.1/app/helpers/application_helper.rb +2 -0
- data/spec/apps/rails_3.1/app/views/layouts/application.html.erb +14 -0
- data/spec/apps/rails_3.1/config/application.rb +17 -0
- data/spec/apps/rails_3.1/config/boot.rb +6 -0
- data/spec/apps/rails_3.1/config/database.yml +25 -0
- data/spec/apps/rails_3.1/config/environment.rb +5 -0
- data/spec/apps/rails_3.1/config/environments/development.rb +30 -0
- data/spec/apps/rails_3.1/config/environments/production.rb +60 -0
- data/spec/apps/rails_3.1/config/environments/test.rb +39 -0
- data/spec/apps/rails_3.1/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/apps/rails_3.1/config/initializers/inflections.rb +10 -0
- data/spec/apps/rails_3.1/config/initializers/mime_types.rb +5 -0
- data/spec/apps/rails_3.1/config/initializers/secret_token.rb +7 -0
- data/spec/apps/rails_3.1/config/initializers/session_store.rb +8 -0
- data/spec/apps/rails_3.1/config/initializers/some_initializer.rb +7 -0
- data/spec/apps/rails_3.1/config/initializers/wrap_parameters.rb +14 -0
- data/spec/apps/rails_3.1/config/locales/en.yml +5 -0
- data/spec/apps/rails_3.1/config/routes.rb +2 -0
- data/spec/apps/rails_3.1/config/settings.yml +1 -0
- data/spec/apps/rails_3.1/config.ru +4 -0
- data/spec/apps/rails_3.1/db/seeds.rb +7 -0
- data/spec/apps/rails_3.1/public/404.html +26 -0
- data/spec/apps/rails_3.1/public/422.html +26 -0
- data/spec/apps/rails_3.1/public/500.html +26 -0
- data/spec/apps/rails_3.1/script/rails +6 -0
- data/spec/apps/rails_3.2/Rakefile +7 -0
- data/spec/apps/rails_3.2/app/assets/javascripts/application.js +15 -0
- data/spec/apps/rails_3.2/app/assets/stylesheets/application.css +13 -0
- data/spec/apps/rails_3.2/app/controllers/application_controller.rb +3 -0
- data/spec/apps/rails_3.2/app/helpers/application_helper.rb +2 -0
- data/spec/apps/rails_3.2/app/views/layouts/application.html.erb +14 -0
- data/spec/apps/rails_3.2/config/application.rb +18 -0
- data/spec/apps/rails_3.2/config/boot.rb +10 -0
- data/spec/apps/rails_3.2/config/database.yml +25 -0
- data/spec/apps/rails_3.2/config/environment.rb +5 -0
- data/spec/apps/rails_3.2/config/environments/development.rb +37 -0
- data/spec/apps/rails_3.2/config/environments/production.rb +67 -0
- data/spec/apps/rails_3.2/config/environments/test.rb +37 -0
- data/spec/apps/rails_3.2/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/apps/rails_3.2/config/initializers/inflections.rb +15 -0
- data/spec/apps/rails_3.2/config/initializers/mime_types.rb +5 -0
- data/spec/apps/rails_3.2/config/initializers/secret_token.rb +7 -0
- data/spec/apps/rails_3.2/config/initializers/session_store.rb +8 -0
- data/spec/apps/rails_3.2/config/initializers/some_initializer.rb +7 -0
- data/spec/apps/rails_3.2/config/initializers/wrap_parameters.rb +14 -0
- data/spec/apps/rails_3.2/config/locales/en.yml +5 -0
- data/spec/apps/rails_3.2/config/routes.rb +2 -0
- data/spec/apps/rails_3.2/config/settings.yml +1 -0
- data/spec/apps/rails_3.2/config.ru +4 -0
- data/spec/apps/rails_3.2/db/.keep +0 -0
- data/spec/apps/rails_3.2/public/404.html +26 -0
- data/spec/apps/rails_3.2/public/422.html +26 -0
- data/spec/apps/rails_3.2/public/500.html +25 -0
- data/spec/apps/rails_3.2/script/rails +6 -0
- data/spec/apps/rails_4.0/Rakefile +6 -0
- data/spec/apps/rails_4.0/app/assets/images/.keep +0 -0
- data/spec/apps/rails_4.0/app/assets/javascripts/application.js +13 -0
- data/spec/apps/rails_4.0/app/assets/stylesheets/application.css +13 -0
- data/spec/apps/rails_4.0/app/controllers/application_controller.rb +5 -0
- data/spec/apps/rails_4.0/app/controllers/concerns/.keep +0 -0
- data/spec/apps/rails_4.0/app/helpers/application_helper.rb +2 -0
- data/spec/apps/rails_4.0/app/views/layouts/application.html.erb +14 -0
- data/spec/apps/rails_4.0/config/application.rb +17 -0
- data/spec/apps/rails_4.0/config/boot.rb +5 -0
- data/spec/apps/rails_4.0/config/database.yml +25 -0
- data/spec/apps/rails_4.0/config/environment.rb +5 -0
- data/spec/apps/rails_4.0/config/environments/development.rb +29 -0
- data/spec/apps/rails_4.0/config/environments/production.rb +80 -0
- data/spec/apps/rails_4.0/config/environments/test.rb +36 -0
- data/spec/apps/rails_4.0/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/apps/rails_4.0/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/apps/rails_4.0/config/initializers/inflections.rb +16 -0
- data/spec/apps/rails_4.0/config/initializers/mime_types.rb +5 -0
- data/spec/apps/rails_4.0/config/initializers/secret_token.rb +12 -0
- data/spec/apps/rails_4.0/config/initializers/session_store.rb +3 -0
- data/spec/apps/rails_4.0/config/initializers/some_initializer.rb +7 -0
- data/spec/apps/rails_4.0/config/initializers/wrap_parameters.rb +14 -0
- data/spec/apps/rails_4.0/config/locales/en.yml +23 -0
- data/spec/apps/rails_4.0/config/routes.rb +2 -0
- data/spec/apps/rails_4.0/config/settings.yml +1 -0
- data/spec/apps/rails_4.0/config.ru +4 -0
- data/spec/apps/rails_4.0/db/.keep +0 -0
- data/spec/apps/rails_4.0/public/404.html +58 -0
- data/spec/apps/rails_4.0/public/422.html +58 -0
- data/spec/apps/rails_4.0/public/500.html +57 -0
- data/spec/apps/rails_4.1/Rakefile +6 -0
- data/spec/apps/rails_4.1/app/assets/images/.keep +0 -0
- data/spec/apps/rails_4.1/app/assets/javascripts/application.js +13 -0
- data/spec/apps/rails_4.1/app/assets/stylesheets/application.css +13 -0
- data/spec/apps/rails_4.1/app/controllers/application_controller.rb +5 -0
- data/spec/apps/rails_4.1/app/controllers/concerns/.keep +0 -0
- data/spec/apps/rails_4.1/app/helpers/application_helper.rb +2 -0
- data/spec/apps/rails_4.1/app/views/layouts/application.html.erb +14 -0
- data/spec/apps/rails_4.1/config/application.rb +17 -0
- data/spec/apps/rails_4.1/config/boot.rb +5 -0
- data/spec/apps/rails_4.1/config/database.yml +25 -0
- data/spec/apps/rails_4.1/config/environment.rb +5 -0
- data/spec/apps/rails_4.1/config/environments/development.rb +29 -0
- data/spec/apps/rails_4.1/config/environments/production.rb +80 -0
- data/spec/apps/rails_4.1/config/environments/test.rb +36 -0
- data/spec/apps/rails_4.1/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/apps/rails_4.1/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/apps/rails_4.1/config/initializers/inflections.rb +16 -0
- data/spec/apps/rails_4.1/config/initializers/mime_types.rb +5 -0
- data/spec/apps/rails_4.1/config/initializers/secret_token.rb +12 -0
- data/spec/apps/rails_4.1/config/initializers/session_store.rb +3 -0
- data/spec/apps/rails_4.1/config/initializers/some_initializer.rb +7 -0
- data/spec/apps/rails_4.1/config/initializers/wrap_parameters.rb +14 -0
- data/spec/apps/rails_4.1/config/locales/en.yml +23 -0
- data/spec/apps/rails_4.1/config/routes.rb +2 -0
- data/spec/apps/rails_4.1/config/settings.yml +1 -0
- data/spec/apps/rails_4.1/config.ru +4 -0
- data/spec/apps/rails_4.1/db/.keep +0 -0
- data/spec/apps/rails_4.1/public/404.html +58 -0
- data/spec/apps/rails_4.1/public/422.html +58 -0
- data/spec/apps/rails_4.1/public/500.html +57 -0
- data/spec/lib/elasticonf_rails_spec.rb +13 -0
- data/spec/spec_helper.rb +16 -0
- 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
data/.rspec
ADDED
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
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 [](https://travis-ci.org/rezwyi/elasticonf-rails) [](https://gemnasium.com/rezwyi/elasticonf-rails) [](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 @@
|
|
|
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,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,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,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,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
|
+
|