ledger_sync-netsuite 0.3.6 → 0.5.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: 95e8639fb4e5d4e11c4d638f7872fe037b2ee6145d1260c5b8786ecd9a25c951
4
- data.tar.gz: 30960fbb46a8fb5815a49fe7c3ef8328338d15106be52bb5c756ee773a0d9cc0
3
+ metadata.gz: 47a754744aecd65f4d0176a42948a250003fa88487e03f35c57be5abb1538938
4
+ data.tar.gz: c64f9c4392b2d4b7fd728fd46e913b594111896e1e2f903db709f8060b9fe957
5
5
  SHA512:
6
- metadata.gz: a9f2abee457833c1cd8e66ffa68b870c4304fdb044c7bcc8448ee4eb53ce023cb64426726c4316df3cd81e58a565b3ab5a118bbac6dc181199d677dd9e8df873
7
- data.tar.gz: fb788ea08dfa8438f6d8d3e28c4093ef3fa8bec4c9a46f25484b2c1c50158d418aa2a2c253b4e1f0a8174c659b221a68fa8a76fcc4b45ca0511754225e4c3bc0
6
+ metadata.gz: 64c7ee3b3b0ea8cc199264110a73b8452626a1f49c4bcd8917e7eff4a8cc62e080db1a2993a05434a9ebf5b98a6ce01fd9045431601ef596303c56efe4e10693
7
+ data.tar.gz: a7b4a422f16998f89a45b4f4c02ea539fa6e47443d7a9b5e86a77d6e58176870df492162f4a0e0e5fa6aaa4a430ff679cf3cfc014a44d398120e109bd008b2d4
@@ -8,8 +8,9 @@ jobs:
8
8
  rubocop:
9
9
  strategy:
10
10
  matrix:
11
- ruby-version: [2.7.5, 3.0.2]
12
- runs-on: [ubuntu-latest]
11
+ os: [ubuntu-latest]
12
+ ruby-version: ['2.7', '3.0']
13
+ runs-on: ${{ matrix.os }}
13
14
  steps:
14
15
  - uses: actions/checkout@v2
15
16
  with:
@@ -24,8 +25,9 @@ jobs:
24
25
  rspec:
25
26
  strategy:
26
27
  matrix:
27
- ruby-version: [2.7.5, 3.0.2]
28
- runs-on: [ubuntu-latest]
28
+ os: [ubuntu-latest]
29
+ ruby-version: ['2.7', '3.0']
30
+ runs-on: ${{ matrix.os }}
29
31
  steps:
30
32
  - uses: actions/checkout@v2
31
33
  with:
data/.rubocop_todo.yml CHANGED
@@ -6,6 +6,9 @@
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
+ Gemspec/DevelopmentDependencies:
10
+ Enabled: False
11
+
9
12
  Metrics/AbcSize:
10
13
  Enabled: False
11
14
 
data/Gemfile.lock CHANGED
@@ -1,76 +1,75 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ledger_sync-netsuite (0.3.6)
4
+ ledger_sync-netsuite (0.5.0)
5
5
  dotenv
6
- ledger_sync (>= 2.3.1)
6
+ ledger_sync (>= 2.4)
7
7
  nokogiri
8
8
  oauth2
9
9
 
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- activemodel (7.0.2.2)
14
- activesupport (= 7.0.2.2)
15
- activesupport (7.0.2.2)
13
+ activemodel (7.0.4.2)
14
+ activesupport (= 7.0.4.2)
15
+ activesupport (7.0.4.2)
16
16
  concurrent-ruby (~> 1.0, >= 1.0.2)
17
17
  i18n (>= 1.6, < 2)
18
18
  minitest (>= 5.1)
19
19
  tzinfo (~> 2.0)
20
- addressable (2.8.0)
21
- public_suffix (>= 2.0.2, < 5.0)
20
+ addressable (2.8.1)
21
+ public_suffix (>= 2.0.2, < 6.0)
22
22
  ast (2.4.2)
23
23
  awesome_print (1.9.2)
24
24
  byebug (11.1.3)
25
- climate_control (1.0.1)
25
+ climate_control (1.2.0)
26
26
  colorize (0.8.1)
