consul 0.12.2 → 0.12.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of consul might be problematic. Click here for more details.

Files changed (129) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/consul.gemspec +1 -1
  4. data/lib/consul/version.rb +1 -1
  5. metadata +2 -126
  6. data/spec/rails-2.3/Gemfile +0 -13
  7. data/spec/rails-2.3/Gemfile.lock +0 -65
  8. data/spec/rails-2.3/Rakefile +0 -11
  9. data/spec/rails-2.3/app_root/app +0 -1
  10. data/spec/rails-2.3/app_root/config/boot.rb +0 -128
  11. data/spec/rails-2.3/app_root/config/database.yml +0 -21
  12. data/spec/rails-2.3/app_root/config/environment.rb +0 -14
  13. data/spec/rails-2.3/app_root/config/environments/in_memory.rb +0 -0
  14. data/spec/rails-2.3/app_root/config/environments/mysql.rb +0 -0
  15. data/spec/rails-2.3/app_root/config/environments/postgresql.rb +0 -0
  16. data/spec/rails-2.3/app_root/config/environments/sqlite.rb +0 -0
  17. data/spec/rails-2.3/app_root/config/environments/sqlite3.rb +0 -0
  18. data/spec/rails-2.3/app_root/config/initializers/fix_missing_source_file.rb +0 -1
  19. data/spec/rails-2.3/app_root/config/preinitializer.rb +0 -20
  20. data/spec/rails-2.3/app_root/config/routes.rb +0 -21
  21. data/spec/rails-2.3/app_root/db +0 -1
  22. data/spec/rails-2.3/app_root/log/.gitignore +0 -1
  23. data/spec/rails-2.3/rcov.opts +0 -2
  24. data/spec/rails-2.3/spec.opts +0 -4
  25. data/spec/rails-2.3/spec/spec_helper.rb +0 -36
  26. data/spec/rails-3.0/.rspec +0 -2
  27. data/spec/rails-3.0/Gemfile +0 -11
  28. data/spec/rails-3.0/Gemfile.lock +0 -126
  29. data/spec/rails-3.0/Rakefile +0 -11
  30. data/spec/rails-3.0/app_root/.gitignore +0 -4
  31. data/spec/rails-3.0/app_root/app +0 -1
  32. data/spec/rails-3.0/app_root/config/application.rb +0 -31
  33. data/spec/rails-3.0/app_root/config/boot.rb +0 -13
  34. data/spec/rails-3.0/app_root/config/database.yml +0 -4
  35. data/spec/rails-3.0/app_root/config/environment.rb +0 -5
  36. data/spec/rails-3.0/app_root/config/environments/test.rb +0 -35
  37. data/spec/rails-3.0/app_root/config/initializers/backtrace_silencers.rb +0 -7
  38. data/spec/rails-3.0/app_root/config/initializers/inflections.rb +0 -10
  39. data/spec/rails-3.0/app_root/config/initializers/mime_types.rb +0 -5
  40. data/spec/rails-3.0/app_root/config/initializers/secret_token.rb +0 -7
  41. data/spec/rails-3.0/app_root/config/initializers/session_store.rb +0 -8
  42. data/spec/rails-3.0/app_root/config/routes.rb +0 -3
  43. data/spec/rails-3.0/app_root/db +0 -1
  44. data/spec/rails-3.0/app_root/lib/tasks/.gitkeep +0 -0
  45. data/spec/rails-3.0/app_root/log/.gitkeep +0 -0
  46. data/spec/rails-3.0/app_root/script/rails +0 -6
  47. data/spec/rails-3.0/rcov.opts +0 -2
  48. data/spec/rails-3.0/spec/spec_helper.rb +0 -23
  49. data/spec/rails-3.2/.rspec +0 -2
  50. data/spec/rails-3.2/Gemfile +0 -11
  51. data/spec/rails-3.2/Gemfile.lock +0 -135
  52. data/spec/rails-3.2/Rakefile +0 -11
  53. data/spec/rails-3.2/app_root/.gitignore +0 -4
  54. data/spec/rails-3.2/app_root/app +0 -1
  55. data/spec/rails-3.2/app_root/config/application.rb +0 -31
  56. data/spec/rails-3.2/app_root/config/boot.rb +0 -13
  57. data/spec/rails-3.2/app_root/config/database.yml +0 -4
  58. data/spec/rails-3.2/app_root/config/environment.rb +0 -5
  59. data/spec/rails-3.2/app_root/config/environments/test.rb +0 -35
  60. data/spec/rails-3.2/app_root/config/initializers/backtrace_silencers.rb +0 -7
  61. data/spec/rails-3.2/app_root/config/initializers/inflections.rb +0 -10
  62. data/spec/rails-3.2/app_root/config/initializers/mime_types.rb +0 -5
  63. data/spec/rails-3.2/app_root/config/initializers/secret_token.rb +0 -7
  64. data/spec/rails-3.2/app_root/config/initializers/session_store.rb +0 -8
  65. data/spec/rails-3.2/app_root/config/routes.rb +0 -3
  66. data/spec/rails-3.2/app_root/db +0 -1
  67. data/spec/rails-3.2/app_root/log/.gitignore +0 -1
  68. data/spec/rails-3.2/rcov.opts +0 -2
  69. data/spec/rails-3.2/spec/spec_helper.rb +0 -27
  70. data/spec/rails-4.1/.rspec +0 -2
  71. data/spec/rails-4.1/Gemfile +0 -12
  72. data/spec/rails-4.1/Gemfile.lock +0 -134
  73. data/spec/rails-4.1/Rakefile +0 -12
  74. data/spec/rails-4.1/app_root/.gitignore +0 -16
  75. data/spec/rails-4.1/app_root/app +0 -1
  76. data/spec/rails-4.1/app_root/bin/bundle +0 -3
  77. data/spec/rails-4.1/app_root/bin/rails +0 -8
  78. data/spec/rails-4.1/app_root/bin/rake +0 -8
  79. data/spec/rails-4.1/app_root/bin/spring +0 -18
  80. data/spec/rails-4.1/app_root/config/application.rb +0 -28
  81. data/spec/rails-4.1/app_root/config/boot.rb +0 -4
  82. data/spec/rails-4.1/app_root/config/database.yml +0 -4
  83. data/spec/rails-4.1/app_root/config/environment.rb +0 -5
  84. data/spec/rails-4.1/app_root/config/environments/development.rb +0 -37
  85. data/spec/rails-4.1/app_root/config/environments/production.rb +0 -83
  86. data/spec/rails-4.1/app_root/config/environments/test.rb +0 -39
  87. data/spec/rails-4.1/app_root/config/initializers/backtrace_silencers.rb +0 -7
  88. data/spec/rails-4.1/app_root/config/initializers/cookies_serializer.rb +0 -3
  89. data/spec/rails-4.1/app_root/config/initializers/filter_parameter_logging.rb +0 -4
  90. data/spec/rails-4.1/app_root/config/initializers/inflections.rb +0 -16
  91. data/spec/rails-4.1/app_root/config/initializers/mime_types.rb +0 -4
  92. data/spec/rails-4.1/app_root/config/initializers/session_store.rb +0 -3
  93. data/spec/rails-4.1/app_root/config/initializers/wrap_parameters.rb +0 -14
  94. data/spec/rails-4.1/app_root/config/locales/en.yml +0 -23
  95. data/spec/rails-4.1/app_root/config/routes.rb +0 -3
  96. data/spec/rails-4.1/app_root/config/secrets.yml +0 -22
  97. data/spec/rails-4.1/app_root/db +0 -1
  98. data/spec/rails-4.1/log/test.log +0 -0
  99. data/spec/rails-4.1/rcov.opts +0 -2
  100. data/spec/rails-4.1/spec/spec_helper.rb +0 -30
  101. data/spec/shared/app_root/app/controllers/application_controller.rb +0 -16
  102. data/spec/shared/app_root/app/controllers/cakes_controller.rb +0 -55
  103. data/spec/shared/app_root/app/controllers/client_notes_controller.rb +0 -13
  104. data/spec/shared/app_root/app/controllers/colors_controller.rb +0 -10
  105. data/spec/shared/app_root/app/controllers/dashboards_controller.rb +0 -20
  106. data/spec/shared/app_root/app/controllers/risks_controller.rb +0 -7
  107. data/spec/shared/app_root/app/controllers/songs_controller.rb +0 -14
  108. data/spec/shared/app_root/app/controllers/users_controller.rb +0 -13
  109. data/spec/shared/app_root/app/models/client.rb +0 -9
  110. data/spec/shared/app_root/app/models/deal.rb +0 -3
  111. data/spec/shared/app_root/app/models/deal/item.rb +0 -3
  112. data/spec/shared/app_root/app/models/note.rb +0 -7
  113. data/spec/shared/app_root/app/models/power.rb +0 -133
  114. data/spec/shared/app_root/app/models/song.rb +0 -6
  115. data/spec/shared/app_root/app/models/user.rb +0 -8
  116. data/spec/shared/app_root/db/migrate/001_create_users.rb +0 -13
  117. data/spec/shared/app_root/db/migrate/002_create_clients.rb +0 -13
  118. data/spec/shared/app_root/db/migrate/003_create_notes.rb +0 -13
  119. data/spec/shared/app_root/db/migrate/004_create_songs.rb +0 -14
  120. data/spec/shared/consul/active_record_spec.rb +0 -37
  121. data/spec/shared/consul/controllers/cakes_controller_spec.rb +0 -61
  122. data/spec/shared/consul/controllers/client_notes_controller_spec.rb +0 -25
  123. data/spec/shared/consul/controllers/colors_controller_spec.rb +0 -29
  124. data/spec/shared/consul/controllers/dashboards_controller_spec.rb +0 -26
  125. data/spec/shared/consul/controllers/risks_controller_spec.rb +0 -9
  126. data/spec/shared/consul/controllers/songs_controller_spec.rb +0 -13
  127. data/spec/shared/consul/controllers/users_controller_spec.rb +0 -25
  128. data/spec/shared/consul/power_spec.rb +0 -688
  129. data/spec/shared/consul/util_spec.rb +0 -17
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eea2b4ef7c6586d9ee1ca962f4ab203bf526a00c
4
- data.tar.gz: 71b0cb6aa67ddca3766f8fb0381eaef0b11a853a
3
+ metadata.gz: 451a1a3cbac29ec3207d57d872785979ecfd709e
4
+ data.tar.gz: 532bb74df4019609fb109e7a1ef9470fdd8684e8
5
5
  SHA512:
