softcover 1.2.8 → 1.2.9

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: f27c4e7ed70a567ecdbf1fe2f3006fb443cca2de
4
- data.tar.gz: b7ae7871dd8d5879b9af113d75655b18ba806028
3
+ metadata.gz: 7ab592f4fdf7cc4bc95aea8c777927aed60a0181
4
+ data.tar.gz: 699bab9d3c7d9b1a12d4b40b7a033cc8f01dd00c
5
5
  SHA512:
6
- metadata.gz: 91f2706763c7a616e9c5573f3610ab0863c3f27d76fcc582fdc346fc00af5b1ac8910595689dc7a8485c7ee420ae8451d67bb8f16776fd9422c1365c1f2222a4
7
- data.tar.gz: 354aa70a652efda59c861b3044266bd2885505af69c2309a35c1fd24d8ca46cbac11b35a027d7a2bf80e8b5131523d00c9cd2b8ab771066d9f1fe3b5333fffc5
6
+ metadata.gz: 8d049f983289addb8df90854fa74dcc48ba67abdc313acf81b8fbb253ddb39378319ae3705f8060deebb91acb90f69a05dfecc37d0af1c9caeece0f33faa22e8
7
+ data.tar.gz: 2108de5fbfe44400fb6c52e4e88ec1086294d9cc2b0ed246bb165448541fca189dbd5a622b9661ed1709ad64ab4f995bdc2138319ee1a7ec0d6cf9e18ecbd21b
data/lib/softcover/cli.rb CHANGED
@@ -269,7 +269,7 @@ module Softcover
269
269
  # ===============================================
270
270
  # Utilities
271
271
  # ===============================================
272
- desc "add_exercises", "Add exercise id elements as spans (warning: files are overwritten)"
272
+ desc "exercises", "Add exercise id elements as spans (warning: files are overwritten)"
273
273
  define_method "exercises" do
274
274
  Softcover::Commands::Exercises.add_to_chapters!
275
275
  end
@@ -38,7 +38,8 @@ module Softcover
38
38
 
39
39
  File.open(path, "w") { |f| f.write str }
40
40
 
41
- puts "#{path}: wrote #{n} exercises"
41
+ exercises = n == 1 ? "exercise" : "exercises"
42
+ puts "#{path}: wrote #{n} #{exercises}"
42
43
  end
43
44
  end
44
45
 
@@ -1,3 +1,3 @@
1
1
  module Softcover
2
- VERSION = "1.2.8"
2
+ VERSION = "1.2.9"
3
3
  end
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.2.8
4
+ version: 1.2.9
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: 2016-04-14 00:00:00.000000000 Z
12
+ date: 2016-05-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: polytexnic