ledger_sync-netsuite 0.6.1 → 0.7.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: 2b8d8c063f6172500a55b2c467e91d1e33f3917baf063236ccbba1023f9f5d3f
4
- data.tar.gz: 4eac2d3363ada9aabf1e4c522cd018cc723ea882e40ec1550ff95f343f43a037
3
+ metadata.gz: 570d5cee55aad9ccfbc3dc3aeb0f31d651aa3c3f194349acf7a8dc033fe0bd9d
4
+ data.tar.gz: fa25504510be8ce38908639ab666092c52b5a1500de277798585e21eb3429f15
5
5
  SHA512:
6
- metadata.gz: 47a0e8870735f7ec53981e760ee2bda2b3a9bbe4514d6d237c64a9e2e74712b1a70b7c8c82f9b206b18b0353c4a2bf104a7bcb960672041698299f2089e6cd87
7
- data.tar.gz: 803e18ba4f8f6a3fab2e2928c791167f6312095f761d76dd87fe3a4414df8b09ce7902bb5213b0ada251b35997429c783333c7b61a8137336567d9c83074f9e3
6
+ metadata.gz: c801098741c76dbfb4a523fffa41270828e2d7cfdbbfd841be9bad3bad38d361b78e1ec9f5001147ac728335b9d6fdbb528d6386e31d10a03147be0619bdcbaf
7
+ data.tar.gz: f70b8fa7ebc090faef33ab9192c76609c3828606b8ad8f5baabcb41716df29f74de8f52b24c346c3a456235f3a4cbc96525647281e1b643f88bb779a43c40d5e
@@ -0,0 +1,76 @@
1
+ # For most projects, this workflow file will not need changing; you simply need
2
+ # to commit it to your repository.
3
+ #
4
+ # You may wish to alter this file to override the set of languages analyzed,
5
+ # or to provide custom queries or build logic.
6
+ #
7
+ # ******** NOTE ********
8
+ # We have attempted to detect the languages in your repository. Please check
9
+ # the `language` matrix defined below to confirm you have the correct set of
10
+ # supported CodeQL languages.
11
+ #
12
+ name: "CodeQL"
13
+
14
+ on:
15
+ push:
16
+ branches: [ "master", develop ]
17
+ pull_request:
18
+ # The branches below must be a subset of the branches above
19
+ branches: [ "master" ]
20
+ schedule:
21
+ - cron: '39 2 * * 6'
22
+
23
+ jobs:
24
+ analyze:
25
+ name: Analyze
26
+ runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
27
+ permissions:
28
+ actions: read
29
+ contents: read
30
+ security-events: write
31
+
32
+ strategy:
33
+ fail-fast: false
34
+ matrix:
35
+ language: [ 'ruby' ]
36
+ # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37
+ # Use only 'java' to analyze code written in Java, Kotlin or both
38
+ # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
39
+ # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
40
+
41
+ steps:
42
+ - name: Checkout repository
43
+ uses: actions/checkout@v3
44
+
45
+ # Initializes the CodeQL tools for scanning.
46
+ - name: Initialize CodeQL
47
+ uses: github/codeql-action/init@v2
48
+ with:
49
+ languages: ${{ matrix.language }}
50
+ # If you wish to specify custom queries, you can do so here or in a config file.
51
+ # By default, queries listed here will override any specified in a config file.
52
+ # Prefix the list here with "+" to use these queries and those in the config file.
53
+
54
+ # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
55
+ # queries: security-extended,security-and-quality
56
+
57
+
58
+ # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
59
+ # If this step fails, then you should remove it and run the build manually (see below)
60
+ - name: Autobuild
61
+ uses: github/codeql-action/autobuild@v2
62
+
63
+ # ℹ️ Command-line programs to run using the OS shell.
64
+ # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
65
+
66
+ # If the Autobuild fails above, remove it and uncomment the following three lines.
67
+ # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
68
+
69
+ # - run: |
70
+ # echo "Run, Build Application using script"
71
+ # ./location_of_script_within_repo/buildscript.sh
72
+
73
+ - name: Perform CodeQL Analysis
74
+ uses: github/codeql-action/analyze@v2
75
+ with:
76
+ category: "/language:${{matrix.language}}"
data/Gemfile.lock CHANGED
@@ -1,58 +1,72 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ledger_sync-netsuite (0.6.1)
4
+ ledger_sync-netsuite (0.7.1)
5
5
  dotenv
