softcover 0.6.0 → 0.6.1

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: 5cafb54a38347e1a39e36d6d4bcca3aa533d7eb2
4
- data.tar.gz: b1b6d089e5c1cdf27bdd8c7617d32261c37b5e33
3
+ metadata.gz: 810f0a9d1295ebe59b85307d284783b81d9221e5
4
+ data.tar.gz: 575e05eac1784232405f765fac5b01a532d87286
5
5
  SHA512:
6
- metadata.gz: 4e8a8c0f01b38a3cd2d9278b54c75c4456f969739ce72fd348d767a95b3fa603df147c247d4882ff716811fdb63673062fdec566a8b9e7008a3670659f0b8589
7
- data.tar.gz: 019ce8093c7f097e387a428944636b1877178cf69240779bfa077b2f2064e12f06c4b09272f61fc7a36b9a2173940d1be24097be64f94e22a8e083bd2a267d39
6
+ metadata.gz: d39595bdaa8c8fc5b71d1681fe2d63a8dcc0e6cd88a049593e4f26c57cbbfa4b2e8dd615262973ea3e7aa9cadd977cb58e58185d512bbfeb5d81d1a5711e13cb
7
+ data.tar.gz: eaf552cae27c6439fa18ca13ed8cde16f47d6a26fb810d1c41e0669d4e45045cb8ee300312c955f1fb38076786fbf7f82c0c663f81057e621b21f8ea13b5b3dd
File without changes
@@ -76,7 +76,7 @@ class Softcover::Book
76
76
  "#{@client.host}/books/#{id}/redirect"
77
77
  end
78
78
 
79
- # Opens the book in the browser (OS Xonly).
79
+ # Opens the book in the browser (OS X only).
80
80
  def open_in_browser
81
81
  `open #{url}`
82
82
  end
@@ -152,7 +152,7 @@ module Softcover
152
152
  puts "Creating #{png_filename}"
153
153
  end
154
154
  svg_height = svg['style'].scan(/height: (.*?);/).flatten.first
155
- scale_factor = 9 # This scale factor turns out to look good.
155
+ scale_factor = 8 # This scale factor turns out to look good.
156
156
  h = scale_factor * svg_height.to_f
157
157
  cmd = "#{inkscape} -f #{svg_filename} -e #{png_filename} -h #{h}pt"
158
158
  if options[:silent]
data/lib/softcover/cli.rb CHANGED
@@ -181,7 +181,7 @@ module Softcover
181
181
  # Open
182
182
  # ===============================================
183
183
 
184
- desc "open", "Open book on Softcover website (OS X only)"
184
+ desc "open", "Open book on Softcover website (OS X)"
185
185
  def open
186
186
  Softcover::Commands::Opener.open!
187
187
  end
@@ -109,7 +109,7 @@ Commands:
109
109
  softcover login # Log into Softcover account
110
110
  softcover logout # Log out of Softcover account
111
111
  softcover new <name> # Generate new book directory structure.
112
- softcover open # Open book on Softcover website
112
+ softcover open # Open book on Softcover website (OS X)
113
113
  softcover publish # Publish your book on Softcover
114
114
  softcover publish:screencasts # Publish screencasts
115
115
  softcover server # Run local server
@@ -20,6 +20,7 @@ Softcover comes with full support for syntax-highlighted source code:
20
20
  \begin{code}
21
21
  def hello
22
22
  puts "hello, world!"
23
+ "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod t"
23
24
  end
24
25
  \end{code}
