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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f58c896bb749d9a48423d4af4b1a209b8ef3cce9aa94459b317e44b7b649f378
4
- data.tar.gz: f738a3619bc044690bb01582849065b7ec253c183d03719a879af99952d555da
3
+ metadata.gz: a4f9f82ae2a5ed6a1f7431a747d7672d8f6f861fa48df6db20cb9087d4c4d1a4
4
+ data.tar.gz: f4d7685b2d8a00163614fc34653cf1025f3083032e9ae4a54cea2eddb2fc1694
5
5
  SHA512:
6
- metadata.gz: 7b8e83ddc7cb421258f60fe62c1adf38febf43383317ec0994219906414de8106a320527c7478d7d8b0e71f4322326a80f8aeef6d5b263146b0ac62ed2b78611
7
- data.tar.gz: 2187ac8e2deb3ad9cbd54104e99b4e0673e9676102eb677e916c03071cbc95ed7693e5c8c32c30c3e955bc7311ee57a5146b3ad1df887b81c994a0acfb056049
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 'xero_api'
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 in your sandbox
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'
@@ -93,7 +93,7 @@ class Xero::Api
93
93
  end
94
94
 
95
95
  def add_exception_middleware(conn)
96
- conn.use FaradayMiddleware::RaiseHttpException
96
+ conn.use Xero::Api::FaradayMiddleware::RaiseHttpException
97
97
  end
98
98
 
99
99
  def add_authorization_middleware(conn)
@@ -1,7 +1,7 @@
1
1
  require 'faraday'
2
2
 
3
3
  # @private
4
- module FaradayMiddleware
4
+ module Xero::Api::FaradayMiddleware
5
5
  # @private
6
6
  class RaiseHttpException < Faraday::Middleware
7
7
  def call(env)
@@ -1,5 +1,5 @@
1
1
  module Xero
2
2
  class Api
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
@@ -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", "~> 1.10"
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.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: 2018-10-26 00:00:00.000000000 Z
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: '1.10'
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: '1.10'
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
- rubyforge_project:
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.