heavy_control 0.1.2 → 0.1.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b5ec538f294519e937d47ddaafd9df7613866f1
4
- data.tar.gz: 4d798f0a29f4a42d6a849a1d8c0cb00fb42c17e5
3
+ metadata.gz: f434422d77966314f5442eab1e04cc47c36fced8
4
+ data.tar.gz: 0a6d623683736b4954891167346f1def11ff76c2
5
5
  SHA512:
6
- metadata.gz: e6d95d61ca8a18d8fee643874bc78e9f6727aa2313742d7a5ae5dd4e5f8c31a0a9e9fc43075dcf27501e8f1cb2a51060cd6855d57fbe8efd48529c24a3e19133
7
- data.tar.gz: 7a8e074f37dca4b93db496faad9e159be06a3762f43bcc4be5847b50da901787ebbea67e25958b1c537044920971b9b0bd90b559f518f3aac096043c655caeb9
6
+ metadata.gz: e1b46c4f5e4725aa7a15b2c60af21119707c54248ed4dd819d8498614fd1465bb573bf0a6ed9d4f4be6fd5c8e3348020d5bf7b38aa10c4c5597e2b4f1fbde4c3
7
+ data.tar.gz: 3a2b9a72ceaa7359960ef1009c8243c89862d21bcb50840d93602cc2f413a64e3bbac41e9a0fb21ec8c3104dad22f07f7e5d4910998553d46ca50e7791542434
data/.rubocop.yml CHANGED
@@ -20,3 +20,7 @@ Style/ClassAndModuleChildren:
20
20
  Style/FileName:
21
21
  Exclude:
22
22
  - Appraisals
23
+
24
+ Metrics/BlockLength:
25
+ Exclude:
26
+ - 'spec/**/*'
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.4.1
data/Appraisals CHANGED
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  appraise 'rails-4.2' do
3
4
  gem 'rails', '~> 4.2'
4
5
  end
data/Gemfile CHANGED
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  source 'https://rubygems.org'
3
4
 
4
5
  # Specify your gem's dependencies in heavy_control.gemspec
data/Rakefile CHANGED
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'bundler/gem_tasks'
3
4
  require 'rspec/core/rake_task'
4
5
  require 'rubocop/rake_task'
@@ -4,4 +4,4 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "rails", "~> 4.2"
6
6
 
7
- gemspec :path => "../"
7
+ gemspec path: "../"
@@ -1,153 +1,153 @@
1
1
  PATH
2
- remote: ../
2
+ remote: ..
3
3
  specs:
4
- heavy_control (0.1.1)
4
+ heavy_control (0.1.2)
5
5
  rails (> 4)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actionmailer (4.2.7)
11
- actionpack (= 4.2.7)
12
- actionview (= 4.2.7)
13
- activejob (= 4.2.7)
10
+ actionmailer (4.2.9)
11
+ actionpack (= 4.2.9)
12
+ actionview (= 4.2.9)
13
+ activejob (= 4.2.9)
14
14
  mail (~> 2.5, >= 2.5.4)
15
15
  rails-dom-testing (~> 1.0, >= 1.0.5)
16
- actionpack (4.2.7)
17
- actionview (= 4.2.7)
18
- activesupport (= 4.2.7)
16
+ actionpack (4.2.9)
17
+ actionview (= 4.2.9)
18
+ activesupport (= 4.2.9)
19
19
  rack (~> 1.6)
20
20
  rack-test (~> 0.6.2)
21
21
  rails-dom-testing (~> 1.0, >= 1.0.5)
22
22
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
23
- actionview (4.2.7)
24
- activesupport (= 4.2.7)
23
+ actionview (4.2.9)
24
+ activesupport (= 4.2.9)
25
25
  builder (~> 3.1)
26
26
  erubis (~> 2.7.0)
27
27
  rails-dom-testing (~> 1.0, >= 1.0.5)
28
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
29
- activejob (4.2.7)
30
- activesupport (= 4.2.7)
28
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
29
+ activejob (4.2.9)
30
+ activesupport (= 4.2.9)
31
31
  globalid (>= 0.3.0)
32
- activemodel (4.2.7)
33
- activesupport (= 4.2.7)
32
+ activemodel (4.2.9)
33
+ activesupport (= 4.2.9)
34
34
  builder (~> 3.1)
35
- activerecord (4.2.7)
36
- activemodel (= 4.2.7)
37
- activesupport (= 4.2.7)
35
+ activerecord (4.2.9)
36
+ activemodel (= 4.2.9)
37
+ activesupport (= 4.2.9)
38
38
  arel (~> 6.0)
