revealing 1.0.4 → 1.0.5

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: f88e8404c6aaf20a49dbd3ee4c7a3d3d9eda17e567a4f6f6d63c51ea465256f6
4
- data.tar.gz: fae690feb332b5a8d7d9c1840ad6a7981725f70bdc9646eabe2cbcfcd6d9fd07
3
+ metadata.gz: b1cfdf9b16a29d0442f9797da23283cf21e042d3bae193a43b971e63db6f1d48
4
+ data.tar.gz: 41dcd0c131559f49e4816434fb21009affb951b0d0c5fff8b3aae37e80e9d7bb
5
5
  SHA512:
6
- metadata.gz: b2d5cf5426276b23307d29fb11e84b25b2221e694a69ac7667cf90e4a1a5f5798492aa5309e0d837a6c0b357e2bb3d2afe3367e328c87d3d5f2989330a5039b5
7
- data.tar.gz: e5c7a73f5b15a7da7d7553d857843d2bd5a84667d904042e84590b7abbd8bd7f8c56db65c5826e55b8a08f66362d7dfc9c6621422ff04d1ec12c0ec503be1782
6
+ metadata.gz: 02f68688cc9544651d6fc0a6216c04fda5a2a38f4ae9b65696dadb6bbfceff618b22513279279a50ac33c15f77505533a7cd32fc8cd1004dc97cd9869d121888
7
+ data.tar.gz: abac2135a5d8edfafa2dfd9c510bb57db148bb2197f128684d1c6bfd7b277f36dd451594e539cccd56fc43f1c1568abacf719c4e941705ed6fe61c927a776bb4
@@ -1,5 +1,3 @@
1
- prereq 'gm'
2
-
3
1
  def refute_duplicate_basename(assets)
4
2
  assets = assets.map{ |f| Pathname(f) }
5
3
  basenames = assets.map{ |f| f.basename }
@@ -21,7 +19,7 @@ refute_duplicate_basename(RESIZABLE_ASSETS)
21
19
 
22
20
  RESIZED_ASSETS.zip(RESIZABLE_ASSETS).each do |target, source|
23
21
  desc "Resize #{source} to #{target}"
24
- file target => ['gm', source] do
22
+ file target => source do
25
23
  sh "gm convert #{source} -geometry '1920x1080>' #{target}"
26
24
  end
27
25
  end
@@ -1,6 +1,4 @@
1
- prereq 'gpp'
2
-
3
1
  desc "Sources are pre-processed into the single #{GPP_FILE}"
4
- file GPP_FILE => ['gpp', GPP_DIR, DIRTY_FILE] + SOURCE_FILES do |target|
2
+ file GPP_FILE => [GPP_DIR, DIRTY_FILE] + SOURCE_FILES do |target|
5
3
  sh %(gpp -I src -x -o #{target} #{SOURCE_DIR}/index.markdown)
6
4
  end
@@ -1,8 +1,7 @@
1
1
  REVEAL_JS_VERSION = '3.7.0'.freeze
2
- prereq 'curl'
3
2
 
4
3
  desc 'reveal.js is present'
5
- directory REVEAL_JS_TARGET_DIR => ['curl', TARGET_DIR] do |target|
4
+ directory REVEAL_JS_TARGET_DIR => TARGET_DIR do |target|
6
5
  mkdir target.name
7
6
 
8
7
  if ENV['REVEAL_JS_DIR'].to_s.empty?
@@ -27,16 +27,14 @@ ASSETS = ASSET_SOURCES.pathmap("#{TARGET_DIR}/%f") - RESIZED_ASSETS
27
27
 
28
28
  HEADERS = FileList['headers/*'] # These are included literal; no need to copy them
29
29
 
30
- load "#{__dir__}/tasks/prereq.rake"
31
30
  load "#{__dir__}/tasks/gpp.rake"
32
31
  load "#{__dir__}/tasks/assets.rake"
33
32
  load "#{__dir__}/tasks/reveal.js.rake"
34
33
 
35
34
  git_dirty_file DIRTY_FILE
36
- prereq 'pandoc'
37
35
 
38
36
  desc "Build #{TARGET_FILE}"
39
- file TARGET_FILE => [ TARGET_DIR, REVEAL_JS_TARGET_DIR, GPP_FILE, DIRTY_FILE, 'pandoc'] + ASSETS + RESIZED_ASSETS + HEADERS do
37
+ file TARGET_FILE => [ TARGET_DIR, REVEAL_JS_TARGET_DIR, GPP_FILE, DIRTY_FILE] + ASSETS + RESIZED_ASSETS + HEADERS do
40
38
  sh %(pandoc
41
39
  --to=revealjs
42
40
  --standalone
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Revealing
4
- VERSION = '1.0.4'
4
+ VERSION = '1.0.5'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: revealing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steffen Uhlig
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-15 00:00:00.000000000 Z
11
+ date: 2019-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -144,7 +144,6 @@ files:
144
144
  - lib/revealing/tasks.rb
145
145
  - lib/revealing/tasks/assets.rake
146
146
  - lib/revealing/tasks/gpp.rake
147
- - lib/revealing/tasks/prereq.rake
148
147
  - lib/revealing/tasks/reveal.js.rake
149
148
  - lib/revealing/version.rb
150
149
  - revealing.gemspec
@@ -1,11 +0,0 @@
1
- #
2
- # Synthesize a task that ensures that the given prerequisite tool is available
3
- #
4
- def prereq(name)
5
- desc "Assert that #{name} is available"
6
- task name do |task|
7
- unless system("type #{name} > /dev/null 2>&1")
8
- raise "#{task} is not available. Use `revealing doctor` to assist fixing."
9
- end
10
- end
11
- end