salesforce-orm 1.2.3 → 1.2.4

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
  SHA1:
3
- metadata.gz: be6709a5ac1191f31440aeaebf47031b739f5c9f
4
- data.tar.gz: 7f8fb5c69ec707eda7dfc2dd36237121e1438310
3
+ metadata.gz: 2c3330fad57d890e8c8a3dd6a21fe89b38a64538
4
+ data.tar.gz: 6b222d1e83135e92ba7b7d4365e3260c041bd6ba
5
5
  SHA512:
6
- metadata.gz: e60b598f249d6c8df4264dc5e1cb5146fcc3f8c7b2dfd4cd003bf7b3a47dffbc20b0de04a88f58bebb379dbe3242c0a8f0d833a99a0e26e807e4d5c4a2faaf03
7
- data.tar.gz: abd5718e3ed58653c9476bba3c4af41f156cbcd9eee0e6dbc449f1f5b4ba913dd60de4e7bfecefef21e692bb12947e045ada35f4bd6b7552e74a54048d008683
6
+ metadata.gz: fe91c0862dd0b88b228276115cdca066cd4f269dfd04709986e4d93fbc2ac8b2c554b7d3c256ddfb0153a935e00d2441c2cf5c7120dfb88fc6f19b252e031341
7
+ data.tar.gz: 3fa5d2bfec49d91145a48386c8b381fc3886067fa63fbe0cbb36045caf0f479426c1dcbf781acdb51e6bf7af29853087715cae5d8185041587c0ce87eeda5dd4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- salesforce-orm (1.2.3)
4
+ salesforce-orm (1.2.4)
5
5
  activerecord (~> 3)
6
6
  activerecord-nulldb-adapter (~> 0)
7
7
  restforce (~> 2.5)
@@ -25,15 +25,17 @@ GEM
25
25
  arel (3.0.3)
26
26
  builder (3.0.4)
27
27
  byebug (9.0.5)
28
+ concurrent-ruby (1.0.5)
28
29
  diff-lcs (1.3)
29
30
  faraday (0.13.1)
30
31
  multipart-post (>= 1.2, < 3)
31
32
  faraday_middleware (0.12.2)
32
33
  faraday (>= 0.7.4, < 1.0)
33
34
  hashie (3.5.6)
34
- i18n (0.8.6)
35
+ i18n (0.9.1)
36
+ concurrent-ruby (~> 1.0)
35
37
  json (2.1.0)
36
- multi_json (1.12.1)
38
+ multi_json (1.12.2)
37
39
  multipart-post (2.0.0)
38
40
  rake (10.4.2)
39
41
  restforce (2.5.3)
@@ -73,4 +73,15 @@ module SalesforceOrm
73
73
  to_h
74
74
  end
75
75
  end
76
+
77
+ # Fix for unable to cache object of this class.
78
+ # This is a temporary solution. Once Restforce::Mash fix this issue, we'll revert this change
79
+ # WARNING: As of now, you can't do any restforce operation on the object of this class which is fetched from cache
80
+ def marshal_dump
81
+ h = to_h
82
+ h[:attributes] = Restforce::Mash.new(attributes.to_h) if attributes
83
+ h[:original_object] = Restforce::SObject.new(original_object.to_h) if original_object
84
+ h[:original_object][:attributes] = Restforce::Mash.new(original_object.attributes.to_h) if original_object && original_object.attributes
85
+ h
86
+ end
76
87
  end
@@ -1,3 +1,3 @@
1
1
  module SalesforceOrm
2
- VERSION = '1.2.3'.freeze
2
+ VERSION = '1.2.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: salesforce-orm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vishal Vijay