Fix structure & requires.
This commit is contained in:
parent
98836d8ad8
commit
7b59637189
4 changed files with 11 additions and 10 deletions
|
@ -13,6 +13,7 @@
|
||||||
# All files will be downloaded into battlefield3 with filenames in the pattern of
|
# All files will be downloaded into battlefield3 with filenames in the pattern of
|
||||||
# scenery-[number].jpg
|
# scenery-[number].jpg
|
||||||
|
|
||||||
|
require 'imgur2comicbook'
|
||||||
|
|
||||||
require 'nokogiri'
|
require 'nokogiri'
|
||||||
require 'open-uri'
|
require 'open-uri'
|
||||||
|
@ -69,6 +70,10 @@ options = parse_cmdline ARGV
|
||||||
|
|
||||||
images = []
|
images = []
|
||||||
now = Time.now
|
now = Time.now
|
||||||
|
if ARGV[0].nil? then
|
||||||
|
STDERR.puts "Missing URL."
|
||||||
|
exit 1
|
||||||
|
end
|
||||||
url = album_url(ARGV[0])
|
url = album_url(ARGV[0])
|
||||||
directory = ( defined?(ARGV[1]) ? ARGV[1] : nil )
|
directory = ( defined?(ARGV[1]) ? ARGV[1] : nil )
|
||||||
#namespace = ( defined?(ARGV[2]) ? ARGV[2] : "image" )
|
#namespace = ( defined?(ARGV[2]) ? ARGV[2] : "image" )
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
lib = File.expand_path('../lib', __FILE__)
|
lib = File.expand_path('../lib', __FILE__)
|
||||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||||
require 'imgur-albumkeeper/version'
|
require 'imgur2comicbook/version'
|
||||||
|
|
||||||
Gem::Specification.new do |spec|
|
Gem::Specification.new do |spec|
|
||||||
spec.name = "imgur-albumkeeper"
|
spec.name = "imgur2comicbook"
|
||||||
spec.version = Gsfe::VERSION
|
spec.version = Imgur2ComicBook::VERSION
|
||||||
spec.authors = ["Glenn Y. Rolland"]
|
spec.authors = ["Glenn Y. Rolland"]
|
||||||
spec.email = ["glenn.rolland@netcat.io"]
|
spec.email = ["glenn.rolland@netcat.io"]
|
||||||
spec.summary = %q{Archive imgur albums.}
|
spec.summary = %q{Archive imgur albums.}
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
require "../imgur/albumkeeper/version"
|
require "imgur2comicbook/version"
|
||||||
|
|
||||||
module ../imgur
|
module Imgur2ComicBook
|
||||||
module Albumkeeper
|
|
||||||
# Your code goes here...
|
# Your code goes here...
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
module ../imgur
|
module Imgur2ComicBook
|
||||||
module Albumkeeper
|
|
||||||
VERSION = "0.0.1"
|
VERSION = "0.0.1"
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
Loading…
Reference in a new issue