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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2695cf1c82bb20ed0bea59a2c768dca14e86d0bfcf4cd3b94cede1c39b11ec97
4
- data.tar.gz: 57d2657b1ad9aaa680e4d31671dffdf62cd5e50d2e2a6a2edb6baf2a22b6085d
3
+ metadata.gz: c603f7771ef7434e291c90565af66da2d1496f034b5d5066a2365159f08231b2
4
+ data.tar.gz: 59132e4f6f745be823303ef2b62ca62675c3fc8861c134d7a8c1063e6fa52a74
5
5
  SHA512:
6
- metadata.gz: 7f541135493a4de771222eadb61f867ab51b4aaa8f3d8fd65f0f9095a222787b568926468c5e6a2783c591d37df5abf09a6c3dfaa4cc01eef6db0c36e3fe037e
7
- data.tar.gz: e48e19fcfe339d8eb67590b628cb6d4640ee35410702cd8f16737e2ef5e4fd647b9e9dcbaf5df2621bad686055ef98f8474dabe97c4aed7065959f40f7485ecd
6
+ metadata.gz: 798eac48a99d6555da819fc135fcd18dd0f409a844365dbccd4bace7cd6a73783bf01b405b6cc649357a4240aa503c3b8a84ce03660a27927fe5a946f9e3574e
7
+ data.tar.gz: e6b26581895b425761bb60711ac4890161f71ec937d5b5a868196b1d252c76d5d0518491c0c6855aa84d2d42509ecf4db4b35e258e766299e9d520671111af79
@@ -0,0 +1,10 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: weekly
7
+ timezone: America/Los_Angeles
8
+ open-pull-requests-limit: 99
9
+ versioning-strategy: lockfile-only
10
+ rebase-strategy: disabled
@@ -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: rubocop-rspec
3
+ require:
4
+ - rubocop-rake
5
+ - rubocop-rspec
4
6
 
5
7
  AllCops:
6
- TargetRubyVersion: 2.4
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
@@ -1,9 +1,8 @@
1
1
  language: ruby
2
2
 
3
3
  rvm:
4
- - 2.4
5
- - 2.5
6
4
  - 2.6
5
+ - 2.7
7
6
 
8
7
  env:
9
8
  - ACUMATICA_URL=https://acumatica.example.org
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.4.0'
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", "~> 10.0"
33
- spec.add_development_dependency "rspec", "~> 3.7.0"
34
- spec.add_development_dependency "rubocop", "~> 0.68.0"
35
- spec.add_development_dependency "rubocop-performance", "~> 1.1.0"
36
- spec.add_development_dependency "rubocop-rspec", "~> 1.32.0"
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['ACUMATICA_URL']
14
- config.name = ENV['ACUMATICA_USER']
15
- config.password = ENV['ACUMATICA_PASSWORD']
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
 
@@ -1,8 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "faraday"
4
- require "faraday"
5
- require "faraday_middleware"
6
4
  require "faraday-cookie_jar"
7
5
  require "singleton"
8
6
 
@@ -35,7 +35,7 @@ module Acumatica
35
35
 
36
36
  class BadRequest < Error
37
37
  def error_message(env)
38
- super(env) + ": " + env[:body]["modelState"].values.join(",")
38
+ "#{super(env)}: #{env[:body]['modelState'].values.join(',')}"
39
39
  end
40
40
  end
41
41
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Acumatica
4
- VERSION = "0.4.0"
4
+ VERSION = "0.6.0"
5
5
  end
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.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: 2019-04-30 00:00:00.000000000 Z
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: '10.0'
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: '10.0'
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.7.0
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.7.0
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: 0.68.0
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: 0.68.0
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.1.0
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.1.0
138
+ version: 1.15.0
139
139
  - !ruby/object:Gem::Dependency
140
- name: rubocop-rspec
140
+ name: rubocop-rake
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 1.32.0
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: 1.32.0
152
+ version: 0.6.0
153
153
  - !ruby/object:Gem::Dependency
154
- name: vcr
154
+ name: rubocop-rspec
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - ">="
157
+ - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: '0'
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: '0'
166
+ version: 2.15.0
167
167
  - !ruby/object:Gem::Dependency
168
- name: webmock
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: activesupport
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: :runtime
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: faraday-cookie_jar
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: faraday_middleware
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: json
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
- post_install_message:
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.4.0
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
- rubyforge_project:
302
- rubygems_version: 2.7.9
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: []