ruby-pennylane 1.0.0 → 1.0.1

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: 56072624de9dae16f331c923731407f138743fe2c82062c872e243a0f9e47145
4
- data.tar.gz: 2326d2cf8c2d4aef4c76235493b2a867db8fa68978ca19ab59a4fc3b5644ae2b
3
+ metadata.gz: 378e311e60305ffccd4c896a8974bd8c711cf0f27e5d71ffa1ee125f2611be67
4
+ data.tar.gz: 3bdeadd3862cc7ef2aec1a8391acbdc17ab06834b85e049ecfb5d06ffec23899
5
5
  SHA512:
6
- metadata.gz: 4b3e2da9077379d8270b31a9d5741a0daeabb471d1bbceb1afbdfaf5a829d4eefe3751b64e93664a8b7aea690dc8dd790ab61073f44d9577f81f7da8692930df
7
- data.tar.gz: 3f5e297c793b71e32dff90c4985167c5fc8030ba3c70b68b80e2ef91b03c485e00ff5156e7e329a6b6ae54edae608a4168a9f7a84754ec61f078acf8916fa150
6
+ metadata.gz: 26e80907621356a484db4ed0d079e135db42ac996a23c5310409f236e1d20fc90474af0d8f0514e6679efe44d881f8cb810bf4d030d5b64c8be28df045166de5
7
+ data.tar.gz: e919b237af2dd3e526ec402e3d0421065ebc6daadf6baa5dc0939418ec3f4b5e8a9cbeeaaae97aac5b78f38b5af729b98c55fd712963a6aa5a1ff2578974ad6e
data/.idea/workspace.xml CHANGED
@@ -4,11 +4,10 @@
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 travis">
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" />
11
- <change beforePath="$PROJECT_DIR$/ruby-pennylane.gemspec" beforeDir="false" afterPath="$PROJECT_DIR$/ruby-pennylane.gemspec" afterDir="false" />
12
11
  </list>
13
12
  <option name="SHOW_DIALOG" value="false" />
14
13
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -35,7 +34,7 @@
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,18 @@
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="211000" />
113
115
  </task>
116
+ <task id="LOCAL-00001" summary="Update travis">
117
+ <created>1641546064332</created>
118
+ <option name="number" value="00001" />
119
+ <option name="presentableId" value="LOCAL-00001" />
120
+ <option name="project" value="LOCAL" />
121
+ <updated>1641546064332</updated>
122
+ </task>
123
+ <option name="localTasksCounter" value="2" />
114
124
  <servers />
115
125
  </component>
116
126
  <component name="TypeScriptGeneratedFilesManager">
@@ -126,6 +136,11 @@
126
136
  </entry>
127
137
  </map>
128
138
  </option>
139
+ <option name="oldMeFiltersMigrated" value="true" />
140
+ </component>
141
+ <component name="VcsManagerConfiguration">
142
+ <MESSAGE value="Update travis" />
143
+ <option name="LAST_COMMIT_MESSAGE" value="Update travis" />
129
144
  </component>
130
145
  <component name="com.intellij.coverage.CoverageDataManagerImpl">
131
146
  <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.1"
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.1
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-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty