softcover 1.7.0 → 1.7.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
  SHA256:
3
- metadata.gz: b938e75e9efbd6873229f59b4e829ea9d081718b2f8efd142bd871f459c0b837
4
- data.tar.gz: 440f72dfa0a1cc6ddc81efc7b198bfb2ca88e762a3c7cbad2a02e3275ffe7fe7
3
+ metadata.gz: '08e6aa64585e21d607f363c5255c4325b307ded45c4d466ac0b0479d6e7e5b8d'
4
+ data.tar.gz: b29be9fead7155966204d3637a8e823218ac0bb12a67358fc852ed8fad710019
5
5
  SHA512:
6
- metadata.gz: 5777f051935b1531a1a8d35f9ed4966f2725df59b3d4a626ca42fa7c46fac7f2b7a6d74129694a2d98dc8f483ec75beb999e93dd9fbc843f5ac053ed0fa3dc39
7
- data.tar.gz: 91c271ffda5c34c4857e11a22c8ecb7229800b898b3afcadc08f554ff4d1094604d3877f59a3d8b5eedaa2c98bd6887d0754cc09fa535e15840f497967b92c24
6
+ metadata.gz: c8bdf333001c2d779b06535bf8b9fc49d7ba7b2e03432ef761fddc30b166a05cb46cd020f132195bc507b163cb92d9861728696d93c4e1131f53861d37457daa
7
+ data.tar.gz: 28ec74aa26980bddaf95d0021d83c1fdee6bef52ce5b7faccae621f7a5e01aaa8bc9d3b86effe7565640b3f9287d186aeec291640934b7596fe88958804a3e42
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- softcover (1.7.0)
4
+ softcover (1.7.1)
5
5
  activesupport (~> 4.2.3)
6
6
  async_sinatra (~> 1.1.0)
7
7
  coffee-script (>= 2.2.0)
@@ -205,8 +205,8 @@ module Softcover
205
205
  method_option :polytex,
206
206
  :type => :boolean,
207
207
  :default => false,
208
- :aliases => "-p",
209
- :desc => "Generate a PolyTeX document."
208
+ :aliases => %w[-p --latex -l],
209
+ :desc => "Generate a LaTeX document."
210
210
  method_option :article,
211
211
  :type => :boolean,
212
212
  :default => false,
@@ -1,3 +1,3 @@
1
1
  module Softcover
2
- VERSION = "1.7.0"
2
+ VERSION = "1.7.1"
3
3
  end
@@ -48,7 +48,7 @@ describe Softcover::CLI do
48
48
 
49
49
  context "softcover new options" do
50
50
  subject { `softcover help new` }
51
- it { should include '-p, [--polytex]' }
51
+ it { should include '-p, --latex, -l, [--polytex]' }
52
52
  it { should include '-a, [--article]' }
53
53
  end
54
54
 
@@ -155,6 +155,19 @@ describe Softcover::CLI do
155
155
  it_should_behave_like "book"
156
156
  end
157
157
 
158
+ describe "LaTeX books" do
159
+
160
+ before(:all) do
161
+ remove_book
162
+ chdir_to_fixtures
163
+ silence { `softcover new book --latex` }
164
+ chdir_to_book
165
+ end
166
+ after(:all) { remove_book }
167
+
168
+ it_should_behave_like "book"
169
+ end
170
+
158
171
  describe "Markdown books" do
159
172
 
160
173
  before(:all) do
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: 1.7.0
4
+ version: 1.7.1
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: 2020-10-01 00:00:00.000000000 Z
12
+ date: 2020-11-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: polytexnic