lolcommits 0.4.0.pre2 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +0 -2
- data/CHANGELOG +1 -1
- data/README.md +27 -42
- data/features/plugins.feature +5 -14
- data/lib/lolcommits/version.rb +1 -1
- data/lolcommits.gemspec +6 -6
- metadata +13 -11
data/.travis.yml
CHANGED
@@ -4,7 +4,6 @@ rvm:
|
|
4
4
|
- 1.9.2
|
5
5
|
- 1.9.3
|
6
6
|
- ruby-head
|
7
|
-
- jruby
|
8
7
|
|
9
8
|
before_install:
|
10
9
|
# - sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 16126D3A3E5C1192
|
@@ -15,7 +14,6 @@ before_install:
|
|
15
14
|
matrix:
|
16
15
|
allow_failures:
|
17
16
|
- rvm: ruby-head
|
18
|
-
- rvm: jruby
|
19
17
|
|
20
18
|
branches:
|
21
19
|
except:
|
data/CHANGELOG
CHANGED
data/README.md
CHANGED
@@ -1,15 +1,21 @@
|
|
1
|
-
![lion](http://9.mshcdn.com/follow/uploads/topic/image/67/3d/84/a9/e6/29/thumb_mountain-lion-eb890e1974.png) **HAVING TROUBLE AFTER UPGRADING TO MOUNTAIN LION? [READ THIS.](https://github.com/mroth/lolcommits/issues/65)**
|
2
|
-
|
3
1
|
# lolcommits (git + webcam = lol)
|
4
2
|
|
5
|
-
|
3
|
+
lolcommits takes a snapshot with your webcam every time you git commit code, and archives a lolcat style image with it.
|
4
|
+
Git blame has never been so much fun.
|
6
5
|
|
7
6
|
By default, the lolimages are stored by a Github style short SHA in a `~/.lolcommits` directory created for you.
|
8
7
|
|
8
|
+
[![Gem Version](https://badge.fury.io/rb/lolcommits.png)](http://badge.fury.io/rb/lolcommits)
|
9
9
|
[![Build Status](https://secure.travis-ci.org/mroth/lolcommits.png?branch=master)](http://travis-ci.org/mroth/lolcommits)
|
10
10
|
[![Dependency Status](https://gemnasium.com/mroth/lolcommits.png)](https://gemnasium.com/mroth/lolcommits)
|
11
11
|
|
12
|
-
##
|
12
|
+
## Sample images
|
13
|
+
<img src="http://blog.mroth.info/images/postcontent/yearinsideprojects/lolcommits_users2.jpg" />
|
14
|
+
|
15
|
+
Please add your own lolcommit! Add to the [People Using Lolcommits](https://github.com/mroth/lolcommits/wiki/People-Using-Lolcommits) page on the Wiki.
|
16
|
+
|
17
|
+
## Installation
|
18
|
+
### Mac OS X
|
13
19
|
You'll need ImageMagick installed. [Homebrew](http://mxcl.github.com/homebrew/) makes this easy. Simply do:
|
14
20
|
|
15
21
|
brew install imagemagick
|
@@ -18,15 +24,9 @@ Then simply do:
|
|
18
24
|
|
19
25
|
[sudo] gem install lolcommits
|
20
26
|
|
21
|
-
(If you're using
|
22
|
-
|
23
|
-
You're all set! To enable lolcommits for a git repo, go to the base directory of the repository, and run:
|
24
|
-
|
25
|
-
lolcommits --enable
|
27
|
+
(If you're using RVM, you can/should probably omit the sudo, but the default MacOSX Ruby install is dumb and requires it.)
|
26
28
|
|
27
|
-
|
28
|
-
|
29
|
-
## Installation (Linux)
|
29
|
+
### Linux
|
30
30
|
Install dependencies using your package manager of choice, for example in Ubuntu:
|
31
31
|
|
32
32
|
sudo apt-get install mplayer imagemagick libmagickwand-dev
|
@@ -35,37 +35,21 @@ Then install the lolcommits gem:
|
|
35
35
|
|
36
36
|
gem install lolcommits
|
37
37
|
|
38
|
-
Then you can `lolcommits --enable` in any git repo as above.
|
39
|
-
|
40
38
|
For more details, see [Installing on Linux](https://github.com/mroth/lolcommits/wiki/Installing-on-Linux).
|
41
39
|
|
42
|
-
|
43
|
-
See the wiki page for [Installing on Windows](https://github.com/mroth/lolcommits/wiki/Installing-on-Windows).
|
40
|
+
### Windows
|
41
|
+
Here be dragons! It all works but you'll need some more detailed instructions to get the dependencies installed. See the wiki page for [Installing on Windows](https://github.com/mroth/lolcommits/wiki/Installing-on-Windows).
|
44
42
|
|
45
|
-
##
|
46
|
-
|
47
|
-
|
48
|
-
<img width='320' height='240' src="https://github.com/mroth/lolcommits/raw/gh-pages/assets/img/sample_old/sample5.jpg" />
|
49
|
-
<br/>
|
50
|
-
<img width='320' height='240' src="https://github.com/mroth/lolcommits/raw/gh-pages/assets/img/sample_old/sample4.jpg" />
|
51
|
-
|
52
|
-
<img width='320' height='240' src="https://github.com/mroth/lolcommits/raw/gh-pages/assets/img/sample_old/sample6.jpg" />
|
53
|
-
<br/>
|
54
|
-
<img width='320' height='240' src="https://github.com/mroth/lolcommits/raw/gh-pages/assets/img/sample_old/sample7.jpg" />
|
55
|
-
|
56
|
-
<img width='320' height='240' src="https://github.com/mroth/lolcommits/raw/gh-pages/assets/img/sample_old/sample8.jpg" />
|
57
|
-
<br/>
|
58
|
-
<a href="http://github.com/sfsekaran/"><img width='320' height='240' src="http://cl.ly/252S0o1J3x3n1b1k251N/d5f80e4f88a.jpg" /></a>
|
59
|
-
|
60
|
-
<a href="http://github.com/codegoblin/"><img width='320' height='240' src="http://cl.ly/2R0u040D2E2k0Y03240B/19bda811539.jpg" /></a>
|
61
|
-
<br/>
|
62
|
-
<img width='320' height='240' src="https://p.twimg.com/AqE73M1CMAAerqL.jpg" />
|
63
|
-
|
64
|
-
<img width='320' height='240' src="https://p.twimg.com/Aq9T0X9CAAAZ8gW.jpg" />
|
43
|
+
## Usage
|
44
|
+
### Enabling and basic usage
|
45
|
+
From within any git repository, simply do a `lolcommits --enable`. From that point on, any git commit will automatically trigger a lolcommit capture! All lolcommits are stored in `~/.lolcommits` by default, placed in a subdirectory by project name, and with a filename matching the commit hash.
|
65
46
|
|
66
|
-
|
47
|
+
Don't worry about it too much, half the fun of lolcommits is forgetting it's installed!
|
48
|
+
|
49
|
+
### Other commands
|
50
|
+
Ok, if you insist... Since you know about `--enable`, common sense suggest there is also a repository specific `--disable`, hopefully you can guess what that does. Other handy common commands include `--last`, which will open for display your most recent lolcommit image, or `--browse`, which pops open the directory containing all the lolcommit images for your current repository. You can always do `--help` for a full list of available commands.
|
67
51
|
|
68
|
-
|
52
|
+
### Configuration variables
|
69
53
|
lolcommits has some options for additional lulz. You can enable via
|
70
54
|
environment variables.
|
71
55
|
|
@@ -73,10 +57,11 @@ environment variables.
|
|
73
57
|
* Set delay persistently (for slow to warmup webcams) - set
|
74
58
|
`LOLCOMMITS_DELAY` var to time in seconds.
|
75
59
|
|
76
|
-
|
60
|
+
For the full list, see the [configuration variables](https://github.com/mroth/lolcommits/wiki/Configuration-Variables).
|
61
|
+
|
62
|
+
### Plugins
|
77
63
|
|
78
|
-
|
79
|
-
`lolcommits --config -p tranzlate` and set enabled to `true`.
|
64
|
+
There are a growing amount of plugins for lolcommits to enable things like Twitter upload, translating your commit messages to lolspeak, etc. Check them out on the [plugins wiki page](https://github.com/mroth/lolcommits/wiki/Plugins).
|
80
65
|
|
81
66
|
## Troubles?
|
82
67
|
Started a [FAQ](https://github.com/mroth/lolcommits/wiki/FAQ).
|
@@ -85,4 +70,4 @@ Started a [FAQ](https://github.com/mroth/lolcommits/wiki/FAQ).
|
|
85
70
|
|
86
71
|
To watch your face as it decays while you program, you can create a quick mpeg of all your lolcommits snapshots (if you have `imagemagick` and `ffmpeg` installed):
|
87
72
|
|
88
|
-
convert `find . -type f -name "*.jpg" -print0 | xargs -0 ls -tlr | awk '{print $9}'` timelapse.mpeg
|
73
|
+
convert `find . -type f -name "*.jpg" -print0 | xargs -0 ls -tlr | awk '{print $9}'` timelapse.mpeg
|
data/features/plugins.feature
CHANGED
@@ -1,33 +1,24 @@
|
|
1
1
|
Feature: Plugins Work
|
2
2
|
|
3
3
|
Scenario: Lolcommits.com integration works
|
4
|
-
Given a git repository named "dot_com"
|
5
|
-
|
6
|
-
When I cd to "dot_com"
|
7
|
-
And I successfully run `lolcommits --enable`
|
8
|
-
And I run `lolcommits --config` and wait for output
|
4
|
+
Given I am in a git repository named "dot_com" with lolcommits enabled
|
5
|
+
When I run `lolcommits --config` and wait for output
|
9
6
|
And I enter "dot_com" for "Plugin Name"
|
10
7
|
And I enter "true" for "enabled"
|
11
8
|
And I enter "b2a70ac0b64e012fa61522000a8c42dc" for "api_key"
|
12
9
|
And I enter "b2a720b0b64e012fa61522000a8c42dc" for "api_secret"
|
13
10
|
And I enter "c4aed530b64e012fa61522000a8c42dc" for "repo_id"
|
14
11
|
Then I should be presented "Successfully Configured"
|
15
|
-
When I
|
16
|
-
And I successfully run `git commit -m 'can haz commit'`
|
12
|
+
When I do a git commit
|
17
13
|
Then the output should contain "*** Preserving this moment in history."
|
18
14
|
And there should be exactly 1 jpg in "../.lolcommits/dot_com"
|
19
15
|
|
20
16
|
Scenario: Disable loltext
|
21
|
-
Given a git repository named "loltext"
|
22
|
-
And an empty file named "loltext/FOOBAR"
|
23
|
-
When I cd to "loltext"
|
24
|
-
And I successfully run `lolcommits --enable`
|
17
|
+
Given I am in a git repository named "loltext" with lolcommits enabled
|
25
18
|
And I run `lolcommits --config` and wait for output
|
26
19
|
And I enter "loltext" for "Plugin Name"
|
27
20
|
And I enter "false" for "enabled"
|
28
21
|
Then I should be presented "Successfully Configured"
|
29
|
-
When I
|
30
|
-
And I successfully run `git commit -m 'can haz commit'`
|
22
|
+
When I do a git commit
|
31
23
|
Then the output should contain "*** Preserving this moment in history."
|
32
24
|
And there should be exactly 1 jpg in "../.lolcommits/loltext"
|
33
|
-
|
data/lib/lolcommits/version.rb
CHANGED
data/lolcommits.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.email = ["mrothenberg@gmail.com"]
|
10
10
|
s.homepage = "http://mroth.github.com/lolcommits/"
|
11
11
|
s.summary = %q{Capture webcam image on git commit for lulz.}
|
12
|
-
s.description = %q{Takes a snapshot with your
|
12
|
+
s.description = %q{Takes a snapshot with your webcam every time you git commit code, and archives a lolcat style image with it.}
|
13
13
|
s.license = "LGPL-3"
|
14
14
|
s.rubyforge_project = "lolcommits"
|
15
15
|
|
@@ -34,10 +34,10 @@ Gem::Specification.new do |s|
|
|
34
34
|
s.add_development_dependency('faker')
|
35
35
|
|
36
36
|
# plugin dependencies
|
37
|
-
s.add_runtime_dependency(
|
38
|
-
s.add_runtime_dependency(
|
39
|
-
s.add_runtime_dependency(
|
40
|
-
s.add_runtime_dependency('httmultiparty')
|
41
|
-
s.add_runtime_dependency('statsd-ruby', '~> 1.
|
37
|
+
s.add_runtime_dependency('twitter') #twitter
|
38
|
+
s.add_runtime_dependency('oauth') #twitter
|
39
|
+
s.add_runtime_dependency('rest-client') #uploldz
|
40
|
+
s.add_runtime_dependency('httmultiparty') #dot_com
|
41
|
+
s.add_runtime_dependency('statsd-ruby', '~> 1.2.0') #statsd
|
42
42
|
|
43
43
|
end
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lolcommits
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.0
|
5
|
-
prerelease:
|
4
|
+
version: 0.4.0
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Matthew Rothenberg
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mini_magick
|
@@ -258,7 +258,7 @@ dependencies:
|
|
258
258
|
requirements:
|
259
259
|
- - ~>
|
260
260
|
- !ruby/object:Gem::Version
|
261
|
-
version: 1.
|
261
|
+
version: 1.2.0
|
262
262
|
type: :runtime
|
263
263
|
prerelease: false
|
264
264
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -266,10 +266,9 @@ dependencies:
|
|
266
266
|
requirements:
|
267
267
|
- - ~>
|
268
268
|
- !ruby/object:Gem::Version
|
269
|
-
version: 1.
|
270
|
-
description: Takes a snapshot with your
|
271
|
-
|
272
|
-
a lolcat style image with it.
|
269
|
+
version: 1.2.0
|
270
|
+
description: Takes a snapshot with your webcam every time you git commit code, and
|
271
|
+
archives a lolcat style image with it.
|
273
272
|
email:
|
274
273
|
- mrothenberg@gmail.com
|
275
274
|
executables:
|
@@ -335,13 +334,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
335
334
|
version: '0'
|
336
335
|
segments:
|
337
336
|
- 0
|
338
|
-
hash:
|
337
|
+
hash: 3878014605033370511
|
339
338
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
340
339
|
none: false
|
341
340
|
requirements:
|
342
|
-
- - ! '
|
341
|
+
- - ! '>='
|
343
342
|
- !ruby/object:Gem::Version
|
344
|
-
version:
|
343
|
+
version: '0'
|
344
|
+
segments:
|
345
|
+
- 0
|
346
|
+
hash: 3878014605033370511
|
345
347
|
requirements: []
|
346
348
|
rubyforge_project: lolcommits
|
347
349
|
rubygems_version: 1.8.24
|