revealing 1.0.1 → 1.0.2

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: f0862695a5f6c85e4479c243b7c570722d2d332e6cf3441191e4bc7116f70e79
4
- data.tar.gz: 2ae6561b8b5408e0eab3503b200036dc45b9976354e620848afc61ea965cdf26
3
+ metadata.gz: 9ce7e4c5d36c9c49bd0706ab1e5144e3caf5f6eea1f78dcfd755380529e469da
4
+ data.tar.gz: a3eb4ee20c3114bfea423f0bfb0ca9d2bc1f8b19c6a0d8bfac49966143fa83a9
5
5
  SHA512:
6
- metadata.gz: 252cc7d9a382f4e60a8511a0a55b31cfe9a7e6a3d7875aea385ce329b6acefb7c542b5a7ac2b43d9d6d5ab2905c0f71b54bcfc4153b4122e17d0b3100b3d89d7
7
- data.tar.gz: c55292e2e6471d623bcc677e7a21780a9921ceecb0bd39a99fccf99552444c7d08313fa62cf0e1f70d2da8a5cef880f7d76363aeeffeae72cb32785bfeed4b74
6
+ metadata.gz: 077c15b028cb74513e68703500c2a5842df05b32927b7ebe230e0ba3a9d438f1e9704c8d7d3811eafaa3a935e8e95616610ae87a1886bd2b431aa696a5398c1e
7
+ data.tar.gz: c3044633f92ae7679ab6f72f6a8af1524b802d8ae42d77896b74966985c5063847b4df9d25cf01239534a7095330ab85ec3fb814701cf198c5f7fa93b594c2b8
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
1
  Gemfile.lock
2
2
  pkg
