javlibrary 0.2.6 → 0.2.7

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: 02cae25ef63acd58e28cb80617082107baf34f1b
4
- data.tar.gz: 79c9dfd6dca99a59a20a5ffcb322041414c4ccb3
3
+ metadata.gz: 3101b3dd6329e991a1a290369f6f98822bf02fcd
4
+ data.tar.gz: 94c0e8d84b8d5505bc149caf341818bae1894a01
5
5
  SHA512:
6
- metadata.gz: 1f0c37afa74ca02647b13a8ca4ac00a667ad45ebd0c6451887037ae42eda67d6802a8d276a0daa89258e98082d4e5693aba18f35818a4bd762df24c1b3e552e9
7
- data.tar.gz: a6fb1d86b7ec355c0765d26729c79d7547e0b5691759a1e482b8eb4349ec5a6b9096889424ad58c0cb05e3d863993f7f994ef8382a7c1b3fda1a22b78f3b7905
6
+ metadata.gz: f81d76064fbd6cd72274541a1a7c01efc8a760efc23ce831d454e70b6cbaab04b40ec8a26bd8cc9675412d530d3d7dd9615ead212813405ef383cd8aee732e3e
7
+ data.tar.gz: 3efcc492cfacc4ff71f9468f207cb3fc66a41ab05cb3d4e0be8731a16efa2bb6598431a5bdb5e3cbe62f0a6bd72ff5cc0f982329ba14847762788696d55f8290
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Javlibrary
2
2
 
3
- Fast, Easy way to download all JAV video info with this gem.
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/javlibrary`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
4
6
 
5
7
  ## Installation
6
8
 
@@ -20,7 +22,7 @@ Or install it yourself as:
20
22
 
21
23
  ## Usage
22
24
 
23
- Create your own database
25
+ TODO: Write usage instructions here
24
26
 
25
27
  ## Development
26
28
 
@@ -36,3 +38,4 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/Yuanha
36
38
  ## License
37
39
 
38
40
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
+
@@ -6,8 +6,7 @@ require 'nokogiri'
6
6
  require 'mysql2'
7
7
  require 'pp'
8
8
 
9
- class JavlibrarySpider
10
-
9
+ class Javlibrary
11
10
  JAVLIBRARY_URL = [ "jav11b.com", "javlibrary.com" ]
12
11
 
13
12
  def initialize(database_name = 'javlibrary', user = 'root', pwd = 'default')
@@ -104,8 +103,8 @@ class JavlibrarySpider
104
103
 
105
104
  video_array = video_array.each_slice(5000).to_a
106
105
 
107
- actor_hash = Javlibrary::actor_hash
108
- genre_hash = Javlibrary::genre_hash
106
+ actor_hash = actor_hash()
107
+ genre_hash = genre_hash()
109
108
  thread_pool = Array::new
110
109
 
111
110
  video_array.each do |group|
@@ -166,7 +165,6 @@ class JavlibrarySpider
166
165
 
167
166
  def genres_insert
168
167
  client = client()
169
- p client
170
168
  genres = genres()
171
169
  genres.each do |e|
172
170
  begin
@@ -1,3 +1,3 @@
1
- module Javlibrary
2
- VERSION = "0.2.6"
1
+ class Javlibrary
2
+ VERSION = "0.2.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: javlibrary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuanhao Sun
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-31 00:00:00.000000000 Z
11
+ date: 2017-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -125,16 +125,9 @@ files:
125
125
  - Rakefile
126
126
  - bin/console
127
127
  - bin/setup
128
- - javlibrary-0.1.0.gem
129
128
  - javlibrary.gemspec
130
129
  - lib/javlibrary.rb
131
- - lib/javlibrary/database.rb
132
- - lib/javlibrary/downloader.rb
133
- - lib/javlibrary/info_hash.rb
134
- - lib/javlibrary/init.rb
135
- - lib/javlibrary/name.rb
136
130
  - lib/javlibrary/version.rb
137
- - lib/javlibrary/video.rb
138
131
  homepage: https://syhdaily.com
139
132
  licenses:
140
133
  - MIT
Binary file
File without changes
File without changes
File without changes
File without changes
@@ -1 +0,0 @@
1
-
@@ -1 +0,0 @@
1
-