39
- activesupport (4.2.7)
39
+ activesupport (4.2.9)
40
40
  i18n (~> 0.7)
41
- json (~> 1.7, >= 1.7.7)
42
41
  minitest (~> 5.1)
43
42
  thread_safe (~> 0.3, >= 0.3.4)
44
43
  tzinfo (~> 1.1)
45
- appraisal (2.1.0)
44
+ appraisal (2.2.0)
46
45
  bundler
47
46
  rake
48
47
  thor (>= 0.14.0)
49
- arel (6.0.3)
48
+ arel (6.0.4)
50
49
  ast (2.3.0)
51
- builder (3.2.2)
52
- codeclimate-test-reporter (0.6.0)
53
- simplecov (>= 0.7.1, < 1.0.0)
50
+ builder (3.2.3)
51
+ codeclimate-test-reporter (1.0.8)
52
+ simplecov (<= 0.13)
54
53
  coderay (1.1.1)
55
- concurrent-ruby (1.0.2)
56
- diff-lcs (1.2.5)
54
+ concurrent-ruby (1.0.5)
55
+ diff-lcs (1.3)
57
56
  docile (1.1.5)
58
57
  erubis (2.7.0)
59
- globalid (0.3.7)
60
- activesupport (>= 4.1.0)
61
- i18n (0.7.0)
62
- json (1.8.3)
58
+ globalid (0.4.0)
59
+ activesupport (>= 4.2.0)
60
+ i18n (0.8.6)
61
+ json (2.1.0)
63
62
  loofah (2.0.3)
64
63
  nokogiri (>= 1.5.9)
65
- mail (2.6.4)
64
+ mail (2.6.6)
66
65
  mime-types (>= 1.16, < 4)
67
66
  method_source (0.8.2)
68
67
  mime-types (3.1)
69
68
  mime-types-data (~> 3.2015)
70
69
  mime-types-data (3.2016.0521)
71
- mini_portile2 (2.1.0)
72
- minitest (5.9.0)
73
- nokogiri (1.6.8)
74
- mini_portile2 (~> 2.1.0)
75
- pkg-config (~> 1.1.7)
76
- parser (2.3.1.2)
70
+ mini_portile2 (2.2.0)
71
+ minitest (5.10.3)
72
+ nokogiri (1.8.0)
73
+ mini_portile2 (~> 2.2.0)
74
+ parallel (1.12.0)
75
+ parser (2.4.0.0)
77
76
  ast (~> 2.2)
78
- pkg-config (1.1.7)
79
77
  powerpack (0.1.1)
80
78
  pry (0.10.4)
81
79
  coderay (~> 1.1.0)
82
80
  method_source (~> 0.8.1)
83
81
  slop (~> 3.4)
84
- rack (1.6.4)
82
+ rack (1.6.8)
85
83
  rack-test (0.6.3)
86
84
  rack (>= 1.0)
87
- rails (4.2.7)
88
- actionmailer (= 4.2.7)
89
- actionpack (= 4.2.7)
90
- actionview (= 4.2.7)
91
- activejob (= 4.2.7)
92
- activemodel (= 4.2.7)
93
- activerecord (= 4.2.7)
94
- activesupport (= 4.2.7)
85
+ rails (4.2.9)
86
+ actionmailer (= 4.2.9)
87
+ actionpack (= 4.2.9)
88
+ actionview (= 4.2.9)
89
+ activejob (= 4.2.9)
90
+ activemodel (= 4.2.9)
91
+ activerecord (= 4.2.9)
92
+ activesupport (= 4.2.9)
95
93
  bundler (>= 1.3.0, < 2.0)
96
- railties (= 4.2.7)
94
+ railties (= 4.2.9)
97
95
  sprockets-rails
98
96
  rails-deprecated_sanitizer (1.0.3)
99
97
  activesupport (>= 4.2.0.alpha)
100
- rails-dom-testing (1.0.7)
98
+ rails-dom-testing (1.0.8)
101
99
  activesupport (>= 4.2.0.beta, < 5.0)
102
- nokogiri (~> 1.6.0)
100
+ nokogiri (~> 1.6)
103
101
  rails-deprecated_sanitizer (>= 1.0.1)
104
102
  rails-html-sanitizer (1.0.3)
105
103
  loofah (~> 2.0)
