puppet-courseware-manager 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5eb2df1ef67e6ef21fd53cb49d0fbba4cca60715
4
- data.tar.gz: 97851ebba09d5ae7db6543c0b6fca90fdd3585f8
3
+ metadata.gz: e89b3401834bd6404bc3a44c321c8d9b596067f4
4
+ data.tar.gz: 0d5e36d0a72b3c3cd45eb3a2cab75b6161c25b85
5
5
  SHA512:
6
- metadata.gz: edb197aa9f1dd9a6aba1461c5effccf5aaa786bcc2f6ec078cc6c6ccef68d698c1ae83507dc41c709c1e82b69ef5f40e17fc94ac213a0f15f33cca09defaa3cb
7
- data.tar.gz: e4dc9bd3d1a5d9d95be834f71c1335ae7f7d940552290957e0bf8b492c5c1e063c5d2551cf4b5344d2d3a4ceadea171f8030ef5558d6376dd7b6fc8774fa2c20
6
+ metadata.gz: 37a4d133777c36e65bdeb126314ba819988e7a464d721ab8030dec3445850d23aebbbf8c8e54b7a8d218a9a2690aa2968a38f88ed48ce359f891488ede93cccd
7
+ data.tar.gz: ce484c755c3e65e14419d0853fe3100a8d781e4cabf2644eb90dc9f17f727439d795930c9574ec6b8aa8735fad09a5e5f9ff6d8d84f2cf26474c61a70c1f8635
data/CHANGELOG.txt CHANGED
@@ -1,6 +1,9 @@
1
1
  # Courseware Manager
2
2
  ## Release Notes
3
3
 
4
+ ### v0.5.3
5
+ * Use the in-preso watermark when cache is disabled.
6
+
4
7
  ### v0.5.2
5
8
  * Add support for Showoff named sections, making it possible to validate new courses.
6
9
  * Add support for packaging more showoff formats.
@@ -15,12 +15,18 @@ class Courseware::Printer
15
15
  @pdfopts << " --disallow-modify" if @config[:pdf][:protected]
16
16
 
17
17
  if @config[:pdf][:watermark]
18
- showoff = Courseware.parse_showoff(@config[:presfile])
18
+ showoff = Courseware.parse_showoff(@config[:presfile])
19
19
 
20
- @event_id = showoff['event_id'] || Courseware.question('Enter the Event ID:')
21
- @password = showoff['key'] || Courseware.question('Enter desired password:', (@event_id[/-?(\w*)$/, 1] rescue nil))
22
- @watermark_style = File.join(@config[:cachedir], 'templates', 'watermark.css')
23
- @watermark_pdf = File.join(@config[:cachedir], 'templates', 'watermark.pdf')
20
+ @event_id = showoff['event_id'] || Courseware.question('Enter the Event ID:')
21
+ @password = showoff['key'] || Courseware.question('Enter desired password:', (@event_id[/-?(\w*)$/, 1] rescue nil))
22
+
23
+ if @config[:nocache]
24
+ @watermark_style = File.join('_support', 'watermark.css')
25
+ @watermark_pdf = File.join('_support', 'watermark.pdf')
26
+ else
27
+ @watermark_style = File.join(@config[:cachedir], 'templates', 'watermark.css')
28
+ @watermark_pdf = File.join(@config[:cachedir], 'templates', 'watermark.pdf')
29
+ end
24
30
  end
25
31
 
26
32
  FileUtils.mkdir(config[:output]) unless File.directory?(config[:output])
@@ -1,4 +1,4 @@
1
1
  class Courseware
2
- VERSION = '0.5.2'
2
+ VERSION = '0.5.3'
3
3
  end
4
4
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-courseware-manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Ford
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-04 00:00:00.000000000 Z
11
+ date: 2017-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mdl
@@ -65,21 +65,21 @@ extensions: []
65
65
  extra_rdoc_files: []
66
66
  files:
67
67
  - CHANGELOG.txt
68
- - LICENSE
69
68
  - README.txt
69
+ - LICENSE
70
70
  - bin/courseware
71
- - lib/courseware.rb
72
71
  - lib/courseware/cache.rb
73
72
  - lib/courseware/composer.rb
74
73
  - lib/courseware/dummy.rb
75
74
  - lib/courseware/generator.rb
76
75
  - lib/courseware/help.rb
77
- - lib/courseware/manager.rb
78
76
  - lib/courseware/manager/validators.rb
77
+ - lib/courseware/manager.rb
79
78
  - lib/courseware/printer.rb
80
79
  - lib/courseware/repository.rb
81
80
  - lib/courseware/utils.rb
82
81
  - lib/courseware/version.rb
82
+ - lib/courseware.rb
83
83
  homepage: http://github.com/puppetlabs/courseware-manager
84
84
  licenses:
85
85
  - Apache-2.0
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  version: '0'
101
101
  requirements: []
102
102
  rubyforge_project:
103
- rubygems_version: 2.6.10
103
+ rubygems_version: 2.0.14.1
104
104
  signing_key:
105
105
  specification_version: 4
106
106
  summary: Manage the development lifecycle of Puppet courseware. Not for general consumption.