nokaya 0.1.5 → 0.1.6

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: 032fd55336df4db4c3d02eda35164c36980a8f86
4
- data.tar.gz: d42998381833d58c50f7de80f37812ae856035e9
3
+ metadata.gz: a9ed71bef8422c46fff21b5fccc6ce14141f17e2
4
+ data.tar.gz: 8b95b95dcd80e641936cfac5215dae6481b7c157
5
5
  SHA512:
6
- metadata.gz: 9f7ed80acd7a065001c088300139658894562e15b19632a01a8a81f0232165e647586847c9618b8c2a2620c953c642eeb0c30d38f76d333cca36f5ad07ec712f
7
- data.tar.gz: b6663dd0b77110947e8cf03430af0ec11f6097d6df715de7daf63b6c676a55e545113413c481a7c59d910b31f0e9fa4ada438951181a03cec111452ecdd42b04
6
+ metadata.gz: 8882580ec166c3522aa75cead576c338b4d9446c26f6b67758efb1a52b10dc3feeb98ff75e437aa2c862ef2c3ef8d59d6c4f9347b830b72d39dae23aeb6c5cd1
7
+ data.tar.gz: d6b9ec350c58a2c0714dd32f84ee9a2c0492d1da4bf21495dbd53e03d35e92afb3f4ab43354496d8d04acb7d37b63a227ca7fe663c7c1b272f860939079d0677
@@ -2,9 +2,9 @@ language: ruby
2
2
  cache: bundler
3
3
 
4
4
  rvm:
5
+ - "2.2.0"
5
6
  - "2.1.2"
6
7
  - "2.1.1"
7
- - "2.1.0"
8
8
  - "2.0.0"
9
9
 
10
10
  script: 'bundle exec rake spec'
@@ -1,3 +1,7 @@
1
+ # 0.1.6 - 2015-01-29
2
+
3
+ - New: for ADN and FAVD, option to specify a post number instead of an URL
4
+
1
5
  # 0.1.5 - 2014-09-21
2
6
 
3
7
  - New: tvshow. Download poster + banner from (part of) a tvshow title.
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
@@ -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(args[0])
16
+ parsed = parse(url)
12
17
  @urls = [get_basic(parsed)].compact
13
18
  @author = author_name(parsed)
14
19
  @filenames = name_files()
@@ -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)
@@ -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(args[0])
16
+ parsed = parse(url)
12
17
  @urls = get_favd(parsed).compact
13
18
  @author = author_name(parsed)
14
19
  @filenames = name_files()
@@ -1,3 +1,3 @@
1
1
  module Nokaya
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
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.5
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: 2014-09-21 00:00:00.000000000 Z
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.1
229
+ rubygems_version: 2.4.5
230
230
  signing_key:
231
231
  specification_version: 4
232
232
  summary: Download photos from several online services.