fmrest 0.3.1 → 0.3.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: 7582f38755bcadb02cb74e36bad2305aa5e1fe26a25f57b0c257ab5b1ec3987e
4
- data.tar.gz: a03f2ed82566ab58ba7adc0287af6d8abbd519bbd9d67e26ffc988297e401bc9
3
+ metadata.gz: '0368b81402b25d33d32a77ce58c6d815ba4b40a61bc2a2b2da2f13fe6e90ba71'
4
+ data.tar.gz: 18f5a9d7b338b818ddb90a0fff59aa0f95bdd472ad6dfb4568dcde0812de8a56
5
5
  SHA512:
6
- metadata.gz: dfd08f44b945756653519ac299f254ba20ee447adceb4643b29ac8ad613d43820aadddcc533648a4ba1639999e4a5750b3d7deaf02985c9209ef353b55aeede3
7
- data.tar.gz: 7ca53acfdd43675a47367cbf37160b1e0439db31abe07952156cac2258d47a598e71c444f89ddcceedffc536a666126702356c1b9bb49caa6f24de73f8f7842f
6
+ metadata.gz: 5714a35a16de760709a189b93c6258b8688315820bcf5d51902ca495a1d26f2fae0b15c80f476bc245b8a13a1d7fe4e3958d0b24f5808400cabba4dbfea0b5c9
7
+ data.tar.gz: 34d059fc99d94a3496f2d8f2aaea549be22da05a3a47e6e928bb4910e1d9247ecb6358002d2826bc92fbd911f94b0c644c49c8bcbd876cc4324299ce29db2b4b
@@ -1,5 +1,10 @@
1
1
  ## Changelog
2
2
 
3
+ ### 0.3.2
4
+
5
+ * Fix support for ActiveSupport < 5.2
6
+ ([#27](https://github.com/beezwax/fmrest-ruby/issues/27))
7
+
3
8
  ### 0.3.0
4
9
 
5
10
  * Add Moneta token store
@@ -11,9 +11,12 @@ module FmRest
11
11
  included do
12
12
  # Keep track of portal options by their FM keys as we could need it
13
13
  # to parse the portalData JSON in JsonParser
14
- class_attribute :portal_options, instance_accessor: false,
15
- instance_predicate: false,
16
- default: {}.freeze
14
+ class_attribute :portal_options, instance_accessor: false, instance_predicate: false
15
+
16
+ # class_attribute supports a :default option since ActiveSupport 5.2,
17
+ # but we want to support previous versions too so we set the default
18
+ # manually instead
19
+ self.portal_options = {}.freeze
17
20
 
18
21
  class << self; private :portal_options=; end
19
22
  end
@@ -25,9 +25,12 @@ module FmRest
25
25
 
26
26
  # Keep track of attribute mappings so we can get the FM field names
27
27
  # for changed attributes
28
- class_attribute :mapped_attributes, instance_writer: false,
29
- instance_predicate: false,
30
- default: ::ActiveSupport::HashWithIndifferentAccess.new.freeze
28
+ class_attribute :mapped_attributes, instance_writer: false, instance_predicate: false
29
+
30
+ # class_attribute supports a :default option since ActiveSupport 5.2,
31
+ # but we want to support previous versions too so we set the default
32
+ # manually instead
33
+ self.mapped_attributes = ::ActiveSupport::HashWithIndifferentAccess.new.freeze
31
34
 
32
35
  class << self; private :mapped_attributes=; end
33
36
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FmRest
4
- VERSION = "0.3.1"
4
+ VERSION = "0.3.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fmrest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro Carbajal
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-10 00:00:00.000000000 Z
11
+ date: 2019-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday