rubyhexagon 0.1.4 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/examples/sync.rb +2 -1
- data/lib/rubyhexagon.rb +1 -1
- metadata +45 -13
data/lib/examples/sync.rb
CHANGED
@@ -18,6 +18,7 @@
|
|
18
18
|
=end
|
19
19
|
|
20
20
|
require "logger"
|
21
|
+
require "pg"
|
21
22
|
|
22
23
|
include E621
|
23
24
|
|
@@ -108,9 +109,9 @@ class Sync
|
|
108
109
|
Dir.mkdir(dname) unless File.exist?(dname)
|
109
110
|
i = 1
|
110
111
|
set.each_post do |post|
|
112
|
+
i += 1
|
111
113
|
next if @posts["downloads"].include?(post.id)
|
112
114
|
download(post,dname,set,i)
|
113
|
-
i += 1
|
114
115
|
end
|
115
116
|
advanced_set(oset,name,set) if mod == "set"
|
116
117
|
@posts["updated_at"] = set.updated_at.to_i
|
data/lib/rubyhexagon.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubyhexagon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,8 +9,40 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-03-
|
13
|
-
dependencies:
|
12
|
+
date: 2015-03-19 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: json
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '1.1'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.1'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: pg
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0.18'
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0.18'
|
14
46
|
description: Rubyhexagon provides Ruby bindings for the e621 [dot] net API.
|
15
47
|
email: maxine_red1@yahoo.com
|
16
48
|
executables:
|
@@ -18,22 +50,22 @@ executables:
|
|
18
50
|
extensions: []
|
19
51
|
extra_rdoc_files: []
|
20
52
|
files:
|
21
|
-
- lib/config.rb
|
22
53
|
- lib/set.rb
|
23
|
-
- lib/
|
24
|
-
- lib/
|
25
|
-
- lib/
|
54
|
+
- lib/examples/sync.rb
|
55
|
+
- lib/examples/add.rb
|
56
|
+
- lib/pool.rb
|
57
|
+
- lib/post.rb
|
26
58
|
- lib/standard/time.rb
|
59
|
+
- lib/standard/http.rb
|
60
|
+
- lib/standard/error.rb
|
27
61
|
- lib/standard/int.rb
|
28
62
|
- lib/standard/hash.rb
|
29
|
-
- lib/
|
63
|
+
- lib/standard/string.rb
|
64
|
+
- lib/config.rb
|
65
|
+
- lib/container.rb
|
30
66
|
- lib/rubyhexagon.rb
|
31
|
-
- lib/
|
67
|
+
- lib/api.rb
|
32
68
|
- lib/search.rb
|
33
|
-
- lib/container.rb
|
34
|
-
- lib/post.rb
|
35
|
-
- lib/examples/sync.rb
|
36
|
-
- lib/examples/add.rb
|
37
69
|
- bin/e621
|
38
70
|
homepage: https://github.com/maxine-red/rubyhexagon
|
39
71
|
licenses:
|