softcover 0.8.7 → 0.8.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 62d4a8fb4ccfd3ca69eceb53451e9a280280bda2
4
- data.tar.gz: 38e4d95804c51ccb64c49d725cba0da0ad482c00
3
+ metadata.gz: 85a0f8a659b1275c7e110f4dccb2deab85da86d6
4
+ data.tar.gz: ec3fec8a60b13d58f02702e8fa50c6224b082400
5
5
  SHA512:
6
- metadata.gz: 556f1d42eef1c58bfdc723696e4dc78a6de5d12d85eee4195ab6e26a80deca54526ad651fc310e95139986046a8e44d1fe8dc03f57fd4fd2b04d652b32de7a9a
7
- data.tar.gz: a2bdeaca063d5e1c9ee0810fa4058d27aa88992c391bf684a1f5ebddaf1fe3431b5ff93b181d4468e6919c80e7b75f1f48ebfe8e69a857b8edff9cd5430414b8
6
+ metadata.gz: 24763ef7772799cb5be641b87f421960e407763971a1bd502efcea77611023c99d403fe6c48ad4351ae8d0bea9346c6b504f3c83a86d7533ad7a2711d0b11808
7
+ data.tar.gz: b2df0b5c41e6286bcbb39fd6e8556fca8d68039afb77b53d2476abf61f519f5f930d68582a5cc4603adb78e3d0435eebbced722423e47a81bb521f840a89a217
data/lib/softcover.rb CHANGED
@@ -1,18 +1,22 @@
1
1
  require 'polytexnic'
2
2
  require 'active_support/core_ext/string'
3
3
 
4
+ @profiling = false
5
+
4
6
  require_relative 'softcover/formats'
5
7
  require_relative 'softcover/utils'
6
8
  require_relative 'softcover/output'
7
9
  require_relative 'softcover/directories'
8
10
 
9
- profile = false
10
- if profile
11
+ if @profiling
12
+ times = []
11
13
  Dir[File.join(File.dirname(__FILE__), '/softcover/**/*.rb')].each do |file|
12
14
  t1 = Time.now
15
+ next if file =~ /railtie/ && !defined?(Rails)
13
16
  require file.chomp(File.extname(file))
14
- $stderr.puts "#{Time.now - t1} #{File.basename(file)}"
17
+ times << "#{Time.now - t1} #{File.basename(file)}"
15
18
  end
19
+ $stderr.puts times.sort.reverse
16
20
  end
17
21
 
18
22
  require_relative 'softcover/book'
@@ -56,7 +60,7 @@ module Softcover
56
60
 
57
61
  def profiling?
58
62
  return false if test?
59
- false
63
+ @profiling
60
64
  end
61
65
  end
62
66
 
@@ -78,7 +78,7 @@ module Softcover
78
78
  File.symlink("../images", "images")
79
79
 
80
80
  Dir.chdir "../.."
81
- book_yml = File.join(Softcover::Directories::CONFIG, 'book')
81
+ book_yml = File.join(Softcover::Directories::CONFIG, 'book.yml')
82
82
  puts "Done. Please update #{book_yml}"
83
83
  end
84
84
 
@@ -5,7 +5,7 @@ prices:
5
5
  name: "HTML & Ebook"
6
6
  description:
7
7
  |
8
- Optimized for Kindle* and iPad
8
+ Optimized for Kindle and iPad
9
9
  Almost 9000 pages of content
10
10
  Includes a free copy of 1st Edition PDF
11
11
  media:
@@ -133,7 +133,7 @@ body #book {
133
133
  }
134
134
 
135
135
  #book .codelisting .heading .number {
136
- margin-right: 0.1em;
136
+ margin-right: 0.3em;
137
137
  margin-left: 0.3em;
138
138
  }
139
139
 
@@ -142,6 +142,8 @@ body #book {
142
142
  margin-left: 0.4em;
143
143
  margin-top: 0.2em;
144
144
  margin-bottom: 0.1em;
145
+ padding-top: 10px;
146
+ font-style: italic;
145
147
  }
146
148
 
147
149
  #book .codelisting span.break {
@@ -364,7 +366,7 @@ body #book {
364
366
  }
365
367
 
366
368
  #book .highlight pre {
367
- margin: 1em 0 1em 0.3em;
369
+ margin: 1em;
368
370
  font-size: 85%;
369
371
  font-weight: bold;
370
372
  }
@@ -1,3 +1,3 @@
1
1
  module Softcover
2
- VERSION = "0.8.7"
2
+ VERSION = "0.8.8"
3
3
  end
data/softcover.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |gem|
18
18
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
19
19
  gem.require_paths = ["lib"]
20
20
 
21
- gem.add_dependency 'polytexnic', '~> 0.8'
21
+ gem.add_dependency 'polytexnic', '~> 0.8.3'
22
22
  gem.add_dependency 'msgpack', '~> 0.4.2'
23
23
  gem.add_dependency 'nokogiri', '~> 1.6.0'
24
24
  gem.add_dependency 'thor'
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: softcover
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.7
4
+ version: 0.8.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Hartl
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-07 00:00:00.000000000 Z
12
+ date: 2014-02-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: polytexnic
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - ~>
19
19
  - !ruby/object:Gem::Version
20
- version: '0.8'
20
+ version: 0.8.3
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ~>
26
26
  - !ruby/object:Gem::Version
27
- version: '0.8'
27
+ version: 0.8.3
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: msgpack
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -406,7 +406,6 @@ files:
406
406
  - lib/softcover/commands/auth.rb
407
407
  - lib/softcover/commands/build.rb
408
408
  - lib/softcover/commands/deployment.rb
409
- - lib/softcover/commands/deployment_spec.rb
410
409
  - lib/softcover/commands/epub_validator.rb
411
410
  - lib/softcover/commands/generator.rb
412
411
  - lib/softcover/commands/opener.rb
@@ -1014,6 +1013,7 @@ files:
1014
1013
  - spec/builders/preview_spec.rb
1015
1014
  - spec/cli_spec.rb
1016
1015
  - spec/commands/build_spec.rb
1016
+ - spec/commands/deployment_spec.rb
1017
1017
  - spec/commands/generator_spec.rb
1018
1018
  - spec/commands/opener_spec.rb
1019
1019
  - spec/commands/publisher_spec.rb
@@ -1064,6 +1064,7 @@ test_files:
1064
1064
  - spec/builders/preview_spec.rb
1065
1065
  - spec/cli_spec.rb
1066
1066
  - spec/commands/build_spec.rb
1067
+ - spec/commands/deployment_spec.rb
1067
1068
  - spec/commands/generator_spec.rb
1068
1069
  - spec/commands/opener_spec.rb
1069
1070
  - spec/commands/publisher_spec.rb