6
- ledger_sync (>= 2.4)
6
+ ledger_sync (>= 2.4, <= 3.0)
7
7
  nokogiri
8
8
  oauth2
9
9
 
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- activemodel (7.0.4.2)
14
- activesupport (= 7.0.4.2)
15
- activesupport (7.0.4.2)
13
+ activemodel (7.1.5.1)
14
+ activesupport (= 7.1.5.1)
15
+ activesupport (7.1.5.1)
16
+ base64
17
+ benchmark (>= 0.3)
18
+ bigdecimal
16
19
  concurrent-ruby (~> 1.0, >= 1.0.2)
20
+ connection_pool (>= 2.2.5)
21
+ drb
17
22
  i18n (>= 1.6, < 2)
23
+ logger (>= 1.4.2)
18
24
  minitest (>= 5.1)
25
+ mutex_m
26
+ securerandom (>= 0.3)
19
27
  tzinfo (~> 2.0)
20
- addressable (2.8.1)
21
- public_suffix (>= 2.0.2, < 6.0)
28
+ addressable (2.8.7)
29
+ public_suffix (>= 2.0.2, < 7.0)
22
30
  ast (2.4.2)
23
31
  awesome_print (1.9.2)
32
+ base64 (0.2.0)
33
+ benchmark (0.4.0)
34
+ bigdecimal (3.1.9)
24
35
  byebug (11.1.3)
25
36
  climate_control (1.2.0)
26
- colorize (0.8.1)
27
- concurrent-ruby (1.2.2)
28
- coveralls_reborn (0.27.0)
37
+ colorize (1.1.0)
38
+ concurrent-ruby (1.3.4)
39
+ connection_pool (2.4.1)
40
+ coveralls_reborn (0.28.0)
29
41
  simplecov (~> 0.22.0)
30
42
  term-ansicolor (~> 1.7)
31
43
  thor (~> 1.2)
32
44
  tins (~> 1.32)
33
- crack (0.4.5)
45
+ crack (1.0.0)
46
+ bigdecimal
34
47
  rexml
35
- diff-lcs (1.5.0)
36
- docile (1.4.0)
48
+ diff-lcs (1.5.1)
49
+ docile (1.4.1)
37
50
  dotenv (2.8.1)
51
+ drb (2.2.1)
38
52
  dry-configurable (1.0.1)
39
53
  dry-core (~> 1.0, < 2)
40
54
  zeitwerk (~> 2.6)
41
55
  dry-core (1.0.0)
42
56
  concurrent-ruby (~> 1.0)
43
57
  zeitwerk (~> 2.6)
44
- dry-inflector (1.0.0)
58
+ dry-inflector (1.1.0)
45
59
  dry-initializer (3.1.1)
46
60
  dry-logic (1.5.0)
47
61
  concurrent-ruby (~> 1.0)
48
62
  dry-core (~> 1.0, < 2)
49
63
  zeitwerk (~> 2.6)
50
- dry-schema (1.13.0)
64
+ dry-schema (1.13.4)
51
65
  concurrent-ruby (~> 1.0)
52
66
  dry-configurable (~> 1.0, >= 1.0.1)
53
67
  dry-core (~> 1.0, < 2)
54
68
  dry-initializer (~> 3.0)
55
- dry-logic (>= 1.5, < 2)
69
+ dry-logic (>= 1.4, < 2)
56
70
  dry-types (>= 1.7, < 2)
57
71
  zeitwerk (~> 2.6)
58
72
  dry-types (1.7.1)
@@ -67,9 +81,9 @@ GEM
67
81
  dry-initializer (~> 3.0)
68
82
  dry-schema (>= 1.12, < 2)
69
83
  zeitwerk (~> 2.6)
70
- factory_bot (6.2.1)
84
+ factory_bot (6.4.5)
71
85
  activesupport (>= 5.0.0)
72
- faraday (1.10.3)
86
+ faraday (1.10.4)
73
87
  faraday-em_http (~> 1.0)
74
88
  faraday-em_synchrony (~> 1.0)
75
89
  faraday-excon (~> 1.1)