106
- railties (4.2.7)
107
- actionpack (= 4.2.7)
108
- activesupport (= 4.2.7)
104
+ railties (4.2.9)
105
+ actionpack (= 4.2.9)
106
+ activesupport (= 4.2.9)
109
107
  rake (>= 0.8.7)
110
108
  thor (>= 0.18.1, < 2.0)
111
- rainbow (2.1.0)
109
+ rainbow (2.2.2)
110
+ rake
112
111
  rake (10.5.0)
113
- rspec (3.5.0)
114
- rspec-core (~> 3.5.0)
115
- rspec-expectations (~> 3.5.0)
116
- rspec-mocks (~> 3.5.0)
117
- rspec-core (3.5.2)
118
- rspec-support (~> 3.5.0)
119
- rspec-expectations (3.5.0)
112
+ rspec (3.6.0)
113
+ rspec-core (~> 3.6.0)
114
+ rspec-expectations (~> 3.6.0)
115
+ rspec-mocks (~> 3.6.0)
116
+ rspec-core (3.6.0)
117
+ rspec-support (~> 3.6.0)
118
+ rspec-expectations (3.6.0)
120
119
  diff-lcs (>= 1.2.0, < 2.0)
121
- rspec-support (~> 3.5.0)
122
- rspec-mocks (3.5.0)
120
+ rspec-support (~> 3.6.0)
121
+ rspec-mocks (3.6.0)
123
122
  diff-lcs (>= 1.2.0, < 2.0)
124
- rspec-support (~> 3.5.0)
125
- rspec-support (3.5.0)
126
- rubocop (0.42.0)
127
- parser (>= 2.3.1.1, < 3.0)
123
+ rspec-support (~> 3.6.0)
124
+ rspec-support (3.6.0)
125
+ rubocop (0.49.1)
126
+ parallel (~> 1.10)
127
+ parser (>= 2.3.3.1, < 3.0)
128
128
  powerpack (~> 0.1)
129
129
  rainbow (>= 1.99.1, < 3.0)
130
130
  ruby-progressbar (~> 1.7)
131
131
  unicode-display_width (~> 1.0, >= 1.0.1)
132
132
  ruby-progressbar (1.8.1)
133
- simplecov (0.12.0)
133
+ simplecov (0.13.0)
134
134
  docile (~> 1.1.0)
135
135
  json (>= 1.8, < 3)
136
136
  simplecov-html (~> 0.10.0)
137
- simplecov-html (0.10.0)
137
+ simplecov-html (0.10.1)
138
138
  slop (3.6.0)
139
- sprockets (3.7.0)
139
+ sprockets (3.7.1)
140
140
  concurrent-ruby (~> 1.0)
141
141
  rack (> 1, < 3)
142
- sprockets-rails (3.1.1)
142
+ sprockets-rails (3.2.0)
143
143
  actionpack (>= 4.0)
144
144
  activesupport (>= 4.0)
145
145
  sprockets (>= 3.0.0)
146
- thor (0.19.1)
147
- thread_safe (0.3.5)
148
- tzinfo (1.2.2)
146
+ thor (0.19.4)
147
+ thread_safe (0.3.6)
148
+ tzinfo (1.2.3)
149
149
  thread_safe (~> 0.1)
150
- unicode-display_width (1.1.0)
150
+ unicode-display_width (1.3.0)
151
151
 
152
152
  PLATFORMS
153
153
  ruby
@@ -162,6 +162,7 @@ DEPENDENCIES
162
162
  rake (~> 10.0)
163
163
  rspec (~> 3.0)
164
164
  rubocop
165
+ simplecov
165
166
 
166
167
  BUNDLED WITH
167
- 1.12.5
168
+ 1.15.3
@@ -4,4 +4,4 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "rails", "~> 5.0"
6
6
 
7
- gemspec :path => "../"
7
+ gemspec path: "../"
@@ -1,156 +1,157 @@
1
1
  PATH
2
- remote: ../
2
+ remote: ..
3
3
  specs:
4
- heavy_control (0.1.1)
4
+ heavy_control (0.1.2)
5
5
  rails (> 4)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actioncable (5.0.0)
11
- actionpack (= 5.0.0)
12
- nio4r (~> 1.2)
10
+ actioncable (5.1.2)
11
+ actionpack (= 5.1.2)
12
+ nio4r (~> 2.0)
13
13
  websocket-driver (~> 0.6.1)
