dmm-api 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 754a5872ad922af26290b436c675fcfb29fefd9e
4
- data.tar.gz: 69b2ed65940ac0c05ecb973b88174a326153a215
3
+ metadata.gz: 2dd97304cf2e0a052a33159881881fa68c5623c6
4
+ data.tar.gz: 0e08f06c3c12adc6c565f5d0b05b5a9557e6a859
5
5
  SHA512:
6
- metadata.gz: 03b80c6bac6e4e2d2aff98f1c7f3381b6cfbf15c8432542c0509d070201a09a9ca2873b22493c72ae5036a7bf87d32e6773e09495580b098677e462e7917570a
7
- data.tar.gz: 6f7df22555e51edd4894b873c8ca9de17ca23ffc52c80541bf5d655e74b6078b5d687efb5956faf31b1e0c81c20f1f07f2a9dab2916a08a4b8215a254425b2d0
6
+ metadata.gz: 3a965f641da4944917bda7ecc196a88942024b9b80fc11f50b037a0867d5a96ed5a54b8a33c172e183437a49cf4ff9a7a1bf56b0aa0d282fceff07dc863f8fb4
7
+ data.tar.gz: bddd82af0e821707640b55df6fc27975e76cb221df984c550f52aa6cfe077c7ad5f34190a066b8d818d484010f8bec8b767c8ea2ae00b7905a6c3b8b6308b6bb
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # Dmm::Api
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/dmm-api.png)](http://badge.fury.io/rb/dmm-api)
3
4
  Ruby DMM Web Service API ver 2.0
4
5
 
5
6
  ## Installation
@@ -1,8 +1,6 @@
1
1
  require "net/http"
2
2
  require "uri"
3
3
  require 'active_support/core_ext'
4
- # require "nokogiri"
5
- # require "dmm/api/hash"
6
4
  require "dmm/api/version"
7
5
  require "dmm/api/response"
8
6
  require "dmm/api/request"
@@ -28,6 +26,8 @@ module Dmm
28
26
  opts[:operation] = 'ItemList' unless opts.key?(:operation)
29
27
  opts[:version] = '2.00' unless opts.key?(:version)
30
28
  opts[:timestamp] = Time.now.strftime("%Y-%m-%d %H:%M:%S") unless opts.key?(:timestamp)
29
+ ids = @@options[:affiliate_id].split(",")
30
+ opts[:affiliate_id] = ids[rand(ids.size)]
31
31
  Dmm::Request.get("http://affiliate-api.dmm.com/", @@options.merge(opts))
32
32
  end
33
33
 
@@ -1,5 +1,5 @@
1
1
  module Dmm
2
2
  class Api
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dmm-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - shoprev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-30 00:00:00.000000000 Z
11
+ date: 2013-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -111,7 +111,6 @@ files:
111
111
  - example/config.yml
112
112
  - example/r18.rb
113
113
  - lib/dmm/api.rb
114
- - lib/dmm/api/hash.rb
115
114
  - lib/dmm/api/request.rb
116
115
  - lib/dmm/api/response.rb
117
116
  - lib/dmm/api/version.rb
File without changes