git2epub 0.1.1 → 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.
@@ -1,8 +1,20 @@
1
- = git2epub
1
+ git2epub
2
+ ====
2
3
 
3
- Description goes here.
4
+ The tool that generate epub from git repository.
4
5
 
5
- == Note on Patches/Pull Requests
6
+ Install
7
+ ----
8
+
9
+ gem install git2epub
10
+
11
+ Usage
12
+ ----
13
+
14
+ git2epub http://github.com/jugyo/eeepub.git
15
+
16
+ Note on Patches/Pull Requests
17
+ ----
6
18
 
7
19
  * Fork the project.
8
20
  * Make your feature addition or bug fix.
@@ -12,6 +24,7 @@ Description goes here.
12
24
  (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
13
25
  * Send me a pull request. Bonus points for topic branches.
14
26
 
15
- == Copyright
27
+ Copyright
28
+ ----
16
29
 
17
30
  Copyright (c) 2010 jugyo. See LICENSE for details.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
data/lib/git2epub.rb CHANGED
@@ -20,9 +20,7 @@ module Git2Epub
20
20
 
21
21
  add_contents(epub, dir, git_url)
22
22
 
23
- unless epub_file
24
- epub_file = git_url.match(/:(.*)/)[1].gsub('/', '-') + '.epub'
25
- end
23
+ epub_file = File.basename(git_url) + '.epub' unless epub_file
26
24
  puts "\e[32m => #{epub_file}\e[0m"
27
25
  epub.save(epub_file)
28
26
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 1
9
- version: 0.1.1
8
+ - 2
9
+ version: 0.1.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - jugyo
@@ -66,14 +66,14 @@ extensions: []
66
66
 
67
67
  extra_rdoc_files:
68
68
  - LICENSE
69
- - README.rdoc
69
+ - README.md
70
70
  files:
71
71
  - .document
72
72
  - .gitignore
73
73
  - Gemfile
74
74
  - Gemfile.lock
75
75
  - LICENSE
76
- - README.rdoc
76
+ - README.md
77
77
  - Rakefile
78
78
  - VERSION
79
79
  - bin/git2epub