versioncake 4.0.1 → 4.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c28742633edb48e13093a74e010316365fc417563994b38b43e1056e73ca965b
4
- data.tar.gz: 61761ed6ac28e63414b76f4d875279d6730eebe60122ab8f3fb9086702ab82fd
3
+ metadata.gz: 2584a00abf5d5d5dcf688405473566592b50c76e2d44228e125805646f90f84b
4
+ data.tar.gz: ac88a66a011780e1f9da35fe2dea73bc3afb47a80f0930272a508f328d81df71
5
5
  SHA512:
6
- metadata.gz: 52b8d6e37c588b74b094143909ca1a52d9c48f2f39e4e41c08e24d6bc54da5ab5d48ca9c0ab2bea633b34bd562edc5d81cfca5b8cba894d752934dc664778b9d
7
- data.tar.gz: 99555825b0accf9dfbbd923976033ce5a758f620b693aa730a8b3a34832f0ddd172dbec02ffea81847277e83ac3706ec0edc350be784a71c632c0ae379a1b562
6
+ metadata.gz: 53baf4c7c63e5396efd76cd040270d5cba6f27674a9ca8da9802edf8119f6321a7d5d79f93793505f9f81ea57e2ea28c423e43ed2c5f628e100d975168283b5e
7
+ data.tar.gz: 7550a8a563d0136d73a579bb5da9320390f717fd6975e4e9f1788150ab497dc350bec4c8cbdcdcba7ea96b0df22880ae8e6aee3d61702bcf2e411b3eb3503f8d
@@ -13,6 +13,20 @@ Enhancements:
13
13
  Deprecations:
14
14
  * None
15
15
 
16
+ ## 4.0.2 (June 5, 2020)
17
+
18
+ Bug Fixes:
19
+
20
+ * Responses error in Rails API only (#76) thanks [JamesCarscadden](https://github.com/JamesCarscadden)
21
+
22
+ Enhancements:
23
+
24
+ * None
25
+
26
+ Deprecations:
27
+
28
+ * None
29
+
16
30
  ## 4.0.1 (March 11, 2020)
17
31
 
18
32
  Bug Fixes:
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- versioncake (4.0.1)
4
+ versioncake (4.0.2)
5
5
  actionpack (> 5.0)
6
6
  activesupport (> 5.0)
7
7
  railties (> 5.0)
@@ -10,20 +10,20 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- actionpack (5.2.4.1)
14
- actionview (= 5.2.4.1)
15
- activesupport (= 5.2.4.1)
13
+ actionpack (5.2.4.3)
14
+ actionview (= 5.2.4.3)
15
+ activesupport (= 5.2.4.3)
16
16
  rack (~> 2.0, >= 2.0.8)
17
17
  rack-test (>= 0.6.3)
18
18
  rails-dom-testing (~> 2.0)
19
19
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
20
- actionview (5.2.4.1)
21
- activesupport (= 5.2.4.1)
20
+ actionview (5.2.4.3)
21
+ activesupport (= 5.2.4.3)
22
22
  builder (~> 3.1)
23
23
  erubi (~> 1.4)
24
24
  rails-dom-testing (~> 2.0)
25
25
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
26
- activesupport (5.2.4.1)
26
+ activesupport (5.2.4.3)
27
27
  concurrent-ruby (~> 1.0, >= 1.0.2)
28
28
  i18n (>= 0.7, < 2)
29
29
  minitest (~> 5.1)
@@ -47,12 +47,12 @@ GEM
47
47
  i18n (1.8.2)
48
48
  concurrent-ruby (~> 1.0)
49
49
  json (2.1.0)
50
- loofah (2.4.0)
50
+ loofah (2.5.0)
51
51
  crass (~> 1.0.2)
52
52
  nokogiri (>= 1.5.9)
53
- method_source (0.9.2)
53
+ method_source (1.0.0)
54
54
  mini_portile2 (2.4.0)
55
- minitest (5.14.0)
55
+ minitest (5.14.1)
56
56
  nokogiri (1.10.9)
57
57
  mini_portile2 (~> 2.4.0)
58
58
  rack (2.2.2)
@@ -63,9 +63,9 @@ GEM
63
63
  nokogiri (>= 1.6)
64
64
  rails-html-sanitizer (1.3.0)
65
65
  loofah (~> 2.3)
66
- railties (5.2.4.1)
67
- actionpack (= 5.2.4.1)
68
- activesupport (= 5.2.4.1)
66
+ railties (5.2.4.3)
67
+ actionpack (= 5.2.4.3)
68
+ activesupport (= 5.2.4.3)
69
69
  method_source
70
70
  rake (>= 0.8.7)
71
71
  thor (>= 0.19.0, < 2.0)
@@ -101,7 +101,7 @@ GEM
101
101
  thor (0.19.4)
102
102
  thread_safe (0.3.6)
103
103
  tins (1.15.0)
104
- tzinfo (1.2.6)
104
+ tzinfo (1.2.7)
105
105
  thread_safe (~> 0.1)
106
106
 
107
107
  PLATFORMS
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- versioncake (4.0.1)
4
+ versioncake (4.0.2)
5
5
  actionpack (> 5.0)
6
6
  activesupport (> 5.0)
7
7
  railties (> 5.0)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- versioncake (4.0.1)
4
+ versioncake (4.0.2)
5
5
  actionpack (> 5.0)
6
6
  activesupport (> 5.0)
7
7
  railties (> 5.0)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- versioncake (4.0.1)
4
+ versioncake (4.0.2)
5
5
  actionpack (> 5.0)
6
6
  activesupport (> 5.0)
7
7
  railties (> 5.0)
@@ -26,6 +26,7 @@ if defined?(Rails)
26
26
  require 'versioncake/controller_additions'
27
27
  require 'versioncake/view_additions'
28
28
  require 'versioncake/engine'
29
+ require 'versioncake/railtie'
29
30
  end
30
31
 
31
32
  module VersionCake
@@ -38,4 +39,5 @@ module VersionCake
38
39
  def self.setup
39
40
  yield self.config
40
41
  end
41
- end
42
+ end
43
+
@@ -83,9 +83,3 @@ module VersionCake
83
83
  end
84
84
  end
85
85
  end
86
-
87
- ActionController::Base.send(:include, VersionCake::ControllerAdditions)
88
-
89
- if defined?(ActionController::API)
90
- ActionController::API.send(:include, VersionCake::ControllerAdditions)
91
- end
@@ -0,0 +1,9 @@
1
+ require 'rails/railtie'
2
+
3
+ class Railtie < ::Rails::Railtie
4
+ initializer :versioncake do
5
+ ActiveSupport.on_load :action_controller do
6
+ include VersionCake::ControllerAdditions
7
+ end
8
+ end
9
+ end
@@ -1,3 +1,3 @@
1
1
  module VersionCake
2
- VERSION = '4.0.1'
2
+ VERSION = '4.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: versioncake
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Jones
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-03-12 00:00:00.000000000 Z
12
+ date: 2020-06-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -175,6 +175,7 @@ files:
175
175
  - lib/versioncake/engine.rb
176
176
  - lib/versioncake/exceptions.rb
177
177
  - lib/versioncake/rack/middleware.rb
178
+ - lib/versioncake/railtie.rb
178
179
  - lib/versioncake/response_strategy/base.rb
179
180
  - lib/versioncake/response_strategy/http_content_type_strategy.rb
180
181
  - lib/versioncake/response_strategy/http_header_strategy.rb