27
- concurrent-ruby (1.1.9)
28
- coveralls (0.7.2)
29
- multi_json (~> 1.3)
30
- rest-client (= 1.6.7)
31
- simplecov (>= 0.7)
32
- term-ansicolor (= 1.2.2)
33
- thor (= 0.18.1)
27
+ concurrent-ruby (1.2.0)
28
+ coveralls_reborn (0.27.0)
29
+ simplecov (~> 0.22.0)
30
+ term-ansicolor (~> 1.7)
31
+ thor (~> 1.2)
32
+ tins (~> 1.32)
34
33
  crack (0.4.5)
35
34
  rexml
36
35
  diff-lcs (1.5.0)
37
36
  docile (1.4.0)
38
- dotenv (2.7.6)
39
- dry-configurable (0.14.0)
37
+ dotenv (2.8.1)
38
+ dry-configurable (1.0.1)
39
+ dry-core (~> 1.0, < 2)
40
+ zeitwerk (~> 2.6)
41
+ dry-core (1.0.0)
40
42
  concurrent-ruby (~> 1.0)
41
- dry-core (~> 0.6)
42
- dry-container (0.9.0)
43
- concurrent-ruby (~> 1.0)
44
- dry-configurable (~> 0.13, >= 0.13.0)
45
- dry-core (0.7.1)
46
- concurrent-ruby (~> 1.0)
47
- dry-inflector (0.2.1)
43
+ zeitwerk (~> 2.6)
44
+ dry-inflector (1.0.0)
48
45
  dry-initializer (3.1.1)
49
- dry-logic (1.2.0)
46
+ dry-logic (1.5.0)
50
47
  concurrent-ruby (~> 1.0)
51
- dry-core (~> 0.5, >= 0.5)
52
- dry-schema (1.9.1)
48
+ dry-core (~> 1.0, < 2)
49
+ zeitwerk (~> 2.6)
50
+ dry-schema (1.13.0)
53
51
  concurrent-ruby (~> 1.0)
54
- dry-configurable (~> 0.13, >= 0.13.0)
55
- dry-core (~> 0.5, >= 0.5)
52
+ dry-configurable (~> 1.0, >= 1.0.1)
53
+ dry-core (~> 1.0, < 2)
56
54
  dry-initializer (~> 3.0)
57
- dry-logic (~> 1.0)
58
- dry-types (~> 1.5)
59
- dry-types (1.5.1)
55
+ dry-logic (>= 1.5, < 2)
56
+ dry-types (>= 1.7, < 2)
57
+ zeitwerk (~> 2.6)
58
+ dry-types (1.7.1)
60
59
  concurrent-ruby (~> 1.0)
61
- dry-container (~> 0.3)
62
- dry-core (~> 0.5, >= 0.5)
63
- dry-inflector (~> 0.1, >= 0.1.2)
64
- dry-logic (~> 1.0, >= 1.0.2)
65
- dry-validation (1.8.0)
60
+ dry-core (~> 1.0)
61
+ dry-inflector (~> 1.0)
62
+ dry-logic (~> 1.4)
63
+ zeitwerk (~> 2.6)
64
+ dry-validation (1.10.0)
66
65
  concurrent-ruby (~> 1.0)
67
- dry-container (~> 0.7, >= 0.7.1)
68
- dry-core (~> 0.5, >= 0.5)
66
+ dry-core (~> 1.0, < 2)
69
67
  dry-initializer (~> 3.0)
70
- dry-schema (~> 1.9, >= 1.9.1)
71
- factory_bot (6.2.0)
68
+ dry-schema (>= 1.12, < 2)
69
+ zeitwerk (~> 2.6)
70
+ factory_bot (6.2.1)
72
71
  activesupport (>= 5.0.0)
73
- faraday (1.10.0)
72
+ faraday (1.10.3)
74
73
  faraday-em_http (~> 1.0)
75
74
  faraday-em_synchrony (~> 1.0)
76
75
  faraday-excon (~> 1.1)
@@ -88,8 +87,8 @@ GEM
88
87
  faraday-em_synchrony (1.0.0)
89
88
  faraday-excon (1.1.0)
