acmcommits 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 +12 -0
- data/.travis.yml +20 -0
- data/CHANGELOG +99 -0
- data/CONTRIBUTING +11 -0
- data/Gemfile +4 -0
- data/LICENSE +165 -0
- data/README.md +74 -0
- data/Rakefile +69 -0
- data/acmcommits.gemspec +39 -0
- data/bin/lolcommits +309 -0
- data/features/bugs.feature +58 -0
- data/features/lolcommits.feature +147 -0
- data/features/plugins.feature +34 -0
- data/features/step_definitions/lolcommits_steps.rb +98 -0
- data/features/support/env.rb +94 -0
- data/lib/core_ext/class.rb +7 -0
- data/lib/lolcommits/capture_fake.rb +10 -0
- data/lib/lolcommits/capture_linux.rb +28 -0
- data/lib/lolcommits/capture_mac.rb +19 -0
- data/lib/lolcommits/capture_windows.rb +18 -0
- data/lib/lolcommits/capturer.rb +13 -0
- data/lib/lolcommits/configuration.rb +160 -0
- data/lib/lolcommits/git_info.rb +27 -0
- data/lib/lolcommits/plugin.rb +40 -0
- data/lib/lolcommits/plugins/lolsrv.rb +73 -0
- data/lib/lolcommits/plugins/loltext.rb +79 -0
- data/lib/lolcommits/plugins/statsd.rb +25 -0
- data/lib/lolcommits/runner.rb +97 -0
- data/lib/lolcommits/version.rb +3 -0
- data/lib/lolcommits.rb +27 -0
- data/test/images/test_image.jpg +0 -0
- data/test/test_lolcommits.rb +49 -0
- data/vendor/ext/CommandCam/COPYING +674 -0
- data/vendor/ext/CommandCam/CommandCam.exe +0 -0
- data/vendor/ext/CommandCam/LICENSE +16 -0
- data/vendor/ext/imagesnap/ReadMeOrDont.rtf +117 -0
- data/vendor/ext/imagesnap/imagesnap +0 -0
- data/vendor/fonts/Impact.ttf +0 -0
- metadata +228 -0
data/.gitignore
ADDED
data/.travis.yml
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
language: ruby
|
2
|
+
rvm:
|
3
|
+
- 1.8.7
|
4
|
+
- 1.9.2
|
5
|
+
- 1.9.3
|
6
|
+
- 2.0.0
|
7
|
+
|
8
|
+
before_install:
|
9
|
+
# imagemagick is installed by default on normal travis image now
|
10
|
+
- sudo apt-get update -qq
|
11
|
+
- sudo apt-get install -qq -y mplayer
|
12
|
+
# - sudo apt-get install -qq -y imagemagick libmagickwand-dev
|
13
|
+
|
14
|
+
# matrix:
|
15
|
+
# allow_failures:
|
16
|
+
# - rvm: 2.0.0
|
17
|
+
|
18
|
+
branches:
|
19
|
+
except:
|
20
|
+
- gh-pages
|
data/CHANGELOG
ADDED
@@ -0,0 +1,99 @@
|
|
1
|
+
0.4.4 (in development)
|
2
|
+
* TODO: figure out problems with GUI clients
|
3
|
+
|
4
|
+
0.4.3 (29 March 2013)
|
5
|
+
* bump mini_magick dependency to deal with security alert
|
6
|
+
|
7
|
+
0.4.2 (11 March 2013)
|
8
|
+
* fix ruby 2.0 compatibility (#91)
|
9
|
+
* gracefully detect upstream issue with git color.ui being set to always (#50)
|
10
|
+
* handle external capture devices with special characters in name (#93)
|
11
|
+
* fixes to the uploldz plugin (#92)
|
12
|
+
|
13
|
+
0.4.1 (17 February 2013)
|
14
|
+
* add lolsrv plugin (thx @sebastianmarr!, #82)
|
15
|
+
* enable feature to change font (thx @fukayatsu!, #89)
|
16
|
+
* correct activesupport gem name in bundle (thx @djbender!, #90)
|
17
|
+
* graceful detection of imagemagick not being installed (#87)
|
18
|
+
* restructure logging slightly to use Methadone::CLILogging in most places
|
19
|
+
* add a bunch of debugging output, viewable via --debug flag
|
20
|
+
|
21
|
+
0.4.0 (13 January 2013)
|
22
|
+
* Switch the main ImageMagick wrapper from RMagick to mini_magick
|
23
|
+
- fix for RMagick not working with ImageMagick 6.8+ and generally
|
24
|
+
being a buggy unmaintained piece of crap
|
25
|
+
- this should also result in less problems with IM version changes
|
26
|
+
- some preliminary test work on using image_sorcery instead too
|
27
|
+
- perhaps finally kill issue #9 from continually resurfacing
|
28
|
+
* make sure quotes are properly handled in commit messages
|
29
|
+
* silence warnings generated by twitter gem in MRI 1.8.7
|
30
|
+
|
31
|
+
0.3.4 (27 December 2012)
|
32
|
+
* Add uploldz plugin for posting to a remote server (thx @cnvandev)
|
33
|
+
|
34
|
+
0.3.3 (26 November 2012)
|
35
|
+
* BUG: prevent repeated firing of lolcommits capture during a git rebase.
|
36
|
+
|
37
|
+
0.3.2 (3 October 2012)
|
38
|
+
* Twitter posting support via the `twitter` plugin! (thx @coyboyrushforth!)
|
39
|
+
|
40
|
+
0.3.1 (5 August 2012)
|
41
|
+
* fix regression with linux capture introduced in previous version
|
42
|
+
|
43
|
+
0.3.0 (3 August 2012)
|
44
|
+
* fix bug involving git repositories with spaces in the name
|
45
|
+
* internal refactoring for modularity (thanks @kenmazaika!), should be easier
|
46
|
+
to add new plugin features to lolcommits now.
|
47
|
+
* add some extremeley basic anonymous usage tracking (if this bugs you, you
|
48
|
+
can disable via disabling the `statsd` plugin).
|
49
|
+
|
50
|
+
0.2.0 (6 July 2012)
|
51
|
+
* improved build system and testing with cucumber/methadone
|
52
|
+
- goal is to get into a better framework to start doing major feature work
|
53
|
+
- this should lead to increased reliability across systems as we refactor
|
54
|
+
* writing tests (please help!)
|
55
|
+
* fix issues with packaged files not being readable after a sudo gem install
|
56
|
+
|
57
|
+
0.1.5 (25 June 2012)
|
58
|
+
* fix tranzlate on ruby1.8
|
59
|
+
|
60
|
+
0.1.4 (28 May 2012)
|
61
|
+
* set device on mac via --device (or LOLCOMMITS_DEVICE env variable) --
|
62
|
+
thanks @pioz (pull #51)
|
63
|
+
|
64
|
+
0.1.3 (18 May 2012)
|
65
|
+
* add LGPLv3 license
|
66
|
+
* add option to translate your commit message to lolspeak! (thx
|
67
|
+
to @DanielleSucher!). To enable, set `LOLCOMMITS_TRANZLATE=1`.
|
68
|
+
* fix issue with older versions of IM crashing on interline spacing (pull #31 via @german)
|
69
|
+
* fix issue with git repos with no hooks directory (pull #43 via @mkmaster)
|
70
|
+
* fix missing dash in capture -c
|
71
|
+
|
72
|
+
0.1.2 (22 April 2012)
|
73
|
+
* provide licensing info for CommandCam (Windows)
|
74
|
+
* bundle imagesnap as well to remove a dependency on Mac OS X
|
75
|
+
|
76
|
+
0.1.1 (21 April 2012)
|
77
|
+
* Windows compatibility! Thanks to @Prydonious.
|
78
|
+
|
79
|
+
0.1.0 (19 April 2012)
|
80
|
+
* Linux compatibility! Thanks to @madjar, @cscorely, and @Prydonius.
|
81
|
+
|
82
|
+
0.0.3 (16 April 2012)
|
83
|
+
* use only first line for multi-line commit msgs (pull req #21)
|
84
|
+
* clean up some command line options
|
85
|
+
|
86
|
+
0.0.2 (2 April 2012)
|
87
|
+
* add --delay option to delay image capture (thx JohanB), can be
|
88
|
+
persistently set via LOLCOMMITS_DELAY environment variable.
|
89
|
+
* add --last command to view most recent lolcommit for a repo
|
90
|
+
* add --browse command to open the lolcommit images directory for a particular repo
|
91
|
+
|
92
|
+
0.0.1 (29 March 2012)
|
93
|
+
* initial release as a gem package, major refactoring for this
|
94
|
+
* refactored to remove git-hooks package dependency, now installs stub hook
|
95
|
+
directly into each git repo
|
96
|
+
* wordwrap commit_msg manually, to switch to use imagemagick annotate
|
97
|
+
instead of compositing multiply image Caption objects (this seems to be more
|
98
|
+
reliable to not glitch.)
|
99
|
+
|
data/CONTRIBUTING
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
GUIDELINES FOR CONTRIBUTING
|
2
|
+
|
3
|
+
1. Fork it
|
4
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
5
|
+
3. Commit your changes (`git commit -am 'Added some feature'`)
|
6
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
7
|
+
5. Create new Pull Request
|
8
|
+
|
9
|
+
You can run the existing test-suite via `rake`. Ensure nothing is broken, but since the test since is far from complete, it'd be awesome if you manually tested for regressions as well.
|
10
|
+
|
11
|
+
Please, if at all possible, write a passing test for the functionality you added.
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,165 @@
|
|
1
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
2
|
+
Version 3, 29 June 2007
|
3
|
+
|
4
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
5
|
+
Everyone is permitted to copy and distribute verbatim copies
|
6
|
+
of this license document, but changing it is not allowed.
|
7
|
+
|
8
|
+
|
9
|
+
This version of the GNU Lesser General Public License incorporates
|
10
|
+
the terms and conditions of version 3 of the GNU General Public
|
11
|
+
License, supplemented by the additional permissions listed below.
|
12
|
+
|
13
|
+
0. Additional Definitions.
|
14
|
+
|
15
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
16
|
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
17
|
+
General Public License.
|
18
|
+
|
19
|
+
"The Library" refers to a covered work governed by this License,
|
20
|
+
other than an Application or a Combined Work as defined below.
|
21
|
+
|
22
|
+
An "Application" is any work that makes use of an interface provided
|
23
|
+
by the Library, but which is not otherwise based on the Library.
|
24
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
25
|
+
of using an interface provided by the Library.
|
26
|
+
|
27
|
+
A "Combined Work" is a work produced by combining or linking an
|
28
|
+
Application with the Library. The particular version of the Library
|
29
|
+
with which the Combined Work was made is also called the "Linked
|
30
|
+
Version".
|
31
|
+
|
32
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
33
|
+
Corresponding Source for the Combined Work, excluding any source code
|
34
|
+
for portions of the Combined Work that, considered in isolation, are
|
35
|
+
based on the Application, and not on the Linked Version.
|
36
|
+
|
37
|
+
The "Corresponding Application Code" for a Combined Work means the
|
38
|
+
object code and/or source code for the Application, including any data
|
39
|
+
and utility programs needed for reproducing the Combined Work from the
|
40
|
+
Application, but excluding the System Libraries of the Combined Work.
|
41
|
+
|
42
|
+
1. Exception to Section 3 of the GNU GPL.
|
43
|
+
|
44
|
+
You may convey a covered work under sections 3 and 4 of this License
|
45
|
+
without being bound by section 3 of the GNU GPL.
|
46
|
+
|
47
|
+
2. Conveying Modified Versions.
|
48
|
+
|
49
|
+
If you modify a copy of the Library, and, in your modifications, a
|
50
|
+
facility refers to a function or data to be supplied by an Application
|
51
|
+
that uses the facility (other than as an argument passed when the
|
52
|
+
facility is invoked), then you may convey a copy of the modified
|
53
|
+
version:
|
54
|
+
|
55
|
+
a) under this License, provided that you make a good faith effort to
|
56
|
+
ensure that, in the event an Application does not supply the
|
57
|
+
function or data, the facility still operates, and performs
|
58
|
+
whatever part of its purpose remains meaningful, or
|
59
|
+
|
60
|
+
b) under the GNU GPL, with none of the additional permissions of
|
61
|
+
this License applicable to that copy.
|
62
|
+
|
63
|
+
3. Object Code Incorporating Material from Library Header Files.
|
64
|
+
|
65
|
+
The object code form of an Application may incorporate material from
|
66
|
+
a header file that is part of the Library. You may convey such object
|
67
|
+
code under terms of your choice, provided that, if the incorporated
|
68
|
+
material is not limited to numerical parameters, data structure
|
69
|
+
layouts and accessors, or small macros, inline functions and templates
|
70
|
+
(ten or fewer lines in length), you do both of the following:
|
71
|
+
|
72
|
+
a) Give prominent notice with each copy of the object code that the
|
73
|
+
Library is used in it and that the Library and its use are
|
74
|
+
covered by this License.
|
75
|
+
|
76
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
77
|
+
document.
|
78
|
+
|
79
|
+
4. Combined Works.
|
80
|
+
|
81
|
+
You may convey a Combined Work under terms of your choice that,
|
82
|
+
taken together, effectively do not restrict modification of the
|
83
|
+
portions of the Library contained in the Combined Work and reverse
|
84
|
+
engineering for debugging such modifications, if you also do each of
|
85
|
+
the following:
|
86
|
+
|
87
|
+
a) Give prominent notice with each copy of the Combined Work that
|
88
|
+
the Library is used in it and that the Library and its use are
|
89
|
+
covered by this License.
|
90
|
+
|
91
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
92
|
+
document.
|
93
|
+
|
94
|
+
c) For a Combined Work that displays copyright notices during
|
95
|
+
execution, include the copyright notice for the Library among
|
96
|
+
these notices, as well as a reference directing the user to the
|
97
|
+
copies of the GNU GPL and this license document.
|
98
|
+
|
99
|
+
d) Do one of the following:
|
100
|
+
|
101
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
102
|
+
License, and the Corresponding Application Code in a form
|
103
|
+
suitable for, and under terms that permit, the user to
|
104
|
+
recombine or relink the Application with a modified version of
|
105
|
+
the Linked Version to produce a modified Combined Work, in the
|
106
|
+
manner specified by section 6 of the GNU GPL for conveying
|
107
|
+
Corresponding Source.
|
108
|
+
|
109
|
+
1) Use a suitable shared library mechanism for linking with the
|
110
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
111
|
+
a copy of the Library already present on the user's computer
|
112
|
+
system, and (b) will operate properly with a modified version
|
113
|
+
of the Library that is interface-compatible with the Linked
|
114
|
+
Version.
|
115
|
+
|
116
|
+
e) Provide Installation Information, but only if you would otherwise
|
117
|
+
be required to provide such information under section 6 of the
|
118
|
+
GNU GPL, and only to the extent that such information is
|
119
|
+
necessary to install and execute a modified version of the
|
120
|
+
Combined Work produced by recombining or relinking the
|
121
|
+
Application with a modified version of the Linked Version. (If
|
122
|
+
you use option 4d0, the Installation Information must accompany
|
123
|
+
the Minimal Corresponding Source and Corresponding Application
|
124
|
+
Code. If you use option 4d1, you must provide the Installation
|
125
|
+
Information in the manner specified by section 6 of the GNU GPL
|
126
|
+
for conveying Corresponding Source.)
|
127
|
+
|
128
|
+
5. Combined Libraries.
|
129
|
+
|
130
|
+
You may place library facilities that are a work based on the
|
131
|
+
Library side by side in a single library together with other library
|
132
|
+
facilities that are not Applications and are not covered by this
|
133
|
+
License, and convey such a combined library under terms of your
|
134
|
+
choice, if you do both of the following:
|
135
|
+
|
136
|
+
a) Accompany the combined library with a copy of the same work based
|
137
|
+
on the Library, uncombined with any other library facilities,
|
138
|
+
conveyed under the terms of this License.
|
139
|
+
|
140
|
+
b) Give prominent notice with the combined library that part of it
|
141
|
+
is a work based on the Library, and explaining where to find the
|
142
|
+
accompanying uncombined form of the same work.
|
143
|
+
|
144
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
145
|
+
|
146
|
+
The Free Software Foundation may publish revised and/or new versions
|
147
|
+
of the GNU Lesser General Public License from time to time. Such new
|
148
|
+
versions will be similar in spirit to the present version, but may
|
149
|
+
differ in detail to address new problems or concerns.
|
150
|
+
|
151
|
+
Each version is given a distinguishing version number. If the
|
152
|
+
Library as you received it specifies that a certain numbered version
|
153
|
+
of the GNU Lesser General Public License "or any later version"
|
154
|
+
applies to it, you have the option of following the terms and
|
155
|
+
conditions either of that published version or of any later version
|
156
|
+
published by the Free Software Foundation. If the Library as you
|
157
|
+
received it does not specify a version number of the GNU Lesser
|
158
|
+
General Public License, you may choose any version of the GNU Lesser
|
159
|
+
General Public License ever published by the Free Software Foundation.
|
160
|
+
|
161
|
+
If the Library as you received it specifies that a proxy can decide
|
162
|
+
whether future versions of the GNU Lesser General Public License shall
|
163
|
+
apply, that proxy's public statement of acceptance of any version is
|
164
|
+
permanent authorization for you to choose that version for the
|
165
|
+
Library.
|
data/README.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# lolcommits (git + webcam = lol)
|
2
|
+
|
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.
|
5
|
+
|
6
|
+
By default, the lolimages are stored by a Github style short SHA in a `~/.lolcommits` directory created for you.
|
7
|
+
|
8
|
+
[](http://badge.fury.io/rb/lolcommits)
|
9
|
+
[](http://travis-ci.org/mroth/lolcommits)
|
10
|
+
[](https://gemnasium.com/mroth/lolcommits)
|
11
|
+
|
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
|
19
|
+
You'll need ImageMagick installed. [Homebrew](http://mxcl.github.com/homebrew/) makes this easy. Simply do:
|
20
|
+
|
21
|
+
brew install imagemagick
|
22
|
+
|
23
|
+
Then simply do:
|
24
|
+
|
25
|
+
[sudo] gem install lolcommits
|
26
|
+
|
27
|
+
(If you're using RVM, you can/should probably omit the sudo, but the default MacOSX Ruby install is dumb and requires it.)
|
28
|
+
|
29
|
+
### Linux
|
30
|
+
Install dependencies using your package manager of choice, for example in Ubuntu:
|
31
|
+
|
32
|
+
sudo apt-get install mplayer imagemagick libmagickwand-dev
|
33
|
+
|
34
|
+
Then install the lolcommits gem:
|
35
|
+
|
36
|
+
gem install lolcommits
|
37
|
+
|
38
|
+
For more details, see [Installing on Linux](https://github.com/mroth/lolcommits/wiki/Installing-on-Linux).
|
39
|
+
|
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).
|
42
|
+
|
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.
|
46
|
+
|
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.
|
51
|
+
|
52
|
+
### Configuration variables
|
53
|
+
lolcommits has some options for additional lulz. You can enable via
|
54
|
+
environment variables.
|
55
|
+
|
56
|
+
* Set webcam device on mac - set `LOLCOMMITS_DEVICE` environment variable.
|
57
|
+
* Set delay persistently (for slow to warmup webcams) - set
|
58
|
+
`LOLCOMMITS_DELAY` var to time in seconds.
|
59
|
+
* Set font file location - set `LOLCOMMITS_FONT` environment variable.
|
60
|
+
|
61
|
+
For the full list, see the [configuration variables](https://github.com/mroth/lolcommits/wiki/Configuration-Variables).
|
62
|
+
|
63
|
+
### Plugins
|
64
|
+
|
65
|
+
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).
|
66
|
+
|
67
|
+
## Troubles?
|
68
|
+
Started a [FAQ](https://github.com/mroth/lolcommits/wiki/FAQ).
|
69
|
+
|
70
|
+
## Timelapse?
|
71
|
+
|
72
|
+
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):
|
73
|
+
|
74
|
+
convert `find . -type f -name "*.jpg" -print0 | xargs -0 ls -tlr | awk '{print $9}'` timelapse.mpeg
|
data/Rakefile
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
require 'bundler'
|
2
|
+
require 'rake/clean'
|
3
|
+
|
4
|
+
require 'rake/testtask'
|
5
|
+
|
6
|
+
require 'cucumber'
|
7
|
+
require 'cucumber/rake/task'
|
8
|
+
gem 'rdoc' # we need the installed RDoc gem, not the system one
|
9
|
+
require 'rdoc/task'
|
10
|
+
|
11
|
+
include Rake::DSL
|
12
|
+
|
13
|
+
Bundler::GemHelper.install_tasks
|
14
|
+
|
15
|
+
|
16
|
+
Rake::TestTask.new do |t|
|
17
|
+
t.pattern = 'test/test_*.rb'
|
18
|
+
end
|
19
|
+
|
20
|
+
Rake::FileUtilsExt.verbose(false)
|
21
|
+
CUKE_RESULTS = 'results.html'
|
22
|
+
CLEAN << CUKE_RESULTS
|
23
|
+
Cucumber::Rake::Task.new(:features) do |t|
|
24
|
+
optstr = "features --format html -o #{CUKE_RESULTS} --format Fivemat -x"
|
25
|
+
optstr << " --tags @#{ENV["tag"]}" unless ENV["tag"].nil?
|
26
|
+
optstr << " --tags ~@unstable" if ENV["tag"].nil? #ignore unstable tests unless specifying something at CLI
|
27
|
+
t.cucumber_opts = optstr
|
28
|
+
t.fork = false
|
29
|
+
end
|
30
|
+
|
31
|
+
Rake::RDocTask.new do |rd|
|
32
|
+
|
33
|
+
rd.main = "README.rdoc"
|
34
|
+
|
35
|
+
rd.rdoc_files.include("README.rdoc","lib/**/*.rb","bin/**/*")
|
36
|
+
end
|
37
|
+
|
38
|
+
task :default => [:test,:features]
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
desc "Migrate an existing local .lolcommits directory to Dropbox"
|
43
|
+
task :dropboxify do
|
44
|
+
$home = ENV['HOME']
|
45
|
+
dropbox_loldir = "#{$home}/Dropbox/lolcommits"
|
46
|
+
loldir = "#{$home}/.lolcommits"
|
47
|
+
backup_loldir = "#{$home}/.lolcommits.old"
|
48
|
+
|
49
|
+
#check whether we've done this already
|
50
|
+
if File.symlink? loldir
|
51
|
+
abort "already dropboxified!"
|
52
|
+
end
|
53
|
+
|
54
|
+
#create dropbox folder
|
55
|
+
if not File.directory? dropbox_loldir
|
56
|
+
FileUtils.mkdir_p dropbox_loldir
|
57
|
+
end
|
58
|
+
|
59
|
+
#backup existing loldir
|
60
|
+
if File.directory? loldir
|
61
|
+
FileUtils.mv( loldir, backup_loldir )
|
62
|
+
end
|
63
|
+
|
64
|
+
#symlink dropbox to local
|
65
|
+
FileUtils.ln_s( dropbox_loldir, loldir )
|
66
|
+
|
67
|
+
#copy over existing files
|
68
|
+
FileUtils.cp_r( "#{backup_loldir}/.", loldir)
|
69
|
+
end
|
data/acmcommits.gemspec
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "lolcommits/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "acmcommits"
|
7
|
+
s.version = Lolcommits::VERSION
|
8
|
+
s.authors = ["Brendan Ryan"]
|
9
|
+
s.email = ["brendanjohnryan@yahoo.com"]
|
10
|
+
s.summary = %q{Lolcommits refactored for use at the UIUC branch of ACM.}
|
11
|
+
s.description = %q{Lolcommits refactored for use at the UIUC branch of ACM.}
|
12
|
+
s.license = "LGPL-3"
|
13
|
+
s.rubyforge_project = "acmcommits"
|
14
|
+
|
15
|
+
s.files = `git ls-files`.split("\n")
|
16
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
17
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
18
|
+
s.require_paths = ["lib"]
|
19
|
+
|
20
|
+
# core gem dependencies
|
21
|
+
s.add_runtime_dependency('mini_magick', '~> 3.5')
|
22
|
+
s.add_runtime_dependency('git', '~> 1.2.5')
|
23
|
+
s.add_runtime_dependency('choice', '~> 0.1.6')
|
24
|
+
s.add_runtime_dependency('launchy', '~> 2.2.0')
|
25
|
+
s.add_runtime_dependency('methadone', '~> 1.2.4')
|
26
|
+
s.add_runtime_dependency('open4', '~> 1.3.0')
|
27
|
+
s.add_runtime_dependency('activesupport', '~> 3.2.12')
|
28
|
+
|
29
|
+
# development dependencies
|
30
|
+
s.add_development_dependency('rdoc')
|
31
|
+
s.add_development_dependency('aruba', '~> 0.5.1')
|
32
|
+
s.add_development_dependency('rake',' ~> 10.0.2')
|
33
|
+
s.add_development_dependency('fivemat')
|
34
|
+
s.add_development_dependency('faker')
|
35
|
+
|
36
|
+
# plugin dependencies
|
37
|
+
s.add_runtime_dependency('json', '~> 1.7.6') #lolsrv
|
38
|
+
|
39
|
+
end
|