shoko 0.1.0 → 0.1.2

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
  SHA256:
3
- metadata.gz: 4da504e314b4ccf14caada8bcdb128ea1e128c3eb391e51ee85ef41529003fb5
4
- data.tar.gz: 356baf7e71baf08181a92eb4d582c3e21e248ce121414c6ea1313c881f54ca9c
3
+ metadata.gz: 29cd70c0a8cf522954300b3ade49b66f139d7062cd5d7787ba5e6df2f1e85427
4
+ data.tar.gz: 9a0b8cd84521afcaa82b9dc0890475329f8684564bd2493d18a79599114372a2
5
5
  SHA512:
6
- metadata.gz: c31d6dac31624b683b5bb672174f5d47c1943d63bd8f2677806e42cd48943f9bd2ac83c73d72f9d4b4ace1416423d4361b00d688b23649b9a80edd7c4c839a27
7
- data.tar.gz: 52f71139fc47843e8d078ad5fc23a874d8b0807002275781f6bbb99ac01f58b73ca216f2af3218f8905a3070ee5d6726108355d902cc276b760e141e7d4644a7
6
+ metadata.gz: b680e034e03bc6ed2133a25d9bae285d13aaf0b92e70b05740fe331d62e1fa1fb769a58a079d13d7cc9896d70c3c46471b3cc958606863ebde4f31ac9fa9978e
7
+ data.tar.gz: f46daf3f7472bba14b9795a9e97db17ff639031b03ed19d11204bdca8e1b0de246d55d5e1b4189b1b63ee8e8ab2cd44c561c67af127faeb4b87a3cbe3f5a635d
data/bin/shoko ADDED
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ root = File.expand_path("..", __dir__)
5
+ gemfile = File.join(root, "Gemfile")
6
+ gemspec = Dir[File.join(root, "*.gemspec")].first
7
+ if File.file?(gemfile) && gemspec
8
+ ENV["BUNDLE_GEMFILE"] ||= gemfile
9
+ begin
10
+ require "bundler/setup"
11
+ rescue LoadError
12
+ # Bundler isn't required when running from a packaged gem.
13
+ end
14
+ end
15
+
16
+ $LOAD_PATH.unshift(File.expand_path("../lib", __dir__))
17
+ require "shoko"
18
+
19
+ Shoko::CLI.run(ARGV)
data/bin/start CHANGED
@@ -1,12 +1,16 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
5
-
6
- begin
7
- require "bundler/setup"
8
- rescue LoadError
9
- # Bundler isn't required when running from a packaged gem.
4
+ root = File.expand_path("..", __dir__)
5
+ gemfile = File.join(root, "Gemfile")
6
+ gemspec = Dir[File.join(root, "*.gemspec")].first
7
+ if File.file?(gemfile) && gemspec
8
+ ENV["BUNDLE_GEMFILE"] ||= gemfile
9
+ begin
10
+ require "bundler/setup"
11
+ rescue LoadError
12
+ # Bundler isn't required when running from a packaged gem.
13
+ end
10
14
  end
11
15
 
12
16
  $LOAD_PATH.unshift(File.expand_path("../lib", __dir__))
@@ -29,7 +29,7 @@ module Shoko
29
29
  end
30
30
 
31
31
  def configure_parser(parser, options)
32
- parser.banner = 'Usage: start [options] [file]'
32
+ parser.banner = 'Usage: shoko [options] [file]'
33
33
  parser.on('-d', '--debug', 'Enable debug logging') { options[:debug] = true }
34
34
  parser.on('--log PATH', 'Write JSON logs to PATH instead of discarding output') do |path|
35
35
  options[:log_path] = path
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Shoko
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shoko
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shoko
@@ -47,6 +47,7 @@ description: Terminal EBook Reader
47
47
  email:
48
48
  - ruby.computer770@passinbox.com
49
49
  executables:
50
+ - shoko
50
51
  - start
51
52
  extensions: []
52
53
  extra_rdoc_files: []
@@ -59,6 +60,7 @@ files:
59
60
  - LICENSE
60
61
  - README.md
61
62
  - Rakefile
63
+ - bin/shoko
62
64
  - bin/start
63
65
  - lib/shoko.rb
64
66
  - lib/shoko/adapters/book_sources/document_service.rb