naturecommits 0.0.1
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/.gitignore +6 -0
- data/.travis.yml +10 -0
- data/CHANGELOG +36 -0
- data/Gemfile +4 -0
- data/LICENSE +165 -0
- data/README.md +57 -0
- data/Rakefile +38 -0
- data/bin/naturecommits +184 -0
- data/ext/CommandCam/COPYING +674 -0
- data/ext/CommandCam/CommandCam.exe +0 -0
- data/ext/CommandCam/LICENSE +16 -0
- data/ext/imagesnap/ReadMeOrDont.rtf +117 -0
- data/ext/imagesnap/imagesnap +0 -0
- data/fonts/Impact.ttf +0 -0
- data/lib/naturecommits.rb +210 -0
- data/lib/naturecommits/version.rb +3 -0
- data/lib/tranzlate/lolspeak.rb +101 -0
- data/naturecommits.gemspec +29 -0
- data/test/test_ naturecommits.rb +23 -0
- metadata +155 -0
@@ -0,0 +1,29 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "naturecommits/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "naturecommits"
|
7
|
+
s.version = NATURECOMMITS::VERSION
|
8
|
+
s.authors = ["Alex Kilgour"]
|
9
|
+
s.email = ["a.kilgour@nature.com"]
|
10
|
+
s.homepage = "http://github.com/howlingmad/naturecommits"
|
11
|
+
s.summary = %q{Capture webcam image on git commit for lulz. Forked from lolcommits}
|
12
|
+
s.description = %q{Takes a snapshot with your Mac's built-in iSight/FaceTime webcam (or any working webcam on Linux or Windows) every time you git commit code, and archives a lolcat style image with it.}
|
13
|
+
s.license = "LGPL-3"
|
14
|
+
s.rubyforge_project = "naturecommits"
|
15
|
+
|
16
|
+
s.files = `git ls-files`.split("\n")
|
17
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
|
+
s.require_paths = ["lib"]
|
20
|
+
|
21
|
+
# specify any dependencies here; for example:
|
22
|
+
# s.add_development_dependency "rspec"
|
23
|
+
# s.add_runtime_dependency "rest-client"
|
24
|
+
s.add_development_dependency "rake"
|
25
|
+
s.add_runtime_dependency "rmagick"
|
26
|
+
s.add_runtime_dependency "git"
|
27
|
+
s.add_runtime_dependency "choice", ">= 0.1.6"
|
28
|
+
s.add_runtime_dependency "launchy"
|
29
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'test/unit'
|
2
|
+
# Loads naturecommits directly from the lib folder so don't have to create
|
3
|
+
# a gem before testing
|
4
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
5
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
6
|
+
require 'naturecommits'
|
7
|
+
|
8
|
+
include naturecommits
|
9
|
+
|
10
|
+
class LolTest < Test::Unit::TestCase
|
11
|
+
def test_can_parse_git
|
12
|
+
assert_nothing_raised do
|
13
|
+
naturecommits.parse_git()
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
# Hmm.. webcam capture breaks travis-ci tests
|
18
|
+
#def test_can_capture
|
19
|
+
# assert_nothing_raised do
|
20
|
+
# naturecommits.capture(0,true,'test commit message','test-sha-001')
|
21
|
+
# end
|
22
|
+
#end
|
23
|
+
end
|
metadata
ADDED
@@ -0,0 +1,155 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: naturecommits
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 29
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 1
|
10
|
+
version: 0.0.1
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Alex Kilgour
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2012-05-22 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: rake
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 3
|
29
|
+
segments:
|
30
|
+
- 0
|
31
|
+
version: "0"
|
32
|
+
type: :development
|
33
|
+
version_requirements: *id001
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: rmagick
|
36
|
+
prerelease: false
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
38
|
+
none: false
|
39
|
+
requirements:
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
hash: 3
|
43
|
+
segments:
|
44
|
+
- 0
|
45
|
+
version: "0"
|
46
|
+
type: :runtime
|
47
|
+
version_requirements: *id002
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: git
|
50
|
+
prerelease: false
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
hash: 3
|
57
|
+
segments:
|
58
|
+
- 0
|
59
|
+
version: "0"
|
60
|
+
type: :runtime
|
61
|
+
version_requirements: *id003
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: choice
|
64
|
+
prerelease: false
|
65
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
hash: 23
|
71
|
+
segments:
|
72
|
+
- 0
|
73
|
+
- 1
|
74
|
+
- 6
|
75
|
+
version: 0.1.6
|
76
|
+
type: :runtime
|
77
|
+
version_requirements: *id004
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: launchy
|
80
|
+
prerelease: false
|
81
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
hash: 3
|
87
|
+
segments:
|
88
|
+
- 0
|
89
|
+
version: "0"
|
90
|
+
type: :runtime
|
91
|
+
version_requirements: *id005
|
92
|
+
description: Takes a snapshot with your Mac's built-in iSight/FaceTime webcam (or any working webcam on Linux or Windows) every time you git commit code, and archives a lolcat style image with it.
|
93
|
+
email:
|
94
|
+
- a.kilgour@nature.com
|
95
|
+
executables:
|
96
|
+
- naturecommits
|
97
|
+
extensions: []
|
98
|
+
|
99
|
+
extra_rdoc_files: []
|
100
|
+
|
101
|
+
files:
|
102
|
+
- .gitignore
|
103
|
+
- .travis.yml
|
104
|
+
- CHANGELOG
|
105
|
+
- Gemfile
|
106
|
+
- LICENSE
|
107
|
+
- README.md
|
108
|
+
- Rakefile
|
109
|
+
- bin/naturecommits
|
110
|
+
- ext/CommandCam/COPYING
|
111
|
+
- ext/CommandCam/CommandCam.exe
|
112
|
+
- ext/CommandCam/LICENSE
|
113
|
+
- ext/imagesnap/ReadMeOrDont.rtf
|
114
|
+
- ext/imagesnap/imagesnap
|
115
|
+
- fonts/Impact.ttf
|
116
|
+
- lib/naturecommits.rb
|
117
|
+
- lib/naturecommits/version.rb
|
118
|
+
- lib/tranzlate/lolspeak.rb
|
119
|
+
- naturecommits.gemspec
|
120
|
+
- test/test_ naturecommits.rb
|
121
|
+
homepage: http://github.com/howlingmad/naturecommits
|
122
|
+
licenses:
|
123
|
+
- LGPL-3
|
124
|
+
post_install_message:
|
125
|
+
rdoc_options: []
|
126
|
+
|
127
|
+
require_paths:
|
128
|
+
- lib
|
129
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
130
|
+
none: false
|
131
|
+
requirements:
|
132
|
+
- - ">="
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
hash: 3
|
135
|
+
segments:
|
136
|
+
- 0
|
137
|
+
version: "0"
|
138
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
139
|
+
none: false
|
140
|
+
requirements:
|
141
|
+
- - ">="
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
hash: 3
|
144
|
+
segments:
|
145
|
+
- 0
|
146
|
+
version: "0"
|
147
|
+
requirements: []
|
148
|
+
|
149
|
+
rubyforge_project: naturecommits
|
150
|
+
rubygems_version: 1.8.17
|
151
|
+
signing_key:
|
152
|
+
specification_version: 3
|
153
|
+
summary: Capture webcam image on git commit for lulz. Forked from lolcommits
|
154
|
+
test_files:
|
155
|
+
- test/test_ naturecommits.rb
|