opendmm 0.0.4 → 0.0.5

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: 807b507fdae159cc6e2ef1ad1e795944180ee9dd
4
- data.tar.gz: 5f04d17817251b805f5fe671b865ef7de792cc84
3
+ metadata.gz: 905b5ff9eb6f70b97b502874c2ceab730feb3ccb
4
+ data.tar.gz: f38466e5142e378b4344723af6e4072670a9e2bc
5
5
  SHA512:
6
- metadata.gz: 7b5802d38018ace981d8052f31789923a42cdc3ac94ed1caa1e8f26734739e9c1ecb8081f8c878e3b7957e1c4326d75cfaf36af0f8e642ca76f59e8239125552
7
- data.tar.gz: bf1baf2b3b73676cf6b50a702561814d92175014408c7e24ad778151bef50416a05df3056355bcc085c2c3fc491f2c6270e302e50d217dddc9cc857109741f79
6
+ metadata.gz: ab082865277260228bd83572ca218163466e7e81aae96f1fb23cf7fa13aa83f25191d1803ce8ca8e95a75c72cb9d548e69230af33b7d477299b898cc69834e49
7
+ data.tar.gz: f676e7decc4f3d868d796f1a691dd5609130256cb2a558c638c589f8aecb67768752c389fa73ddcbb216a1c1a69cc9f18150c72078389e39cc694d70af77146c
@@ -10,9 +10,14 @@ module OpenDMM
10
10
 
11
11
  def self.included(klass)
12
12
  klass.module_eval <<-CODE
13
+ module Site
14
+ include HTTParty
15
+ follow_redirects false
16
+ end
17
+
13
18
  def self.search(name)
14
19
  item = Site.item(name)
15
- item ? Parser.parse(item) : nil
20
+ Parser.parse(item) if item && item.code == 200
16
21
  end
17
22
  CODE
18
23
  @@makers << klass
@@ -4,7 +4,6 @@ module OpenDMM
4
4
  include Maker
5
5
 
6
6
  module Site
7
- include HTTParty
8
7
  base_uri 'www.aknr.com'
9
8
 
10
9
  def self.item(name)
@@ -4,7 +4,6 @@ module OpenDMM
4
4
  include Maker
5
5
 
6
6
  module Site
7
- include HTTParty
8
7
  base_uri 'www.ako-3.com'
9
8
 
10
9
  def self.item(name)
@@ -4,7 +4,6 @@ module OpenDMM
4
4
  include Maker
5
5
 
6
6
  module Site
7
- include HTTParty
8
7
  base_uri 'anna-and-hanako.jp'
9
8
 
10
9
  def self.item(name)
@@ -4,7 +4,6 @@ module OpenDMM
4
4
  include Maker
5
5
 
6
6
  module Site
7
- include HTTParty
8
7
  base_uri 'www.apa-av.jp'
9
8
 
10
9
  def self.item(name)
@@ -4,7 +4,6 @@ module OpenDMM
4
4
  include Maker
5
5
 
6
6
  module Site
7
- include HTTParty
8
7
  base_uri 'www.aroma-p.com'
9
8
 
10
9
  def self.item(name)
@@ -4,7 +4,6 @@ module OpenDMM
4
4
  include Maker
5
5
 
6
6
  module Site
7
- include HTTParty
8
7
  base_uri 'attackers.net'
9
8
 
10
9
  def self.item(name)
@@ -4,7 +4,6 @@ module OpenDMM
4
4
  include Maker
5
5
 
6
6
  module Site
7
- include HTTParty
8
7
  base_uri 'www.aurora-pro.com'
9
8
 
10
9
  def self.item(name)
@@ -4,7 +4,6 @@ module OpenDMM
4
4
  include Maker
5
5
 
6
6
  module Site
7
- include HTTParty
8
7
  base_uri 'baltan-av.com'
9
8
 
10
9
  def self.item(name)
@@ -4,7 +4,6 @@ module OpenDMM
4
4
  include Maker
5
5
 
6
6
  module Site
7
- include HTTParty
8
7
  base_uri 'befreebe.com'
9
8
 
10
9
  def self.item(name)
@@ -4,7 +4,6 @@ module OpenDMM
4
4
  include Maker
5
5
 
6
6
  module Site
7
- include HTTParty
8
7
  base_uri 'bi-av.com'
9
8
 
10
9
  def self.item(name)
@@ -4,7 +4,6 @@ module OpenDMM
4
4
  include Maker
5
5
 
6
6
  module Site
7
- include HTTParty
8
7
  base_uri 'bijin-majo-av.com'
9
8
 
10
9
  def self.item(name)
@@ -4,7 +4,6 @@ module OpenDMM
4
4
  include Maker
5
5
 
6
6
  module Site
7
- include HTTParty
8
7
  base_uri 'candy-av.com'
9
8
 
10
9
  def self.item(name)
