softcover 1.1.18 → 1.1.19

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: 4ebd367166f5274d4eec03ba0bc901a1b98fe6f7
4
- data.tar.gz: cf640ef6a793e79e3b12e50455936be08a62bddc
3
+ metadata.gz: ea75e082b4b0c27b3bd08a4d9aea82779e7b3ff6
4
+ data.tar.gz: de35d7c74739091b91bc05141b795e27896b51d8
5
5
  SHA512:
6
- metadata.gz: 2922fbfa2a028f31e43251a7c9f3047ae58d5dfccdf22d9b5c086e0ebbb598e39affa0b7f7896b3eeb5a09580057680d84b5e83ccb86b525fb392688f61fd282
7
- data.tar.gz: 4bbe06f67617c05ee6948922d5574d70460d90e047283aba8d41b47ced9b371c0a436e002597358e3f234e4defea1d3ba7e8eae9001134ff971c010ba209457c
6
+ metadata.gz: 08a9c5538898eadb7743bebcce0c96e5f1e0b8c63e47071cc22f192bc7724815e8b66137e588f2628c211c58205ec05d85ed7d6cc58fb029622b11a3a4643955
7
+ data.tar.gz: d1696cf959c041f6f2920847d6f4a6951f1b23d8a1bca0bf2378a4fe9a07092b51abbe95f57c10240c35a3ee74531d3dd72fed069f9d38d8783d827655a3d4fe
data/README.md CHANGED
@@ -10,6 +10,10 @@ For more details about Softcover, see [*The Softcover Book*](http://manual.softc
10
10
 
11
11
  $ gem install softcover
12
12
 
13
+ On some systems, you may need to add an extra option to handle SSL correctly:
14
+
15
+ $ gem install softcover -- --with-cppflags=-I/usr/local/opt/openssl/include
16
+
13
17
  ## Usage
14
18
 
15
19
  Run
@@ -116,7 +116,8 @@ class Softcover::Book
116
116
  ga_account: ga_account,
117
117
  repo_url: repo_url,
118
118
  remove_unused_media_bundles: options[:remove_unused_media_bundles],
119
- custom_math: custom_math
119
+ custom_math: custom_math,
120
+ convert_kit_follow_tag_id: convert_kit_follow_tag_id
120
121
  }
121
122
 
122
123
  res = @client.create_or_update_book params
@@ -51,8 +51,8 @@ module Softcover
51
51
  # Rerturns a version of the MathJax configuration escaped for the server.
52
52
  # There's an extra interpolation somewhere between here and the server,
53
53
  # which this method corrects for.
54
- def self.escaped_config
55
- self.config.gsub('\\', '\\\\\\\\')
54
+ def self.escaped_config(options={})
55
+ self.config(options).gsub('\\', '\\\\\\\\')
56
56
  end
57
57
 
58
58
  MATHJAX = 'MathJax/MathJax.js?config='
@@ -23,7 +23,9 @@ class Softcover::App < Sinatra::Base
23
23
  get '/main.js' do
24
24
  require 'coffee_script'
25
25
  @mathjax_src = Softcover::Mathjax::AMS_HTML
26
- @mathjax_config = Softcover::Mathjax.escaped_config
26
+ @mathjax_config = Softcover::Utils.article? ?
27
+ Softcover::Mathjax.escaped_config(chapter_number: false) :
28
+ Softcover::Mathjax.escaped_config
27
29
  coffee erb :'main.js'
28
30
  end
29
31
 
@@ -1,3 +1,3 @@
1
1
  module Softcover
2
- VERSION = "1.1.18"
2
+ VERSION = "1.1.19"
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', '~> 1.1.9'
21
+ gem.add_dependency 'polytexnic', '~> 1.1.10'
22
22
  gem.add_dependency 'msgpack', '~> 0.4.2'
23
23
  gem.add_dependency 'nokogiri', '~> 1.6.0'
24
24
  gem.add_dependency 'thor', '~> 0.18.1'
@@ -71,7 +71,8 @@ module WebmockHelpers
71
71
  ga_account: book.ga_account,
72
72
  repo_url: book.repo_url,
73
73
  remove_unused_media_bundles: true,
74
- custom_math: book.custom_math
74
+ custom_math: book.custom_math,
75
+ convert_kit_follow_tag_id: nil
75
76
  }.to_json,
76
77
  :headers => headers).
77
78
  to_return(:status => 200, :body => return_body, :headers => {})
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.1.18
4
+ version: 1.1.19
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: 2015-11-23 00:00:00.000000000 Z
12
+ date: 2015-12-04 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: 1.1.9
20
+ version: 1.1.10
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: 1.1.9
27
+ version: 1.1.10
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: msgpack
30
30
  requirement: !ruby/object:Gem::Requirement