open_jd 0.0.2 → 0.0.3

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: 1d2b0cc54b991d27ef3add2832f54e1d012d314b
4
- data.tar.gz: d8fd957b4b66901c5ddf2db02a83ce645f04bc06
3
+ metadata.gz: da6705b6eb7d999d2db9500dea1f9294e09eb2c6
4
+ data.tar.gz: a6bf1512d7719944b911d747147934e60becc60e
5
5
  SHA512:
6
- metadata.gz: fa32b7e3f1ed56de159997d7353fca6a24582ed1f843394523d2ffb07517ceb5b3ea31454c4f932b5b76842a329f6ddad5f9943a03beb9e265f9efec03a6964e
7
- data.tar.gz: a322b8bf2ab19507002b8a382a96ed2022dec87dc02fd875afd4cb5603308bcb7f765ef44cb0195acb65d569982b31cf3e2dcbdf063aeed893b7aceb7505d957
6
+ metadata.gz: b1fe76f4385f08056a6dd8e324dd003d6cf456a6df1a14140c2dbb31e8da091633aaaa76fccef376e554f0d7244f5765d474b6b92911a9fb95cb2b82d3b38109
7
+ data.tar.gz: 31350e69258e0ab661537c57eb13af46fa8d9c9f9da95e3f8fd4f4cfa838dd56dfb5b57141f3dbbd12d8bd770777063ac18a406b7740e127c918acd3d6839067
@@ -2,7 +2,6 @@ module OpenJd
2
2
  REQUEST_TIMEOUT = 10
3
3
  API_VERSION = '2.0'
4
4
  USER_AGENT = "open_jd-v#{VERSION}"
5
- PARAMS_KEY = '360buy_param_json'
6
5
  PRODUCT_LINK = 'http://item.jd.com'
7
6
 
8
7
  class Error < StandardError; end
@@ -103,13 +102,13 @@ module OpenJd
103
102
  # Only <tt>sign_method</tt> MD5 is supported so far.
104
103
  def full_options(params)
105
104
  {
106
- timestamp: Time.zone.now.strftime('%F %T'),
107
- v: API_VERSION,
108
- format: :json,
109
- sign_method: :md5,
110
- app_key: config['app_key'],
111
- method: params[:method],
112
- PARAMS_KEY: params[:fields].to_json.to_s
105
+ timestamp: Time.zone.now.strftime('%F %T'),
106
+ v: API_VERSION,
107
+ format: :json,
108
+ sign_method: :md5,
109
+ app_key: config['app_key'],
110
+ method: params[:method],
111
+ '360buy_param_json': params[:fields].to_json.to_s
113
112
  }
114
113
  end
115
114
 
@@ -1,3 +1,3 @@
1
1
  module OpenJd
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: open_jd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Hao