rubyhexagon 0.1.2 → 0.1.3
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.
- data/bin/e621 +2 -0
- data/lib/examples/sync.rb +1 -2
- data/lib/rubyhexagon.rb +1 -1
- metadata +12 -12
data/bin/e621
CHANGED
data/lib/examples/sync.rb
CHANGED
|
@@ -23,13 +23,13 @@ include E621
|
|
|
23
23
|
|
|
24
24
|
mod = ARGV.shift
|
|
25
25
|
|
|
26
|
-
$0 = "E621 #{mod.capitalize}-sync"
|
|
27
26
|
$form = "%b %e, %Y %I:%M:%S %p"
|
|
28
27
|
|
|
29
28
|
require mod
|
|
30
29
|
|
|
31
30
|
class Sync
|
|
32
31
|
def initialize
|
|
32
|
+
E621::Config.config = File.expand_path("~/.hexagon/conf.json")
|
|
33
33
|
if $stdout.tty? then
|
|
34
34
|
@log = Logger.new($stdout)
|
|
35
35
|
@log.level = Logger::DEBUG
|
|
@@ -40,7 +40,6 @@ class Sync
|
|
|
40
40
|
@log.formatter = proc do |sev,dat,prog,msg|
|
|
41
41
|
"#{Time.now.strftime($form)} [#{sev.pad(5)}] #{msg}#$/"
|
|
42
42
|
end
|
|
43
|
-
E621::Config.config = File.expand_path("~/.hexagon/conf.json")
|
|
44
43
|
api = API.new("user") # Used for login
|
|
45
44
|
@log.info("Program #$0 started.")
|
|
46
45
|
@uid = api.get("index",{"name"=>api.user}).first["id"]
|
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.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -18,22 +18,22 @@ executables:
|
|
|
18
18
|
extensions: []
|
|
19
19
|
extra_rdoc_files: []
|
|
20
20
|
files:
|
|
21
|
-
- lib/examples/add.rb
|
|
22
|
-
- lib/examples/sync.rb
|
|
23
21
|
- lib/config.rb
|
|
24
|
-
- lib/
|
|
25
|
-
- lib/rubyhexagon.rb
|
|
26
|
-
- lib/pool.rb
|
|
27
|
-
- lib/container.rb
|
|
28
|
-
- lib/standard/string.rb
|
|
29
|
-
- lib/standard/http.rb
|
|
22
|
+
- lib/set.rb
|
|
30
23
|
- lib/standard/error.rb
|
|
24
|
+
- lib/standard/http.rb
|
|
25
|
+
- lib/standard/string.rb
|
|
26
|
+
- lib/standard/time.rb
|
|
31
27
|
- lib/standard/int.rb
|
|
32
28
|
- lib/standard/hash.rb
|
|
33
|
-
- lib/standard/time.rb
|
|
34
|
-
- lib/search.rb
|
|
35
|
-
- lib/set.rb
|
|
36
29
|
- lib/api.rb
|
|
30
|
+
- lib/rubyhexagon.rb
|
|
31
|
+
- lib/pool.rb
|
|
32
|
+
- lib/search.rb
|
|
33
|
+
- lib/container.rb
|
|
34
|
+
- lib/post.rb
|
|
35
|
+
- lib/examples/sync.rb
|
|
36
|
+
- lib/examples/add.rb
|
|
37
37
|
- bin/e621
|
|
38
38
|
homepage: https://github.com/maxine-red/rubyhexagon
|
|
39
39
|
licenses:
|