90
89
  faraday-httpclient (1.0.1)
91
- faraday-multipart (1.0.3)
92
- multipart-post (>= 1.2, < 3)
90
+ faraday-multipart (1.0.4)
91
+ multipart-post (~> 2)
93
92
  faraday-net_http (1.0.1)
94
93
  faraday-net_http_persistent (1.2.0)
95
94
  faraday-patron (1.0.0)
@@ -100,12 +99,15 @@ GEM
100
99
  fingerprintable (1.2.1)
101
100
  colorize
102
101
  hashdiff (1.0.1)
103
- i18n (1.10.0)
102
+ hashie (5.0.0)
103
+ i18n (1.12.0)
104
104
  concurrent-ruby (~> 1.0)
105
- ipaddr (1.2.4)
106
- jwt (2.3.0)
107
- ledger_sync (2.3.1)
105
+ ipaddr (1.2.5)
106
+ json (2.6.3)
107
+ jwt (2.7.0)
108
+ ledger_sync (2.4.4)
108
109
  activemodel
110
+ dotenv
109
111
  dry-schema
110
112
  dry-validation
111
113
  faraday
@@ -115,71 +117,67 @@ GEM
115
117
  nokogiri
116
118
  openssl (~> 2.2.0)
117
119
  pd_ruby
118
- rack (~> 2.2.3)
120
+ rack (>= 2.2.3, < 3.1.0)
119
121
  rainbow (~> 3.0)
120
122
  resonad
121
123
  simply_serializable (>= 1.5.1)
122
- mime-types (3.4.1)
123
- mime-types-data (~> 3.2015)
124
- mime-types-data (3.2022.0105)
125
- mini_portile2 (2.8.0)
126
- minitest (5.15.0)
127
- multi_json (1.15.0)
124
+ mini_portile2 (2.8.1)
125
+ minitest (5.17.0)
128
126
  multi_xml (0.6.0)
129
- multipart-post (2.1.1)
130
- nokogiri (1.13.3)
127
+ multipart-post (2.3.0)
128
+ nokogiri (1.14.2)
131
129
  mini_portile2 (~> 2.8.0)
132
130
  racc (~> 1.4)
133
- oauth2 (1.4.9)
131
+ oauth2 (2.0.9)
134
132
  faraday (>= 0.17.3, < 3.0)
135
133
  jwt (>= 1.0, < 3.0)
136
- multi_json (~> 1.3)
137
134
  multi_xml (~> 0.5)
138
- rack (>= 1.2, < 3)
139
- openssl (2.2.1)
135
+ rack (>= 1.2, < 4)
136
+ snaky_hash (~> 2.0)
137
+ version_gem (~> 1.1)
138
+ openssl (2.2.3)
140
139
  ipaddr
141
- parallel (1.21.0)
142
- parser (3.1.1.0)
140
+ parallel (1.22.1)
141
+ parser (3.2.1.0)
143
142
  ast (~> 2.4.1)
144
143
  pd_ruby (0.2.3)
145
144
  colorize
146
- public_suffix (4.0.6)
147
- racc (1.6.0)
148
- rack (2.2.3)
145
+ public_suffix (5.0.1)
146
+ racc (1.6.2)
147
+ rack (3.0.4.1)
149
148
  rainbow (3.1.1)
150
149
  rake (13.0.6)
151
- regexp_parser (2.2.1)
150
+ regexp_parser (2.7.0)
152
151
  resonad (1.4.0)
153
- rest-client (1.6.7)
154
- mime-types (>= 1.16)
155
152
  rexml (3.2.5)
156
- rspec (3.11.0)
157
- rspec-core (~> 3.11.0)
158
- rspec-expectations (~> 3.11.0)
159
- rspec-mocks (~> 3.11.0)
160
- rspec-core (3.11.0)
161
- rspec-support (~> 3.11.0)
162
- rspec-expectations (3.11.0)
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)
163
160
  diff-lcs (>= 1.2.0, < 2.0)
164
- rspec-support (~> 3.11.0)
165
- rspec-mocks (3.11.0)
161
+ rspec-support (~> 3.12.0)
162
+ rspec-mocks (3.12.3)
166
163
  diff-lcs (>= 1.2.0, < 2.0)
