kucha 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CocoaKucha.gemspec +5 -4
- data/README.md +7 -20
- data/bin/kucha +14 -12
- metadata +1 -4
- data/Gemfile +0 -4
- data/lib/CocoaKucha.rb +0 -5
- data/lib/CocoaKucha/version.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c7850901fdaa7c19b57976ff38c3091ee5dd2da
|
4
|
+
data.tar.gz: 2eeb97172690b317d2003ea9cfb090f4297111f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06d43ca4e90d5d5d6fd8e4296d3219cad6c62ac4a06a38d95b6e2fd4f4ccc587a11c6349e24964d87dd158e1861f121e495456050fa1afca71117d1de8cbca3c
|
7
|
+
data.tar.gz: 6ddf9fb7310f97924a986b713353905f09d549427296436d94fc138a57692400cb8de207e7db8c45928f71d4cf5baa18385d0178c53677672cc0b2b060863693
|
data/CocoaKucha.gemspec
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
# coding: utf-8
|
2
|
-
|
3
|
-
|
4
|
-
|
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
|
-
|
3
|
+
Changes slides every 20 seconds for your Cocoa Kucha talk.
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
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
|
-
|
14
|
-
|
15
|
-
Or install it yourself as:
|
9
|
+
## Installation
|
16
10
|
|
17
|
-
$ gem install
|
11
|
+
$ gem install kucha
|
18
12
|
|
19
13
|
## Usage
|
20
14
|
|
21
|
-
|
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
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
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
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
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.
|
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
data/lib/CocoaKucha.rb
DELETED
data/lib/CocoaKucha/version.rb
DELETED