6
- metadata.gz: 288c097f5af07fdfc7d939821daf34639d0240ab435accd0f4e9a111a80564cdf007d11297bcd5c6bb135f94c63d7e0b34b6c2feec963c03797d617645f1c14d
7
- data.tar.gz: b99d6c56b27fe3aa94dc90eb86dce2e2858b7680f111c4cffc58bfbc86f454c637dde4ee431109c5ace3d8301841bbb1098e116f63fdfab9d9a7d65e5997b276
6
+ metadata.gz: f529eef3f226331250ea07291554bcd1540751897cbdbcab9b15f7c849d4e625aa49a629de10dc52a0171721aa174e0da28b7ef3b6cf79e4556aa6f32ca399a8
7
+ data.tar.gz: 58e3039503a56a1d170629ecfb646136f8ec6aec5cc3e8fa8ac92c648dac24f4d2f4986857b5a2322521f4f4d7b8b06cfa10929d06a63a4d60b360fd04cc1535
@@ -1,4 +1,5 @@
1
1
  language: ruby
2
+ sudo: false
2
3
  rvm:
3
4
  - "1.8.7"
4
5
  - "1.9.3"
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
11
11
  s.description = s.summary
12
12
  s.license = 'MIT'
13
13
 
14
- s.files = `git ls-files`.split("\n")
14
+ s.files = `git ls-files`.split("\n").reject { |f| f.match(%r{^(test|spec|features)/}) }
15
15
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
16
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
17
  s.require_paths = ["lib"]
