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 +4 -4
- data/.idea/workspace.xml +9 -2
- data/lib/ruby/pennylane/version.rb +1 -1
- data/lib/ruby/pennylane.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f7434b23b2bd08be4c8bb72bb34f8a01deffd155bd43ca2ca18a91ef9785a634
|
|
4
|
+
data.tar.gz: 81fd7ec93e3703a6b7f8a7aefa5dc603080e01ba3634d2c572a37b43350938b5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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="
|
|
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
|
-
<
|
|
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">
|
data/lib/ruby/pennylane.rb
CHANGED
|
@@ -24,8 +24,8 @@ module Ruby
|
|
|
24
24
|
|
|
25
25
|
attr_accessor :token
|
|
26
26
|
|
|
27
|
-
def initialize(args =
|
|
28
|
-
@token ||= args
|
|
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 =
|
|
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] % {
|