tkn2 0.1.0 → 0.2.0

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -7
  3. data/bin/tkn2 +6 -0
  4. data/lib/tkn2/version.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5493112f82044e8673a8dd2a496c25ef9d1e7eef
4
- data.tar.gz: 0c3fa66c4a402f5f9c65c9ea919cf76148d86622
3
+ metadata.gz: 32c4a8f02ca258129b7a9a39c3b2cd7ee688f1b8
4
+ data.tar.gz: 69d7594edbee48f93cf139b4a323f70346850a3c
5
5
  SHA512:
6
- metadata.gz: d8a3a1c0651aad1537f43310dab8d7b6a9f8fd47f4841fe2507ff21fb556b680d0e1477ab8f731ffbdc641902e29b6bf1cc170b0b12075cb1a56abe00fd39377
7
- data.tar.gz: 0f48252aff1bcb5b2f7e4c18e6408e859c4ff0fbee4408d24c7f184bae39e80f63083022f23f882b36a4e5a719ae894f7bdc97d1d510a839956bc4a20aa99fc2
6
+ metadata.gz: 8d3b4e0d6392dec7f9904c4a2a94e008afecfd91d4dde6986f73dcde7de256e36d358c69fadd7c45693207a6512515cf4656297e37dd4687b6186b3ac8e3c237
7
+ data.tar.gz: 99c04d2fd144b40a15a1bded634b2b15b0f1eb6a6e77dbc35c9dc95f047e6a57c5094a0c20e84b2af51f6b89b26cb6eb304f6df84f253521cea66b36108e6abb
data/README.md CHANGED
@@ -11,9 +11,9 @@ point.
11
11
 
12
12
  Main differences with tkn:
13
13
 
14
- * The commands are not available in the general namespace; you need to wrap the presentation in a `Tkn2.deck` block
14
+ * The commands are not available in the general namespace; you need to wrap the slides in a `Tkn2.deck` block
15
15
  * It's packed as a gem, and intended to use with bundler via a `Gemfile`. That may sound like overkill but, with tkn2
16
- evolving, it's nice to have each presentation stored with a explicit reference to the verion of tkn2 it was written
16
+ evolving, it's nice to have each deck stored with a explicit reference to the verion of tkn2 it was written
17
17
  for (tkn solves this having the script vendored)
18
18
  * It uses [ncurses](http://www.gnu.org/software/ncurses/) instead of direct printing. This gets it some nice behaviour
19
19
  like autoredrawing when resizing windows or changing font size
@@ -35,14 +35,14 @@ This will create a directory called `my_slides/` which will contain your deck in
35
35
  require 'tkn2'
36
36
 
37
37
  Tkn2.deck do
38
- # here goes your presentation
38
+ # here go your slides
39
39
  end
40
40
  ```
41
41
 
42
- To run the presentation:
42
+ To run the deck:
43
43
 
44
44
  ```
45
- $ bundle exec ruby my_slides.rb
45
+ $ tkn2 show ruby my_slides.rb
46
46
  ```
47
47
 
48
48
  ### Available commands
@@ -101,7 +101,7 @@ you want (read from the network, make calculations, etc.).
101
101
 
102
102
  ### Keys
103
103
 
104
- These are the keys you can use to navigate the presentation:
104
+ These are the keys you can use to navigate the deck:
105
105
 
106
106
  * Down, Right, Enter, Space, Page Down, N: next slide
107
107
  * Up, Left, Backspace, Page Up, P: previous slide
@@ -117,7 +117,7 @@ That said:
117
117
 
118
118
  * (Auto)reload [1]
119
119
  * Images [1]
120
- * Better control of *overflow* (currently the presentation crashes if the content doesn't fit in the screen). I'm
120
+ * Better control of *overflow* (currently the deck crashes if the content doesn't fit in the screen). I'm
121
121
  playing with the idea of having *scroll*, something usually not present in graphical presentation software and that
122
122
  can be useful to present code without using a tiny font size
123
123
  * Colors and themes
data/bin/tkn2 CHANGED
@@ -9,6 +9,12 @@ module Tkn2
9
9
  def new(title)
10
10
  NewDeck.start([title])
11
11
  end
12
+
13
+ desc 'show FILE', 'Shows the presentation in FILE'
14
+
15
+ def show(file)
16
+ exec "bundle exec ruby #{file}"
17
+ end
12
18
  end
13
19
 
14
20
  class NewDeck < Thor::Group
@@ -1,3 +1,3 @@
1
1
  module Tkn2
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tkn2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio Gil