25
26
  \noindent Softcover can highlight any language supported by \href{http://pygments.org/languages/}{Pygments} (which means most of them).
@@ -140,37 +141,37 @@ Softcover supports raw tables via the \kode{tabular} environment. To make a tabu
140
141
 
141
142
  \section{Command-line interface}
142
143
 
143
- Softcover comes with a command-line interface called \kode{poly}. To get more information, just run \kode{poly help}:
144
+ Softcover comes with a command-line interface called \kode{poly}. To get more information, just run \kode{softcoverhelp}:
144
145
 
145
146
  %= lang:console
146
147
  \begin{code}
147
- $ poly help
148
+ $ softcoverhelp
148
149
  Commands:
149
- poly build, build:all # Build all formats
150
- poly build:epub # Build EPUB
151
- poly build:html # Build HTML
152
- poly build:mobi # Build MOBI
153
- poly build:pdf # Build PDF
154
- poly build:preview # Build book preview in all formats
155
- poly config # View local config
156
- poly config:add key=value # Add to your local config vars
157
- poly epub:validate, epub:check # Validate EPUB with epubcheck
158
- poly help [COMMAND] # Describe available commands...
159
- poly login # Log into Softcover account
160
- poly logout # Log out of Softcover account
161
- poly new <name> # Generate new book directory structure.
162
- poly open # Open book on Softcover website (OS X only)
163
- poly publish # Publish your book on Softcover
164
- poly publish:screencasts # Publish screencasts
165
- poly server # Run local server
150
+ softcover build, build:all # Build all formats
151
+ softcover build:epub # Build EPUB
152
+ softcover build:html # Build HTML
153
+ softcover build:mobi # Build MOBI
154
+ softcover build:pdf # Build PDF
155
+ softcover build:preview # Build book preview in all formats
156
+ softcover config # View local config
157
+ softcover config:add key=value # Add to your local config vars
158
+ softcover epub:validate, epub:check # Validate EPUB with epubcheck
159
+ softcover help [COMMAND] # Describe available commands...
160
+ softcover login # Log into Softcover account
161
+ softcover logout # Log out of Softcover account
162
+ softcover new <name> # Generate new book directory structure.
163
+ softcover open # Open book on Softcover website (OS X)
164
+ softcover publish # Publish your book on Softcover
165
+ softcover publish:screencasts # Publish screencasts
166
+ softcover server # Run local server
166
167
  \end{code}
167
168
 
168
- For additional help on a given command, run \kode{poly help <command>}:
169
+ For additional help on a given command, run \kode{softcoverhelp <command>}:
169
170
  %= lang:console
170
171
  \begin{code}
171
- $ poly help build
172
+ $ softcoverhelp build
172
173
  Usage:
173
- poly build, build:all
174
+ softcoverbuild, build:all
174
175
 
175
176
  Options:
176
177
  -q, [--quiet] # Quiet output
@@ -1,5 +1,10 @@
1
1
  /* Styles specific to EPUB books */
2
2
 
3
+ body {
4
+ width: 34.5em;
5
+ margin-left: 0.5em;
6
+ }
7
+
3
8
  .highlight pre {
4
9
  font-size: 80%;
5
10
  font-weight: bold;
@@ -7,4 +12,8 @@
7
12
 
8
13
  code {
9
14
  font-size: 100%;
15
+ }
16
+
17
+ .code {
18
+ font-size: 90%;
10
19
  }
@@ -1,3 +1,3 @@
1
1
  module Softcover
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
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.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Hartl
@@ -361,6 +361,7 @@ files:
361
361
  - .pull_requests/1383707748
362
362
  - .pull_requests/1384207054
363
363
  - .pull_requests/1384304643
364
+ - .pull_requests/1384447036
364
365
  - .rspec
365
366
  - .ruby-gemset
366
367
  - .ruby-version
@@ -994,6 +995,7 @@ files:
994
995
  - spec/commands/opener_spec.rb
995
996
  - spec/commands/publisher_spec.rb
996
997
  - spec/commands/server_spec.rb
998
+ - spec/fixtures/.gitkeep
997
999
  - spec/mathjax_spec.rb
998
1000
  - spec/output_spec.rb
999
1001
  - spec/sanitizer_spec.rb
@@ -1042,6 +1044,7 @@ test_files:
1042
1044
  - spec/commands/opener_spec.rb
1043
1045
  - spec/commands/publisher_spec.rb
1044
1046
  - spec/commands/server_spec.rb
1047
+ - spec/fixtures/.gitkeep
1045
1048
  - spec/mathjax_spec.rb
1046
1049
  - spec/output_spec.rb
1047
1050
  - spec/sanitizer_spec.rb