14
- actionmailer (5.0.0)
15
- actionpack (= 5.0.0)
16
- actionview (= 5.0.0)
17
- activejob (= 5.0.0)
14
+ actionmailer (5.1.2)
15
+ actionpack (= 5.1.2)
16
+ actionview (= 5.1.2)
17
+ activejob (= 5.1.2)
18
18
  mail (~> 2.5, >= 2.5.4)
19
19
  rails-dom-testing (~> 2.0)
20
- actionpack (5.0.0)
21
- actionview (= 5.0.0)
22
- activesupport (= 5.0.0)
20
+ actionpack (5.1.2)
21
+ actionview (= 5.1.2)
22
+ activesupport (= 5.1.2)
23
23
  rack (~> 2.0)
24
24
  rack-test (~> 0.6.3)
25
25
  rails-dom-testing (~> 2.0)
26
26
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
27
- actionview (5.0.0)
28
- activesupport (= 5.0.0)
27
+ actionview (5.1.2)
28
+ activesupport (= 5.1.2)
29
29
  builder (~> 3.1)
30
- erubis (~> 2.7.0)
30
+ erubi (~> 1.4)
31
31
  rails-dom-testing (~> 2.0)
32
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
33
- activejob (5.0.0)
34
- activesupport (= 5.0.0)
32
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
33
+ activejob (5.1.2)
34
+ activesupport (= 5.1.2)
35
35
  globalid (>= 0.3.6)
36
- activemodel (5.0.0)
37
- activesupport (= 5.0.0)
38
- activerecord (5.0.0)
39
- activemodel (= 5.0.0)
40
- activesupport (= 5.0.0)
41
- arel (~> 7.0)
42
- activesupport (5.0.0)
36
+ activemodel (5.1.2)
37
+ activesupport (= 5.1.2)
38
+ activerecord (5.1.2)
39
+ activemodel (= 5.1.2)
40
+ activesupport (= 5.1.2)
41
+ arel (~> 8.0)
42
+ activesupport (5.1.2)
43
43
  concurrent-ruby (~> 1.0, >= 1.0.2)
44
44
  i18n (~> 0.7)
45
45
  minitest (~> 5.1)
46
46
  tzinfo (~> 1.1)
47
- appraisal (2.1.0)
47
+ appraisal (2.2.0)
48
48
  bundler
49
49
  rake
50
50
  thor (>= 0.14.0)
51
- arel (7.1.1)
51
+ arel (8.0.0)
52
52
  ast (2.3.0)
53
- builder (3.2.2)
54
- codeclimate-test-reporter (0.6.0)
55
- simplecov (>= 0.7.1, < 1.0.0)
53
+ builder (3.2.3)
54
+ codeclimate-test-reporter (1.0.8)
55
+ simplecov (<= 0.13)
56
56
  coderay (1.1.1)
57
- concurrent-ruby (1.0.2)
58
- diff-lcs (1.2.5)
57
+ concurrent-ruby (1.0.5)
58
+ diff-lcs (1.3)
59
59
  docile (1.1.5)
60
- erubis (2.7.0)
61
- globalid (0.3.7)
62
- activesupport (>= 4.1.0)
63
- i18n (0.7.0)
64
- json (2.0.2)
60
+ erubi (1.6.1)
61
+ globalid (0.4.0)
62
+ activesupport (>= 4.2.0)
63
+ i18n (0.8.6)
64
+ json (2.1.0)
65
65
  loofah (2.0.3)
66
66
  nokogiri (>= 1.5.9)
67
- mail (2.6.4)
67
+ mail (2.6.6)
68
68
  mime-types (>= 1.16, < 4)
69
69
  method_source (0.8.2)
70
70
  mime-types (3.1)
71
71
  mime-types-data (~> 3.2015)
72
72
  mime-types-data (3.2016.0521)
73
- mini_portile2 (2.1.0)
74
- minitest (5.9.0)
75
- nio4r (1.2.1)
76
- nokogiri (1.6.8)
77
- mini_portile2 (~> 2.1.0)
78
- pkg-config (~> 1.1.7)
79
- parser (2.3.1.2)
73
+ mini_portile2 (2.2.0)
74
+ minitest (5.10.3)
75
+ nio4r (2.1.0)
76
+ nokogiri (1.8.0)
77
+ mini_portile2 (~> 2.2.0)
78
+ parallel (1.12.0)
79
+ parser (2.4.0.0)
80
80
  ast (~> 2.2)
81
- pkg-config (1.1.7)
82
81
  powerpack (0.1.1)
