ruby-pennylane 1.0.1 → 1.0.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/.idea/workspace.xml +15 -4
- data/lib/ruby/pennylane/version.rb +1 -1
- data/lib/ruby/pennylane.rb +3 -3
- 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: fb1bf29dca2fa8ef66e6c9c8b5a9fb0ba2879a426247400e78f6d89f36de136e
|
|
4
|
+
data.tar.gz: 19fd28310decbf4c2a485f38b774d92f17d556c30f9ef3d62f20c1fa7111ecf3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 999daa06e60928b0ac7c854459e3c3d6659d750af82310dabbe971e161a7e6ab72ecdfa6d67b704b6baebdd354ef508ccb1fb7388067edbb8f41e11f7667aade
|
|
7
|
+
data.tar.gz: e72d7fa408720f521cfabc2069e94db7da94a9dff0e82e5863ffa16be639cd744069308b619d7ea14b54e600f28bcdbdeee9206d28c9e39ea2b5181b8ff74891
|
data/.idea/workspace.xml
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<option name="autoReloadType" value="SELECTIVE" />
|
|
5
5
|
</component>
|
|
6
6
|
<component name="ChangeListManager">
|
|
7
|
-
<list default="true" id="b8f3aa62-1507-4a8b-982b-cc3e15962c40" name="Changes" comment="Update
|
|
7
|
+
<list default="true" id="b8f3aa62-1507-4a8b-982b-cc3e15962c40" name="Changes" comment="Update pennylane.rb">
|
|
8
8
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
|
9
9
|
<change beforePath="$PROJECT_DIR$/lib/ruby/pennylane.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/ruby/pennylane.rb" afterDir="false" />
|
|
10
10
|
<change beforePath="$PROJECT_DIR$/lib/ruby/pennylane/version.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/ruby/pennylane/version.rb" afterDir="false" />
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
|
|
31
31
|
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
|
|
32
32
|
<property name="WebServerToolWindowFactoryState" value="false" />
|
|
33
|
+
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
|
33
34
|
<property name="node.js.detected.package.eslint" value="true" />
|
|
34
35
|
<property name="node.js.detected.package.tslint" value="true" />
|
|
35
36
|
<property name="node.js.selected.package.eslint" value="(autodetect)" />
|
|
@@ -111,7 +112,9 @@
|
|
|
111
112
|
<workItem from="1641545118530" duration="121000" />
|
|
112
113
|
<workItem from="1641546038127" duration="196000" />
|
|
113
114
|
<workItem from="1641798480071" duration="9000" />
|
|
114
|
-
<workItem from="1643818294066" duration="
|
|
115
|
+
<workItem from="1643818294066" duration="1050000" />
|
|
116
|
+
<workItem from="1643892973999" duration="9000" />
|
|
117
|
+
<workItem from="1643893009912" duration="62000" />
|
|
115
118
|
</task>
|
|
116
119
|
<task id="LOCAL-00001" summary="Update travis">
|
|
117
120
|
<created>1641546064332</created>
|
|
@@ -120,7 +123,14 @@
|
|
|
120
123
|
<option name="project" value="LOCAL" />
|
|
121
124
|
<updated>1641546064332</updated>
|
|
122
125
|
</task>
|
|
123
|
-
<
|
|
126
|
+
<task id="LOCAL-00002" summary="Update pennylane.rb">
|
|
127
|
+
<created>1643818532803</created>
|
|
128
|
+
<option name="number" value="00002" />
|
|
129
|
+
<option name="presentableId" value="LOCAL-00002" />
|
|
130
|
+
<option name="project" value="LOCAL" />
|
|
131
|
+
<updated>1643818532803</updated>
|
|
132
|
+
</task>
|
|
133
|
+
<option name="localTasksCounter" value="3" />
|
|
124
134
|
<servers />
|
|
125
135
|
</component>
|
|
126
136
|
<component name="TypeScriptGeneratedFilesManager">
|
|
@@ -140,7 +150,8 @@
|
|
|
140
150
|
</component>
|
|
141
151
|
<component name="VcsManagerConfiguration">
|
|
142
152
|
<MESSAGE value="Update travis" />
|
|
143
|
-
<
|
|
153
|
+
<MESSAGE value="Update pennylane.rb" />
|
|
154
|
+
<option name="LAST_COMMIT_MESSAGE" value="Update pennylane.rb" />
|
|
144
155
|
</component>
|
|
145
156
|
<component name="com.intellij.coverage.CoverageDataManagerImpl">
|
|
146
157
|
<SUITE FILE_PATH="coverage/ruby_pennylane@pennylane_spec.rcov" NAME="pennylane_spec Coverage Results" MODIFIED="1639746525971" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="ruby-pennylane" />
|
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 = nil)
|
|
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 = nil)
|
|
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,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby-pennylane
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Eduard Garcia Castelló
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-02-
|
|
11
|
+
date: 2022-02-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|