kitabu 1.0.4 → 1.0.5

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: 0bfa84894a520006839726e740e537d767ec6c0e
4
- data.tar.gz: 1f99732fbebedf9fb72f2bce04401ea6b5db74b3
3
+ metadata.gz: 8825109528db95493072e86a03a4097924c5e3ec
4
+ data.tar.gz: 8d68e4309f6226b3733d49c69ce4ee8d1cde46f9
5
5
  SHA512:
6
- metadata.gz: 4ee3bc46ff2be05228ccb938c9ff3f3b426c721368504901d8280ae80e77f75d00827ebcd1c6b10bdad6aed335cbc278156ba75c82870e70e9c695f5a42f876d
7
- data.tar.gz: f34ea860bc0299cf233fedf527777e75cc61d88df6d738f6cd8f4ea1881c05a0413f44b42d7be2ada58937688a5a97c5f1c5553bbf00ac1c62a6f0743c38c538
6
+ metadata.gz: 16e5a5110b151733881f7172b83c308d49cfac1653ae652b86a508f0a9a2d0eda2da63c66bbe114a926d4b3e232b6ddc115b6908b334904ae89325250d3a721b
7
+ data.tar.gz: af5c44927eaa997f625a8b403e58322336eb90f83d6724a2c5daaa0b99f47af000905205276f4de0428f22ef5cffd6039aba0db8206868c98207260357c18122
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kitabu (1.0.4)
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 (3.2.12)
20
- i18n (~> 0.6)
21
- multi_json (~> 1.0)
22
- awesome_print (1.1.0)
23
- builder (3.2.0)
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.2)
26
- eeepub-with-cover-support (0.8.7)
30
+ diff-lcs (1.2.4)
31
+ eeepub-with-cover-support (0.8.8)
27
32
  builder
28
33
  rubyzip
29
- i18n (0.6.4)
30
- method_source (0.8.1)
31
- multi_json (1.7.2)
32
- nokogiri (1.5.9)
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.4)
41
- rdiscount (2.0.7.1)
42
- rspec (2.13.0)
43
- rspec-core (~> 2.13.0)
44
- rspec-expectations (~> 2.13.0)
45
- rspec-mocks (~> 2.13.0)
46
- rspec-core (2.13.1)
47
- rspec-expectations (2.13.0)
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.13.0)
57
+ rspec-mocks (2.14.3)
50
58
  rubyzip (0.9.9)
51
- slop (3.4.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
@@ -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"
@@ -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
@@ -2,7 +2,7 @@ module Kitabu
2
2
  module Version
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
- PATCH = 4
5
+ PATCH = 5
6
6
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
7
7
  end
8
8
  end
@@ -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(mock.as_null_object)
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) { mock("stats", {
23
+ let(:stats) { double("stats", {
24
24
  :chapters => 4,
25
25
  :words => 50,
26
26
  :images => 10,
@@ -1,8 +1,8 @@
1
1
  require "spec_helper"
2
2
 
3
3
  describe Kitabu::Stats do
4
- let(:root_dir) { mock("root dir").as_null_object }
5
- let(:parser) { mock("parser").as_null_object }
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
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-03-31 00:00:00.000000000 Z
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