overlay 2.2.5 → 2.3.0
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 +4 -4
- data/lib/overlay/configuration.rb +1 -4
- data/lib/overlay/github.rb +2 -1
- data/lib/overlay/version.rb +1 -1
- data/spec/configuration_spec.rb +1 -2
- data/spec/controllers/overlay/github_controller_spec.rb +2 -1
- data/spec/dummy/log/test.log +1005 -0
- data/spec/github_spec.rb +33 -33
- metadata +4 -62
- data/spec/dummy/spec/controllers/overlay/github_controller_spec.rb +0 -18
- data/spec/dummy/spec/dummy/README.rdoc +0 -28
- data/spec/dummy/spec/dummy/Rakefile +0 -6
- data/spec/dummy/spec/dummy/app/assets/javascripts/application.js +0 -13
- data/spec/dummy/spec/dummy/app/assets/stylesheets/application.css +0 -13
- data/spec/dummy/spec/dummy/app/controllers/application_controller.rb +0 -5
- data/spec/dummy/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/spec/dummy/spec/dummy/app/views/layouts/application.html.erb +0 -14
- data/spec/dummy/spec/dummy/bin/bundle +0 -3
- data/spec/dummy/spec/dummy/bin/rails +0 -4
- data/spec/dummy/spec/dummy/bin/rake +0 -4
- data/spec/dummy/spec/dummy/config.ru +0 -4
- data/spec/dummy/spec/dummy/config/application.rb +0 -28
- data/spec/dummy/spec/dummy/config/boot.rb +0 -5
- data/spec/dummy/spec/dummy/config/environment.rb +0 -5
- data/spec/dummy/spec/dummy/config/environments/development.rb +0 -27
- data/spec/dummy/spec/dummy/config/environments/production.rb +0 -80
- data/spec/dummy/spec/dummy/config/environments/test.rb +0 -36
- data/spec/dummy/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/dummy/spec/dummy/config/initializers/inflections.rb +0 -16
- data/spec/dummy/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/spec/dummy/spec/dummy/config/initializers/secret_token.rb +0 -12
- data/spec/dummy/spec/dummy/config/initializers/session_store.rb +0 -3
- data/spec/dummy/spec/dummy/config/initializers/wrap_parameters.rb +0 -10
- data/spec/dummy/spec/dummy/config/locales/en.yml +0 -23
- data/spec/dummy/spec/dummy/config/routes.rb +0 -4
- data/spec/dummy/spec/dummy/public/404.html +0 -58
- data/spec/dummy/spec/dummy/public/422.html +0 -58
data/spec/github_spec.rb
CHANGED
@@ -29,7 +29,7 @@ describe Overlay::Github do
|
|
29
29
|
|
30
30
|
it 'should register a webhook with github' do
|
31
31
|
config = Overlay.configuration.repositories.first
|
32
|
-
allow(Overlay::Github.instance).to receive(:fork_it).with(:overlay_repo, config)
|
32
|
+
allow(Overlay::Github.instance).to receive(:fork_it).with(:overlay_repo, config)
|
33
33
|
|
34
34
|
stub_request(:get, /api.github.com/).
|
35
35
|
to_return(:status => 200, :body => '[]', :headers => {})
|
@@ -40,7 +40,7 @@ describe Overlay::Github do
|
|
40
40
|
name: 'web',
|
41
41
|
active: true,
|
42
42
|
config: {:url => "http://#{Socket.gethostname}:3000/overlay/github/update", :content_type => 'json'}
|
43
|
-
)
|
43
|
+
) {}
|
44
44
|
|
45
45
|
Overlay::Github.instance.process_overlays
|
46
46
|
end
|
@@ -49,7 +49,7 @@ describe Overlay::Github do
|
|
49
49
|
config = Overlay.configuration.repositories.first
|
50
50
|
config.endpoint = "https://www.test.com"
|
51
51
|
|
52
|
-
allow(Overlay::Github.instance).to receive(:fork_it).with(:overlay_repo, config)
|
52
|
+
allow(Overlay::Github.instance).to receive(:fork_it).with(:overlay_repo, config) {}
|
53
53
|
|
54
54
|
stub_request(:get, /www.test.com/).
|
55
55
|
to_return(:status => 200, :body => '[]', :headers => {})
|
@@ -60,7 +60,7 @@ describe Overlay::Github do
|
|
60
60
|
name: 'web',
|
61
61
|
active: true,
|
62
62
|
config: {:url => "http://#{Socket.gethostname}:3000/overlay/github/update", :content_type => 'json'}
|
63
|
-
)
|
63
|
+
)
|
64
64
|
|
65
65
|
Overlay::Github.instance.process_overlays
|
66
66
|
end
|
@@ -69,8 +69,8 @@ describe Overlay::Github do
|
|
69
69
|
describe 'initial overlay_repo' do
|
70
70
|
it 'should retry overlay_repo until completion' do
|
71
71
|
@times_called = 0
|
72
|
-
allow(Overlay::Github.instance).to receive(:sleep)
|
73
|
-
expect(Overlay::Github.instance).to receive(:overlay_directory).exactly(5).times
|
72
|
+
allow(Overlay::Github.instance).to receive(:sleep)
|
73
|
+
expect(Overlay::Github.instance).to receive(:overlay_directory).exactly(5).times do
|
74
74
|
@times_called += 1
|
75
75
|
raise StandardError unless @times_called == 5
|
76
76
|
end
|
@@ -99,17 +99,17 @@ describe Overlay::Github do
|
|
99
99
|
|
100
100
|
it 'should call publisher_subscribe' do
|
101
101
|
config = Overlay.configuration.repositories.first
|
102
|
-
allow(Overlay::Github.instance).to receive(:fork_it).with(:overlay_repo, config)
|
102
|
+
allow(Overlay::Github.instance).to receive(:fork_it).with(:overlay_repo, config)
|
103
103
|
|
104
|
-
expect(Overlay::Github.instance).to receive(:publisher_subscribe).with(config)
|
104
|
+
expect(Overlay::Github.instance).to receive(:publisher_subscribe).with(config)
|
105
105
|
|
106
106
|
Overlay::Github.instance.process_overlays
|
107
107
|
end
|
108
108
|
|
109
109
|
it 'should send a registration request' do
|
110
110
|
config = Overlay.configuration.repositories.first
|
111
|
-
allow(Overlay::Github.instance).to receive(:fork_it).with(:overlay_repo, config)
|
112
|
-
expect(Overlay::Github.instance).to receive(:fork_it).with(:subscribe_to_channel, "test_key", config)
|
111
|
+
allow(Overlay::Github.instance).to receive(:fork_it).with(:overlay_repo, config)
|
112
|
+
expect(Overlay::Github.instance).to receive(:fork_it).with(:subscribe_to_channel, "test_key", config)
|
113
113
|
|
114
114
|
stub_request(:post, /www.test.com/).
|
115
115
|
to_return(status: 200, body: "{\"publish_key\": \"test_key\"}", headers: {})
|
@@ -118,11 +118,11 @@ describe Overlay::Github do
|
|
118
118
|
end
|
119
119
|
|
120
120
|
it 'should retry on error' do
|
121
|
-
allow(Overlay::Github.instance).to receive(:sleep)
|
121
|
+
allow(Overlay::Github.instance).to receive(:sleep)
|
122
122
|
@times_called = 0
|
123
123
|
redis = double("Redis")
|
124
124
|
Redis.stub(:new).and_return(redis)
|
125
|
-
redis.stub(:subscribe)
|
125
|
+
redis.stub(:subscribe) do
|
126
126
|
@times_called += 1
|
127
127
|
raise StandardError unless @times_called == 5
|
128
128
|
end
|
@@ -239,34 +239,34 @@ describe Overlay::Github do
|
|
239
239
|
end
|
240
240
|
|
241
241
|
it 'should make a directory for a new file' do
|
242
|
-
allow(Overlay::Github.instance).to receive(:clone_file)
|
243
|
-
allow(File).to receive(:delete)
|
242
|
+
allow(Overlay::Github.instance).to receive(:clone_file)
|
243
|
+
allow(File).to receive(:delete)
|
244
244
|
expect(FileUtils).to receive(:mkdir_p).with("#{Rails.application.root}/lib/test")
|
245
245
|
|
246
246
|
Overlay::Github.instance.process_hook(payload, repo_config)
|
247
247
|
end
|
248
248
|
|
249
249
|
it 'should remove a deleted file' do
|
250
|
-
allow(Overlay::Github.instance).to receive(:clone_file)
|
251
|
-
allow(FileUtils).to receive(:mkdir_p)
|
252
|
-
expect(File).to receive(:delete).with("#{Rails.application.root}/lib/test/test_removed.rb")
|
250
|
+
allow(Overlay::Github.instance).to receive(:clone_file)
|
251
|
+
allow(FileUtils).to receive(:mkdir_p)
|
252
|
+
expect(File).to receive(:delete).with("#{Rails.application.root}/lib/test/test_removed.rb")
|
253
253
|
|
254
254
|
Overlay::Github.instance.process_hook(payload, repo_config)
|
255
255
|
end
|
256
256
|
|
257
257
|
it 'should clone added or modified files' do
|
258
|
-
allow(FileUtils).to receive(:mkdir_p)
|
259
|
-
allow(File).to receive(:delete)
|
260
|
-
expect(Overlay::Github.instance).to receive(:clone_file).with("lib/test/test_added.rb", repo_config)
|
261
|
-
expect(Overlay::Github.instance).to receive(:clone_file).with("lib/test/test_modified.rb", repo_config)
|
258
|
+
allow(FileUtils).to receive(:mkdir_p)
|
259
|
+
allow(File).to receive(:delete)
|
260
|
+
expect(Overlay::Github.instance).to receive(:clone_file).with("lib/test/test_added.rb", repo_config)
|
261
|
+
expect(Overlay::Github.instance).to receive(:clone_file).with("lib/test/test_modified.rb", repo_config)
|
262
262
|
|
263
263
|
Overlay::Github.instance.process_hook(payload, repo_config)
|
264
264
|
end
|
265
265
|
|
266
266
|
it 'should call post_hook after hook is processed' do
|
267
|
-
allow(FileUtils).to receive(:mkdir_p)
|
268
|
-
allow(File).to receive(:delete)
|
269
|
-
allow(Overlay::Github.instance).to receive(:clone_file)
|
267
|
+
allow(FileUtils).to receive(:mkdir_p)
|
268
|
+
allow(File).to receive(:delete)
|
269
|
+
allow(Overlay::Github.instance).to receive(:clone_file)
|
270
270
|
|
271
271
|
hook_ran = false
|
272
272
|
|
@@ -280,9 +280,9 @@ describe Overlay::Github do
|
|
280
280
|
end
|
281
281
|
|
282
282
|
it 'should process hook with null added descriptors' do
|
283
|
-
allow(FileUtils).to receive(:mkdir_p)
|
284
|
-
allow(File).to receive(:delete)
|
285
|
-
allow(Overlay::Github.instance).to receive(:clone_file)
|
283
|
+
allow(FileUtils).to receive(:mkdir_p)
|
284
|
+
allow(File).to receive(:delete)
|
285
|
+
allow(Overlay::Github.instance).to receive(:clone_file)
|
286
286
|
|
287
287
|
# Remove added file
|
288
288
|
payload_modified = payload
|
@@ -292,9 +292,9 @@ describe Overlay::Github do
|
|
292
292
|
end
|
293
293
|
|
294
294
|
it 'should process hook with null modified descriptors' do
|
295
|
-
allow(FileUtils).to receive(:mkdir_p)
|
296
|
-
allow(File).to receive(:delete)
|
297
|
-
allow(Overlay::Github.instance).to receive(:clone_file)
|
295
|
+
allow(FileUtils).to receive(:mkdir_p)
|
296
|
+
allow(File).to receive(:delete)
|
297
|
+
allow(Overlay::Github.instance).to receive(:clone_file)
|
298
298
|
|
299
299
|
# Remove modified file
|
300
300
|
payload_modified = payload
|
@@ -304,9 +304,9 @@ describe Overlay::Github do
|
|
304
304
|
end
|
305
305
|
|
306
306
|
it 'should process hook with null removed descriptors' do
|
307
|
-
allow(FileUtils).to receive(:mkdir_p)
|
308
|
-
allow(File).to receive(:delete)
|
309
|
-
allow(Overlay::Github.instance).to receive(:clone_file)
|
307
|
+
allow(FileUtils).to receive(:mkdir_p)
|
308
|
+
allow(File).to receive(:delete)
|
309
|
+
allow(Overlay::Github.instance).to receive(:clone_file)
|
310
310
|
|
311
311
|
# Remove removed file
|
312
312
|
payload_modified = payload
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: overlay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Saarinen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 0.11.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 0.11.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec-rails
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -132,35 +132,6 @@ files:
|
|
132
132
|
- spec/dummy/public/favicon.ico
|
133
133
|
- spec/dummy/Rakefile
|
134
134
|
- spec/dummy/README.rdoc
|
135
|
-
- spec/dummy/spec/controllers/overlay/github_controller_spec.rb
|
136
|
-
- spec/dummy/spec/dummy/app/assets/javascripts/application.js
|
137
|
-
- spec/dummy/spec/dummy/app/assets/stylesheets/application.css
|
138
|
-
- spec/dummy/spec/dummy/app/controllers/application_controller.rb
|
139
|
-
- spec/dummy/spec/dummy/app/helpers/application_helper.rb
|
140
|
-
- spec/dummy/spec/dummy/app/views/layouts/application.html.erb
|
141
|
-
- spec/dummy/spec/dummy/bin/bundle
|
142
|
-
- spec/dummy/spec/dummy/bin/rails
|
143
|
-
- spec/dummy/spec/dummy/bin/rake
|
144
|
-
- spec/dummy/spec/dummy/config/application.rb
|
145
|
-
- spec/dummy/spec/dummy/config/boot.rb
|
146
|
-
- spec/dummy/spec/dummy/config/environment.rb
|
147
|
-
- spec/dummy/spec/dummy/config/environments/development.rb
|
148
|
-
- spec/dummy/spec/dummy/config/environments/production.rb
|
149
|
-
- spec/dummy/spec/dummy/config/environments/test.rb
|
150
|
-
- spec/dummy/spec/dummy/config/initializers/backtrace_silencers.rb
|
151
|
-
- spec/dummy/spec/dummy/config/initializers/filter_parameter_logging.rb
|
152
|
-
- spec/dummy/spec/dummy/config/initializers/inflections.rb
|
153
|
-
- spec/dummy/spec/dummy/config/initializers/mime_types.rb
|
154
|
-
- spec/dummy/spec/dummy/config/initializers/secret_token.rb
|
155
|
-
- spec/dummy/spec/dummy/config/initializers/session_store.rb
|
156
|
-
- spec/dummy/spec/dummy/config/initializers/wrap_parameters.rb
|
157
|
-
- spec/dummy/spec/dummy/config/locales/en.yml
|
158
|
-
- spec/dummy/spec/dummy/config/routes.rb
|
159
|
-
- spec/dummy/spec/dummy/config.ru
|
160
|
-
- spec/dummy/spec/dummy/public/404.html
|
161
|
-
- spec/dummy/spec/dummy/public/422.html
|
162
|
-
- spec/dummy/spec/dummy/Rakefile
|
163
|
-
- spec/dummy/spec/dummy/README.rdoc
|
164
135
|
- spec/github_spec.rb
|
165
136
|
- spec/spec_helper.rb
|
166
137
|
homepage: http://stevesaarinen.com
|
@@ -220,34 +191,5 @@ test_files:
|
|
220
191
|
- spec/dummy/public/favicon.ico
|
221
192
|
- spec/dummy/Rakefile
|
222
193
|
- spec/dummy/README.rdoc
|
223
|
-
- spec/dummy/spec/controllers/overlay/github_controller_spec.rb
|
224
|
-
- spec/dummy/spec/dummy/app/assets/javascripts/application.js
|
225
|
-
- spec/dummy/spec/dummy/app/assets/stylesheets/application.css
|
226
|
-
- spec/dummy/spec/dummy/app/controllers/application_controller.rb
|
227
|
-
- spec/dummy/spec/dummy/app/helpers/application_helper.rb
|
228
|
-
- spec/dummy/spec/dummy/app/views/layouts/application.html.erb
|
229
|
-
- spec/dummy/spec/dummy/bin/bundle
|
230
|
-
- spec/dummy/spec/dummy/bin/rails
|
231
|
-
- spec/dummy/spec/dummy/bin/rake
|
232
|
-
- spec/dummy/spec/dummy/config/application.rb
|
233
|
-
- spec/dummy/spec/dummy/config/boot.rb
|
234
|
-
- spec/dummy/spec/dummy/config/environment.rb
|
235
|
-
- spec/dummy/spec/dummy/config/environments/development.rb
|
236
|
-
- spec/dummy/spec/dummy/config/environments/production.rb
|
237
|
-
- spec/dummy/spec/dummy/config/environments/test.rb
|
238
|
-
- spec/dummy/spec/dummy/config/initializers/backtrace_silencers.rb
|
239
|
-
- spec/dummy/spec/dummy/config/initializers/filter_parameter_logging.rb
|
240
|
-
- spec/dummy/spec/dummy/config/initializers/inflections.rb
|
241
|
-
- spec/dummy/spec/dummy/config/initializers/mime_types.rb
|
242
|
-
- spec/dummy/spec/dummy/config/initializers/secret_token.rb
|
243
|
-
- spec/dummy/spec/dummy/config/initializers/session_store.rb
|
244
|
-
- spec/dummy/spec/dummy/config/initializers/wrap_parameters.rb
|
245
|
-
- spec/dummy/spec/dummy/config/locales/en.yml
|
246
|
-
- spec/dummy/spec/dummy/config/routes.rb
|
247
|
-
- spec/dummy/spec/dummy/config.ru
|
248
|
-
- spec/dummy/spec/dummy/public/404.html
|
249
|
-
- spec/dummy/spec/dummy/public/422.html
|
250
|
-
- spec/dummy/spec/dummy/Rakefile
|
251
|
-
- spec/dummy/spec/dummy/README.rdoc
|
252
194
|
- spec/github_spec.rb
|
253
195
|
- spec/spec_helper.rb
|
@@ -1,18 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
module Overlay
|
4
|
-
describe GithubController do
|
5
|
-
before :each do
|
6
|
-
Overlay.configure do |config|
|
7
|
-
end
|
8
|
-
end
|
9
|
-
|
10
|
-
describe "POST 'update'" do
|
11
|
-
it "returns http success" do
|
12
|
-
post 'update', {:use_route => :overlay}
|
13
|
-
response.should be_success
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|
18
|
-
end
|
@@ -1,28 +0,0 @@
|
|
1
|
-
== README
|
2
|
-
|
3
|
-
This README would normally document whatever steps are necessary to get the
|
4
|
-
application up and running.
|
5
|
-
|
6
|
-
Things you may want to cover:
|
7
|
-
|
8
|
-
* Ruby version
|
9
|
-
|
10
|
-
* System dependencies
|
11
|
-
|
12
|
-
* Configuration
|
13
|
-
|
14
|
-
* Database creation
|
15
|
-
|
16
|
-
* Database initialization
|
17
|
-
|
18
|
-
* How to run the test suite
|
19
|
-
|
20
|
-
* Services (job queues, cache servers, search engines, etc.)
|
21
|
-
|
22
|
-
* Deployment instructions
|
23
|
-
|
24
|
-
* ...
|
25
|
-
|
26
|
-
|
27
|
-
Please feel free to use a different markup language if you do not plan to run
|
28
|
-
<tt>rake doc:app</tt>.
|
@@ -1,13 +0,0 @@
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
-
// listed below.
|
3
|
-
//
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
-
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
-
//
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
-
// compiled file.
|
9
|
-
//
|
10
|
-
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
|
11
|
-
// GO AFTER THE REQUIRES BELOW.
|
12
|
-
//
|
13
|
-
//= require_tree .
|
@@ -1,13 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
-
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
9
|
-
* compiled file, but it's generally better to create a new file per style scope.
|
10
|
-
*
|
11
|
-
*= require_self
|
12
|
-
*= require_tree .
|
13
|
-
*/
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>Dummy</title>
|
5
|
-
<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
|
6
|
-
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
|
7
|
-
<%= csrf_meta_tags %>
|
8
|
-
</head>
|
9
|
-
<body>
|
10
|
-
|
11
|
-
<%= yield %>
|
12
|
-
|
13
|
-
</body>
|
14
|
-
</html>
|
@@ -1,28 +0,0 @@
|
|
1
|
-
require File.expand_path('../boot', __FILE__)
|
2
|
-
|
3
|
-
# Pick the frameworks you want:
|
4
|
-
# require "active_record/railtie"
|
5
|
-
require "action_controller/railtie"
|
6
|
-
require "action_mailer/railtie"
|
7
|
-
# require "sprockets/railtie"
|
8
|
-
# require "rails/test_unit/railtie"
|
9
|
-
|
10
|
-
Bundler.require(*Rails.groups)
|
11
|
-
require "overlay"
|
12
|
-
|
13
|
-
module Dummy
|
14
|
-
class Application < Rails::Application
|
15
|
-
# Settings in config/environments/* take precedence over those specified here.
|
16
|
-
# Application configuration should go into files in config/initializers
|
17
|
-
# -- all .rb files in that directory are automatically loaded.
|
18
|
-
|
19
|
-
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
20
|
-
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
21
|
-
# config.time_zone = 'Central Time (US & Canada)'
|
22
|
-
|
23
|
-
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
24
|
-
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
25
|
-
# config.i18n.default_locale = :de
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
@@ -1,27 +0,0 @@
|
|
1
|
-
Dummy::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 web server when you make code changes.
|
7
|
-
config.cache_classes = false
|
8
|
-
|
9
|
-
# Do not eager load code on boot.
|
10
|
-
config.eager_load = false
|
11
|
-
|
12
|
-
# Show full error reports and disable caching.
|
13
|
-
config.consider_all_requests_local = true
|
14
|
-
config.action_controller.perform_caching = false
|
15
|
-
|
16
|
-
# Don't care if the mailer can't send.
|
17
|
-
config.action_mailer.raise_delivery_errors = false
|
18
|
-
|
19
|
-
# Print deprecation notices to the Rails logger.
|
20
|
-
config.active_support.deprecation = :log
|
21
|
-
|
22
|
-
|
23
|
-
# Debug mode disables concatenation and preprocessing of assets.
|
24
|
-
# This option may cause significant delays in view rendering with a large
|
25
|
-
# number of complex assets.
|
26
|
-
config.assets.debug = true
|
27
|
-
end
|