kucha 0.0.2 → 0.0.3

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
  SHA1:
3
- metadata.gz: 8dba86e57cd2d0d83be27b90ca950479c74d29bc
4
- data.tar.gz: abeb0bb0b08a50ff8d3814dc1300d5658bdcc42c
3
+ metadata.gz: 2c7850901fdaa7c19b57976ff38c3091ee5dd2da
4
+ data.tar.gz: 2eeb97172690b317d2003ea9cfb090f4297111f5
5
5
  SHA512:
6
- metadata.gz: 1cffcfbba0d85c479c53d8d483145efb63e62719510a568c1b7afbbe133250de1e86269f2dc3bd57c9930a47795b9180c15eaaf330107402c64553a84ae5f1bc
7
- data.tar.gz: efb0a20abe158665cb3e0e128520578cbf6f9594d04a640a7c329a9930c9ab2910eb5ef603dba819fe48ce1a5e13c330385aa3d1b2a3b9b4c8714be79c5407a4
6
+ metadata.gz: 06d43ca4e90d5d5d6fd8e4296d3219cad6c62ac4a06a38d95b6e2fd4f4ccc587a11c6349e24964d87dd158e1861f121e495456050fa1afca71117d1de8cbca3c
7
+ data.tar.gz: 6ddf9fb7310f97924a986b713353905f09d549427296436d94fc138a57692400cb8de207e7db8c45928f71d4cf5baa18385d0178c53677672cc0b2b060863693
@@ -1,7 +1,8 @@
1
1
  # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'CocoaKucha/version'
2
+
3
+ module CocoaKucha
4
+ VERSION = '0.0.3'
5
+ end
5
6
 
6
7
  Gem::Specification.new do |spec|
7
8
  spec.name = "kucha"
@@ -16,8 +17,8 @@ Gem::Specification.new do |spec|
16
17
  spec.files = `git ls-files`.split($/)
17
18
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
19
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
- spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.5"
22
22
  spec.add_development_dependency "rake"
23
23
  end
24
+
data/README.md CHANGED
@@ -1,29 +1,16 @@
1
1
  # CocoaKucha
2
2
 
3
- TODO: Write a gem description
3
+ Changes slides every 20 seconds for your Cocoa Kucha talk.
4
4
 
5
- ## Installation
6
-
7
- Add this line to your application's Gemfile:
8
-
9
- gem 'CocoaKucha'
10
-
11
- And then execute:
5
+ Uses Applescript and sends the right arrow key - compatible with
6
+ [Deckset](http://decksetapp.com), Keynote, or any presentation app
7
+ you can imagine.
12
8
 
13
- $ bundle
14
-
15
- Or install it yourself as:
9
+ ## Installation
16
10
 
17
- $ gem install CocoaKucha
11
+ $ gem install kucha
18
12
 
19
13
  ## Usage
20
14
 
21
- TODO: Write usage instructions here
22
-
23
- ## Contributing
15
+ $ kucha
24
16
 
25
- 1. Fork it ( http://github.com/<my-github-username>/CocoaKucha/fork )
26
- 2. Create your feature branch (`git checkout -b my-new-feature`)
27
- 3. Commit your changes (`git commit -am 'Add some feature'`)
28
- 4. Push to the branch (`git push origin my-new-feature`)
29
- 5. Create new Pull Request
data/bin/kucha CHANGED
@@ -4,31 +4,33 @@
4
4
  #
5
5
  def every_20_seconds
6
6
  loop do
7
- sleep 20
7
+ sleep 0.20
8
8
  yield
9
9
  end
10
10
  end
11
11
 
12
12
  def change_slide
13
- puts "Changing slide.. #{@slide}"
14
13
  @slide += 1
14
+ puts "Changing slide #{@slide} to slide #{@slide + 1}"
15
15
  cmd = %Q(osascript -e 'tell application "System Events" to key code 124 using control down')
16
16
  system(cmd)
17
17
  end
18
18
 
19
19
  def countdown
20
- puts "starting in 3..."
21
- sleep 1
22
- print "2..."
23
- sleep 1
24
- print "1..."
25
- sleep 1
20
+ print "Starting in "
21
+ 5.downto 1 do |numbah|
22
+ print "#{numbah}..."
23
+ sleep 1
24
+ end
26
25
  puts "GO!"
27
26
  end
28
27
 
29
- @slide = 0
30
- countdown
31
- every_20_seconds do
32
- change_slide
28
+ # Sorry, I had to
29
+ def public_static_void_main(*args)
30
+ @slide = 0
31
+ countdown
32
+ every_20_seconds { change_slide }
33
33
  end
34
34
 
35
+ public_static_void_main
36
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kucha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marin Usalj
@@ -48,13 +48,10 @@ extra_rdoc_files: []
48
48
  files:
49
49
  - ".gitignore"
50
50
  - CocoaKucha.gemspec
51
- - Gemfile
52
51
  - LICENSE.txt
53
52
  - README.md
54
53
  - Rakefile
55
54
  - bin/kucha
56
- - lib/CocoaKucha.rb
57
- - lib/CocoaKucha/version.rb
58
55
  homepage: http://supermar.in
59
56
  licenses:
60
57
  - MIT
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in CocoaKucha.gemspec
4
- gemspec
@@ -1,5 +0,0 @@
1
- require "CocoaKucha/version"
2
-
3
- module CocoaKucha
4
- # Your code goes here...
5
- end
@@ -1,3 +0,0 @@
1
- module CocoaKucha
2
- VERSION = "0.0.2"
3
- end