@@ -87,25 +101,26 @@ GEM
87
101
  faraday-em_synchrony (1.0.0)
88
102
  faraday-excon (1.1.0)
89
103
  faraday-httpclient (1.0.1)
90
- faraday-multipart (1.0.4)
91
- multipart-post (~> 2)
92
- faraday-net_http (1.0.1)
104
+ faraday-multipart (1.1.0)
105
+ multipart-post (~> 2.0)
106
+ faraday-net_http (1.0.2)
93
107
  faraday-net_http_persistent (1.2.0)
94
108
  faraday-patron (1.0.0)
95
109
  faraday-rack (1.0.0)
96
110
  faraday-retry (1.0.3)
97
- faraday_middleware (1.2.0)
111
+ faraday_middleware (1.2.1)
98
112
  faraday (~> 1.0)
99
113
  fingerprintable (1.2.1)
100
114
  colorize
101
- hashdiff (1.0.1)
115
+ hashdiff (1.1.2)
102
116
  hashie (5.0.0)
103
- i18n (1.12.0)
117
+ i18n (1.14.6)
104
118
  concurrent-ruby (~> 1.0)
105
- ipaddr (1.2.5)
106
- json (2.6.3)
107
- jwt (2.7.0)
108
- ledger_sync (2.4.4)
119
+ json (2.9.1)
120
+ jwt (2.10.1)
121
+ base64
122
+ language_server-protocol (3.17.0.3)
123
+ ledger_sync (2.6.0)
109
124
  activemodel
110
125
  dotenv
111
126
  dry-schema
@@ -115,18 +130,20 @@ GEM
115
130
  faraday_middleware
116
131
  fingerprintable (>= 1.2.1)
117
132
  nokogiri
118
- openssl (~> 2.2.0)
133
+ openssl (> 2.2.0)
119
134
  pd_ruby
120
- rack (>= 2.2.3, < 3.1.0)
135
+ rack (>= 2.2.3)
121
136
  rainbow (~> 3.0)
122
137
  resonad
123
138
  simply_serializable (>= 1.5.1)
124
- mini_portile2 (2.8.1)
125
- minitest (5.17.0)
139
+ logger (1.6.4)
140
+ minitest (5.25.4)
126
141
  multi_xml (0.6.0)
127
- multipart-post (2.3.0)
128
- nokogiri (1.14.2)
129
- mini_portile2 (~> 2.8.0)
142
+ multipart-post (2.4.1)
143
+ mutex_m (0.3.0)
144
+ nokogiri (1.15.7-arm64-darwin)
145
+ racc (~> 1.4)
146
+ nokogiri (1.15.7-x86_64-linux)
130
147
  racc (~> 1.4)
131
148
  oauth2 (2.0.9)
132
149
  faraday (>= 0.17.3, < 3.0)
@@ -135,53 +152,54 @@ GEM
135
152
  rack (>= 1.2, < 4)
136
153
  snaky_hash (~> 2.0)
137
154
  version_gem (~> 1.1)
138
- openssl (2.2.3)
139
- ipaddr
140
- parallel (1.22.1)
141
- parser (3.2.1.0)
155
+ openssl (3.3.0)
156
+ parallel (1.26.3)
157
+ parser (3.3.6.0)
142
158
  ast (~> 2.4.1)
159
+ racc
143
160
  pd_ruby (0.2.3)
144
161
  colorize
145
- public_suffix (5.0.1)
146
- racc (1.6.2)
147
- rack (3.0.4.2)
162
+ public_suffix (5.1.1)
163
+ racc (1.8.1)
164
+ rack (3.1.8)
148
165
  rainbow (3.1.1)
149
- rake (13.0.6)
150
- regexp_parser (2.7.0)
166
+ rake (13.2.1)
167
+ regexp_parser (2.10.0)
151
168
  resonad (1.4.0)
152
- rexml (3.2.5)
153
- rspec (3.12.0)
154
- rspec-core (~> 3.12.0)
155
- rspec-expectations (~> 3.12.0)
156
- rspec-mocks (~> 3.12.0)
157
- rspec-core (3.12.1)
158
- rspec-support (~> 3.12.0)
159
- rspec-expectations (3.12.2)
169
+ rexml (3.4.0)
170
+ rspec (3.13.0)
171
+ rspec-core (~> 3.13.0)
172
+ rspec-expectations (~> 3.13.0)
173
+ rspec-mocks (~> 3.13.0)
174
+ rspec-core (3.13.2)
175
+ rspec-support (~> 3.13.0)
176
+ rspec-expectations (3.13.3)
160
177
  diff-lcs (>= 1.2.0, < 2.0)
