xero-api 1.0.0 → 1.0.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 +4 -4
- data/README.md +6 -2
- data/lib/xero/api/connection.rb +1 -1
- data/lib/xero/api/raise_http_exception.rb +1 -1
- data/lib/xero/api/version.rb +1 -1
- data/xero-api.gemspec +1 -1
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4f9f82ae2a5ed6a1f7431a747d7672d8f6f861fa48df6db20cb9087d4c4d1a4
|
4
|
+
data.tar.gz: f4d7685b2d8a00163614fc34653cf1025f3083032e9ae4a54cea2eddb2fc1694
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 470d2fab8520c56dcc0fa1426f38d68668a43f5bb930283ace9321c14bfa02d38d24ad6621c8c489f5826c15f0244b00e48b4fa1ed97bb420378bcf3ea3c9a01
|
7
|
+
data.tar.gz: 9329f64f58e169ff1528946ecca3b21d494fbe69ce208617400e379d9e1aa5a66ef19d42d6bdc88ee1c87cb5fc5715371a267d65ab347d590d5fea3a771c60f0
|
data/README.md
CHANGED
@@ -11,6 +11,10 @@
|
|
11
11
|
- Built leveraging [Faraday](https://github.com/lostisland/faraday).
|
12
12
|
- Built knowing that OAuth2 might be in the not-to-distant future.
|
13
13
|
|
14
|
+
## Sweet, How Can I Get Started Fast?
|
15
|
+
|
16
|
+
The fastest method is to start with this [screencast](https://minimul.com/getting-started-with-the-xero-api-gem.html).
|
17
|
+
|
14
18
|
## Why another library when there are other more mature, established Ruby Xero libraries?
|
15
19
|
|
16
20
|
Both of the current de facto Ruby Xero client gems were built 6+ years ago when the Xero API was XML only, therefore, they are loaded with *XML cruft*.
|
@@ -33,7 +37,7 @@ For example, here are the total code line counts (of `.rb` files):
|
|
33
37
|
Add this line to your application's Gemfile:
|
34
38
|
|
35
39
|
```ruby
|
36
|
-
gem '
|
40
|
+
gem 'xero-api'
|
37
41
|
```
|
38
42
|
|
39
43
|
And then execute:
|
@@ -188,7 +192,7 @@ Xero::Api.logger = Rails.logger
|
|
188
192
|
to see what is going on under the hood.
|
189
193
|
- **Important:** In the [`/auth/xero/callback`](https://github.com/minimul/xero-api/blob/master/example/oauth.rb) route there is code there that will automatically update your `.env` file.
|
190
194
|
|
191
|
-
### Protip: Once your .env file is completely filled out you can use the console to play around
|
195
|
+
### Protip: Once your .env file is completely filled out you can use the console to play around
|
192
196
|
```
|
193
197
|
bin/console test
|
194
198
|
>> @xero_api.get :contacts, id: '5345-as543-4-afgafadsafsad-45334'
|
data/lib/xero/api/connection.rb
CHANGED
data/lib/xero/api/version.rb
CHANGED
data/xero-api.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_development_dependency "bundler"
|
21
|
+
spec.add_development_dependency "bundler"
|
22
22
|
spec.add_development_dependency "rake", "~> 10.0"
|
23
23
|
spec.add_development_dependency "rspec"
|
24
24
|
spec.add_development_dependency 'webmock'
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xero-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Pelczarski
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -232,8 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
232
232
|
- !ruby/object:Gem::Version
|
233
233
|
version: '0'
|
234
234
|
requirements: []
|
235
|
-
|
236
|
-
rubygems_version: 2.7.7
|
235
|
+
rubygems_version: 3.0.6
|
237
236
|
signing_key:
|
238
237
|
specification_version: 4
|
239
238
|
summary: Ruby JSON-only client for Xero API.
|