softcover 0.8.7 → 0.8.8
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 +4 -4
- data/lib/softcover.rb +8 -4
- data/lib/softcover/commands/generator.rb +1 -1
- data/lib/softcover/template/config/marketing.yml +1 -1
- data/lib/softcover/template/html/stylesheets/softcover.css +4 -2
- data/lib/softcover/template/images/cover-web.png +0 -0
- data/lib/softcover/version.rb +1 -1
- data/softcover.gemspec +1 -1
- data/{lib/softcover → spec}/commands/deployment_spec.rb +0 -0
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85a0f8a659b1275c7e110f4dccb2deab85da86d6
|
4
|
+
data.tar.gz: ec3fec8a60b13d58f02702e8fa50c6224b082400
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
10
|
-
|
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
|
-
|
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
|
-
|
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
|
|
@@ -133,7 +133,7 @@ body #book {
|
|
133
133
|
}
|
134
134
|
|
135
135
|
#book .codelisting .heading .number {
|
136
|
-
margin-right: 0.
|
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
|
369
|
+
margin: 1em;
|
368
370
|
font-size: 85%;
|
369
371
|
font-weight: bold;
|
370
372
|
}
|
Binary file
|
data/lib/softcover/version.rb
CHANGED
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.
|
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
|
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:
|
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:
|
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
|