saber 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -3
- data/extconf.rb +5 -1
- data/lib/saber/version.rb +1 -1
- data/templates/_saberrc +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -41,7 +41,7 @@ Because of lacking APIs in major PT sites, so I write this small script to help
|
|
41
41
|
|
42
42
|
Manual fill \<info-data>.yml file and upload it.
|
43
43
|
|
44
|
-
$ saber
|
44
|
+
$ saber g magazine hello.pdf
|
45
45
|
> create hello.yml
|
46
46
|
$ edit hello.yml
|
47
47
|
|
@@ -57,7 +57,7 @@ Manual fill \<info-data>.yml file and upload it.
|
|
57
57
|
|
58
58
|
Auto fill \<info-data>.yml file from ISBN.
|
59
59
|
|
60
|
-
$ saber
|
60
|
+
$ saber g ebook hello.epub:1781100055
|
61
61
|
> create hello.yml
|
62
62
|
|
63
63
|
### Fetch
|
@@ -125,7 +125,6 @@ Install
|
|
125
125
|
_Main article_: [Install Saber](https://github.com/SaberSalv/saber/wiki/Install)
|
126
126
|
|
127
127
|
$ gem install saber
|
128
|
-
$ install it's dependencies
|
129
128
|
|
130
129
|
Development [![Dependency Status](https://gemnasium.com/SaberSalv/saber.png?branch=master)](https://gemnasium.com/SaberSalv/saber) [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/SaberSalv/saber)
|
131
130
|
===========
|
data/extconf.rb
CHANGED
@@ -3,9 +3,13 @@ require "fileutils"
|
|
3
3
|
require "mkmf"
|
4
4
|
|
5
5
|
bindir = File.expand_path("../bin", __FILE__)
|
6
|
-
|
6
|
+
gem_home = Process.pid == 0 ? Gem.dir : Gem.user_dir
|
7
|
+
dist_bindir = ENV["GEM_BINDIR"] || Gem.bindir(gem_home)
|
7
8
|
|
8
9
|
FileUtils.install File.join(bindir, "saber-drb_add"), dist_bindir
|
9
10
|
FileUtils.install File.join(bindir, "saber.bib"), dist_bindir
|
11
|
+
FileUtils.install File.join(bindir, "saber.bb"), dist_bindir
|
12
|
+
FileUtils.install File.join(bindir, "saber.stp"), dist_bindir
|
13
|
+
FileUtils.install File.join(bindir, "saber.what"), dist_bindir
|
10
14
|
|
11
15
|
create_makefile("saber")
|
data/lib/saber/version.rb
CHANGED
data/templates/_saberrc
CHANGED