3
+ tmp
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.6.1
7
+ before_install: gem install bundler
data/README.markdown CHANGED
@@ -17,17 +17,17 @@ This gem provides a set of [`Rake`](https://github.com/ruby/rake) tasks to creat
17
17
 
18
18
  # TODO
19
19
 
20
- 1. Keep assets in their source folders
21
20
  1. Bail if any of the prereq tools are not there
21
+ 1. `revealing doctor` to analyze tools
22
22
  1. Target folders mirror source, so that we don't risk duplicates
23
+ 1. Read desired versions of dependencies from a YAML file (with sensible defaults coming from this project)
24
+ 1. Add mathjax (copy to target if present, otherwise use CDN)
23
25
  1. Expose customization of
24
26
  * highlight-style
25
27
  * slide-level
26
28
  * theme
27
29
  * slideNumber
28
30
  * history
29
- 1. Read desired versions of dependencies from a YAML file (with sensible defaults coming from this project)
30
- 1. Add mathjax (copy to target if present, otherwise use CDN)
31
31
  1. Provide a docker image so that we can run without installing everything
32
32
  1. PDF output
33
33
  1. Make the initial set of files more meaningful (e.g. add the project name, `git config user.name` etc.)
@@ -1,4 +1,4 @@
1
- desc "Sources are pre-processed into #{TARGET_DIR}"
2
- file "#{GPP_DIR}/index.markdown" => [GPP_DIR, DIRTY_FILE] + FileList["#{SOURCE_DIR}/**/*.markdown"] do |target|
1
+ desc "Sources are pre-processed into the single #{GPP_FILE}"
2
+ file GPP_FILE => [GPP_DIR, DIRTY_FILE] + SOURCE_FILES do |target|
3
3
  sh %(gpp -I src -x -o #{target} #{SOURCE_DIR}/index.markdown)
4
4
  end
@@ -2,7 +2,8 @@ require 'rake/clean'
2
2
  require 'pathname'
3
3
  require 'git-dirty'
4
4
 
5
- SOURCE_DIR = 'src'.freeze
5
+ SOURCE_DIR = Pathname('src')
6
+ SOURCE_FILES = FileList["#{SOURCE_DIR}/**/*.markdown"]
6
7
 
7
8
  TARGET_DIR = Pathname('public_html')
8
9
  directory TARGET_DIR
@@ -11,7 +12,7 @@ TARGET_FILE = TARGET_DIR / 'index.html'
11
12
  GPP_DIR = Pathname('gpp')
12
13
  directory GPP_DIR
13
14
  DIRTY_FILE = GPP_DIR / '.dirty'
14
- GPP_FILES = FileList["#{GPP_DIR}/index.markdown"]
15
+ GPP_FILE = FileList["#{GPP_DIR}/index.markdown"]
15
16
 
16
17
  CLEAN.include GPP_DIR, DIRTY_FILE
17
18
  CLOBBER.include TARGET_DIR
@@ -19,21 +20,20 @@ CLOBBER.include TARGET_DIR
19
20
  REVEAL_JS = 'reveal.js'.freeze
20
21
  REVEAL_JS_TARGET_DIR = TARGET_DIR / REVEAL_JS
21
22
 
22
- RESIZABLE_ASSETS = (FileList["assets/*.png"] + FileList["assets/*.jpg"])
23
+ RESIZABLE_ASSETS = (FileList[SOURCE_DIR / "**/*.png"] + FileList[SOURCE_DIR / "**/*.jpg"])
23
24
  RESIZED_ASSETS = RESIZABLE_ASSETS.pathmap("#{TARGET_DIR}/%f")
24
- ASSET_SOURCES = FileList['assets/*'] - RESIZABLE_ASSETS
25
+ ASSET_SOURCES = FileList[SOURCE_DIR / "*"] - RESIZABLE_ASSETS - SOURCE_FILES
25
26
  ASSETS = ASSET_SOURCES.pathmap("#{TARGET_DIR}/%f") - RESIZED_ASSETS
26
-
27
27
  HEADERS = FileList["headers/*"] # These are included literal; no need to copy them
28
28
 
29
+ load "#{__dir__}/tasks/gpp.rake"
29
30
  load "#{__dir__}/tasks/assets.rake"
30
31
  load "#{__dir__}/tasks/reveal.js.rake"
31
- load "#{__dir__}/tasks/gpp.rake"
32
32
 
33
33
  git_dirty_file DIRTY_FILE
34
34
 
35
35
  desc "Build #{TARGET_FILE}"
36
- file TARGET_FILE => [ TARGET_DIR, REVEAL_JS_TARGET_DIR, GPP_FILES, DIRTY_FILE ] + ASSETS + RESIZED_ASSETS + HEADERS do
36
+ file TARGET_FILE => [ TARGET_DIR, REVEAL_JS_TARGET_DIR, GPP_FILE, DIRTY_FILE ] + ASSETS + RESIZED_ASSETS + HEADERS do
37
37
  sh %(pandoc
38
38
  --to=revealjs
39
39
  --standalone
@@ -45,6 +45,6 @@ file TARGET_FILE => [ TARGET_DIR, REVEAL_JS_TARGET_DIR, GPP_FILES, DIRTY_FILE ]
45
45
  --variable history=true
46
46
  --variable revealjs-url=#{REVEAL_JS}
47
47
  #{HEADERS.map { |h| "--include-in-header=#{h}" }.join("\n")}
48
- #{GPP_FILES}
48
+ #{GPP_FILE}
49
49
  ).split("\n").join(' ')
50
50
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Revealing
4
- VERSION = '1.0.1'
4
+ VERSION = '1.0.2'
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.1
4
+ version: 1.0.2
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-13 00:00:00.000000000 Z
11
+ date: 2019-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -134,6 +134,7 @@ extensions: []
134
134
  extra_rdoc_files: []
135
135
  files:
136
136
  - ".gitignore"
137
+ - ".travis.yml"
137
138
  - Gemfile
138
139
  - README.markdown
139
140
  - Rakefile
@@ -149,11 +150,6 @@ files:
149
150
  - templates/init/README.markdown
150
151
  - templates/init/Rakefile
151
152
  - templates/init/src/index.markdown
152
- - tmp/aruba/shiny-new-presentation/Gemfile
153
- - tmp/aruba/shiny-new-presentation/README.markdown
154
- - tmp/aruba/shiny-new-presentation/Rakefile
155
- - tmp/aruba/shiny-new-presentation/src/index.markdown
156
- - tmp/rspec_guard_result
157
153
  homepage:
158
154
  licenses:
159
155
  - MIT
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'rake'
4
- gem 'revealing'
@@ -1,10 +0,0 @@
1
- # New Presentation
2
-
3
- This is the source of New Presentation. It was generated with [`revealing`](https://github.com/suhlig/revealing).
4
-
5
- # Setup (once)
6
-
7
- 1. Get Ruby
8
- 1. `gem install bundler`
9
- 1. Run `rake` in the project directory
10
- 1. Open `public_html/index.html` in a browser
@@ -1,3 +0,0 @@
1
- require 'revealing/tasks'
2
-
3
- task default: TARGET_FILE
@@ -1,18 +0,0 @@
1
- % New Presentation
2
- % The Author
3
-
4
- # First Slide
5
-
6
- * Written in Markdown
7
- * Created with [`revealing`](https://github.com/suhlig/revealing)
8
- * Based on [reveal.js](https://revealjs.com)
9
-
10
- # What's next?
11
-
12
- ```console
13
- 10. bundle install
14
- 20. rake
15
- 30. open `public_html/index.html`
16
- 40. vim src/index.markdown
17
- 50. goto 20
18
- ```
@@ -1 +0,0 @@
1
- 1 examples, 0 failures in 0.4326 seconds