167
- rspec-support (~> 3.11.0)
168
- rspec-support (3.11.0)
169
- rubocop (1.25.1)
164
+ rspec-support (~> 3.12.0)
165
+ rspec-support (3.12.0)
166
+ rubocop (1.45.1)
167
+ json (~> 2.3)
170
168
  parallel (~> 1.10)
171
- parser (>= 3.1.0.0)
169
+ parser (>= 3.2.0.0)
172
170
  rainbow (>= 2.2.2, < 4.0)
173
171
  regexp_parser (>= 1.8, < 3.0)
174
- rexml
175
- rubocop-ast (>= 1.15.1, < 2.0)
172
+ rexml (>= 3.2.5, < 4.0)
173
+ rubocop-ast (>= 1.24.1, < 2.0)
176
174
  ruby-progressbar (~> 1.7)
177
- unicode-display_width (>= 1.4.0, < 3.0)
178
- rubocop-ast (1.16.0)
179
- parser (>= 3.1.1.0)
175
+ unicode-display_width (>= 2.4.0, < 3.0)
176
+ rubocop-ast (1.26.0)
177
+ parser (>= 3.2.1.0)
180
178
  ruby-progressbar (1.11.0)
181
179
  ruby2_keywords (0.0.5)
182
- simplecov (0.21.2)
180
+ simplecov (0.22.0)
183
181
  docile (~> 1.1)
184
182
  simplecov-html (~> 0.11)
185
183
  simplecov_json_formatter (~> 0.1)
@@ -188,17 +186,24 @@ GEM
188
186
  simplecov_json_formatter (0.1.4)
189
187
  simply_serializable (1.5.1)
190
188
  fingerprintable (>= 1.2.1)
191
- term-ansicolor (1.2.2)
192
- tins (~> 0.8)
193
- thor (0.18.1)
194
- tins (0.13.2)
195
- tzinfo (2.0.4)
189
+ snaky_hash (2.0.1)
190
+ hashie
191
+ version_gem (~> 1.1, >= 1.1.1)
192
+ sync (0.5.0)
193
+ term-ansicolor (1.7.1)
194
+ tins (~> 1.0)
195
+ thor (1.2.1)
196
+ tins (1.32.1)
197
+ sync
198
+ tzinfo (2.0.6)
196
199
  concurrent-ruby (~> 1.0)
197
- unicode-display_width (2.1.0)
198
- webmock (3.14.0)
200
+ unicode-display_width (2.4.2)
201
+ version_gem (1.1.1)
202
+ webmock (3.18.1)
199
203
  addressable (>= 2.8.0)
200
204
  crack (>= 0.3.2)
201
205
  hashdiff (>= 0.4.0, < 2.0.0)
206
+ zeitwerk (2.6.7)
202
207
 
203
208
  PLATFORMS
204
209
  ruby
@@ -208,7 +213,7 @@ DEPENDENCIES
208
213
  bundler (~> 2.1)
209
214
  byebug
210
215
  climate_control
211
- coveralls
216
+ coveralls_reborn
212
217
  factory_bot
213
218
  ledger_sync-netsuite!
214
219
  rake (~> 13.0)
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
13
13
  spec.required_ruby_version = '>= 2.5.8'
14
14
 
15
15
  spec.summary = 'Sync common objects to accounting software.'
16
- spec.description = 'LedgerSync is a simple library that allows you to sync common objects to popular accounting '\
16
+ spec.description = 'LedgerSync is a simple library that allows you to sync common objects to popular accounting ' \
17
17
  'software like QuickBooks Online, NetSuite, NetSuite, etc.'
18
18
  spec.homepage = 'https://www.ledgersync.dev'
19
19
 
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
  spec.add_development_dependency('bundler', '~> 2.1')
31
31
  spec.add_development_dependency('byebug')
32
32
  spec.add_development_dependency('climate_control')
33
- spec.add_development_dependency('coveralls')
33
+ spec.add_development_dependency('coveralls_reborn')
34
34
  spec.add_development_dependency('factory_bot')
35
35
  spec.add_development_dependency('rake', '~> 13.0')
