source2epub 0.2.5 → 0.2.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: b061432f800f5c780051306c0818962af8962d0c
4
- data.tar.gz: ad300ab89751ab9890bd7d33b27bfb1ebcad0d31
3
+ metadata.gz: 2be126cdd04f78f136308263f144d80bf47c54c4
4
+ data.tar.gz: 1d8de0cbb2463d4e249b1b2def7788794c2e9868
5
5
  SHA512:
6
- metadata.gz: bb3e4c785cb11ba478050ab301c8adaecdb7cbba576413e70e82654f0a6d8d6ccdff6491cfbb53362059734572041cfb07ff0e524ce6f1cbc3cf3cdf21be42f1
7
- data.tar.gz: 0bae406103ea481bdb7c0602e192812e6d6833b729e407b96dac7efbaf3c2cfbad8baf8b7250eb28a9ec7538aeb677c75bfa32e1b2b00e24ea00901ff441c503
6
+ metadata.gz: 24e795cbbb2d27a8f888b6686a012c07690d116b1f7ed24b7563ee5c5337e797f682ef6c4d890d866072494fbbbd8388805b945e74a61d9ba2b61d16a821f2b1
7
+ data.tar.gz: 83e4d5743df06769e254569bc94aefe100b1f0c0f0ef678e86a21d84c6b0d1958b0cd0eb0aae71f0f4442543f76492c4c11b31828b270e48c666572a5faab159
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ #### 0.2.6
2
+
3
+ - Cleanup the gem's dependencies
4
+ - Use require instead of require_relative when possible
5
+ - Use my custom version of eeepub (eeepub_ext)
6
+
1
7
  #### 0.2.5
2
8
 
3
9
  - Update the gem dependency to latest version
data/Gemfile CHANGED
@@ -1,5 +1,5 @@
1
1
  source "https://rubygems.org"
2
+ gemspec
2
3
 
3
4
  # Custom version of gem until the official update is available
4
- gem 'eeepub', :git => 'https://github.com/agilecreativity/eeepub.git'
5
- gemspec
5
+ #gem 'eeepub', :git => 'https://github.com/agilecreativity/eeepub.git'
data/bin/source2epub CHANGED
@@ -1,7 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
  require_relative "../lib/source2epub"
3
- require_relative "../config/initializers/source2epub"
4
- include Source2Epub
5
3
  if ARGV.empty?
6
4
  Source2Epub::CLI.start(%w[usage])
7
5
  else
@@ -1,6 +1,5 @@
1
1
  module Source2Epub
2
2
  class << self
3
- # ./lib/source2epub/configuration.rb
4
3
  def update_config
5
4
  Source2Epub.configure do |config|
6
5
  config.creator = "Burin C"
data/lib/source2epub.rb CHANGED
@@ -1,5 +1,20 @@
1
- require_relative "source2epub/version"
2
- require_relative "source2epub/source2epub"
3
- require_relative "source2epub/exporter"
4
- require_relative "source2epub/cli"
1
+ # require 'rubygems'
2
+ # require 'bundler/setup'
3
+
4
+ # Community's gems
5
+ require "git"
6
+ require "thor"
7
+ require "uri"
8
+ require "eeepub"
9
+ # My own gems
10
+ require "agile_utils"
11
+ require "code_lister"
12
+ require "vim_printer"
13
+
14
+ require "config/source2epub"
15
+ require "source2epub/configuration"
16
+ require "source2epub/version"
17
+ require "source2epub/source2epub"
18
+ require "source2epub/exporter"
19
+ require "source2epub/cli"
5
20
  include Source2Epub
@@ -1,6 +1,3 @@
1
- require "thor"
2
- require "vim_printer"
3
- require_relative "source2epub"
4
1
  module Source2Epub
5
2
  class CLI < Thor
6
3
  desc "export", "Export a given github URL or local project directory to an epub file"
@@ -1,8 +1,3 @@
1
- #!/usr/bin/env ruby
2
- require "uri"
3
- require "agile_utils"
4
- require "eeepub"
5
- require_relative "../source2epub"
6
1
  module Source2Epub
7
2
  TMP_DIR = "source2epub_tmp"
8
3
  class Exporter
@@ -1,6 +1,3 @@
1
- require "git"
2
- require "code_lister"
3
- require_relative "./configuration"
4
1
  module Source2Epub
5
2
  CustomError = Class.new(StandardError)
6
3
  class << self
@@ -63,7 +60,7 @@ module Source2Epub
63
60
  VimPrinter::CLI.start(args)
64
61
  end
65
62
 
66
- private
63
+ private
67
64
 
68
65
  # Always expand the directory name so that '~' or '.' is expanded correctly
69
66
  def base_dir(dir_name)
@@ -1,3 +1,3 @@
1
1
  module Source2Epub
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
data/source2epub.gemspec CHANGED
@@ -16,14 +16,14 @@ Gem::Specification.new do |spec|
16
16
  spec.homepage = "https://github.com/agilecreativity/source2epub"
17
17
  spec.license = "MIT"
18
18
  spec.required_ruby_version = '>= 1.9.3'
19
- spec.files = Dir.glob("{bin,lib,config}/**/*") + %w[Gemfile
20
- Rakefile
21
- source2epub.gemspec
22
- README.md
23
- CHANGELOG.md
24
- LICENSE
25
- .rubocop.yml
26
- .gitignore]
19
+ spec.files = Dir.glob("{bin,lib}/**/*") + %w[Gemfile
20
+ Rakefile
21
+ source2epub.gemspec
22
+ README.md
23
+ CHANGELOG.md
24
+ LICENSE
25
+ .rubocop.yml
26
+ .gitignore]
27
27
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
28
28
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
29
29
  spec.require_paths = ["lib"]
@@ -33,7 +33,10 @@ Gem::Specification.new do |spec|
33
33
  spec.add_runtime_dependency "agile_utils", "~> 0.2.2"
34
34
  spec.add_runtime_dependency "code_lister", "~> 0.2.2"
35
35
  spec.add_runtime_dependency "vim_printer", "~> 0.2.3"
36
- spec.add_runtime_dependency 'eeepub', '~> 0.8.2'
36
+
37
+ # Note: this is the custom version of the gem, as the official version 0.8.1
38
+ # contain bugs in the zip library
39
+ spec.add_runtime_dependency "eeepub_ext", "~> 0.8.2"
37
40
 
38
41
  spec.add_development_dependency "awesome_print", "~> 1.2.0"
39
42
  spec.add_development_dependency "bundler", "~> 1.7.3"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: source2epub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Burin Choomnuan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-25 00:00:00.000000000 Z
11
+ date: 2014-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -81,7 +81,7 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: 0.2.3
83
83
  - !ruby/object:Gem::Dependency
84
- name: eeepub
84
+ name: eeepub_ext
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
@@ -268,7 +268,7 @@ files:
268
268
  - README.md
269
269
  - Rakefile
270
270
  - bin/source2epub
271
- - config/initializers/source2epub.rb
271
+ - lib/config/source2epub.rb
272
272
  - lib/source2epub.rb
273
273
  - lib/source2epub/cli.rb
274
274
  - lib/source2epub/configuration.rb