83
82
  pry (0.10.4)
84
83
  coderay (~> 1.1.0)
85
84
  method_source (~> 0.8.1)
86
85
  slop (~> 3.4)
87
- rack (2.0.1)
86
+ rack (2.0.3)
88
87
  rack-test (0.6.3)
89
88
  rack (>= 1.0)
90
- rails (5.0.0)
91
- actioncable (= 5.0.0)
92
- actionmailer (= 5.0.0)
93
- actionpack (= 5.0.0)
94
- actionview (= 5.0.0)
95
- activejob (= 5.0.0)
96
- activemodel (= 5.0.0)
97
- activerecord (= 5.0.0)
98
- activesupport (= 5.0.0)
89
+ rails (5.1.2)
90
+ actioncable (= 5.1.2)
91
+ actionmailer (= 5.1.2)
92
+ actionpack (= 5.1.2)
93
+ actionview (= 5.1.2)
94
+ activejob (= 5.1.2)
95
+ activemodel (= 5.1.2)
96
+ activerecord (= 5.1.2)
97
+ activesupport (= 5.1.2)
99
98
  bundler (>= 1.3.0, < 2.0)
100
- railties (= 5.0.0)
99
+ railties (= 5.1.2)
101
100
  sprockets-rails (>= 2.0.0)
102
- rails-dom-testing (2.0.1)
103
- activesupport (>= 4.2.0, < 6.0)
104
- nokogiri (~> 1.6.0)
101
+ rails-dom-testing (2.0.3)
102
+ activesupport (>= 4.2.0)
103
+ nokogiri (>= 1.6)
105
104
  rails-html-sanitizer (1.0.3)
106
105
  loofah (~> 2.0)
107
- railties (5.0.0)
108
- actionpack (= 5.0.0)
109
- activesupport (= 5.0.0)
106
+ railties (5.1.2)
107
+ actionpack (= 5.1.2)
108
+ activesupport (= 5.1.2)
110
109
  method_source
111
110
  rake (>= 0.8.7)
112
111
  thor (>= 0.18.1, < 2.0)
113
- rainbow (2.1.0)
112
+ rainbow (2.2.2)
113
+ rake
114
114
  rake (10.5.0)
115
- rspec (3.5.0)
116
- rspec-core (~> 3.5.0)
117
- rspec-expectations (~> 3.5.0)
118
- rspec-mocks (~> 3.5.0)
119
- rspec-core (3.5.2)
120
- rspec-support (~> 3.5.0)
121
- rspec-expectations (3.5.0)
115
+ rspec (3.6.0)
116
+ rspec-core (~> 3.6.0)
117
+ rspec-expectations (~> 3.6.0)
118
+ rspec-mocks (~> 3.6.0)
119
+ rspec-core (3.6.0)
120
+ rspec-support (~> 3.6.0)
121
+ rspec-expectations (3.6.0)
122
122
  diff-lcs (>= 1.2.0, < 2.0)
123
- rspec-support (~> 3.5.0)
124
- rspec-mocks (3.5.0)
123
+ rspec-support (~> 3.6.0)
124
+ rspec-mocks (3.6.0)
125
125
  diff-lcs (>= 1.2.0, < 2.0)
126
- rspec-support (~> 3.5.0)
127
- rspec-support (3.5.0)
128
- rubocop (0.42.0)
129
- parser (>= 2.3.1.1, < 3.0)
126
+ rspec-support (~> 3.6.0)
127
+ rspec-support (3.6.0)
128
+ rubocop (0.49.1)
129
+ parallel (~> 1.10)
130
+ parser (>= 2.3.3.1, < 3.0)
130
131
  powerpack (~> 0.1)
131
132
  rainbow (>= 1.99.1, < 3.0)
132
133
  ruby-progressbar (~> 1.7)
133
134
  unicode-display_width (~> 1.0, >= 1.0.1)
134
135
  ruby-progressbar (1.8.1)
135
- simplecov (0.12.0)
136
+ simplecov (0.13.0)
136
137
  docile (~> 1.1.0)
137
138
  json (>= 1.8, < 3)
138
139
  simplecov-html (~> 0.10.0)
139
- simplecov-html (0.10.0)
140
+ simplecov-html (0.10.1)
140
141
  slop (3.6.0)
141
- sprockets (3.7.0)
142
+ sprockets (3.7.1)
142
143
  concurrent-ruby (~> 1.0)
143
144
  rack (> 1, < 3)