36
36
  spec.add_development_dependency('rspec', '~> 3.2')
@@ -39,7 +39,7 @@ Gem::Specification.new do |spec|
39
39
  spec.add_development_dependency('simplecov-lcov')
40
40
  spec.add_development_dependency('webmock', '>= 0')
41
41
  spec.add_runtime_dependency('dotenv')
42
- spec.add_runtime_dependency('ledger_sync', '>= 2.3.1')
42
+ spec.add_runtime_dependency('ledger_sync', '>= 2.4')
43
43
  spec.add_runtime_dependency('nokogiri', '>= 0')
44
44
  spec.add_runtime_dependency('oauth2', '>= 0')
45
45
 
@@ -10,6 +10,8 @@ module LedgerSync
10
10
  attribute :companyName,
11
11
  hash_attribute: :companyname
12
12
  attribute :phone
13
+ attribute :lastModifiedDate,
14
+ hash_attribute: :lastmodifieddate
13
15
  end
14
16
  end
15
17
  end
@@ -24,7 +24,8 @@ module LedgerSync
24
24
  'deferred_expense' => 'DeferExpense',
25
25
  'unbilled_recievable' => 'UnbilledRec',
26
26
  'deferred_revenue' => 'DeferRevenue',
27
- 'non_posting' => 'NonPosting'
27
+ 'non_posting' => 'NonPosting',
28
+ 'statistical' => 'Stat'
28
29
  }.freeze
29
30
 
30
31
  attribute :name, type: Type::String
@@ -10,6 +10,7 @@ module LedgerSync
10
10
  attribute :firstName, type: LedgerSync::Type::String
11
11
  attribute :lastName, type: LedgerSync::Type::String
12
12
  attribute :phone, type: LedgerSync::Type::String
13
+ attribute :lastModifiedDate, type: Type::String
13
14
 
14
15
  references_one :subsidiary, to: Subsidiary
15
16
  end
@@ -11,6 +11,7 @@ module LedgerSync
11
11
  attribute :first_name, type: Type::String
12
12
  attribute :last_name, type: Type::String
13
13
  attribute :phone_number, type: Type::String
14
+ attribute :lastModifiedDate, type: Type::String
14
15
  references_one :subsidiary, to: Subsidiary
15
16
 
16
17
  def name
@@ -13,6 +13,9 @@ module LedgerSync
13
13
 
14
14
  attribute :phone_number,
15
15
  hash_attribute: :phone
16
+
17
+ attribute :lastModifiedDate,
18
+ hash_attribute: :lastmodifieddate
16
19
  end
17
20
  end
18
21
  end
@@ -3,11 +3,11 @@
3
3
  # :nocov:
4
4
  module LedgerSync
5
5
  module NetSuite
6
- VERSION = '0.3.6'
6
+ VERSION = '0.5.0'
7
7
 
8
8
  def self.version
9
9
  if ENV['PRE_RELEASE']
10
- "#{VERSION}.pre.#{ENV['GITHUB_RUN_NUMBER']}"
10
+ "#{VERSION}.pre.#{ENV.fetch('GITHUB_RUN_NUMBER', nil)}"
11
11
  else
12
12
  VERSION
13
13
  end
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.3.6
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Modern Treasury
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-28 00:00:00.000000000 Z
11
+ date: 2023-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print
@@ -67,7 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: coveralls
70
+ name: coveralls_reborn
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
@@ -198,14 +198,14 @@ dependencies:
198
198
  requirements:
199
199
  - - ">="
200
200
  - !ruby/object:Gem::Version
201
- version: 2.3.1
201
+ version: '2.4'
202
202
  type: :runtime
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
206
  - - ">="
207
207
  - !ruby/object:Gem::Version
208
- version: 2.3.1
208
+ version: '2.4'
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: nokogiri
211
211
  requirement: !ruby/object:Gem::Requirement
@@ -399,7 +399,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
399
399
  - !ruby/object:Gem::Version
400
400
  version: '0'
401
401
  requirements: []
402
- rubygems_version: 3.1.2
402
+ rubygems_version: 3.1.6
403
403
  signing_key:
404
404
  specification_version: 4
405
405
  summary: Sync common objects to accounting software.