ledger_sync-xero 0.1.0

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 49ed9472dc9a3f5ff06065752ae152d3dc73a4469762361c63a4584891e1f713
4
+ data.tar.gz: 62640d2dac10b4904e494b6217f37534662dac4aec9767c16456f0e4a83e8324
5
+ SHA512:
6
+ metadata.gz: 0231cea651cb5f2a98eefea7087ace2e7ea037b028c5166d6c2dacf10c79fe1839eedb3c8e1b1b113c6173972e676073fda34924324cf4e35cb2aff276838889
7
+ data.tar.gz: fdb529e6e68cfed99dc7e8d8335e1d1bce0ff55b16347ec3006484616d08848a9021a515d96cdc9a12d1d95d0d66182a15d1423f096ebcfceb56eeb0c877c417
@@ -0,0 +1 @@
1
+ service_name: travis-ci
@@ -0,0 +1,5 @@
1
+ XERO_ACCESS_TOKEN=XERO_ACCESS_TOKEN
2
+ XERO_CLIENT_ID=XERO_CLIENT_ID
3
+ XERO_CLIENT_SECRET=XERO_CLIENT_SECRET
4
+ XERO_REFRESH_TOKEN=XERO_REFRESH_TOKEN
5
+ XERO_TENANT_ID=XERO_TENANT_ID
@@ -0,0 +1,21 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp
9
+
10
+ # byebug
11
+ .byebug_history
12
+
13
+ # Mac
14
+ .DS_Store
15
+
16
+ # dotenv
17
+ .env
18
+ *.local
19
+
20
+ .tool-versions
21
+ .ruby-version
@@ -0,0 +1,29 @@
1
+ # Use this file to configure the Overcommit hooks you wish to use. This will
2
+ # extend the default configuration defined in:
3
+ # https://github.com/sds/overcommit/blob/master/config/default.yml
4
+ #
5
+ # At the topmost level of this YAML file is a key representing type of hook
6
+ # being run (e.g. pre-commit, commit-msg, etc.). Within each type you can
7
+ # customize each hook, such as whether to only run it on certain files (via
8
+ # `include`), whether to only display output if it fails (via `quiet`), etc.
9
+ #
10
+ # For a complete list of hooks, see:
11
+ # https://github.com/sds/overcommit/tree/master/lib/overcommit/hook
12
+ #
13
+ # For a complete list of options that you can use to customize hooks, see:
14
+ # https://github.com/sds/overcommit#configuration
15
+ #
16
+ # Uncomment the following lines to make the configuration take effect.
17
+ gemfile: Gemfile
18
+
19
+ PreCommit:
20
+ RuboCop:
21
+ command: ['bundle', 'exec', 'rubocop']
22
+ enabled: true
23
+ on_warn: fail # Treat all warnings as failures
24
+
25
+ TrailingWhitespace:
26
+ enabled: true
27
+
28
+ LineEndings:
29
+ enabled: true
@@ -0,0 +1,78 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+ AllCops:
4
+ TargetRubyVersion: 2.5.8
5
+ NewCops: enable
6
+
7
+ Layout/LineLength:
8
+ Enabled: True
9
+ Max: 120
10
+
11
+ Style/HashEachMethods:
12
+ Enabled: True
13
+
14
+ Style/HashTransformKeys:
15
+ Enabled: True
16
+
17
+ Style/HashTransformValues:
18
+ Enabled: True
19
+
20
+ Layout/EmptyLinesAroundAttributeAccessor:
21
+ Enabled: True
22
+
23
+ Layout/SpaceAroundMethodCallOperator:
24
+ Enabled: True
25
+
26
+ Lint/DeprecatedOpenSSLConstant:
27
+ Enabled: True
28
+
29
+ Lint/DuplicateElsifCondition:
30
+ Enabled: True
31
+
32
+ Lint/MixedRegexpCaptureTypes:
33
+ Enabled: True
34
+
35
+ Lint/RaiseException:
36
+ Enabled: True
37
+
38
+ Lint/StructNewOverride:
39
+ Enabled: True
40
+
41
+ Style/AccessorGrouping:
42
+ Enabled: True
43
+
44
+ Style/ArrayCoercion:
45
+ Enabled: True
46
+
47
+ Style/BisectedAttrAccessor:
48
+ Enabled: True
49
+
50
+ Style/CaseLikeIf:
51
+ Enabled: True
52
+
53
+ Style/ExponentialNotation:
54
+ Enabled: True
55
+
56
+ Style/HashAsLastArrayItem:
57
+ Enabled: True
58
+
59
+ Style/HashLikeCase:
60
+ Enabled: True
61
+
62
+ Style/RedundantAssignment:
63
+ Enabled: True
64
+
65
+ Style/RedundantFetchBlock:
66
+ Enabled: True
67
+
68
+ Style/RedundantFileExtensionInRequire:
69
+ Enabled: True
70
+
71
+ Style/RedundantRegexpCharacterClass:
72
+ Enabled: True
73
+
74
+ Style/RedundantRegexpEscape:
75
+ Enabled: True
76
+
77
+ Style/SlicingWithRange:
78
+ Enabled: False
@@ -0,0 +1,25 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2019-03-29 13:21:38 +0100 using RuboCop version 0.66.0.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ Metrics/AbcSize:
10
+ Enabled: False
11
+
12
+ Metrics/BlockLength:
13
+ Enabled: False
14
+
15
+ Metrics/ClassLength:
16
+ Enabled: False
17
+
18
+ Metrics/MethodLength:
19
+ Enabled: False
20
+
21
+ Metrics/ParameterLists:
22
+ Enabled: False
23
+
24
+ Style/Documentation:
25
+ Enabled: False
@@ -0,0 +1,26 @@
1
+ language: ruby
2
+ cache: bundler
3
+ rvm:
4
+ - 2.5.8
5
+ - 2.6.6
6
+ - 2.6.3
7
+ - 2.7.1
8
+ - ruby-head
9
+ before_install:
10
+ - gem update --system
11
+ - gem install bundler
12
+ - rm Gemfile.lock
13
+ - bundle install
14
+ script:
15
+ - bundle exec rspec --order rand
16
+ - bundle exec overcommit --sign && bundle exec overcommit --run
17
+ jobs:
18
+ allow_failures:
19
+ - rvm: ruby-head
20
+ deploy:
21
+ - api_key:
22
+ secure: b7Ubc7/+EX4zHJ5zz15xiHntizhuZCU8SKR/jcbrR86wZx1DW8kIABBoVIHMh5CaMvrjF63B1qEoG4HcuovKZWezFLPgj4IQqlwlUle0/Vm0smO1kPMEOuMIv5P3TTgXZ99h1OdnfRQtDgbjxgKGszawMxNcw9Q8mqvVCc8Pmr+Uiw9DOOkHNMfLH+xOl00Ir9ST+K4/GKq19h8Z3glZE0oQAPajt5kgDZdDGD3en+t2g3kafJ9Hv6twKSb5rd5I9BN+VJ0m66OofGxnZFUxM/cb8T+s+6DdPXGWJq4IZ/q9SO108qfl1aTd7EiFa+hVtlLii7QaSMHARrbWT3wMYH3QhgTBPly8Dky92c74ziLkqaDdaxmGfYnzLDVCRVlGmGzUkOLx1ey9XK2kwSods+ud8rJ2pHWaT7NQROzTD4O0YhLHvEAoN6PwtIWm1v78OViBng36PKW0WtAE1rG9CEK1FjhA7ZZoctAsKqSaXWZR39+0xgSv+1axLXru/TG8QLqKNEOgNbE5lqR7sF2cVQgmmUstlMqiEgKMF0cFWWVi1wqR6VNxrgwgWeWtwzHLkchY6T3vhK9sl+cUM6SebfCOCAJHPBxSvHRHtJcrDY8qMqjlfFBSagjaClFt1Uzy//ab4XRzEs8VQcVkz9Yw7S51iOYBdj6135lfE0ZxE1c=
23
+ edge: true
24
+ on:
25
+ all_branches: true
26
+ provider: rubygems
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
+
7
+ # Specify your gem's dependencies in ledger_sync-xero.gemspec
8
+ gemspec
@@ -0,0 +1,234 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ ledger_sync-xero (0.1.0)
5
+ dotenv
6
+ ledger_sync
7
+ nokogiri
8
+ oauth2
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ activemodel (6.0.3.4)
14
+ activesupport (= 6.0.3.4)
15
+ activesupport (6.0.3.4)
16
+ concurrent-ruby (~> 1.0, >= 1.0.2)
17
+ i18n (>= 0.7, < 2)
18
+ minitest (~> 5.1)
19
+ tzinfo (~> 1.1)
20
+ zeitwerk (~> 2.2, >= 2.2.2)
21
+ addressable (2.7.0)
22
+ public_suffix (>= 2.0.2, < 5.0)
23
+ akami (1.3.1)
24
+ gyoku (>= 0.4.0)
25
+ nokogiri
26
+ ast (2.4.1)
27
+ awesome_print (1.8.0)
28
+ builder (3.2.4)
29
+ bump (0.9.0)
30
+ byebug (11.1.3)
31
+ childprocess (4.0.0)
32
+ climate_control (0.2.0)
33
+ colorize (0.8.1)
34
+ concurrent-ruby (1.1.7)
35
+ coveralls (0.8.23)
36
+ json (>= 1.8, < 3)
37
+ simplecov (~> 0.16.1)
38
+ term-ansicolor (~> 1.3)
39
+ thor (>= 0.19.4, < 2.0)
40
+ tins (~> 1.6)
41
+ crack (0.4.4)
42
+ diff-lcs (1.4.4)
43
+ docile (1.3.2)
44
+ dotenv (2.7.6)
45
+ dry-configurable (0.11.6)
46
+ concurrent-ruby (~> 1.0)
47
+ dry-core (~> 0.4, >= 0.4.7)
48
+ dry-equalizer (~> 0.2)
49
+ dry-container (0.7.2)
50
+ concurrent-ruby (~> 1.0)
51
+ dry-configurable (~> 0.1, >= 0.1.3)
52
+ dry-core (0.4.9)
53
+ concurrent-ruby (~> 1.0)
54
+ dry-equalizer (0.3.0)
55
+ dry-inflector (0.2.0)
56
+ dry-initializer (3.0.4)
57
+ dry-logic (1.0.8)
58
+ concurrent-ruby (~> 1.0)
59
+ dry-core (~> 0.2)
60
+ dry-equalizer (~> 0.2)
61
+ dry-schema (1.5.6)
62
+ concurrent-ruby (~> 1.0)
63
+ dry-configurable (~> 0.8, >= 0.8.3)
64
+ dry-core (~> 0.4)
65
+ dry-equalizer (~> 0.2)
66
+ dry-initializer (~> 3.0)
67
+ dry-logic (~> 1.0)
68
+ dry-types (~> 1.4)
69
+ dry-types (1.4.0)
70
+ concurrent-ruby (~> 1.0)
71
+ dry-container (~> 0.3)
72
+ dry-core (~> 0.4, >= 0.4.4)
73
+ dry-equalizer (~> 0.3)
74
+ dry-inflector (~> 0.1, >= 0.1.2)
75
+ dry-logic (~> 1.0, >= 1.0.2)
76
+ dry-validation (1.5.6)
77
+ concurrent-ruby (~> 1.0)
78
+ dry-container (~> 0.7, >= 0.7.1)
79
+ dry-core (~> 0.4)
80
+ dry-equalizer (~> 0.2)
81
+ dry-initializer (~> 3.0)
82
+ dry-schema (~> 1.5, >= 1.5.2)
83
+ factory_bot (6.1.0)
84
+ activesupport (>= 5.0.0)
85
+ faraday (1.1.0)
86
+ multipart-post (>= 1.2, < 3)
87
+ ruby2_keywords
88
+ faraday-detailed_logger (2.3.0)
89
+ faraday (>= 0.8, < 2)
90
+ faraday_middleware (1.0.0)
91
+ faraday (~> 1.0)
92
+ fingerprintable (1.2.1)
93
+ colorize
94
+ gyoku (1.3.1)
95
+ builder (>= 2.1.2)
96
+ hashdiff (1.0.1)
97
+ httpi (2.4.5)
98
+ rack
99
+ socksify
100
+ i18n (1.8.5)
101
+ concurrent-ruby (~> 1.0)
102
+ iniparse (1.5.0)
103
+ json (2.3.1)
104
+ jwt (2.2.2)
105
+ ledger_sync (1.6.0)
106
+ activemodel
107
+ colorize
108
+ dry-schema (~> 1.5.4)
109
+ dry-validation (~> 1.5.6)
110
+ faraday
111
+ faraday-detailed_logger
112
+ faraday_middleware
113
+ fingerprintable (>= 1.2.1)
114
+ netsuite (~> 0.8.6)
115
+ nokogiri
116
+ oauth2
117
+ pd_ruby
118
+ resonad
119
+ simply_serializable (>= 1.5.1)
120
+ stripe (~> 5.26.0)
121
+ mini_portile2 (2.4.0)
122
+ minitest (5.14.2)
123
+ multi_json (1.15.0)
124
+ multi_xml (0.6.0)
125
+ multipart-post (2.1.1)
126
+ netsuite (0.8.6)
127
+ savon (>= 2.3.0, <= 2.11.1)
128
+ nokogiri (1.10.10)
129
+ mini_portile2 (~> 2.4.0)
130
+ nori (2.6.0)
131
+ oauth2 (1.4.4)
132
+ faraday (>= 0.8, < 2.0)
133
+ jwt (>= 1.0, < 3.0)
134
+ multi_json (~> 1.3)
135
+ multi_xml (~> 0.5)
136
+ rack (>= 1.2, < 3)
137
+ overcommit (0.57.0)
138
+ childprocess (>= 0.6.3, < 5)
139
+ iniparse (~> 1.4)
140
+ parallel (1.19.2)
141
+ parser (2.7.2.0)
142
+ ast (~> 2.4.1)
143
+ pd_ruby (0.2.3)
144
+ colorize
145
+ public_suffix (4.0.6)
146
+ rack (2.2.3)
147
+ rainbow (3.0.0)
148
+ rake (13.0.1)
149
+ regexp_parser (1.8.2)
150
+ resonad (1.3.0)
151
+ rexml (3.2.4)
152
+ rspec (3.10.0)
153
+ rspec-core (~> 3.10.0)
154
+ rspec-expectations (~> 3.10.0)
155
+ rspec-mocks (~> 3.10.0)
156
+ rspec-core (3.10.0)
157
+ rspec-support (~> 3.10.0)
158
+ rspec-expectations (3.10.0)
159
+ diff-lcs (>= 1.2.0, < 2.0)
160
+ rspec-support (~> 3.10.0)
161
+ rspec-mocks (3.10.0)
162
+ diff-lcs (>= 1.2.0, < 2.0)
163
+ rspec-support (~> 3.10.0)
164
+ rspec-support (3.10.0)
165
+ rubocop (1.2.0)
166
+ parallel (~> 1.10)
167
+ parser (>= 2.7.1.5)
168
+ rainbow (>= 2.2.2, < 4.0)
169
+ regexp_parser (>= 1.8)
170
+ rexml
171
+ rubocop-ast (>= 1.0.1)
172
+ ruby-progressbar (~> 1.7)
173
+ unicode-display_width (>= 1.4.0, < 2.0)
174
+ rubocop-ast (1.1.1)
175
+ parser (>= 2.7.1.5)
176
+ ruby-progressbar (1.10.1)
177
+ ruby2_keywords (0.0.2)
178
+ savon (2.11.1)
179
+ akami (~> 1.2)
180
+ builder (>= 2.1.2)
181
+ gyoku (~> 1.2)
182
+ httpi (~> 2.3)
183
+ nokogiri (>= 1.4.0)
184
+ nori (~> 2.4)
185
+ wasabi (~> 3.4)
186
+ simplecov (0.16.1)
187
+ docile (~> 1.1)
188
+ json (>= 1.8, < 3)
189
+ simplecov-html (~> 0.10.0)
190
+ simplecov-html (0.10.2)
191
+ simply_serializable (1.5.1)
192
+ fingerprintable (>= 1.2.1)
193
+ socksify (1.7.1)
194
+ stripe (5.26.0)
195
+ sync (0.5.0)
196
+ term-ansicolor (1.7.1)
197
+ tins (~> 1.0)
198
+ thor (1.0.1)
199
+ thread_safe (0.3.6)
200
+ tins (1.26.0)
201
+ sync
202
+ tzinfo (1.2.7)
203
+ thread_safe (~> 0.1)
204
+ unicode-display_width (1.7.0)
205
+ wasabi (3.6.1)
206
+ addressable
207
+ httpi (~> 2.0)
208
+ nokogiri (>= 1.4.2)
209
+ webmock (3.9.4)
210
+ addressable (>= 2.3.6)
211
+ crack (>= 0.3.2)
212
+ hashdiff (>= 0.4.0, < 2.0.0)
213
+ zeitwerk (2.4.1)
214
+
215
+ PLATFORMS
216
+ ruby
217
+
218
+ DEPENDENCIES
219
+ awesome_print
220
+ bump (~> 0.9.0)
221
+ bundler (~> 2.1)
222
+ byebug
223
+ climate_control
224
+ coveralls (~> 0.8.23)
225
+ factory_bot (~> 6.1.0)
226
+ ledger_sync-xero!
227
+ overcommit (~> 0.57.0)
228
+ rake (~> 13.0)
229
+ rspec (~> 3.2)
230
+ rubocop
231
+ webmock
232
+
233
+ BUNDLED WITH
234
+ 2.1.4