From 7b5963718958926b2df856734fdd2dd0425010c9 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Tue, 30 Jun 2015 17:57:52 +0200 Subject: [PATCH] Fix structure & requires. --- bin/imgur2comicbook | 5 +++++ imgur2comicbook.gemspec | 6 +++--- lib/imgur2comicbook.rb | 6 ++---- lib/imgur2comicbook/version.rb | 4 +--- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/bin/imgur2comicbook b/bin/imgur2comicbook index 037477b..5e89ee3 100755 --- a/bin/imgur2comicbook +++ b/bin/imgur2comicbook @@ -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" ) diff --git a/imgur2comicbook.gemspec b/imgur2comicbook.gemspec index 7111e2f..9febba2 100644 --- a/imgur2comicbook.gemspec +++ b/imgur2comicbook.gemspec @@ -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.} diff --git a/lib/imgur2comicbook.rb b/lib/imgur2comicbook.rb index baa3599..9528658 100644 --- a/lib/imgur2comicbook.rb +++ b/lib/imgur2comicbook.rb @@ -1,7 +1,5 @@ -require "../imgur/albumkeeper/version" +require "imgur2comicbook/version" -module ../imgur - module Albumkeeper + module Imgur2ComicBook # Your code goes here... end -end diff --git a/lib/imgur2comicbook/version.rb b/lib/imgur2comicbook/version.rb index 3495c3c..0e3ab8b 100644 --- a/lib/imgur2comicbook/version.rb +++ b/lib/imgur2comicbook/version.rb @@ -1,5 +1,3 @@ -module ../imgur - module Albumkeeper +module Imgur2ComicBook VERSION = "0.0.1" - end end