acumatica 0.4.0 → 0.5.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 -6
- data/bin/console +3 -3
- data/lib/acumatica/client.rb +0 -1
- data/lib/acumatica/errors.rb +1 -1
- data/lib/acumatica/resource.rb +1 -6
- data/lib/acumatica/version.rb +1 -1
- metadata +36 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae662689316da40f51d08df2e3130e2b839a057f3cd825c5e4ccdc4011c858d5
|
4
|
+
data.tar.gz: 17cc1e3e5d0cb8b664a469d124266146531901f0989219b5ad2578475819602c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 237a18fb2606030ea2b6a5c37f1cec51cd4c8bed4f1137f73a4be521b0cb93e0038c4784532e2e76866175b3ed61400de5e16f202143ef51ce0225f5c6d9df58
|
7
|
+
data.tar.gz: cdb553907b9a02fdca211bcadd3b3461239f34ecbbb3d468af51796f59057e4f57c0fd40c71c8870171145994b3e25aaac4d7ab08426820b11cb68fbcc63855c
|
@@ -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,22 +18,24 @@ 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
|
|
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.5.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: 2022-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -86,70 +86,84 @@ 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
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rubocop-rake
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 0.6.0
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 0.6.0
|
139
153
|
- !ruby/object:Gem::Dependency
|
140
154
|
name: rubocop-rspec
|
141
155
|
requirement: !ruby/object:Gem::Requirement
|
142
156
|
requirements:
|
143
157
|
- - "~>"
|
144
158
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
159
|
+
version: 2.15.0
|
146
160
|
type: :development
|
147
161
|
prerelease: false
|
148
162
|
version_requirements: !ruby/object:Gem::Requirement
|
149
163
|
requirements:
|
150
164
|
- - "~>"
|
151
165
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
166
|
+
version: 2.15.0
|
153
167
|
- !ruby/object:Gem::Dependency
|
154
168
|
name: vcr
|
155
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -248,13 +262,15 @@ dependencies:
|
|
248
262
|
- - ">="
|
249
263
|
- !ruby/object:Gem::Version
|
250
264
|
version: '0'
|
251
|
-
description:
|
265
|
+
description:
|
252
266
|
email:
|
253
267
|
- jared@jetbuilt.com
|
254
268
|
executables: []
|
255
269
|
extensions: []
|
256
270
|
extra_rdoc_files: []
|
257
271
|
files:
|
272
|
+
- ".github/dependabot.yml"
|
273
|
+
- ".github/workflows/ruby.yml"
|
258
274
|
- ".gitignore"
|
259
275
|
- ".rspec"
|
260
276
|
- ".rubocop.yml"
|
@@ -282,8 +298,9 @@ files:
|
|
282
298
|
homepage: https://github.com/jetbuilt/acumatica
|
283
299
|
licenses:
|
284
300
|
- MIT
|
285
|
-
metadata:
|
286
|
-
|
301
|
+
metadata:
|
302
|
+
rubygems_mfa_required: 'true'
|
303
|
+
post_install_message:
|
287
304
|
rdoc_options: []
|
288
305
|
require_paths:
|
289
306
|
- lib
|
@@ -291,16 +308,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
291
308
|
requirements:
|
292
309
|
- - ">="
|
293
310
|
- !ruby/object:Gem::Version
|
294
|
-
version: 2.
|
311
|
+
version: 2.7.0
|
295
312
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
296
313
|
requirements:
|
297
314
|
- - ">="
|
298
315
|
- !ruby/object:Gem::Version
|
299
316
|
version: '0'
|
300
317
|
requirements: []
|
301
|
-
|
302
|
-
|
303
|
-
signing_key:
|
318
|
+
rubygems_version: 3.3.26
|
319
|
+
signing_key:
|
304
320
|
specification_version: 4
|
305
321
|
summary: A wrapper for the acumatica API
|
306
322
|
test_files: []
|