ruby-pennylane 1.0.0 → 1.0.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
  SHA256:
3
- metadata.gz: 56072624de9dae16f331c923731407f138743fe2c82062c872e243a0f9e47145
4
- data.tar.gz: 2326d2cf8c2d4aef4c76235493b2a867db8fa68978ca19ab59a4fc3b5644ae2b
3
+ metadata.gz: 2244532ee2cad256c064abe18463dd81c0a982a0e32fc1070d98d825fe6d3998
4
+ data.tar.gz: 3e7258b7d0868f7abe170632e99ecd4b74abb305f5edca298ecf0ba625c30018
5
5
  SHA512:
6
- metadata.gz: 4b3e2da9077379d8270b31a9d5741a0daeabb471d1bbceb1afbdfaf5a829d4eefe3751b64e93664a8b7aea690dc8dd790ab61073f44d9577f81f7da8692930df
7
- data.tar.gz: 3f5e297c793b71e32dff90c4985167c5fc8030ba3c70b68b80e2ef91b03c485e00ff5156e7e329a6b6ae54edae608a4168a9f7a84754ec61f078acf8916fa150
6
+ metadata.gz: 13859e55570331a7a1c74308905b636af5cd2fab4f899431748e78bf0467d127f2f5b0eeceec33553488686df89ac26c0a7df864007df3041b4819cbbcb57798
7
+ data.tar.gz: c9a63077647bee31f8678e55d4e88906e28bc8cab8387d5fb4b24f946566ebb8c0aae2ea64c61e0217dbb54be984684cb34b2b854571e78cf13ccf8c41935b58
data/.idea/workspace.xml CHANGED
@@ -4,11 +4,9 @@
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="">
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
- <change beforePath="$PROJECT_DIR$/lib/ruby/pennylane.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/ruby/pennylane.rb" afterDir="false" />
10
9
  <change beforePath="$PROJECT_DIR$/lib/ruby/pennylane/version.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/ruby/pennylane/version.rb" afterDir="false" />
11
- <change beforePath="$PROJECT_DIR$/ruby-pennylane.gemspec" beforeDir="false" afterPath="$PROJECT_DIR$/ruby-pennylane.gemspec" afterDir="false" />
12
10
  </list>
13
11
  <option name="SHOW_DIALOG" value="false" />
14
12
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -31,11 +29,12 @@
31
29
  <property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
32
30
  <property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
33
31
  <property name="WebServerToolWindowFactoryState" value="false" />
32
+ <property name="last_opened_file_path" value="$PROJECT_DIR$" />
34
33
  <property name="node.js.detected.package.eslint" value="true" />
35
34
  <property name="node.js.detected.package.tslint" value="true" />
36
35
  <property name="node.js.selected.package.eslint" value="(autodetect)" />
37
36
  <property name="node.js.selected.package.tslint" value="(autodetect)" />
38
- <property name="settings.editor.selected.configurable" value="preferences.fileTypes" />
37
+ <property name="settings.editor.selected.configurable" value="configurable.group.language" />
39
38
  </component>
40
39
  <component name="RunManager" selected="Ruby.pennylane_spec">
41
40
  <configuration name="pennylane_spec" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true" nameIsGenerated="true">
@@ -110,7 +109,41 @@
110
109
  <workItem from="1639742624060" duration="1075000" />
111
110
  <workItem from="1641545075966" duration="18000" />
112
111
  <workItem from="1641545118530" duration="121000" />
112
+ <workItem from="1641546038127" duration="196000" />
113
+ <workItem from="1641798480071" duration="9000" />
114
+ <workItem from="1643818294066" duration="1050000" />
115
+ <workItem from="1643892973999" duration="9000" />
116
+ <workItem from="1643893009912" duration="1503000" />
113
117
  </task>
118
+ <task id="LOCAL-00001" summary="Update travis">
119
+ <created>1641546064332</created>
120
+ <option name="number" value="00001" />
121
+ <option name="presentableId" value="LOCAL-00001" />
122
+ <option name="project" value="LOCAL" />
123
+ <updated>1641546064332</updated>
124
+ </task>
125
+ <task id="LOCAL-00002" summary="Update pennylane.rb">
126
+ <created>1643818532803</created>
127
+ <option name="number" value="00002" />
128
+ <option name="presentableId" value="LOCAL-00002" />
129
+ <option name="project" value="LOCAL" />
130
+ <updated>1643818532803</updated>
131
+ </task>
132
+ <task id="LOCAL-00003" summary="Update pennylane.rb">
133
+ <created>1643893082181</created>
134
+ <option name="number" value="00003" />
135
+ <option name="presentableId" value="LOCAL-00003" />
136
+ <option name="project" value="LOCAL" />
137
+ <updated>1643893082181</updated>
138
+ </task>
139
+ <task id="LOCAL-00004" summary="Update pennylane.rb">
140
+ <created>1643894169349</created>
141
+ <option name="number" value="00004" />
142
+ <option name="presentableId" value="LOCAL-00004" />
143
+ <option name="project" value="LOCAL" />
144
+ <updated>1643894169349</updated>
145
+ </task>
146
+ <option name="localTasksCounter" value="5" />
114
147
  <servers />
115
148
  </component>
116
149
  <component name="TypeScriptGeneratedFilesManager">
@@ -126,6 +159,12 @@
126
159
  </entry>
127
160
  </map>
128
161
  </option>
162
+ <option name="oldMeFiltersMigrated" value="true" />
163
+ </component>
164
+ <component name="VcsManagerConfiguration">
165
+ <MESSAGE value="Update travis" />
166
+ <MESSAGE value="Update pennylane.rb" />
167
+ <option name="LAST_COMMIT_MESSAGE" value="Update pennylane.rb" />
129
168
  </component>
130
169
  <component name="com.intellij.coverage.CoverageDataManagerImpl">
131
170
  <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/.travis.yml CHANGED
@@ -2,5 +2,5 @@
2
2
  language: ruby
3
3
  cache: bundler
4
4
  rvm:
5
- - 2.7.4
5
+ - 3.1.0
6
6
  before_install: gem install bundler -v 2.2.24
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ruby
4
4
  module Pennylane
5
- VERSION = "1.0.0"
5
+ VERSION = "1.0.4"
6
6
  end
7
7
  end
@@ -24,13 +24,13 @@ module Ruby
24
24
 
25
25
  attr_accessor :token
26
26
 
27
- def initialize(**args)
27
+ def initialize(args = {})
28
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: { } })
32
32
  # method: :get by default
33
- def call(**args)
33
+ def call(args)
34
34
  return {error: :missing_argument, status: :unprocessable_entity}.as_json unless args[:element]
35
35
 
36
36
  http_method(args)
@@ -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] % {
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.0
4
+ version: 1.0.4
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-01-07 00:00:00.000000000 Z
11
+ date: 2022-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty