reveal.rb 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/Gemfile +1 -1
- data/Gemfile.lock +3 -3
- data/Makefile +7 -0
- data/lib/reveal/cli.rb +8 -1
- data/lib/reveal/command.rb +3 -0
- data/lib/reveal/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca98438ed971aa34df528fb2cbaa6cbac10f8e9aa7cef5c9a3dd48ef934becf7
|
4
|
+
data.tar.gz: ceb93caaa90a6495a6e03f48b3acdb203180e27ba48f06097f76fe37d5cae73d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03e0619d0691ce92e488f1c54807b660e27ff235cda1039b3e12b9b7b30dfa96c121ac32678d985130b873ffa5c6545c6afa8f1e1dab517420af512494c169a9
|
7
|
+
data.tar.gz: 4d4221427dd2f5e432f3d431572cf03897697f466b80a694e3f9bee1d3f3e664826213ffb15061ff7fb69a1d884eaee5b4c25fa6fa7cb5a82f2c2fa9c91fde05
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-2.5.
|
1
|
+
ruby-2.5.5
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
reveal.rb (0.5.
|
4
|
+
reveal.rb (0.5.1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -28,7 +28,7 @@ DEPENDENCIES
|
|
28
28
|
reveal.rb!
|
29
29
|
|
30
30
|
RUBY VERSION
|
31
|
-
ruby 2.5.
|
31
|
+
ruby 2.5.5p157
|
32
32
|
|
33
33
|
BUNDLED WITH
|
34
|
-
1.
|
34
|
+
1.17.3
|
data/Makefile
ADDED
data/lib/reveal/cli.rb
CHANGED
@@ -7,7 +7,14 @@ module Reveal
|
|
7
7
|
def process(args)
|
8
8
|
command_name = args.first.gsub('-', '_')
|
9
9
|
command_args = args[1..-1]
|
10
|
-
Reveal::Command.new(logger)
|
10
|
+
cmd = Reveal::Command.new(logger)
|
11
|
+
supported_cmds = cmd.methods - cmd.class.methods
|
12
|
+
unless supported_cmds.include?(command_name)
|
13
|
+
puts "Command '#{command_name}' not supported.\nSupported commands: #{supported_cmds.join(", ")}"
|
14
|
+
exit 1
|
15
|
+
end
|
16
|
+
|
17
|
+
send(command_name, command_args)
|
11
18
|
rescue Exception => e
|
12
19
|
puts e.message
|
13
20
|
exit 1
|
data/lib/reveal/command.rb
CHANGED
@@ -31,6 +31,7 @@ module Reveal
|
|
31
31
|
|
32
32
|
@logger.info("Presentation '#{name}' created.")
|
33
33
|
end
|
34
|
+
alias new create
|
34
35
|
|
35
36
|
def add_slide(args)
|
36
37
|
check_if_presentation_exists
|
@@ -46,6 +47,7 @@ module Reveal
|
|
46
47
|
|
47
48
|
write_config
|
48
49
|
end
|
50
|
+
alias add add_slide
|
49
51
|
|
50
52
|
def generate(_ = nil)
|
51
53
|
check_if_presentation_exists
|
@@ -71,6 +73,7 @@ module Reveal
|
|
71
73
|
|
72
74
|
@logger.info("'#{compiled_filename}' presentation file generated.")
|
73
75
|
end
|
76
|
+
alias build generate
|
74
77
|
|
75
78
|
private
|
76
79
|
|
data/lib/reveal/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reveal.rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guilherme Garnier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: m
|
@@ -53,6 +53,7 @@ files:
|
|
53
53
|
- Gemfile
|
54
54
|
- Gemfile.lock
|
55
55
|
- LICENSE
|
56
|
+
- Makefile
|
56
57
|
- README.md
|
57
58
|
- Rakefile
|
58
59
|
- bin/reveal
|
@@ -139,8 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
140
|
- !ruby/object:Gem::Version
|
140
141
|
version: '0'
|
141
142
|
requirements: []
|
142
|
-
|
143
|
-
rubygems_version: 2.7.6
|
143
|
+
rubygems_version: 3.0.3
|
144
144
|
signing_key:
|
145
145
|
specification_version: 4
|
146
146
|
summary: reveal.js presentation generator
|