fmrest 0.3.1 → 0.3.2
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/fmrest/spyke/model/associations.rb +6 -3
- data/lib/fmrest/spyke/model/attributes.rb +6 -3
- data/lib/fmrest/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '0368b81402b25d33d32a77ce58c6d815ba4b40a61bc2a2b2da2f13fe6e90ba71'
|
|
4
|
+
data.tar.gz: 18f5a9d7b338b818ddb90a0fff59aa0f95bdd472ad6dfb4568dcde0812de8a56
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5714a35a16de760709a189b93c6258b8688315820bcf5d51902ca495a1d26f2fae0b15c80f476bc245b8a13a1d7fe4e3958d0b24f5808400cabba4dbfea0b5c9
|
|
7
|
+
data.tar.gz: 34d059fc99d94a3496f2d8f2aaea549be22da05a3a47e6e928bb4910e1d9247ecb6358002d2826bc92fbd911f94b0c644c49c8bcbd876cc4324299ce29db2b4b
|
data/CHANGELOG.md
CHANGED
|
@@ -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
|
-
|
|
16
|
-
|
|
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
|
-
|
|
30
|
-
|
|
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
|
data/lib/fmrest/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2019-09-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|