fixably 0.6.0 → 0.6.1

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: aa642fce50530577696a77601009ab1f648ebfc88b8e16eabd60508e0f8d92b1
4
- data.tar.gz: f976b04bc5520f56c4992ca212d6d80766a293f1f760e732b9ba8b4bddc9d109
3
+ metadata.gz: 4e8f880a2eb954e1467e74c7dec0c84c2b762b50da015e115319a245c447915d
4
+ data.tar.gz: de900d1c1b55c4c2f5a45533c835dd961b4bf01374f9c73f7f8d020c6bf90c77
5
5
  SHA512:
6
- metadata.gz: 417371bd0fa8b480e46fcf284f16c3f7a5618717d42d10baec9396b0f47844aa0a5dc79c8b9c2de742042a6b683ed29f14ac9b8baccf4fb3d61244b403a2efdb
7
- data.tar.gz: 684a62a5e666ba1f00eb92eafd6ca231bb24f917824cbf3e32248b8a7efaab0d458e511e7cd8b41afcb30b20e730d39b5622f878d0f40081fabecb517966403d
6
+ metadata.gz: 4c4b1b68a5043f35c6da7ef3b6454886e79883f440fb4a9a07e2b27a4e8d0f4fb8254724885165d84f94e9b4cf05e30575619829e9a7c947d10592e400bdf588
7
+ data.tar.gz: f01f0d472706283fc568a9e2e04c4e3d44b562b28402c6669291b95d085e950f3956603bd7286166240d5651db103bc06b98ceb5300e5953fa7fb0914b213e4d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fixably (0.5.0)
4
+ fixably (0.6.0)
5
5
  activeresource (>= 5, < 7)
6
6
 
7
7
  GEM
@@ -103,8 +103,8 @@ module Fixably
103
103
  )
104
104
  end
105
105
 
106
- Array.wrap(values).map do
107
- action = _1.to_sym
106
+ Array.wrap(values).map do |value|
107
+ action = value.to_sym
108
108
 
109
109
  unless allowed_actions.include?(action)
110
110
  raise ArgumentError, "Unsupported action, #{action}, supplied"
@@ -20,8 +20,8 @@ module ActiveResource
20
20
  def query_string(options)
21
21
  opts = {}
22
22
 
23
- non_query_parameters.each do
24
- opts[_1] = options.fetch(_1) if options[_1]
23
+ non_query_parameters.each do |parameter|
24
+ opts[parameter] = options.fetch(parameter) if options[parameter]
25
25
  end
26
26
 
27
27
  f = filters(options)
@@ -18,8 +18,12 @@ module Fixably
18
18
  def remove_on_encode = %w[created_at href id]
19
19
 
20
20
  def remove_has_many_associations(attrs)
21
- reflections.select { _2.macro.equal?(:has_many) }.keys.each do
22
- attrs.delete(_1)
21
+ has_many_reflections = reflections.select do |_name, reflection|
22
+ reflection.macro.equal?(:has_many)
23
+ end
24
+
25
+ has_many_reflections.each_key do |reflection_name|
26
+ attrs.delete(reflection_name)
23
27
  end
24
28
  end
25
29
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Fixably
4
- VERSION = "0.6.0"
4
+ VERSION = "0.6.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fixably
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Rice