nokaya 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/CHANGELOG.md +4 -0
- data/README.md +8 -0
- data/lib/nokaya/adn.rb +6 -1
- data/lib/nokaya/app.rb +2 -0
- data/lib/nokaya/favd.rb +6 -1
- data/lib/nokaya/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9ed71bef8422c46fff21b5fccc6ce14141f17e2
|
4
|
+
data.tar.gz: 8b95b95dcd80e641936cfac5215dae6481b7c157
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8882580ec166c3522aa75cead576c338b4d9446c26f6b67758efb1a52b10dc3feeb98ff75e437aa2c862ef2c3ef8d59d6c4f9347b830b72d39dae23aeb6c5cd1
|
7
|
+
data.tar.gz: d6b9ec350c58a2c0714dd32f84ee9a2c0492d1da4bf21495dbd53e03d35e92afb3f4ab43354496d8d04acb7d37b63a227ca7fe663c7c1b272f860939079d0677
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -180,6 +180,10 @@ Example:
|
|
180
180
|
|
181
181
|
`nokaya favd http://pic.favd.net/29987710`
|
182
182
|
|
183
|
+
Option to specify a post number instead of an URL:
|
184
|
+
|
185
|
+
`nokaya favd -p 29987710`
|
186
|
+
|
183
187
|
### App.net
|
184
188
|
|
185
189
|
`nokaya adn url`
|
@@ -188,6 +192,10 @@ Example:
|
|
188
192
|
|
189
193
|
`nokaya adn https://photos.app.net/30055986/1`
|
190
194
|
|
195
|
+
Option to specify a post number instead of an URL:
|
196
|
+
|
197
|
+
`nokaya adn -p 30055986`
|
198
|
+
|
191
199
|
## Options
|
192
200
|
|
193
201
|
### Silent
|
data/lib/nokaya/adn.rb
CHANGED
@@ -7,8 +7,13 @@ module Nokaya
|
|
7
7
|
|
8
8
|
def initialize args, options = {}
|
9
9
|
super(args, options)
|
10
|
+
url = if options[:post]
|
11
|
+
"https://photos.app.net/#{args[0]}/1"
|
12
|
+
else
|
13
|
+
args[0]
|
14
|
+
end
|
10
15
|
@type = :adn
|
11
|
-
parsed = parse(
|
16
|
+
parsed = parse(url)
|
12
17
|
@urls = [get_basic(parsed)].compact
|
13
18
|
@author = author_name(parsed)
|
14
19
|
@filenames = name_files()
|
data/lib/nokaya/app.rb
CHANGED
@@ -68,6 +68,7 @@ module Nokaya
|
|
68
68
|
desc "favd URL", 'Get the picture from a Favd page (nokaya favd url)'
|
69
69
|
option :name, aliases: "-n", type: :string, desc: "Specify a file name without extension"
|
70
70
|
option :output, aliases: "-o", type: :string, desc: "Specify an output path"
|
71
|
+
option :post, aliases: "-p", type: :boolean, desc: "Specify a post number instead of an URL"
|
71
72
|
def favd *args
|
72
73
|
puts Status.wait if options['verbose']
|
73
74
|
image = Favd.new(args, options)
|
@@ -78,6 +79,7 @@ module Nokaya
|
|
78
79
|
desc "adn URL", "Get the picture from an app.net page (nokaya adn url)"
|
79
80
|
option :name, aliases: "-n", type: :string, desc: "Specify a file name without extension"
|
80
81
|
option :output, aliases: "-o", type: :string, desc: "Specify an output path"
|
82
|
+
option :post, aliases: "-p", type: :boolean, desc: "Specify a post number instead of an URL"
|
81
83
|
def adn *args
|
82
84
|
puts Status.wait if options['verbose']
|
83
85
|
image = ADN.new(args, options)
|
data/lib/nokaya/favd.rb
CHANGED
@@ -7,8 +7,13 @@ module Nokaya
|
|
7
7
|
|
8
8
|
def initialize args, options = {}
|
9
9
|
super(args, options)
|
10
|
+
url = if options[:post]
|
11
|
+
"http://pic.favd.net/#{args[0]}"
|
12
|
+
else
|
13
|
+
args[0]
|
14
|
+
end
|
10
15
|
@type = :favd
|
11
|
-
parsed = parse(
|
16
|
+
parsed = parse(url)
|
12
17
|
@urls = get_favd(parsed).compact
|
13
18
|
@author = author_name(parsed)
|
14
19
|
@filenames = name_files()
|
data/lib/nokaya/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nokaya
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Dejonckheere
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -226,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
226
226
|
version: '0'
|
227
227
|
requirements: []
|
228
228
|
rubyforge_project:
|
229
|
-
rubygems_version: 2.4.
|
229
|
+
rubygems_version: 2.4.5
|
230
230
|
signing_key:
|
231
231
|
specification_version: 4
|
232
232
|
summary: Download photos from several online services.
|