161
- rspec-support (~> 3.12.0)
162
- rspec-mocks (3.12.3)
178
+ rspec-support (~> 3.13.0)
179
+ rspec-mocks (3.13.2)
163
180
  diff-lcs (>= 1.2.0, < 2.0)
164
- rspec-support (~> 3.12.0)
165
- rspec-support (3.12.0)
166
- rubocop (1.47.0)
181
+ rspec-support (~> 3.13.0)
182
+ rspec-support (3.13.2)
183
+ rubocop (1.69.2)
167
184
  json (~> 2.3)
185
+ language_server-protocol (>= 3.17.0)
168
186
  parallel (~> 1.10)
169
- parser (>= 3.2.0.0)
187
+ parser (>= 3.3.0.2)
170
188
  rainbow (>= 2.2.2, < 4.0)
171
- regexp_parser (>= 1.8, < 3.0)
172
- rexml (>= 3.2.5, < 4.0)
173
- rubocop-ast (>= 1.26.0, < 2.0)
189
+ regexp_parser (>= 2.9.3, < 3.0)
190
+ rubocop-ast (>= 1.36.2, < 2.0)
174
191
  ruby-progressbar (~> 1.7)
175
- unicode-display_width (>= 2.4.0, < 3.0)
176
- rubocop-ast (1.27.0)
177
- parser (>= 3.2.1.0)
178
- ruby-progressbar (1.12.0)
192
+ unicode-display_width (>= 2.4.0, < 4.0)
193
+ rubocop-ast (1.37.0)
194
+ parser (>= 3.3.1.0)
195
+ ruby-progressbar (1.13.0)
179
196
  ruby2_keywords (0.0.5)
197
+ securerandom (0.3.2)
180
198
  simplecov (0.22.0)
181
199
  docile (~> 1.1)
182
200
  simplecov-html (~> 0.11)
183
201
  simplecov_json_formatter (~> 0.1)
184
- simplecov-html (0.12.3)
202
+ simplecov-html (0.13.1)
185
203
  simplecov-lcov (0.8.0)
186
204
  simplecov_json_formatter (0.1.4)
187
205
  simply_serializable (1.5.1)
@@ -190,23 +208,27 @@ GEM
190
208
  hashie
191
209
  version_gem (~> 1.1, >= 1.1.1)
192
210
  sync (0.5.0)
193
- term-ansicolor (1.7.1)
211
+ term-ansicolor (1.11.2)
194
212
  tins (~> 1.0)
195
- thor (1.2.1)
196
- tins (1.32.1)
213
+ thor (1.3.2)
214
+ tins (1.37.1)
215
+ bigdecimal
197
216
  sync
198
217
  tzinfo (2.0.6)
199
218
  concurrent-ruby (~> 1.0)
200
- unicode-display_width (2.4.2)
201
- version_gem (1.1.1)
202
- webmock (3.18.1)
219
+ unicode-display_width (3.1.3)
220
+ unicode-emoji (~> 4.0, >= 4.0.4)
221
+ unicode-emoji (4.0.4)
222
+ version_gem (1.1.4)
223
+ webmock (3.24.0)
203
224
  addressable (>= 2.8.0)
204
225
  crack (>= 0.3.2)
205
226
  hashdiff (>= 0.4.0, < 2.0.0)
206
- zeitwerk (2.6.7)
227
+ zeitwerk (2.6.18)
207
228
 
208
229
  PLATFORMS
209
- ruby
230
+ arm64-darwin-24
231
+ x86_64-linux
210
232
 
211
233
  DEPENDENCIES
212
234
  awesome_print
@@ -224,4 +246,4 @@ DEPENDENCIES
224
246
  webmock
225
247
 
226
248
  BUNDLED WITH
227
- 2.2.22
249
+ 2.4.22
@@ -38,10 +38,10 @@ Gem::Specification.new do |spec|
38
38
  spec.add_development_dependency('simplecov')