@@ -4,7 +4,6 @@ module OpenDMM
4
4
  include Maker
5
5
 
6
6
  module Site
7
- include HTTParty
8
7
  base_uri 'www.caribbeancom.com'
9
8
 
10
9
  def self.item(name)
@@ -4,7 +4,6 @@ module OpenDMM
4
4
  include Maker
5
5
 
6
6
  module Site
7
- include HTTParty
8
7
  base_uri 'dip-av.jp'
9
8
 
10
9
  def self.item(name)
@@ -4,7 +4,6 @@ module OpenDMM
4
4
  include Maker
5
5
 
6
6
  module Site
7
- include HTTParty
8
7
  base_uri 'dmm-collection.com'
9
8
 
10
9
  def self.item(name)
@@ -4,7 +4,6 @@ module OpenDMM
4
4
  include Maker
5
5
 
6
6
  module Site
7
- include HTTParty
8
7
  base_uri 'av-e-body.com'
9
8
 
10
9
  def self.item(name)
@@ -4,7 +4,6 @@ module OpenDMM
4
4
  include Maker
5
5
 
6
6
  module Site
7
- include HTTParty
8
7
  base_uri 'ideapocket.com'
9
8
 
10
9
  def self.item(name)
@@ -4,7 +4,6 @@ module OpenDMM
4
4
  include Maker
5
5
 
6
6
  module Site
7
- include HTTParty
8
7
  base_uri 'kawaiikawaii.jp'
9
8
 
10
9
  def self.item(name)
@@ -4,7 +4,6 @@ module OpenDMM
4
4
  include Maker
5
5
 
6
6
  module Site
7
- include HTTParty
8
7
  base_uri 'kirakira-av.com'
9
8
 
10
9
  def self.item(name)
@@ -4,7 +4,6 @@ module OpenDMM
4
4
  include Maker
5
5
 
6
6
  module Site
7
- include HTTParty
8
7
  base_uri 'madonna-av.com'
9
8
 
10
9
  def self.item(name)
@@ -4,7 +4,6 @@ module OpenDMM
4
4
  include Maker
5
5
 
6
6
  module Site
7
- include HTTParty
8
7
  base_uri 'moodyz.com'
9
8
 
10
9
  def self.item(name)
@@ -4,7 +4,6 @@ module OpenDMM
4
4
  include Maker
5
5
 
6
6
  module Site
7
- include HTTParty
8
7
  base_uri 'www.munekyunkissa.com'
9
8
 
10
9
  def self.item(name)
@@ -4,7 +4,6 @@ module OpenDMM
4
4
  include Maker
5
5
 
6
6
  module Site
7
- include HTTParty
8
7
  base_uri 'av-opera.jp'
9
8
 
10
9
  def self.item(name)
@@ -4,7 +4,6 @@ module OpenDMM
4
4
  include Maker
5
5
 
6
6
  module Site
7
- include HTTParty
8
7
  base_uri 'oppai-av.com'
9
8
 
10
9
  def self.item(name)
@@ -4,7 +4,6 @@ module OpenDMM
4
4
  include Maker
5
5
 
6
6
  module Site
7
- include HTTParty
8
7
  base_uri 'premium-beauty.com'
9
8
 
10
9
  def self.item(name)
@@ -4,7 +4,6 @@ module OpenDMM
4
4
  include Maker
5
5
 
6
6
  module Site
7
- include HTTParty
8
7
  base_uri 'www.prestige-av.com'
9
8
  cookies(adc: 1)
10
9
 
@@ -4,7 +4,6 @@ module OpenDMM
4
4
  include Maker
5
5
 
6
6
  module Site
7
- include HTTParty
8
7
  base_uri 's1s1s1.com'
9
8
 
10
9
  def self.item(name)
@@ -4,7 +4,6 @@ module OpenDMM
4
4
  include Maker
5
5
 
6
6
  module Site
7
- include HTTParty
8
7
  base_uri 'ec.sod.co.jp'
9
8
 
10
9
  def self.item(name)
@@ -4,7 +4,6 @@ module OpenDMM
4
4
  include Maker
5
5
 
6
6
  module Site
7
- include HTTParty
8
7
  base_uri 'tameikegoro.jp'
9
8
 
10
9
  def self.item(name)
@@ -4,7 +4,6 @@ module OpenDMM
4
4
  include Maker
5
5
 
6
6
  module Site
7
- include HTTParty
8
7
  base_uri 'to-satsu.com'
9
8
 
10
9
  def self.item(name)
@@ -4,7 +4,6 @@ module OpenDMM
4
4
  include Maker
5
5
 
6
6
  module Site
7
- include HTTParty
8
7
  base_uri 'www.waap.co.jp'
9
8
 
10
9
  def self.item(name)
@@ -1,3 +1,3 @@
1
1
  module OpenDMM
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opendmm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jun Zhou