144
- sprockets-rails (3.1.1)
145
+ sprockets-rails (3.2.0)
145
146
  actionpack (>= 4.0)
146
147
  activesupport (>= 4.0)
147
148
  sprockets (>= 3.0.0)
148
- thor (0.19.1)
149
- thread_safe (0.3.5)
150
- tzinfo (1.2.2)
149
+ thor (0.19.4)
150
+ thread_safe (0.3.6)
151
+ tzinfo (1.2.3)
151
152
  thread_safe (~> 0.1)
152
- unicode-display_width (1.1.0)
153
- websocket-driver (0.6.4)
153
+ unicode-display_width (1.3.0)
154
+ websocket-driver (0.6.5)
154
155
  websocket-extensions (>= 0.1.0)
155
156
  websocket-extensions (0.1.2)
156
157
 
@@ -167,6 +168,7 @@ DEPENDENCIES
167
168
  rake (~> 10.0)
168
169
  rspec (~> 3.0)
169
170
  rubocop
171
+ simplecov
170
172
 
171
173
  BUNDLED WITH
172
- 1.12.5
174
+ 1.15.3
@@ -1,5 +1,6 @@
1
1
  # coding: utf-8
2
2
  # frozen_string_literal: true
3
+
3
4
  lib = File.expand_path('../lib', __FILE__)
4
5
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
6
  require 'heavy_control/version'
@@ -33,5 +34,6 @@ Gem::Specification.new do |spec|
33
34
  spec.add_development_dependency 'pry'
34
35
  spec.add_development_dependency 'rubocop'
35
36
  spec.add_development_dependency 'appraisal'
37
+ spec.add_development_dependency 'simplecov'
36
38
  spec.add_development_dependency 'codeclimate-test-reporter'
37
39
  end
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module HeavyControl
3
4
  module Configurable
4
5
  def config(&block)
@@ -1,11 +1,12 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module HeavyControl
3
4
  module ExplicitLoader
4
5
  class << self
5
6
  def apply
6
7
  load_consts # explicit loading for production
7
8
 
8
- ActionDispatch::Reloader.to_prepare do # handle reloading in dev mode
9
+ reloader_class.to_prepare do # handle reloading in dev mode
9
10
  HeavyControl::ExplicitLoader.load_consts
10
11
  end
11
12
  end
@@ -13,6 +14,15 @@ module HeavyControl
13
14
  def load_consts
14
15
  HeavyControl.config[:always_load].each(&:constantize)
15
16
  end
17
+
18
+ private
19
+
20
+ def reloader_class
21
+ case Rails::VERSION::MAJOR
22
+ when 5 then ActiveSupport::Reloader
23
+ when 4 then ActionDispatch::Reloader
24
+ end
25
+ end
16
26
  end
17
27
  end
18
28
  end
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module HeavyControl
3
4
  module Extensions
4
5
  module IgnoreSubfolders
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module HeavyControl
3
4
  module Extensions
4
5
  module Logging
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require_relative 'extensions/logging'
3
4
  require_relative 'extensions/ignore_subfolders'
4
5
 
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'rails'
3
4
 
4
5
  require 'heavy_control/extensions'
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module HeavyControl
3
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
4
5
  end
data/lib/heavy_control.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'heavy_control/version'
3
4
  require 'heavy_control/railtie'
4
5
  require 'heavy_control/configurable'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heavy_control
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Kolesnev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-04 00:00:00.000000000 Z
11
+ date: 2017-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: simplecov
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: codeclimate-test-reporter
113
127
  requirement: !ruby/object:Gem::Requirement
@@ -129,10 +143,10 @@ executables: []
129
143
  extensions: []
130
144
  extra_rdoc_files: []
131
145
  files:
132
- - ".codeclimate.yml"
133
146
  - ".gitignore"
134
147
  - ".rspec"
135
148
  - ".rubocop.yml"
149
+ - ".ruby-version"
136
150
  - ".travis.yml"
137
151
  - Appraisals
138
152
  - Gemfile
@@ -175,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
189
  version: '0'
176
190
  requirements: []
177
191
  rubyforge_project:
178
- rubygems_version: 2.5.1
192
+ rubygems_version: 2.6.11
179
193
  signing_key:
180
194
  specification_version: 4
181
195
  summary: Take rails constants' loading under control
data/.codeclimate.yml DELETED
@@ -1,6 +0,0 @@
1
- engines:
2
- duplication:
3
- enabled: true
4
- config:
5
- languages:
6
- - ruby