distant 0.1.5 → 0.1.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4cc4ec26a4a9e4bdd296eec969e32c67415ebc70
4
- data.tar.gz: d227f3cf38b58bbca5f38af2985a80872d2274ad
3
+ metadata.gz: b013860fb76db4c918bb3dc7a2de9821d9ec8f47
4
+ data.tar.gz: b8d368d98798f9e79f19af8202d56ed9ab2d6205
5
5
  SHA512:
6
- metadata.gz: b739b2e08643cc241c71720e6a57446518ea1f2f16da2c40ed5c701018d14019d29fd1c8c2acc2a2a71c6cadf1fc1d559ba7ea9af27d7fab7f6d1166700626b4
7
- data.tar.gz: 593f74678551b439653706f448748f6d265653ff8d1b543aebe0d6beb104f095ea9adf3f437778997bfdd42af8a6cc3807db7976fd5057eeef331ca2fd02841a
6
+ metadata.gz: 73df7dd9644e1521668a611708a163f0163f330b9ad488488ab521eebaa4e7c951f6b10af1aff7066c6efeccc38c71b52804e84d64a31788842f54a1b51550cc
7
+ data.tar.gz: 9c3254be7bff13ff9d0acc4fc6a5104de935c3730a1a8035d7f1f26e50032774544d7659c924b7a4aceb45e2ffc403517a676f37ea0ad5fa7733343806352a7e
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- distant (0.1.4)
4
+ distant (0.1.6)
5
5
  activesupport
6
6
  httparty
7
7
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'distant'
3
- spec.version = '0.1.5'
3
+ spec.version = '0.1.6'
4
4
  spec.authors = ['John Drago']
5
5
  spec.email = 'jdrago.999@gmail.com'
6
6
  spec.homepage = 'https://github.com/distant/distant'
@@ -68,8 +68,8 @@ module Distant
68
68
  path = self.class.path_closure_generator(route).call(id: self.id)
69
69
  headers = Distant.config.default_headers('')
70
70
  .merge(Distant.config.auth_headers(''))
71
- response_data = self.class.preprocess_response connection.get(path, headers: headers)
72
71
  class_ref = Kernel.const_get self.class.to_s.deconstantize + '::' + plural.to_s.singularize.classify
72
+ response_data = class_ref.preprocess_response connection.get(path, headers: headers)
73
73
  response_data.map{ |item| class_ref.marshal(item) }
74
74
  end
75
75
  end
@@ -82,8 +82,8 @@ module Distant
82
82
  path = self.class.path_closure_generator(route).call(id: foreign_key_value)
83
83
  headers = Distant.config.default_headers('')
84
84
  .merge(Distant.config.auth_headers(''))
85
- response_data = self.class.preprocess_response connection.get(path, headers: headers)
86
85
  class_ref = Kernel.const_get self.class.to_s.deconstantize + '::' + singular.to_s.classify
86
+ response_data = class_ref.preprocess_response connection.get(path, headers: headers)
87
87
  class_ref.marshal(response_data)
88
88
  end
89
89
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: distant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Drago