newegg 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
  SHA1:
3
- metadata.gz: 5e478d191ea6919320a5ec5f94f2d3e4a2cc2683
4
- data.tar.gz: b966fc79c729baf1066447bc95c8aafe15a50685
3
+ metadata.gz: 026dabfa68098fa118788528256987a18bdb0644
4
+ data.tar.gz: 191d46f35fb1c62ab76defb22b1df0ba1a05d539
5
5
  SHA512:
6
- metadata.gz: d88d9d5e08c0612f7ee8a9f270a8b931d43fb6b335b3e60fdda348917871d4ab7e46d00da16940cd5db9a50c21d0d1ecf060436b0edca446d3ce8597edd0901b
7
- data.tar.gz: 7cbc0cff6c21ecc00ae5ab241181489c9fdd9f5101b958354f41061b41f385791b3c9a9ad0d097290d54f87f615e7072d8da9523e7f6c835f73bef38f0d4566f
6
+ metadata.gz: f68a910052f2bad61a24e02ea1459f2fa77e22cff87f769c00dd45c871d6cae92df75c312ccd4b5447f72265e762c5a2034ca62c1ae6c9a7dd5b826406b6edf7
7
+ data.tar.gz: 494dd55223abba4762f83ccb180fc7063d6db2b233b6673279fd3dc28d99eff965431853dd3d34c1ce80303eea9ab86d8ee02df9980666e79275f5d800690c18
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Newegg
2
2
 
3
- TODO: Write a gem description
3
+ Newegg Marketplace API wrapper
4
4
 
5
5
  ## Installation
6
6
 
@@ -20,11 +20,12 @@ Or install it yourself as:
20
20
 
21
21
  ## Usage
22
22
 
23
- TODO: Write usage instructions here
23
+ client = Newegg::Client.new(app_key: 'your_app_key', access_token: 'your_access_token')
24
+ client.order_details('1843243242343')
24
25
 
25
26
  ## Contributing
26
27
 
27
- 1. Fork it ( https://github.com/[my-github-username]/newegg/fork )
28
+ 1. Fork it ( https://github.com/ryancheung/newegg/fork )
28
29
  2. Create your feature branch (`git checkout -b my-new-feature`)
29
30
  3. Commit your changes (`git commit -am 'Add some feature'`)
30
31
  4. Push to the branch (`git push origin my-new-feature`)
@@ -8,7 +8,7 @@ module Newegg
8
8
  class Client
9
9
  include Newegg::API
10
10
 
11
- DEFAULT_ENDPOINT = 'https://api.newegg.com.cn'
11
+ DEFAULT_ENDPOINT = 'https://api.newegg.cn'
12
12
 
13
13
  attr_reader :app_key, :access_token
14
14
 
@@ -16,9 +16,11 @@ module Newegg
16
16
  # @param options [Hash]
17
17
  # @option options [String] :app_key Required.
18
18
  # @option options [String] :access_token Required.
19
+ # @option options [String] :endpoint Optional.
19
20
  def initialize(options)
20
21
  @app_key = options.fetch(:app_key)
21
22
  @access_token = options.fetch(:access_token)
23
+ @endpoint = options[:endpoint]
22
24
  end
23
25
 
24
26
  # @return [String]
@@ -1,3 +1,3 @@
1
1
  module Newegg
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newegg
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
  - ryancheung
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-15 00:00:00.000000000 Z
11
+ date: 2014-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler