kitabu 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +34 -23
- data/kitabu.gemspec +1 -0
- data/lib/kitabu/generator.rb +1 -1
- data/lib/kitabu/version.rb +1 -1
- data/spec/kitabu/cli/stats_spec.rb +2 -2
- data/spec/kitabu/stats_spec.rb +2 -2
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8825109528db95493072e86a03a4097924c5e3ec
|
4
|
+
data.tar.gz: 8d68e4309f6226b3733d49c69ce4ee8d1cde46f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16e5a5110b151733881f7172b83c308d49cfac1653ae652b86a508f0a9a2d0eda2da63c66bbe114a926d4b3e232b6ddc115b6908b334904ae89325250d3a721b
|
7
|
+
data.tar.gz: af5c44927eaa997f625a8b403e58322336eb90f83d6724a2c5daaa0b99f47af000905205276f4de0428f22ef5cffd6039aba0db8206868c98207260357c18122
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
kitabu (1.0.
|
4
|
+
kitabu (1.0.5)
|
5
5
|
RedCloth
|
6
6
|
activesupport
|
7
7
|
coderay
|
@@ -10,48 +10,59 @@ PATH
|
|
10
10
|
nokogiri
|
11
11
|
notifier
|
12
12
|
rdiscount
|
13
|
+
rubyzip (< 1.0.0)
|
13
14
|
thor
|
14
15
|
|
15
16
|
GEM
|
16
17
|
remote: https://rubygems.org/
|
17
18
|
specs:
|
18
19
|
RedCloth (4.2.9)
|
19
|
-
activesupport (
|
20
|
-
i18n (~> 0.6)
|
21
|
-
|
22
|
-
|
23
|
-
|
20
|
+
activesupport (4.0.0)
|
21
|
+
i18n (~> 0.6, >= 0.6.4)
|
22
|
+
minitest (~> 4.2)
|
23
|
+
multi_json (~> 1.3)
|
24
|
+
thread_safe (~> 0.1)
|
25
|
+
tzinfo (~> 0.3.37)
|
26
|
+
atomic (1.1.14)
|
27
|
+
awesome_print (1.2.0)
|
28
|
+
builder (3.2.2)
|
24
29
|
coderay (1.0.9)
|
25
|
-
diff-lcs (1.2.
|
26
|
-
eeepub-with-cover-support (0.8.
|
30
|
+
diff-lcs (1.2.4)
|
31
|
+
eeepub-with-cover-support (0.8.8)
|
27
32
|
builder
|
28
33
|
rubyzip
|
29
|
-
i18n (0.6.
|
30
|
-
method_source (0.8.
|
31
|
-
|
32
|
-
|
34
|
+
i18n (0.6.5)
|
35
|
+
method_source (0.8.2)
|
36
|
+
mini_portile (0.5.1)
|
37
|
+
minitest (4.7.5)
|
38
|
+
multi_json (1.8.2)
|
39
|
+
nokogiri (1.6.0)
|
40
|
+
mini_portile (~> 0.5.0)
|
33
41
|
notifier (0.4.1)
|
34
|
-
pry (0.9.12)
|
42
|
+
pry (0.9.12.2)
|
35
43
|
coderay (~> 1.0.5)
|
36
44
|
method_source (~> 0.8)
|
37
45
|
slop (~> 3.4)
|
38
46
|
pry-nav (0.2.3)
|
39
47
|
pry (~> 0.9.10)
|
40
|
-
rake (10.0
|
41
|
-
rdiscount (2.
|
42
|
-
rspec (2.
|
43
|
-
rspec-core (~> 2.
|
44
|
-
rspec-expectations (~> 2.
|
45
|
-
rspec-mocks (~> 2.
|
46
|
-
rspec-core (2.
|
47
|
-
rspec-expectations (2.
|
48
|
+
rake (10.1.0)
|
49
|
+
rdiscount (2.1.7)
|
50
|
+
rspec (2.14.1)
|
51
|
+
rspec-core (~> 2.14.0)
|
52
|
+
rspec-expectations (~> 2.14.0)
|
53
|
+
rspec-mocks (~> 2.14.0)
|
54
|
+
rspec-core (2.14.5)
|
55
|
+
rspec-expectations (2.14.3)
|
48
56
|
diff-lcs (>= 1.1.3, < 2.0)
|
49
|
-
rspec-mocks (2.
|
57
|
+
rspec-mocks (2.14.3)
|
50
58
|
rubyzip (0.9.9)
|
51
|
-
slop (3.4.
|
59
|
+
slop (3.4.6)
|
52
60
|
test_notifier (1.0.1)
|
53
61
|
notifier
|
54
62
|
thor (0.18.1)
|
63
|
+
thread_safe (0.1.3)
|
64
|
+
atomic
|
65
|
+
tzinfo (0.3.38)
|
55
66
|
|
56
67
|
PLATFORMS
|
57
68
|
ruby
|
data/kitabu.gemspec
CHANGED
@@ -28,6 +28,7 @@ Gem::Specification.new do |s|
|
|
28
28
|
s.add_dependency "eeepub-with-cover-support"
|
29
29
|
s.add_dependency "coderay"
|
30
30
|
s.add_dependency "notifier"
|
31
|
+
s.add_dependency "rubyzip", "< 1.0.0"
|
31
32
|
|
32
33
|
s.add_development_dependency "rspec"
|
33
34
|
s.add_development_dependency "test_notifier"
|
data/lib/kitabu/generator.rb
CHANGED
@@ -68,7 +68,7 @@ module Kitabu
|
|
68
68
|
# Defaults to <tt>John Doe</tt>.
|
69
69
|
#
|
70
70
|
def full_name
|
71
|
-
name = `finger $USER 2> /dev/null | grep Login | colrm 1 46`.chomp
|
71
|
+
name = `finger $USER 2> /dev/null | grep Login | colrm 1 46 2> /dev/null`.chomp
|
72
72
|
name.present? ? name.squish : "John Doe"
|
73
73
|
end
|
74
74
|
end
|
data/lib/kitabu/version.rb
CHANGED
@@ -14,13 +14,13 @@ describe Kitabu::Cli, "while running stats" do
|
|
14
14
|
Kitabu::Stats
|
15
15
|
.should_receive(:new)
|
16
16
|
.with(root_dir)
|
17
|
-
.and_return(
|
17
|
+
.and_return(double.as_null_object)
|
18
18
|
|
19
19
|
capture(:stdout) { Kitabu::Cli.start(["stats"]) }
|
20
20
|
end
|
21
21
|
|
22
22
|
context "outputting stats" do
|
23
|
-
let(:stats) {
|
23
|
+
let(:stats) { double("stats", {
|
24
24
|
:chapters => 4,
|
25
25
|
:words => 50,
|
26
26
|
:images => 10,
|
data/spec/kitabu/stats_spec.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
|
3
3
|
describe Kitabu::Stats do
|
4
|
-
let(:root_dir) {
|
5
|
-
let(:parser) {
|
4
|
+
let(:root_dir) { double("root dir").as_null_object }
|
5
|
+
let(:parser) { double("parser").as_null_object }
|
6
6
|
let(:content) { "" }
|
7
7
|
subject(:stats) { Kitabu::Stats.new(root_dir) }
|
8
8
|
before { stats.stub :content => content }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitabu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nando Vieira
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -136,6 +136,20 @@ dependencies:
|
|
136
136
|
- - '>='
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rubyzip
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - <
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 1.0.0
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - <
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 1.0.0
|
139
153
|
- !ruby/object:Gem::Dependency
|
140
154
|
name: rspec
|
141
155
|
requirement: !ruby/object:Gem::Requirement
|