high_voltage 2.2.0 → 2.2.1

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: 7f93b914b6966f7141851a562ce82ffe1e218e01
4
- data.tar.gz: d6456e304488fec82214e584d9dbd8f261151d69
3
+ metadata.gz: b872bfede94dc9cf0c80856bd435edd5c8014f65
4
+ data.tar.gz: 742e628313897b06f7579d4c3098c2eab2717440
5
5
  SHA512:
6
- metadata.gz: eabead4dde04710b58c97047ca3d0b18af4694696b0e800af9ad0618d08d37c358071999f2fb4a56455857c501d1204a1df73c91c85f58e1fe4d9c71a915d93d
7
- data.tar.gz: 8a0b9a4dabe052d01a1b2f4edc91cc7bd15a36eff75ab49d7db3e4c18fe9509203edc214fc2a5d2767022cdfac32c384b94af8023583a5e39944fd94830be8ba
6
+ metadata.gz: 181f409611c5c3e699f29d27416b55f5633fc1d1d9af772b5bbc2d8fc17a70fe1308c207698aba65aafc23d91ba515a599a7e95591a8ee4855a856db44374edc
7
+ data.tar.gz: 8197ebd00469a8e6d1e77b58b26bfa02f2bfa5a32fdffaa13cd441e06448c26fdcb3ca39d3799da7b85be07aa94f454fee0fb6108678385527c464b7a8380e36
data/.gitignore CHANGED
@@ -5,5 +5,4 @@ spec/dummy/db/*.sqlite3
5
5
  spec/dummy/log/*.log
6
6
  spec/dummy/tmp/
7
7
  *.swp
8
- gemfiles/
9
8
  *.gem
@@ -1,8 +1,24 @@
1
- language:
2
- - ruby
1
+ gemfile:
2
+ - gemfiles/rails3.1.gemfile
3
+ - gemfiles/rails3.2.gemfile
4
+ - gemfiles/rails4.0.gemfile
5
+ - gemfiles/rails4.1.gemfile
3
6
  install:
4
7
  - 'travis_retry bundle install'
8
+ language:
9
+ - ruby
10
+ matrix:
11
+ exclude:
12
+ - rvm: 1.9.3
13
+ gemfile: gemfiles/rails4.0.gemfile
14
+ - rvm: 1.9.3
15
+ gemfile: gemfiles/rails4.1.gemfile
16
+ - rvm: 2.0.0
17
+ gemfile: gemfiles/rails3.1.gemfile
18
+ - rvm: 2.1.2
19
+ gemfile: gemfiles/rails3.1.gemfile
5
20
  rvm:
6
21
  - 1.9.3
7
22
  - 2.0.0
8
23
  - 2.1.2
24
+ script: 'bundle exec rake spec'
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
1
  source "http://rubygems.org"
2
2
 
3
+ gem 'appraisal'
4
+
3
5
  gemspec
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- high_voltage (2.2.0)
4
+ high_voltage (2.2.1)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
data/NEWS.md CHANGED
@@ -1,3 +1,6 @@
1
+ New for 2.2.1:
2
+ + Resolve issue with require statements for Rails 3.x projects
3
+
1
4
  New for 2.2.0:
2
5
  + Deprecate caching because page and action caching was removed in Rails 4
3
6
  + Refactor test suite to use rspec `expect` syntax consistently.
data/README.md CHANGED
@@ -15,7 +15,7 @@ Yeah, like "About us", "Directions", marketing pages, etc.
15
15
  Include in your Gemfile:
16
16
 
17
17
  ```ruby
18
- gem 'high_voltage', '~> 2.2.0'
18
+ gem 'high_voltage', '~> 2.2.1'
19
19
  ```
20
20
 
21
21
  For Rails versions prior to 3.0, use the 0.9.2 tag of high_voltage:
data/Rakefile CHANGED
@@ -11,9 +11,14 @@ require 'appraisal'
11
11
  RSpec::Core::RakeTask.new(:spec)
12
12
 
13
13
  desc 'Default'
14
- task :default => [:all]
14
+ task :default do
15
+ if ENV['BUNDLE_GEMFILE'] =~ /gemfiles/
16
+ Rake::Task['spec'].invoke
17
+ else
18
+ Rake::Task['appraise'].invoke
19
+ end
20
+ end
15
21
 
16
- desc 'Test the engine under all supported Rails versions'
17
- task all: ['appraisal:install'] do |t|
18
- exec 'rake appraisal spec'
22
+ task :appraise do
23
+ exec 'appraisal install && appraisal rake'
19
24
  end
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "rails", "~> 3.1.12"
7
+
8
+ gemspec :path => "../"
@@ -0,0 +1,121 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ high_voltage (2.2.0)
5
+
6
+ GEM
7
+ remote: http://rubygems.org/
8
+ specs:
9
+ actionmailer (3.1.12)
10
+ actionpack (= 3.1.12)
11
+ mail (~> 2.4.4)
12
+ actionpack (3.1.12)
13
+ activemodel (= 3.1.12)
14
+ activesupport (= 3.1.12)
15
+ builder (~> 3.0.0)
16
+ erubis (~> 2.7.0)
17
+ i18n (~> 0.6)
18
+ rack (~> 1.3.6)
19
+ rack-cache (~> 1.2)
20
+ rack-mount (~> 0.8.2)
21
+ rack-test (~> 0.6.1)
22
+ sprockets (~> 2.0.4)
23
+ activemodel (3.1.12)
24
+ activesupport (= 3.1.12)
25
+ builder (~> 3.0.0)
26
+ i18n (~> 0.6)
27
+ activerecord (3.1.12)
28
+ activemodel (= 3.1.12)
29
+ activesupport (= 3.1.12)
30
+ arel (~> 2.2.3)
31
+ tzinfo (~> 0.3.29)
32
+ activeresource (3.1.12)
33
+ activemodel (= 3.1.12)
34
+ activesupport (= 3.1.12)
35
+ activesupport (3.1.12)
36
+ multi_json (~> 1.0)
37
+ appraisal (1.0.0)
38
+ bundler
39
+ rake
40
+ thor (>= 0.14.0)
41
+ arel (2.2.3)
42
+ builder (3.0.4)
43
+ coderay (1.1.0)
44
+ diff-lcs (1.2.5)
45
+ erubis (2.7.0)
46
+ hike (1.2.3)
47
+ i18n (0.6.9)
48
+ json (1.8.1)
49
+ mail (2.4.4)
50
+ i18n (>= 0.4.0)
51
+ mime-types (~> 1.16)
52
+ treetop (~> 1.4.8)
53
+ method_source (0.8.2)
54
+ mime-types (1.25.1)
55
+ multi_json (1.9.0)
56
+ polyglot (0.3.4)
57
+ pry (0.9.12.6)
58
+ coderay (~> 1.0)
59
+ method_source (~> 0.8)
60
+ slop (~> 3.4)
61
+ rack (1.3.10)
62
+ rack-cache (1.2)
63
+ rack (>= 0.4)
64
+ rack-mount (0.8.3)
65
+ rack (>= 1.0.0)
66
+ rack-ssl (1.3.3)
67
+ rack
68
+ rack-test (0.6.2)
69
+ rack (>= 1.0)
70
+ rails (3.1.12)
71
+ actionmailer (= 3.1.12)
72
+ actionpack (= 3.1.12)
73
+ activerecord (= 3.1.12)
74
+ activeresource (= 3.1.12)
75
+ activesupport (= 3.1.12)
76
+ bundler (~> 1.0)
77
+ railties (= 3.1.12)
78
+ railties (3.1.12)
79
+ actionpack (= 3.1.12)
80
+ activesupport (= 3.1.12)
81
+ rack-ssl (~> 1.3.2)
82
+ rake (>= 0.8.7)
83
+ rdoc (~> 3.4)
84
+ thor (~> 0.14.6)
85
+ rake (10.3.2)
86
+ rdoc (3.12.2)
87
+ json (~> 1.4)
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
+ slop (3.5.0)
101
+ sprockets (2.0.4)
102
+ hike (~> 1.2)
103
+ rack (~> 1.0)
104
+ tilt (~> 1.1, != 1.3.0)
105
+ thor (0.14.6)
106
+ tilt (1.4.1)
107
+ treetop (1.4.15)
108
+ polyglot
109
+ polyglot (>= 0.3.1)
110
+ tzinfo (0.3.39)
111
+
112
+ PLATFORMS
113
+ ruby
114
+
115
+ DEPENDENCIES
116
+ activesupport (>= 3.1.0)
117
+ appraisal
118
+ high_voltage!
119
+ pry
120
+ rails (~> 3.1.12)
121
+ rspec-rails
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "rails", "~> 3.2.13"
7
+
8
+ gemspec :path => "../"
@@ -0,0 +1,119 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ high_voltage (2.2.0)
5
+
6
+ GEM
7
+ remote: http://rubygems.org/
8
+ specs:
9
+ actionmailer (3.2.16)
10
+ actionpack (= 3.2.16)
11
+ mail (~> 2.5.4)
12
+ actionpack (3.2.16)
13
+ activemodel (= 3.2.16)
14
+ activesupport (= 3.2.16)
15
+ builder (~> 3.0.0)
16
+ erubis (~> 2.7.0)
17
+ journey (~> 1.0.4)
18
+ rack (~> 1.4.5)
19
+ rack-cache (~> 1.2)
20
+ rack-test (~> 0.6.1)
21
+ sprockets (~> 2.2.1)
22
+ activemodel (3.2.16)
23
+ activesupport (= 3.2.16)
24
+ builder (~> 3.0.0)
25
+ activerecord (3.2.16)
26
+ activemodel (= 3.2.16)
27
+ activesupport (= 3.2.16)
28
+ arel (~> 3.0.2)
29
+ tzinfo (~> 0.3.29)
30
+ activeresource (3.2.16)
31
+ activemodel (= 3.2.16)
32
+ activesupport (= 3.2.16)
33
+ activesupport (3.2.16)
34
+ i18n (~> 0.6, >= 0.6.4)
35
+ multi_json (~> 1.0)
36
+ appraisal (1.0.0)
37
+ bundler
38
+ rake
39
+ thor (>= 0.14.0)
40
+ arel (3.0.3)
41
+ builder (3.0.4)
42
+ coderay (1.1.0)
43
+ diff-lcs (1.2.5)
44
+ erubis (2.7.0)
45
+ hike (1.2.3)
46
+ i18n (0.6.11)
47
+ journey (1.0.4)
48
+ json (1.8.1)
49
+ mail (2.5.4)
50
+ mime-types (~> 1.16)
51
+ treetop (~> 1.4.8)
52
+ method_source (0.8.2)
53
+ mime-types (1.25.1)
54
+ multi_json (1.10.1)
55
+ polyglot (0.3.5)
56
+ pry (0.10.0)
57
+ coderay (~> 1.1.0)
58
+ method_source (~> 0.8.1)
59
+ slop (~> 3.4)
60
+ rack (1.4.5)
61
+ rack-cache (1.2)
62
+ rack (>= 0.4)
63
+ rack-ssl (1.3.3)
64
+ rack
65
+ rack-test (0.6.2)
66
+ rack (>= 1.0)
67
+ rails (3.2.16)
68
+ actionmailer (= 3.2.16)
69
+ actionpack (= 3.2.16)
70
+ activerecord (= 3.2.16)
71
+ activeresource (= 3.2.16)
72
+ activesupport (= 3.2.16)
73
+ bundler (~> 1.0)
74
+ railties (= 3.2.16)
75
+ railties (3.2.16)
76
+ actionpack (= 3.2.16)
77
+ activesupport (= 3.2.16)
78
+ rack-ssl (~> 1.3.2)
79
+ rake (>= 0.8.7)
80
+ rdoc (~> 3.4)
81
+ thor (>= 0.14.6, < 2.0)
82
+ rake (10.3.2)
83
+ rdoc (3.12.2)
84
+ json (~> 1.4)
85
+ rspec-core (2.14.8)
86
+ rspec-expectations (2.14.5)
87
+ diff-lcs (>= 1.1.3, < 2.0)
88
+ rspec-mocks (2.14.6)
89
+ rspec-rails (2.14.2)
90
+ actionpack (>= 3.0)
91
+ activemodel (>= 3.0)
92
+ activesupport (>= 3.0)
93
+ railties (>= 3.0)
94
+ rspec-core (~> 2.14.0)
95
+ rspec-expectations (~> 2.14.0)
96
+ rspec-mocks (~> 2.14.0)
97
+ slop (3.5.0)
98
+ sprockets (2.2.2)
99
+ hike (~> 1.2)
100
+ multi_json (~> 1.0)
101
+ rack (~> 1.0)
102
+ tilt (~> 1.1, != 1.3.0)
103
+ thor (0.19.1)
104
+ tilt (1.4.1)
105
+ treetop (1.4.15)
106
+ polyglot
107
+ polyglot (>= 0.3.1)
108
+ tzinfo (0.3.39)
109
+
110
+ PLATFORMS
111
+ ruby
112
+
113
+ DEPENDENCIES
114
+ activesupport (>= 3.1.0)
115
+ appraisal
116
+ high_voltage!
117
+ pry
118
+ rails (~> 3.2.13)
119
+ rspec-rails
@@ -0,0 +1,10 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "rails", "~> 4.0.0"
7
+ gem "actionpack-action_caching"
8
+ gem "actionpack-page_caching"
9
+
10
+ gemspec :path => "../"
@@ -0,0 +1,118 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ high_voltage (2.2.0)
5
+
6
+ GEM
7
+ remote: http://rubygems.org/
8
+ specs:
9
+ actionmailer (4.0.5)
10
+ actionpack (= 4.0.5)
11
+ mail (~> 2.5.4)
12
+ actionpack (4.0.5)
13
+ activesupport (= 4.0.5)
14
+ builder (~> 3.1.0)
15
+ erubis (~> 2.7.0)
16
+ rack (~> 1.5.2)
17
+ rack-test (~> 0.6.2)
18
+ actionpack-action_caching (1.1.1)
19
+ actionpack (>= 4.0.0, < 5.0)
20
+ actionpack-page_caching (1.0.2)
21
+ actionpack (>= 4.0.0, < 5)
22
+ activemodel (4.0.5)
23
+ activesupport (= 4.0.5)
24
+ builder (~> 3.1.0)
25
+ activerecord (4.0.5)
26
+ activemodel (= 4.0.5)
27
+ activerecord-deprecated_finders (~> 1.0.2)
28
+ activesupport (= 4.0.5)
29
+ arel (~> 4.0.0)
30
+ activerecord-deprecated_finders (1.0.3)
31
+ activesupport (4.0.5)
32
+ i18n (~> 0.6, >= 0.6.9)
33
+ minitest (~> 4.2)
34
+ multi_json (~> 1.3)
35
+ thread_safe (~> 0.1)
36
+ tzinfo (~> 0.3.37)
37
+ appraisal (1.0.0)
38
+ bundler
39
+ rake
40
+ thor (>= 0.14.0)
41
+ arel (4.0.2)
42
+ builder (3.1.4)
43
+ coderay (1.1.0)
44
+ diff-lcs (1.2.5)
45
+ erubis (2.7.0)
46
+ hike (1.2.3)
47
+ i18n (0.6.11)
48
+ mail (2.5.4)
49
+ mime-types (~> 1.16)
50
+ treetop (~> 1.4.8)
51
+ method_source (0.8.2)
52
+ mime-types (1.25.1)
53
+ minitest (4.7.5)
54
+ multi_json (1.10.1)
55
+ polyglot (0.3.5)
56
+ pry (0.10.0)
57
+ coderay (~> 1.1.0)
58
+ method_source (~> 0.8.1)
59
+ slop (~> 3.4)
60
+ rack (1.5.2)
61
+ rack-test (0.6.2)
62
+ rack (>= 1.0)
63
+ rails (4.0.5)
64
+ actionmailer (= 4.0.5)
65
+ actionpack (= 4.0.5)
66
+ activerecord (= 4.0.5)
67
+ activesupport (= 4.0.5)
68
+ bundler (>= 1.3.0, < 2.0)
69
+ railties (= 4.0.5)
70
+ sprockets-rails (~> 2.0.0)
71
+ railties (4.0.5)
72
+ actionpack (= 4.0.5)
73
+ activesupport (= 4.0.5)
74
+ rake (>= 0.8.7)
75
+ thor (>= 0.18.1, < 2.0)
76
+ rake (10.3.2)
77
+ rspec-core (2.14.8)
78
+ rspec-expectations (2.14.5)
79
+ diff-lcs (>= 1.1.3, < 2.0)
80
+ rspec-mocks (2.14.6)
81
+ rspec-rails (2.14.2)
82
+ actionpack (>= 3.0)
83
+ activemodel (>= 3.0)
84
+ activesupport (>= 3.0)
85
+ railties (>= 3.0)
86
+ rspec-core (~> 2.14.0)
87
+ rspec-expectations (~> 2.14.0)
88
+ rspec-mocks (~> 2.14.0)
89
+ slop (3.5.0)
90
+ sprockets (2.12.0)
91
+ hike (~> 1.2)
92
+ multi_json (~> 1.0)
93
+ rack (~> 1.0)
94
+ tilt (~> 1.1, != 1.3.0)
95
+ sprockets-rails (2.0.1)
96
+ actionpack (>= 3.0)
97
+ activesupport (>= 3.0)
98
+ sprockets (~> 2.8)
99
+ thor (0.19.1)
100
+ thread_safe (0.3.4)
101
+ tilt (1.4.1)
102
+ treetop (1.4.15)
103
+ polyglot
104
+ polyglot (>= 0.3.1)
105
+ tzinfo (0.3.39)
106
+
107
+ PLATFORMS
108
+ ruby
109
+
110
+ DEPENDENCIES
111
+ actionpack-action_caching
112
+ actionpack-page_caching
113
+ activesupport (>= 3.1.0)
114
+ appraisal
115
+ high_voltage!
116
+ pry
117
+ rails (~> 4.0.0)
118
+ rspec-rails
@@ -0,0 +1,10 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "rails", "~> 4.1.0"
7
+ gem "actionpack-action_caching"
8
+ gem "actionpack-page_caching"
9
+
10
+ gemspec :path => "../"
@@ -0,0 +1,124 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ high_voltage (2.2.0)
5
+
6
+ GEM
7
+ remote: http://rubygems.org/
8
+ specs:
9
+ actionmailer (4.1.4)
10
+ actionpack (= 4.1.4)
11
+ actionview (= 4.1.4)
12
+ mail (~> 2.5.4)
13
+ actionpack (4.1.4)
14
+ actionview (= 4.1.4)
15
+ activesupport (= 4.1.4)
16
+ rack (~> 1.5.2)
17
+ rack-test (~> 0.6.2)
18
+ actionpack-action_caching (1.1.1)
19
+ actionpack (>= 4.0.0, < 5.0)
20
+ actionpack-page_caching (1.0.2)
21
+ actionpack (>= 4.0.0, < 5)
22
+ actionview (4.1.4)
23
+ activesupport (= 4.1.4)
24
+ builder (~> 3.1)
25
+ erubis (~> 2.7.0)
26
+ activemodel (4.1.4)
27
+ activesupport (= 4.1.4)
28
+ builder (~> 3.1)
29
+ activerecord (4.1.4)
30
+ activemodel (= 4.1.4)
31
+ activesupport (= 4.1.4)
32
+ arel (~> 5.0.0)
33
+ activesupport (4.1.4)
34
+ i18n (~> 0.6, >= 0.6.9)
35
+ json (~> 1.7, >= 1.7.7)
36
+ minitest (~> 5.1)
37
+ thread_safe (~> 0.1)
38
+ tzinfo (~> 1.1)
39
+ appraisal (1.0.0)
40
+ bundler
41
+ rake
42
+ thor (>= 0.14.0)
43
+ arel (5.0.1.20140414130214)
44
+ builder (3.2.2)
45
+ coderay (1.1.0)
46
+ diff-lcs (1.2.5)
47
+ erubis (2.7.0)
48
+ hike (1.2.3)
49
+ i18n (0.6.11)
50
+ json (1.8.1)
51
+ mail (2.5.4)
52
+ mime-types (~> 1.16)
53
+ treetop (~> 1.4.8)
54
+ method_source (0.8.2)
55
+ mime-types (1.25.1)
56
+ minitest (5.4.0)
57
+ multi_json (1.10.1)
58
+ polyglot (0.3.5)
59
+ pry (0.10.0)
60
+ coderay (~> 1.1.0)
61
+ method_source (~> 0.8.1)
62
+ slop (~> 3.4)
63
+ rack (1.5.2)
64
+ rack-test (0.6.2)
65
+ rack (>= 1.0)
66
+ rails (4.1.4)
67
+ actionmailer (= 4.1.4)
68
+ actionpack (= 4.1.4)
69
+ actionview (= 4.1.4)
70
+ activemodel (= 4.1.4)
71
+ activerecord (= 4.1.4)
72
+ activesupport (= 4.1.4)
73
+ bundler (>= 1.3.0, < 2.0)
74
+ railties (= 4.1.4)
75
+ sprockets-rails (~> 2.0)
76
+ railties (4.1.4)
77
+ actionpack (= 4.1.4)
78
+ activesupport (= 4.1.4)
79
+ rake (>= 0.8.7)
80
+ thor (>= 0.18.1, < 2.0)
81
+ rake (10.3.2)
82
+ rspec-core (2.14.8)
83
+ rspec-expectations (2.14.5)
84
+ diff-lcs (>= 1.1.3, < 2.0)
85
+ rspec-mocks (2.14.6)
86
+ rspec-rails (2.14.2)
87
+ actionpack (>= 3.0)
88
+ activemodel (>= 3.0)
89
+ activesupport (>= 3.0)
90
+ railties (>= 3.0)
91
+ rspec-core (~> 2.14.0)
92
+ rspec-expectations (~> 2.14.0)
93
+ rspec-mocks (~> 2.14.0)
94
+ slop (3.5.0)
95
+ sprockets (2.12.0)
96
+ hike (~> 1.2)
97
+ multi_json (~> 1.0)
98
+ rack (~> 1.0)
99
+ tilt (~> 1.1, != 1.3.0)
100
+ sprockets-rails (2.1.3)
101
+ actionpack (>= 3.0)
102
+ activesupport (>= 3.0)
103
+ sprockets (~> 2.8)
104
+ thor (0.19.1)
105
+ thread_safe (0.3.4)
106
+ tilt (1.4.1)
107
+ treetop (1.4.15)
108
+ polyglot
109
+ polyglot (>= 0.3.1)
110
+ tzinfo (1.2.1)
111
+ thread_safe (~> 0.1)
112
+
113
+ PLATFORMS
114
+ ruby
115
+
116
+ DEPENDENCIES
117
+ actionpack-action_caching
118
+ actionpack-page_caching
119
+ activesupport (>= 3.1.0)
120
+ appraisal
121
+ high_voltage!
122
+ pry
123
+ rails (~> 4.1.0)
124
+ rspec-rails
@@ -17,7 +17,6 @@ Gem::Specification.new do |s|
17
17
  s.require_paths = ["lib"]
18
18
 
19
19
  s.add_development_dependency("activesupport", ">= 3.1.0")
20
- s.add_development_dependency("appraisal")
21
20
  s.add_development_dependency("pry")
22
21
  s.add_development_dependency("rspec-rails")
23
22
  end
@@ -1,15 +1,22 @@
1
1
  module HighVoltage
2
2
  class Engine < Rails::Engine
3
- initializer 'Set up default parent engine' do |app|
3
+ initializer "Set up default parent engine" do |app|
4
4
  HighVoltage.parent_engine ||= Rails.application
5
5
  end
6
6
 
7
- initializer 'Require concerns path' do |app|
8
- concerns_path = 'app/controllers/concerns'
7
+ initializer "Require concerns path" do |app|
8
+ concerns_path = "app/controllers/concerns"
9
9
 
10
10
  unless app.paths.keys.include?(concerns_path)
11
11
  app.paths.add(concerns_path)
12
12
  end
13
13
  end
14
+
15
+ initializer "Require for Rails 3" do |app|
16
+ if defined?(Rails) && Rails::VERSION::MAJOR == 3
17
+ require "concerns/high_voltage/static_page"
18
+ require "high_voltage/pages_controller"
19
+ end
20
+ end
14
21
  end
15
22
  end
@@ -1,3 +1,3 @@
1
1
  module HighVoltage
2
- VERSION = '2.2.0'.freeze
2
+ VERSION = "2.2.1".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: high_voltage
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Jankowski
@@ -16,7 +16,7 @@ authors:
16
16
  autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
- date: 2014-06-24 00:00:00.000000000 Z
19
+ date: 2014-07-23 00:00:00.000000000 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: activesupport
@@ -32,20 +32,6 @@ dependencies:
32
32
  - - ">="
33
33
  - !ruby/object:Gem::Version
34
34
  version: 3.1.0
35
- - !ruby/object:Gem::Dependency
36
- name: appraisal
37
- requirement: !ruby/object:Gem::Requirement
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- version: '0'
42
- type: :development
43
- prerelease: false
44
- version_requirements: !ruby/object:Gem::Requirement
45
- requirements:
46
- - - ">="
47
- - !ruby/object:Gem::Version
48
- version: '0'
49
35
  - !ruby/object:Gem::Dependency
50
36
  name: pry
51
37
  requirement: !ruby/object:Gem::Requirement
@@ -94,6 +80,14 @@ files:
94
80
  - app/controllers/concerns/high_voltage/static_page.rb
95
81
  - app/controllers/high_voltage/pages_controller.rb
96
82
  - config/routes.rb
83
+ - gemfiles/rails3.1.gemfile
84
+ - gemfiles/rails3.1.gemfile.lock
85
+ - gemfiles/rails3.2.gemfile
86
+ - gemfiles/rails3.2.gemfile.lock
87
+ - gemfiles/rails4.0.gemfile
88
+ - gemfiles/rails4.0.gemfile.lock
89
+ - gemfiles/rails4.1.gemfile
90
+ - gemfiles/rails4.1.gemfile.lock
97
91
  - high_voltage.gemspec
98
92
  - lib/high_voltage.rb
99
93
  - lib/high_voltage/configuration.rb