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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f7921d1fb3b79d3a3c6e0bc199e852771aad9fdc8fa1fca52a5ffe57818a5287
4
- data.tar.gz: 3336b6893c710f92cb3286c42bc717f71969fe67f76cff4500d3089d1672c420
3
+ metadata.gz: ca98438ed971aa34df528fb2cbaa6cbac10f8e9aa7cef5c9a3dd48ef934becf7
4
+ data.tar.gz: ceb93caaa90a6495a6e03f48b3acdb203180e27ba48f06097f76fe37d5cae73d
5
5
  SHA512:
6
- metadata.gz: 4abcbedc07d7ef7acb63a5fdf17e278f1e9e238e76ac8f9e81eb572e559422aa4842c2c839f0ab41ccefae8f9e08e771080c84948958403f8002b5710d501c37
7
- data.tar.gz: c7e8916291214a6c1b950a9956efeac5877f4b042e26d7f8b8d212ffff5efa350d867acf20ab61f847c4c0e045eb05188ed28275a0fa378ccaa33b4c661f7a91
6
+ metadata.gz: 03e0619d0691ce92e488f1c54807b660e27ff235cda1039b3e12b9b7b30dfa96c121ac32678d985130b873ffa5c6545c6afa8f1e1dab517420af512494c169a9
7
+ data.tar.gz: 4d4221427dd2f5e432f3d431572cf03897697f466b80a694e3f9bee1d3f3e664826213ffb15061ff7fb69a1d884eaee5b4c25fa6fa7cb5a82f2c2fa9c91fde05
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.5.1
1
+ ruby-2.5.5
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org'
2
- ruby '2.5.1'
2
+ ruby '2.5.5'
3
3
 
4
4
  gemspec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- reveal.rb (0.5.0)
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.1p57
31
+ ruby 2.5.5p157
32
32
 
33
33
  BUNDLED WITH
34
- 1.16.2
34
+ 1.17.3
data/Makefile ADDED
@@ -0,0 +1,7 @@
1
+ .PHONY: build publish
2
+
3
+ build:
4
+ gem build reveal.rb
5
+
6
+ publish:
7
+ gem push *.gem
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).send(command_name, command_args)
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
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Reveal
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
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.0
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: 2018-06-20 00:00:00.000000000 Z
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
- rubyforge_project:
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