@@ -1,3 +1,3 @@
1
1
  module Consul
2
- VERSION = '0.12.2'
2
+ VERSION = '0.12.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: consul
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.2
4
+ version: 0.12.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henning Koch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-27 00:00:00.000000000 Z
11
+ date: 2016-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: memoizer
@@ -74,130 +74,6 @@ files:
74
74
  - lib/consul/spec/matchers.rb
75
75
  - lib/consul/util.rb
76
76
  - lib/consul/version.rb
77
- - spec/rails-2.3/Gemfile
78
- - spec/rails-2.3/Gemfile.lock
79
- - spec/rails-2.3/Rakefile
80
- - spec/rails-2.3/app_root/app
81
- - spec/rails-2.3/app_root/config/boot.rb
82
- - spec/rails-2.3/app_root/config/database.yml
83
- - spec/rails-2.3/app_root/config/environment.rb
84
- - spec/rails-2.3/app_root/config/environments/in_memory.rb
85
- - spec/rails-2.3/app_root/config/environments/mysql.rb
86
- - spec/rails-2.3/app_root/config/environments/postgresql.rb
87
- - spec/rails-2.3/app_root/config/environments/sqlite.rb
88
- - spec/rails-2.3/app_root/config/environments/sqlite3.rb
89
- - spec/rails-2.3/app_root/config/initializers/fix_missing_source_file.rb
90
- - spec/rails-2.3/app_root/config/preinitializer.rb
91
- - spec/rails-2.3/app_root/config/routes.rb
92
- - spec/rails-2.3/app_root/db
93
- - spec/rails-2.3/app_root/log/.gitignore
94
- - spec/rails-2.3/rcov.opts
95
- - spec/rails-2.3/spec.opts
96
- - spec/rails-2.3/spec/spec_helper.rb
97
- - spec/rails-3.0/.rspec
98
- - spec/rails-3.0/Gemfile
99
- - spec/rails-3.0/Gemfile.lock
100
- - spec/rails-3.0/Rakefile
101
- - spec/rails-3.0/app_root/.gitignore
102
- - spec/rails-3.0/app_root/app
103
- - spec/rails-3.0/app_root/config/application.rb
104
- - spec/rails-3.0/app_root/config/boot.rb
105
- - spec/rails-3.0/app_root/config/database.yml
106
- - spec/rails-3.0/app_root/config/environment.rb
107
- - spec/rails-3.0/app_root/config/environments/test.rb
108
- - spec/rails-3.0/app_root/config/initializers/backtrace_silencers.rb
109
- - spec/rails-3.0/app_root/config/initializers/inflections.rb
110
- - spec/rails-3.0/app_root/config/initializers/mime_types.rb
111
- - spec/rails-3.0/app_root/config/initializers/secret_token.rb
112
- - spec/rails-3.0/app_root/config/initializers/session_store.rb
113
- - spec/rails-3.0/app_root/config/routes.rb
114
- - spec/rails-3.0/app_root/db
115
- - spec/rails-3.0/app_root/lib/tasks/.gitkeep
116
- - spec/rails-3.0/app_root/log/.gitkeep
117
- - spec/rails-3.0/app_root/script/rails
118
- - spec/rails-3.0/rcov.opts
119
- - spec/rails-3.0/spec/spec_helper.rb
120
- - spec/rails-3.2/.rspec
121
- - spec/rails-3.2/Gemfile
122
- - spec/rails-3.2/Gemfile.lock
123
- - spec/rails-3.2/Rakefile
124
- - spec/rails-3.2/app_root/.gitignore
125
- - spec/rails-3.2/app_root/app
126
- - spec/rails-3.2/app_root/config/application.rb
127
- - spec/rails-3.2/app_root/config/boot.rb
128
- - spec/rails-3.2/app_root/config/database.yml
129
- - spec/rails-3.2/app_root/config/environment.rb
130
- - spec/rails-3.2/app_root/config/environments/test.rb
131
- - spec/rails-3.2/app_root/config/initializers/backtrace_silencers.rb
132
- - spec/rails-3.2/app_root/config/initializers/inflections.rb
133
- - spec/rails-3.2/app_root/config/initializers/mime_types.rb
134
- - spec/rails-3.2/app_root/config/initializers/secret_token.rb
135
- - spec/rails-3.2/app_root/config/initializers/session_store.rb
136
- - spec/rails-3.2/app_root/config/routes.rb
137
- - spec/rails-3.2/app_root/db
138
- - spec/rails-3.2/app_root/log/.gitignore
139
- - spec/rails-3.2/rcov.opts
140
- - spec/rails-3.2/spec/spec_helper.rb
141
- - spec/rails-4.1/.rspec
142
- - spec/rails-4.1/Gemfile
143
- - spec/rails-4.1/Gemfile.lock
144
- - spec/rails-4.1/Rakefile
145
- - spec/rails-4.1/app_root/.gitignore
146
- - spec/rails-4.1/app_root/app
147
- - spec/rails-4.1/app_root/bin/bundle
148
- - spec/rails-4.1/app_root/bin/rails
149
- - spec/rails-4.1/app_root/bin/rake
150
- - spec/rails-4.1/app_root/bin/spring
151
- - spec/rails-4.1/app_root/config/application.rb
152
- - spec/rails-4.1/app_root/config/boot.rb
153
- - spec/rails-4.1/app_root/config/database.yml
154
- - spec/rails-4.1/app_root/config/environment.rb
155
- - spec/rails-4.1/app_root/config/environments/development.rb
156
- - spec/rails-4.1/app_root/config/environments/production.rb
157
- - spec/rails-4.1/app_root/config/environments/test.rb
158
- - spec/rails-4.1/app_root/config/initializers/backtrace_silencers.rb
159
- - spec/rails-4.1/app_root/config/initializers/cookies_serializer.rb
160
- - spec/rails-4.1/app_root/config/initializers/filter_parameter_logging.rb
161
- - spec/rails-4.1/app_root/config/initializers/inflections.rb
162
- - spec/rails-4.1/app_root/config/initializers/mime_types.rb
163
- - spec/rails-4.1/app_root/config/initializers/session_store.rb
164
- - spec/rails-4.1/app_root/config/initializers/wrap_parameters.rb
165
- - spec/rails-4.1/app_root/config/locales/en.yml
166
- - spec/rails-4.1/app_root/config/routes.rb
167
- - spec/rails-4.1/app_root/config/secrets.yml
168
- - spec/rails-4.1/app_root/db
169
- - spec/rails-4.1/log/test.log
170
- - spec/rails-4.1/rcov.opts
171
- - spec/rails-4.1/spec/spec_helper.rb
172
- - spec/shared/app_root/app/controllers/application_controller.rb
173
- - spec/shared/app_root/app/controllers/cakes_controller.rb
174
- - spec/shared/app_root/app/controllers/client_notes_controller.rb
175
- - spec/shared/app_root/app/controllers/colors_controller.rb
176
- - spec/shared/app_root/app/controllers/dashboards_controller.rb
177
- - spec/shared/app_root/app/controllers/risks_controller.rb
178
- - spec/shared/app_root/app/controllers/songs_controller.rb
179
- - spec/shared/app_root/app/controllers/users_controller.rb
180
- - spec/shared/app_root/app/models/client.rb
181
- - spec/shared/app_root/app/models/deal.rb
182
- - spec/shared/app_root/app/models/deal/item.rb
183
- - spec/shared/app_root/app/models/note.rb
184
- - spec/shared/app_root/app/models/power.rb
185
- - spec/shared/app_root/app/models/song.rb
186
- - spec/shared/app_root/app/models/user.rb
187
- - spec/shared/app_root/db/migrate/001_create_users.rb
188
- - spec/shared/app_root/db/migrate/002_create_clients.rb
189
- - spec/shared/app_root/db/migrate/003_create_notes.rb
190
- - spec/shared/app_root/db/migrate/004_create_songs.rb
191
- - spec/shared/consul/active_record_spec.rb
192
- - spec/shared/consul/controllers/cakes_controller_spec.rb
193
- - spec/shared/consul/controllers/client_notes_controller_spec.rb
194
- - spec/shared/consul/controllers/colors_controller_spec.rb
195
- - spec/shared/consul/controllers/dashboards_controller_spec.rb
196
- - spec/shared/consul/controllers/risks_controller_spec.rb
197
- - spec/shared/consul/controllers/songs_controller_spec.rb
198
- - spec/shared/consul/controllers/users_controller_spec.rb
199
- - spec/shared/consul/power_spec.rb
200
- - spec/shared/consul/util_spec.rb
201
77
  homepage: https://github.com/makandra/consul
