jets 3.0.6 → 3.0.7

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: 3ed89daa4700646743805940f6847196c9be132562bb1f4e90bf4cbeb0053e65
4
- data.tar.gz: '09db7db5170f8aefffbd963986a007c1643814cd853c77451b27d06f2f522335'
3
+ metadata.gz: c26430b6fb7be2b2416c0d165a4a87a064b16aa99a41b3dab1db9134cb586a92
4
+ data.tar.gz: fc8d1c040f46b369dc1b0ed588e8d757d3a55eda860f1716b4f39d48a1347def
5
5
  SHA512:
6
- metadata.gz: ddba3375086b7269d52cdcb0cbe2edca842ac94ab43fd65ea72d0a9ee5ab76cae42f3fc2f67678c4cb3a83533a9cf0993b84278e2268c133ed5bf1de57e41f20
7
- data.tar.gz: 9907b63ebf1a56d1eb7ec51b171a98e3a9adb894cebd8dbdcb2a451510975da48704172c71401af5766c85a6ed0f39f804efa180b09aa2645364c62e5ec5397f
6
+ metadata.gz: fd820b61fd4bfec9703035ec6e0cf04d7978d0cc4a001b370fc741874cef80b3bf7bebb8635d7af116892d85ea681cdc2d94b2b7bdec28b0037218df9b4d9dc0
7
+ data.tar.gz: a982e6f67b17c74881f393359334a492050ed0cc719daffaee1955f04746df2f88bcdfd7f253ad9655f8230d196abcdaffa6c681a6cdfa845e5dcabaaad6c32a
data/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/).
5
5
 
6
+ ## [3.0.7] - 2021-05-27
7
+ - Dont bypass class_attribute setters (#559)
8
+ - update pg version in jets new Gemfile to latest (#558)
9
+
6
10
  ## [3.0.6] - 2021-05-27
7
11
  - Handle Errors::InvalidClientTokenId when `get_caller_identity` fails (#543)
8
12
  - Use description specifed in function properties (#545)
@@ -9,11 +9,11 @@ gem "jetpacker"
9
9
  <% if @database == 'postgresql' %>
10
10
  # Include pg gem if you are using ActiveRecord, remove next line
11
11
  # and config/database.yml file if you are not
12
- gem "pg", "~> 1.1.3"
12
+ gem "pg", "~> 1.2.3"
13
13
  <% elsif @database == 'mysql' %>
14
14
  # Include mysql2 gem if you are using ActiveRecord, remove next line
15
15
  # and config/database.yml file if you are not
16
- gem "mysql2", "~> 0.5.2"
16
+ gem "mysql2", "~> 0.5.3"
17
17
  <% end %>
18
18
  <% unless options[:mode] == 'job' -%>
19
19
  gem "dynomite"
@@ -17,10 +17,12 @@ class Jets::Controller
17
17
  end
18
18
 
19
19
  def skip_before_action(meth, options = {})
20
- # adds the methods in the only to the exception list for the callback
21
- return append_except_to_callbacks(self.before_actions, meth, options[:only]) if options[:only].present?
22
-
23
- self.before_actions.reject! { |el| el.first.to_s == meth.to_s }
20
+ self.before_actions = before_actions
21
+ .reject { |act| act.first.to_s == meth.to_s }
22
+
23
+ # If options include the `only` option,
24
+ # re-add the action using the setter with the `except` option
25
+ before_action(meth, { except: options[:only] }) if options[:only].present?
24
26
  end
25
27
 
26
28
  alias_method :append_before_action, :before_action
@@ -38,20 +40,6 @@ class Jets::Controller
38
40
  end
39
41
 
40
42
  alias_method :append_after_action, :after_action
41
-
42
- private
43
-
44
- def append_except_to_callbacks(callback_methods, meth, excepted_methods)
45
- callback_methods.map! do |callback_method|
46
- if callback_method.first.to_s == meth.to_s
47
- exceptions = callback_method.second[:except] || []
48
- exceptions.concat(Array.wrap(excepted_methods))
49
- callback_method.second[:except] = exceptions
50
- end
51
-
52
- callback_method
53
- end
54
- end
55
43
  end
56
44
  end # included
57
45
 
data/lib/jets/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Jets
2
- VERSION = "3.0.6"
2
+ VERSION = "3.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jets
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.6
4
+ version: 3.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen