Fix structure & requires.

This commit is contained in:
Glenn Y. Rolland 2015-06-30 17:57:52 +02:00
parent 98836d8ad8
commit 7b59637189
4 changed files with 11 additions and 10 deletions

View file

@ -13,6 +13,7 @@
# All files will be downloaded into battlefield3 with filenames in the pattern of
# scenery-[number].jpg
require 'imgur2comicbook'
require 'nokogiri'
require 'open-uri'
@ -69,6 +70,10 @@ options = parse_cmdline ARGV
images = []
now = Time.now
if ARGV[0].nil? then
STDERR.puts "Missing URL."
exit 1
end
url = album_url(ARGV[0])
directory = ( defined?(ARGV[1]) ? ARGV[1] : nil )
#namespace = ( defined?(ARGV[2]) ? ARGV[2] : "image" )

View file

@ -1,11 +1,11 @@
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'imgur-albumkeeper/version'
require 'imgur2comicbook/version'
Gem::Specification.new do |spec|
spec.name = "imgur-albumkeeper"
spec.version = Gsfe::VERSION
spec.name = "imgur2comicbook"
spec.version = Imgur2ComicBook::VERSION
spec.authors = ["Glenn Y. Rolland"]
spec.email = ["glenn.rolland@netcat.io"]
spec.summary = %q{Archive imgur albums.}

View file

@ -1,7 +1,5 @@
require "../imgur/albumkeeper/version"
require "imgur2comicbook/version"
module ../imgur
module Albumkeeper
module Imgur2ComicBook
# Your code goes here...
end
end

View file

@ -1,5 +1,3 @@
module ../imgur
module Albumkeeper
module Imgur2ComicBook
VERSION = "0.0.1"
end
end