202
78
  licenses:
203
79
  - MIT
@@ -1,13 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'assignable_values'
4
- gem 'rails', '~>2.3'
5
- gem 'rspec', '~>1.3'
6
- gem 'rspec-rails', '~>1.3'
7
- gem 'shoulda-matchers', '<2'
8
- gem 'sqlite3'
9
- gem 'rspec_candy'
10
- gem 'test-unit', '~>1.2', :platforms => :ruby_19
11
- gem 'hoe', '=2.8.0', :platforms => :ruby_19
12
-
13
- gem 'consul', :path => '../..'
@@ -1,65 +0,0 @@
1
- PATH
2
- remote: ../..
3
- specs:
4
- consul (0.12.0)
5
- edge_rider (>= 0.3.0)
6
- memoizer
7
- rails
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- actionmailer (2.3.18)
13
- actionpack (= 2.3.18)
14
- actionpack (2.3.18)
15
- activesupport (= 2.3.18)
16
- rack (~> 1.1.0)
17
- activerecord (2.3.18)
18
- activesupport (= 2.3.18)
19
- activeresource (2.3.18)
20
- activesupport (= 2.3.18)
21
- activesupport (2.3.18)
22
- assignable_values (0.7.1)
23
- activerecord
24
- edge_rider (0.3.0)
25
- activerecord
26
- hoe (2.8.0)
27
- rake (>= 0.8.7)
28
- memoizer (1.0.1)
29
- rack (1.1.6)
30
- rails (2.3.18)
31
- actionmailer (= 2.3.18)
32
- actionpack (= 2.3.18)
33
- activerecord (= 2.3.18)
34
- activeresource (= 2.3.18)
35
- activesupport (= 2.3.18)
36
- rake (>= 0.8.3)
37
- rake (10.0.4)
38
- rspec (1.3.2)
39
- rspec-rails (1.3.4)
40
- rack (>= 1.0.0)
41
- rspec (~> 1.3.1)
42
- rspec_candy (0.2.9)
43
- rspec
44
- sneaky-save
45
- shoulda-matchers (1.0.0)
46
- sneaky-save (0.0.2)
47
- activerecord (>= 2.3.2)
48
- sqlite3 (1.3.7)
49
- test-unit (1.2.3)
50
- hoe (>= 1.5.1)
51
-
52
- PLATFORMS
53
- ruby
54
-
55
- DEPENDENCIES
56
- assignable_values
57
- consul!
58
- hoe (= 2.8.0)
59
- rails (~> 2.3)
60
- rspec (~> 1.3)
61
- rspec-rails (~> 1.3)
62
- rspec_candy
63
- shoulda-matchers (< 2)
64
- sqlite3
65
- test-unit (~> 1.2)
@@ -1,11 +0,0 @@
1
- require 'rake'
2
- require 'spec/rake/spectask'
3
-
4
- desc 'Default: Run all specs for a specific rails version.'
5
- task :default => :spec
6
-
7
- desc "Run all specs for a specific rails version"
8
- Spec::Rake::SpecTask.new() do |t|
9
- t.spec_opts = ['--options', "\"spec.opts\""]
10
- t.spec_files = defined?(SPEC) ? SPEC : FileList['**/*_spec.rb', '../shared/**/*_spec.rb']
11
- end
@@ -1 +0,0 @@
1
- ../../shared/app_root/app
@@ -1,128 +0,0 @@
1
- # Allow customization of the rails framework path
2
- RAILS_FRAMEWORK_ROOT = (ENV['RAILS_FRAMEWORK_ROOT'] || "#{File.dirname(__FILE__)}/../../../../../../vendor/rails") unless defined?(RAILS_FRAMEWORK_ROOT)
3
-
4
- # Don't change this file!
5
- # Configure your app in config/environment.rb and config/environments/*.rb
6
-
7
- RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT)
8
-
9
- module Rails
10
- class << self
11
- def boot!
12
- unless booted?
13
- preinitialize
14
- pick_boot.run
15
- end
16
- end
17
-
18
- def booted?
19
- defined? Rails::Initializer
20
- end
21
-
22
- def pick_boot
23
- (vendor_rails? ? VendorBoot : GemBoot).new
24
- end
25
-
26
- def vendor_rails?
27
- File.exist?(RAILS_FRAMEWORK_ROOT)
28
- end
29
-
30
- def preinitialize
31
- load(preinitializer_path) if File.exist?(preinitializer_path)
32
- end
33
-
34
- def preinitializer_path
35
- "#{RAILS_ROOT}/config/preinitializer.rb"
36
- end
37
- end
38
-
39
- class Boot
40
- def run
41
- load_initializer
42
- Rails::Initializer.run(:set_load_path)
43
- end
44
- end
45
-
46
- class VendorBoot < Boot
47
- def load_initializer
48
- require "#{RAILS_FRAMEWORK_ROOT}/railties/lib/initializer"
49
- Rails::Initializer.run(:install_gem_spec_stubs)
50
- end
51
- end
52
-
53
- class GemBoot < Boot
54
- def load_initializer
55
- self.class.load_rubygems
56
- load_rails_gem
57
- require 'initializer'
58
- end
59
-
60
- def load_rails_gem
61
- if version = self.class.gem_version
62
- gem 'rails', version
63
- else
64
- gem 'rails'
65
- end
66
- rescue Gem::LoadError => load_error
67
- $stderr.puts %(Missing the Rails #{version} gem. Please `gem install -v=#{version} rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.)
68
- exit 1
69
- end
70
-
71
- class << self
72
- def rubygems_version
73
- Gem::RubyGemsVersion rescue nil
74
- end
75
-
76
- def gem_version
77
- if defined? RAILS_GEM_VERSION
78
- RAILS_GEM_VERSION
79
- elsif ENV.include?('RAILS_GEM_VERSION')
80
- ENV['RAILS_GEM_VERSION']
81
- else
82
- parse_gem_version(read_environment_rb)
83
- end
84
- end
85
-
86
- def load_rubygems
87
- require 'rubygems'
88
- min_version = '1.1.1'
89
- unless rubygems_version >= min_version
90
- $stderr.puts %Q(Rails requires RubyGems >= #{min_version} (you have #{rubygems_version}). Please `gem update --system` and try again.)
91
- exit 1
92
- end
93
-
94
- rescue LoadError
95
- $stderr.puts %Q(Rails requires RubyGems >= #{min_version}. Please install RubyGems and try again: http://rubygems.rubyforge.org)
96
- exit 1
97
- end
98
-
99
- def parse_gem_version(text)
100
- $1 if text =~ /^[^#]*RAILS_GEM_VERSION\s*=\s*["']([!~<>=]*\s*[\d.]+)["']/
101
- end
102
-
103
- private
104
- def read_environment_rb
105
- environment_rb = "#{RAILS_ROOT}/config/environment.rb"
106
- environment_rb = "#{HELPER_RAILS_ROOT}/config/environment.rb" unless File.exists?(environment_rb)
107
- File.read(environment_rb)
108
- end
109
- end
110
- end
111
- end
112
-
113
- class Rails::Boot
114
- def run
115
- load_initializer
116
-
117
- Rails::Initializer.class_eval do
118
- def load_gems
119
- @bundler_loaded ||= Bundler.require :default, Rails.env
120
- end
121
- end
122
-
123
- Rails::Initializer.run(:set_load_path)
124
- end
125
- end
126
-
127
- # All that for this:
128
- Rails.boot!
@@ -1,21 +0,0 @@
1
- in_memory:
2
- adapter: sqlite3
3
- database: ":memory:"
4
- verbosity: quiet
5
- sqlite:
6
- adapter: sqlite
7
- dbfile: plugin_test.sqlite.db
8
- sqlite3:
9
- adapter: sqlite3
10
- dbfile: plugin_test.sqlite3.db
11
- postgresql:
12
- adapter: postgresql
13
- username: postgres
14
- password: postgres
15
- database: plugin_test
16
- mysql:
17
- adapter: mysql
18
- host: localhost
19
- username: root
20
- password:
21
- database: plugin_test
@@ -1,14 +0,0 @@
1
- require File.join(File.dirname(__FILE__), 'boot')
2
-
3
- Rails::Initializer.run do |config|
4
- config.cache_classes = false
5
- config.whiny_nils = true
6
- config.action_controller.session = { :key => "_myapp_session", :secret => "gwirofjweroijger8924rt2zfwehfuiwehb1378rifowenfoqwphf23" }
7
- config.plugin_locators.unshift(
8
- Class.new(Rails::Plugin::Locator) do
9
- def plugins
10
- [Rails::Plugin.new(File.expand_path('.'))]
11
- end
12
- end
13
- ) unless defined?(PluginTestHelper::PluginLocator)
14
- end