39
39
  spec.add_development_dependency('simplecov-lcov')
40
40
  spec.add_development_dependency('webmock', '>= 0')
41
- spec.add_runtime_dependency('dotenv')
42
- spec.add_runtime_dependency('ledger_sync', '>= 2.4')
43
- spec.add_runtime_dependency('nokogiri', '>= 0')
44
- spec.add_runtime_dependency('oauth2', '>= 0')
41
+ spec.add_dependency('dotenv')
42
+ spec.add_dependency('ledger_sync', '>= 2.4', '<= 3.0')
43
+ spec.add_dependency('nokogiri', '>= 0')
44
+ spec.add_dependency('oauth2', '>= 0')
45
45
 
46
46
  spec.metadata['rubygems_mfa_required'] = 'true'
47
47
  end
@@ -34,15 +34,20 @@ module LedgerSync
34
34
  end
35
35
 
36
36
  def account_id_for_oauth
37
- account_id.gsub(/-/, '_').upcase
37
+ account_id.gsub('-', '_').upcase
38
38
  end
39
39
 
40
40
  def account_id_for_url
41
- account_id.gsub(/_/, '-').downcase
41
+ account_id.gsub('_', '-').downcase
42
42
  end
43
43
 
44
44
  def api_base_url
45
- @api_base_url ||= "https://#{api_host}/services/rest/record/v1"
45
+ @api_base_url ||= URI::HTTPS.build(
46
+ host: api_host,
47
+ path: '/services/rest/record/v1'
48
+ ).to_s
49
+ rescue URI::InvalidComponentError => e
50
+ raise LedgerSync::Error::LedgerError::ConfigurationError.new(client: self, message: e.message)
46
51
  end
47
52
 
48
53
  def api_host
@@ -7,9 +7,7 @@ module LedgerSync
7
7
  def initialize(message: nil)
8
8
  message ||= 'Subsidiaries are not enabled on this account'
9
9
 
10
- super(
11
- message: message
12
- )
10
+ super
13
11
  end
14
12
  end
15
13
  end
@@ -3,7 +3,7 @@
3
3
  # :nocov:
4
4
  module LedgerSync
5
5
  module NetSuite
6
- VERSION = '0.6.1'
6
+ VERSION = '0.7.1'
7
7
 
8
8
  def self.version
9
9
  if ENV['PRE_RELEASE']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ledger_sync-netsuite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Modern Treasury
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-03 00:00:00.000000000 Z
11
+ date: 2024-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print
@@ -199,6 +199,9 @@ dependencies:
199
199
  - - ">="
200
200
  - !ruby/object:Gem::Version
201
201
  version: '2.4'
202
+ - - "<="
203
+ - !ruby/object:Gem::Version
204
+ version: '3.0'
202
205
  type: :runtime
203
206
  prerelease: false
204
207
  version_requirements: !ruby/object:Gem::Requirement
@@ -206,6 +209,9 @@ dependencies:
206
209
  - - ">="
207
210
  - !ruby/object:Gem::Version
208
211
  version: '2.4'
212
+ - - "<="
213
+ - !ruby/object:Gem::Version
214
+ version: '3.0'
209
215
  - !ruby/object:Gem::Dependency
210
216
  name: nokogiri
211
217
  requirement: !ruby/object:Gem::Requirement
@@ -243,6 +249,7 @@ extensions: []
243
249
  extra_rdoc_files: []
244
250
  files:
245
251
  - ".env.test"
252
+ - ".github/workflows/codeql.yml"
246
253
  - ".github/workflows/gem-workflow.yml"
247
254
  - ".gitignore"
248
255
  - ".overcommit.yml"
@@ -384,7 +391,7 @@ homepage: https://www.ledgersync.dev
384
391
  licenses: []
385
392
  metadata:
386
393
  rubygems_mfa_required: 'true'
387
- post_install_message:
394
+ post_install_message:
388
395
  rdoc_options: []
389
396
  require_paths:
390
397
  - lib
@@ -400,7 +407,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
400
407
  version: '0'
401
408
  requirements: []
402
409
  rubygems_version: 3.1.6
403
- signing_key:
410
+ signing_key:
404
411
  specification_version: 4
405
412
  summary: Sync common objects to accounting software.
406
413
  test_files: []