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 +4 -4
- data/README.md +1 -0
- data/lib/dmm/api.rb +2 -2
- data/lib/dmm/api/version.rb +1 -1
- metadata +2 -3
- data/lib/dmm/api/hash.rb +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2dd97304cf2e0a052a33159881881fa68c5623c6
|
4
|
+
data.tar.gz: 0e08f06c3c12adc6c565f5d0b05b5a9557e6a859
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a965f641da4944917bda7ecc196a88942024b9b80fc11f50b037a0867d5a96ed5a54b8a33c172e183437a49cf4ff9a7a1bf56b0aa0d282fceff07dc863f8fb4
|
7
|
+
data.tar.gz: bddd82af0e821707640b55df6fc27975e76cb221df984c550f52aa6cfe077c7ad5f34190a066b8d818d484010f8bec8b767c8ea2ae00b7905a6c3b8b6308b6bb
|
data/README.md
CHANGED
data/lib/dmm/api.rb
CHANGED
@@ -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
|
|
data/lib/dmm/api/version.rb
CHANGED
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.
|
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-
|
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
|
data/lib/dmm/api/hash.rb
DELETED
File without changes
|