gifme 0.0.7 → 0.0.8
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.
- data/README.md +5 -0
- data/Rakefile +3 -3
- data/bin/gifme +1 -41
- data/gifme.gemspec +2 -2
- metadata +4 -4
data/README.md
CHANGED
data/Rakefile
CHANGED
@@ -13,7 +13,7 @@ def name
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def version
|
16
|
-
"0.0.
|
16
|
+
"0.0.8"
|
17
17
|
end
|
18
18
|
|
19
19
|
def date
|
@@ -48,8 +48,8 @@ task :release => :build do
|
|
48
48
|
puts "You must be on the master branch to release!"
|
49
49
|
exit!
|
50
50
|
end
|
51
|
-
sh "git commit --allow-empty -a -m 'Release #{version}'"
|
52
|
-
sh "git tag v#{version}"
|
51
|
+
# sh "git commit --allow-empty -a -m 'Release #{version}'"
|
52
|
+
# sh "git tag v#{version}"
|
53
53
|
sh "git push origin master"
|
54
54
|
sh "git push origin v#{version}"
|
55
55
|
sh "gem push pkg/#{name}-#{version}.gem"
|
data/bin/gifme
CHANGED
@@ -11,8 +11,7 @@ options = {
|
|
11
11
|
:reverse => false,
|
12
12
|
:width => 500,
|
13
13
|
:delay => 20,
|
14
|
-
:cloudapp => system("which cloudapp 2>&1 > /dev/null")
|
15
|
-
:isight => 0
|
14
|
+
:cloudapp => system("which cloudapp 2>&1 > /dev/null")
|
16
15
|
}
|
17
16
|
|
18
17
|
parser = OptionParser.new do |opts|
|
@@ -41,10 +40,6 @@ parser = OptionParser.new do |opts|
|
|
41
40
|
options[:width] = width
|
42
41
|
end
|
43
42
|
|
44
|
-
opts.on("-i", "--isight NUMBER", "Use the iSight camera (2 second delay per capture)") do |isight|
|
45
|
-
options[:isight] = isight
|
46
|
-
end
|
47
|
-
|
48
43
|
opts.on("-h", "--help", "Show this message") do
|
49
44
|
puts opts
|
50
45
|
exit
|
@@ -61,41 +56,6 @@ unless system("which convert 2>&1 > /dev/null")
|
|
61
56
|
exit(1)
|
62
57
|
end
|
63
58
|
|
64
|
-
unless system("which imagesnap 2>&1 > /dev/null")
|
65
|
-
puts "You need to install ImageSnap first.\n\n"
|
66
|
-
puts "If you're on a Mac, this should be as easy as:"
|
67
|
-
puts " brew install imagesnap"
|
68
|
-
exit(1)
|
69
|
-
end
|
70
|
-
|
71
|
-
if options[:isight].to_i > 0
|
72
|
-
isights = options[:isight].to_i
|
73
|
-
isight_path = "/tmp/isight"
|
74
|
-
|
75
|
-
# snap the pictures
|
76
|
-
FileUtils.rm_rf isight_path
|
77
|
-
FileUtils.mkdir isight_path
|
78
|
-
|
79
|
-
isights = options[:isight].to_i
|
80
|
-
|
81
|
-
puts "You have 2 seconds to prepare yourself!"
|
82
|
-
|
83
|
-
for i in 1..isights
|
84
|
-
puts "counting down... 2"
|
85
|
-
sleep(1)
|
86
|
-
puts "counting down... 1"
|
87
|
-
sleep(1)
|
88
|
-
puts "Taking iSight snapshot #{i} of #{isights}"
|
89
|
-
system "cd #{isight_path} && imagesnap #{isight_path}/snapshot-#{i}.jpg"
|
90
|
-
end
|
91
|
-
|
92
|
-
# use them
|
93
|
-
files = Dir.entries(isight_path)
|
94
|
-
files.delete(".")
|
95
|
-
files.delete("..")
|
96
|
-
files = files.collect{|f| "#{isight_path}/#{f}"}
|
97
|
-
end
|
98
|
-
|
99
59
|
unless files
|
100
60
|
puts parser.help
|
101
61
|
exit(1)
|
data/gifme.gemspec
CHANGED
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
|
|
13
13
|
## If your rubyforge_project name is different, then edit it and comment out
|
14
14
|
## the sub! line in the Rakefile
|
15
15
|
s.name = 'gifme'
|
16
|
-
s.version = '0.0.
|
17
|
-
s.date = '
|
16
|
+
s.version = '0.0.8'
|
17
|
+
s.date = '2012-10-05'
|
18
18
|
s.rubyforge_project = 'gifme'
|
19
19
|
|
20
20
|
## Make sure your summary is short. The description may be as long
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gifme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 8
|
10
|
+
version: 0.0.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Zach Holman
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2012-10-05 00:00:00 -10:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|