acumatica 0.4.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +10 -0
- data/.github/workflows/ruby.yml +33 -0
- data/.rubocop.yml +8 -2
- data/.travis.yml +1 -2
- data/acumatica.gemspec +8 -8
- data/bin/console +3 -3
- data/lib/acumatica/client.rb +0 -2
- data/lib/acumatica/errors.rb +1 -1
- data/lib/acumatica/resource.rb +1 -6
- data/lib/acumatica/version.rb +1 -1
- metadata +34 -46
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c603f7771ef7434e291c90565af66da2d1496f034b5d5066a2365159f08231b2
|
4
|
+
data.tar.gz: 59132e4f6f745be823303ef2b62ca62675c3fc8861c134d7a8c1063e6fa52a74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 798eac48a99d6555da819fc135fcd18dd0f409a844365dbccd4bace7cd6a73783bf01b405b6cc649357a4240aa503c3b8a84ce03660a27927fe5a946f9e3574e
|
7
|
+
data.tar.gz: e6b26581895b425761bb60711ac4890161f71ec937d5b5a868196b1d252c76d5d0518491c0c6855aa84d2d42509ecf4db4b35e258e766299e9d520671111af79
|
@@ -0,0 +1,33 @@
|
|
1
|
+
name: Ruby
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ "main" ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ "main" ]
|
8
|
+
|
9
|
+
permissions:
|
10
|
+
contents: read
|
11
|
+
|
12
|
+
env:
|
13
|
+
ACUMATICA_URL: https://example.com
|
14
|
+
ACUMATICA_USER: user@install
|
15
|
+
ACUMATICA_PASSWORD: password
|
16
|
+
|
17
|
+
jobs:
|
18
|
+
test:
|
19
|
+
|
20
|
+
runs-on: ubuntu-latest
|
21
|
+
strategy:
|
22
|
+
matrix:
|
23
|
+
ruby-version: ['2.7', '3.0', '3.1']
|
24
|
+
|
25
|
+
steps:
|
26
|
+
- uses: actions/checkout@v3
|
27
|
+
- name: Set up Ruby
|
28
|
+
uses: ruby/setup-ruby@v1
|
29
|
+
with:
|
30
|
+
ruby-version: ${{ matrix.ruby-version }}
|
31
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
32
|
+
- name: Run tests
|
33
|
+
run: bundle exec rake
|
data/.rubocop.yml
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
inherit_from: .rubocop_todo.yml
|
2
2
|
|
3
|
-
require:
|
3
|
+
require:
|
4
|
+
- rubocop-rake
|
5
|
+
- rubocop-rspec
|
4
6
|
|
5
7
|
AllCops:
|
6
|
-
|
8
|
+
NewCops: enable
|
9
|
+
TargetRubyVersion: 2.7
|
7
10
|
|
8
11
|
Metrics/BlockLength:
|
9
12
|
Exclude:
|
@@ -16,5 +19,8 @@ Metrics/LineLength:
|
|
16
19
|
Metrics/MethodLength:
|
17
20
|
Max: 15
|
18
21
|
|
22
|
+
Style/OpenStructUse:
|
23
|
+
Enabled: false
|
24
|
+
|
19
25
|
Style/StringLiterals:
|
20
26
|
Enabled: false
|
data/.travis.yml
CHANGED
data/acumatica.gemspec
CHANGED
@@ -18,28 +18,28 @@ Gem::Specification.new do |spec|
|
|
18
18
|
f.match(%r{^(test|spec|features)/})
|
19
19
|
end
|
20
20
|
|
21
|
+
spec.metadata = { "rubygems_mfa_required" => "true" }
|
21
22
|
spec.bindir = "exe"
|
22
23
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
24
|
spec.require_paths = ["lib"]
|
24
25
|
|
25
|
-
spec.required_ruby_version = '>= 2.
|
26
|
+
spec.required_ruby_version = '>= 2.7.0'
|
26
27
|
|
27
28
|
spec.add_development_dependency "bundler"
|
28
29
|
spec.add_development_dependency "byebug"
|
29
30
|
spec.add_development_dependency "dotenv"
|
30
31
|
spec.add_development_dependency "guard-rspec"
|
31
32
|
spec.add_development_dependency "guard-rubocop"
|
32
|
-
spec.add_development_dependency "rake", "~>
|
33
|
-
spec.add_development_dependency "rspec", "~> 3.
|
34
|
-
spec.add_development_dependency "rubocop", "~>
|
35
|
-
spec.add_development_dependency "rubocop-performance", "~> 1.
|
36
|
-
spec.add_development_dependency "rubocop-
|
33
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
34
|
+
spec.add_development_dependency "rspec", "~> 3.12"
|
35
|
+
spec.add_development_dependency "rubocop", "~> 1.40"
|
36
|
+
spec.add_development_dependency "rubocop-performance", "~> 1.15.0"
|
37
|
+
spec.add_development_dependency "rubocop-rake", "~> 0.6.0"
|
38
|
+
spec.add_development_dependency "rubocop-rspec", "~> 2.15.0"
|
37
39
|
spec.add_development_dependency "vcr"
|
38
40
|
spec.add_development_dependency "webmock"
|
39
41
|
|
40
42
|
spec.add_dependency "activesupport"
|
41
43
|
spec.add_dependency "faraday"
|
42
44
|
spec.add_dependency "faraday-cookie_jar"
|
43
|
-
spec.add_dependency "faraday_middleware"
|
44
|
-
spec.add_dependency "json"
|
45
45
|
end
|
data/bin/console
CHANGED
@@ -10,9 +10,9 @@ require "acumatica"
|
|
10
10
|
# with your gem easier. You can also use a different console, if you like.
|
11
11
|
|
12
12
|
@acumatica = Acumatica::Client.configure do |config|
|
13
|
-
config.url = ENV
|
14
|
-
config.name = ENV
|
15
|
-
config.password = ENV
|
13
|
+
config.url = ENV.fetch('ACUMATICA_URL')
|
14
|
+
config.name = ENV.fetch('ACUMATICA_USER')
|
15
|
+
config.password = ENV.fetch('ACUMATICA_PASSWORD')
|
16
16
|
config.debug = true
|
17
17
|
end
|
18
18
|
|
data/lib/acumatica/client.rb
CHANGED
data/lib/acumatica/errors.rb
CHANGED
data/lib/acumatica/resource.rb
CHANGED
@@ -2,11 +2,6 @@
|
|
2
2
|
|
3
3
|
require "active_support/core_ext/string/inflections"
|
4
4
|
require "active_support/core_ext/hash/keys"
|
5
|
-
|
6
|
-
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.5.0')
|
7
|
-
require "active_support/core_ext/hash/transform_values"
|
8
|
-
end
|
9
|
-
|
10
5
|
require "ostruct"
|
11
6
|
|
12
7
|
module Acumatica
|
@@ -85,7 +80,7 @@ module Acumatica
|
|
85
80
|
end
|
86
81
|
|
87
82
|
def methodify(string)
|
88
|
-
string.underscore.parameterize(methodify_separator)
|
83
|
+
string.underscore.parameterize(**methodify_separator)
|
89
84
|
end
|
90
85
|
|
91
86
|
def methodify_separator
|
data/lib/acumatica/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acumatica
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jared Moody
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -86,86 +86,86 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '13.0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '13.0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rspec
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 3.
|
103
|
+
version: '3.12'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 3.
|
110
|
+
version: '3.12'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rubocop
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: '1.40'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
124
|
+
version: '1.40'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rubocop-performance
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 1.
|
131
|
+
version: 1.15.0
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 1.
|
138
|
+
version: 1.15.0
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
|
-
name: rubocop-
|
140
|
+
name: rubocop-rake
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: 0.6.0
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
152
|
+
version: 0.6.0
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
154
|
+
name: rubocop-rspec
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- - "
|
157
|
+
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
159
|
+
version: 2.15.0
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- - "
|
164
|
+
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
166
|
+
version: 2.15.0
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
|
-
name:
|
168
|
+
name: vcr
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
171
|
- - ">="
|
@@ -179,27 +179,13 @@ dependencies:
|
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0'
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
|
-
name:
|
183
|
-
requirement: !ruby/object:Gem::Requirement
|
184
|
-
requirements:
|
185
|
-
- - ">="
|
186
|
-
- !ruby/object:Gem::Version
|
187
|
-
version: '0'
|
188
|
-
type: :runtime
|
189
|
-
prerelease: false
|
190
|
-
version_requirements: !ruby/object:Gem::Requirement
|
191
|
-
requirements:
|
192
|
-
- - ">="
|
193
|
-
- !ruby/object:Gem::Version
|
194
|
-
version: '0'
|
195
|
-
- !ruby/object:Gem::Dependency
|
196
|
-
name: faraday
|
182
|
+
name: webmock
|
197
183
|
requirement: !ruby/object:Gem::Requirement
|
198
184
|
requirements:
|
199
185
|
- - ">="
|
200
186
|
- !ruby/object:Gem::Version
|
201
187
|
version: '0'
|
202
|
-
type: :
|
188
|
+
type: :development
|
203
189
|
prerelease: false
|
204
190
|
version_requirements: !ruby/object:Gem::Requirement
|
205
191
|
requirements:
|
@@ -207,7 +193,7 @@ dependencies:
|
|
207
193
|
- !ruby/object:Gem::Version
|
208
194
|
version: '0'
|
209
195
|
- !ruby/object:Gem::Dependency
|
210
|
-
name:
|
196
|
+
name: activesupport
|
211
197
|
requirement: !ruby/object:Gem::Requirement
|
212
198
|
requirements:
|
213
199
|
- - ">="
|
@@ -221,7 +207,7 @@ dependencies:
|
|
221
207
|
- !ruby/object:Gem::Version
|
222
208
|
version: '0'
|
223
209
|
- !ruby/object:Gem::Dependency
|
224
|
-
name:
|
210
|
+
name: faraday
|
225
211
|
requirement: !ruby/object:Gem::Requirement
|
226
212
|
requirements:
|
227
213
|
- - ">="
|
@@ -235,7 +221,7 @@ dependencies:
|
|
235
221
|
- !ruby/object:Gem::Version
|
236
222
|
version: '0'
|
237
223
|
- !ruby/object:Gem::Dependency
|
238
|
-
name:
|
224
|
+
name: faraday-cookie_jar
|
239
225
|
requirement: !ruby/object:Gem::Requirement
|
240
226
|
requirements:
|
241
227
|
- - ">="
|
@@ -248,13 +234,15 @@ dependencies:
|
|
248
234
|
- - ">="
|
249
235
|
- !ruby/object:Gem::Version
|
250
236
|
version: '0'
|
251
|
-
description:
|
237
|
+
description:
|
252
238
|
email:
|
253
239
|
- jared@jetbuilt.com
|
254
240
|
executables: []
|
255
241
|
extensions: []
|
256
242
|
extra_rdoc_files: []
|
257
243
|
files:
|
244
|
+
- ".github/dependabot.yml"
|
245
|
+
- ".github/workflows/ruby.yml"
|
258
246
|
- ".gitignore"
|
259
247
|
- ".rspec"
|
260
248
|
- ".rubocop.yml"
|
@@ -282,8 +270,9 @@ files:
|
|
282
270
|
homepage: https://github.com/jetbuilt/acumatica
|
283
271
|
licenses:
|
284
272
|
- MIT
|
285
|
-
metadata:
|
286
|
-
|
273
|
+
metadata:
|
274
|
+
rubygems_mfa_required: 'true'
|
275
|
+
post_install_message:
|
287
276
|
rdoc_options: []
|
288
277
|
require_paths:
|
289
278
|
- lib
|
@@ -291,16 +280,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
291
280
|
requirements:
|
292
281
|
- - ">="
|
293
282
|
- !ruby/object:Gem::Version
|
294
|
-
version: 2.
|
283
|
+
version: 2.7.0
|
295
284
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
296
285
|
requirements:
|
297
286
|
- - ">="
|
298
287
|
- !ruby/object:Gem::Version
|
299
288
|
version: '0'
|
300
289
|
requirements: []
|
301
|
-
|
302
|
-
|
303
|
-
signing_key:
|
290
|
+
rubygems_version: 3.3.26
|
291
|
+
signing_key:
|
304
292
|
specification_version: 4
|
305
293
|
summary: A wrapper for the acumatica API
|
306
294
|
test_files: []
|