ruby-pennylane 1.0.2 → 1.0.3

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
  SHA256:
3
- metadata.gz: fb1bf29dca2fa8ef66e6c9c8b5a9fb0ba2879a426247400e78f6d89f36de136e
4
- data.tar.gz: 19fd28310decbf4c2a485f38b774d92f17d556c30f9ef3d62f20c1fa7111ecf3
3
+ metadata.gz: f7434b23b2bd08be4c8bb72bb34f8a01deffd155bd43ca2ca18a91ef9785a634
4
+ data.tar.gz: 81fd7ec93e3703a6b7f8a7aefa5dc603080e01ba3634d2c572a37b43350938b5
5
5
  SHA512:
6
- metadata.gz: 999daa06e60928b0ac7c854459e3c3d6659d750af82310dabbe971e161a7e6ab72ecdfa6d67b704b6baebdd354ef508ccb1fb7388067edbb8f41e11f7667aade
7
- data.tar.gz: e72d7fa408720f521cfabc2069e94db7da94a9dff0e82e5863ffa16be639cd744069308b619d7ea14b54e600f28bcdbdeee9206d28c9e39ea2b5181b8ff74891
6
+ metadata.gz: 7d2876de7fd6790138ef87680fa19199c0e929676f9cb92484f7506269659291c720ca37cb2be6097af5eecf48d7545ab717e51f59d9844e9c2322e393f7d404
7
+ data.tar.gz: 5177ba6c5c7513128fda0903d3c449d3723b223a795442c38078f0d4ccd610be9cc68d8c76f90aa5f282a00c68f535bac53eb1731fd8aada05b057bb5cf68ae3
data/.idea/workspace.xml CHANGED
@@ -114,7 +114,7 @@
114
114
  <workItem from="1641798480071" duration="9000" />
115
115
  <workItem from="1643818294066" duration="1050000" />
116
116
  <workItem from="1643892973999" duration="9000" />
117
- <workItem from="1643893009912" duration="62000" />
117
+ <workItem from="1643893009912" duration="888000" />
118
118
  </task>
119
119
  <task id="LOCAL-00001" summary="Update travis">
120
120
  <created>1641546064332</created>
@@ -130,7 +130,14 @@
130
130
  <option name="project" value="LOCAL" />
131
131
  <updated>1643818532803</updated>
132
132
  </task>
133
- <option name="localTasksCounter" value="3" />
133
+ <task id="LOCAL-00003" summary="Update pennylane.rb">
134
+ <created>1643893082181</created>
135
+ <option name="number" value="00003" />
136
+ <option name="presentableId" value="LOCAL-00003" />
137
+ <option name="project" value="LOCAL" />
138
+ <updated>1643893082181</updated>
139
+ </task>
140
+ <option name="localTasksCounter" value="4" />
134
141
  <servers />
135
142
  </component>
136
143
  <component name="TypeScriptGeneratedFilesManager">
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ruby
4
4
  module Pennylane
5
- VERSION = "1.0.2"
5
+ VERSION = "1.0.3"
6
6
  end
7
7
  end
@@ -24,8 +24,8 @@ module Ruby
24
24
 
25
25
  attr_accessor :token
26
26
 
27
- def initialize(args = nil)
28
- @token ||= args&.fetch(:token, Rails.configuration.pennylane_token)
27
+ def initialize(args = {})
28
+ @token ||= args.fetch(:token, Rails.configuration.pennylane_token)
29
29
  end
30
30
 
31
31
  # call(method: :get, element: customers, id: 3, filter: [{"field": "customer_id", "operator": "eq", "value": "4c02116c-1793-4e3d-becf-6870ef12d441"}], body: { elem: { } })
@@ -38,7 +38,7 @@ module Ruby
38
38
 
39
39
  private
40
40
 
41
- def http_method(args = nil)
41
+ def http_method(args = {})
42
42
  self.class.headers(Authorization: "Bearer #{@token || args[:token]}")
43
43
  # See https://ruby-doc.org/core-3.0.2/String.html#method-i-25
44
44
  url = Pennylane.url[:v1] % {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-pennylane
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduard Garcia Castelló