Skip to content
Browse files

Use bundler

  • Loading branch information...
1 parent 5ff1f73 commit e0754b22c935f9ee5733e55fd82885b12b16b254 @zetaben committed Nov 24, 2011
View
4 .gitignore
@@ -0,0 +1,4 @@
+*.gem
+.bundle
+Gemfile.lock
+pkg/*
View
4 Gemfile
@@ -0,0 +1,4 @@
+source "http://rubygems.org"
+
+# Specify your gem's dependencies in html2fb.gemspec
+gemspec
View
19 Html2Feedbooks.gemspec
@@ -1,19 +0,0 @@
-Gem::Specification.new do |s|
- s.name = %q{Html2Feedbooks}
- s.version = '1.1.1'
- s.date = %q{2009-04-28}
- s.authors = ["Benoit Larroque"]
- s.email = "benoit dot larroque at feedbooks dot com"
- s.summary = %q{Html2Feedbooks is script to automate basic publishing on feedbooks.com}
- s.homepage = %q{http://github.com/zetaben/Html2Feedbooks}
- s.description = %q{Html2Feedbooks is script to automate basic publishing on feedbooks.com}
- s.files = %W[README confs/conf.yaml lib/app.rb lib/conf.rb lib/document.rb lib/downloader.rb lib/feedbooks.rb bin/html2fb.rb lib/parser.rb]
- s.has_rdoc = true
- s.require_paths = ["lib"]
- s.executables = ['html2fb.rb']
- s.default_executable = 'html2fb.rb'
- s.add_dependency('hpricot', '= 0.8.1')
- s.add_dependency('htmlentities', '>= 4.2.1')
- s.add_dependency('launchy', '>= 0.3')
- s.add_dependency('progressbar', '>= 0.0.3')
-end
View
9 Rakefile
@@ -1,8 +1 @@
-require 'rake/gempackagetask'
-gemspec = eval(File.read('Html2Feedbooks.gemspec'))
-
-Rake::GemPackageTask.new(gemspec) do |p|
- p.gem_spec = gemspec
- p.need_tar = false
- p.need_zip = false
-end
+require "bundler/gem_tasks"
View
7 bin/html2fb.rb
@@ -1,14 +1,11 @@
#!/usr/bin/ruby
+require 'rubygems'
require 'optparse'
require 'open-uri'
-require 'conf.rb'
-require 'downloader.rb'
-require 'document.rb'
-require 'parser.rb'
-require 'feedbooks.rb'
require 'tmpdir'
require 'launchy'
require 'digest/md5'
+require 'html2fb'
include HTML2FB
View
27 html2fb.gemspec
@@ -0,0 +1,27 @@
+# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "html2fb/version"
+
+Gem::Specification.new do |s|
+ s.name = "Html2Feedbooks"
+ s.version = Html2fb::VERSION
+ s.authors = ["Benoit Larroque"]
+ s.email = ["benoit dot larroque at feedbooks dot com"]
+ s.summary = %q{Html2Feedbooks is script to automate basic publishing on feedbooks.com}
+ s.homepage = %q{http://github.com/zetaben/Html2Feedbooks}
+ s.description = %q{Html2Feedbooks is script to automate basic publishing on feedbooks.com}
+
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ s.require_paths = ["lib"]
+ s.default_executable = 'html2fb.rb'
+ s.add_dependency('hpricot', '= 0.8.1')
+ s.add_dependency('htmlentities', '>= 4.2.1')
+ s.add_dependency('launchy', '>= 0.3')
+ s.add_dependency('progressbar', '>= 0.0.3')
+
+ # specify any dependencies here; for example:
+ # s.add_development_dependency "rspec"
+ # s.add_runtime_dependency "rest-client"
+end
View
7 lib/html2fb.rb
@@ -0,0 +1,7 @@
+require "html2fb/version"
+
+require 'html2fb/conf.rb'
+require 'html2fb/downloader.rb'
+require 'html2fb/document.rb'
+require 'html2fb/parser.rb'
+require 'html2fb/feedbooks.rb'
View
0 lib/app.rb → lib/html2fb/app.rb
File renamed without changes.
View
0 lib/conf.rb → lib/html2fb/conf.rb
File renamed without changes.
View
0 lib/document.rb → lib/html2fb/document.rb
File renamed without changes.
View
0 lib/downloader.rb → lib/html2fb/downloader.rb
File renamed without changes.
View
2 lib/feedbooks.rb → lib/html2fb/feedbooks.rb
@@ -1,4 +1,4 @@
-require 'app.rb'
+require 'html2fb/app.rb'
require 'hpricot'
require 'digest/md5'
View
2 lib/parser.rb → lib/html2fb/parser.rb
@@ -1,5 +1,5 @@
require 'hpricot'
-require 'document.rb'
+require 'html2fb/document.rb'
require 'progressbar'
#require 'ruby-prof'
#require 'term/ansicolor'
View
3 lib/html2fb/version.rb
@@ -0,0 +1,3 @@
+module Html2fb
+ VERSION = "1.2.0"
+end

0 comments on commit e0754b2

Please sign in to comment.
Something went wrong with that request. Please try again.