lolcommits-glitch 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +52 -0
- data/Gemfile +2 -0
- data/LICENSE +165 -0
- data/README.md +45 -0
- data/Rakefile +31 -0
- data/assets/images/96385860786.jpg +0 -0
- data/assets/images/ab409ebe370.jpg +0 -0
- data/bin/console +14 -0
- data/bin/setup +10 -0
- data/lib/lolcommits/glitch/version.rb +5 -0
- data/lib/lolcommits/glitch.rb +2 -0
- data/lib/lolcommits/plugin/glitch.rb +122 -0
- data/lolcommits-glitch.gemspec +48 -0
- metadata +170 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 5e58f0cd6c8bf6d319bb6926c5c5f65c649c9cb3
|
4
|
+
data.tar.gz: a6c9849b01ab2fe34a18680c0b2ec90319267a37
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 1d0cb6342670d8437adbbf925b5aecc250f73b79e91a4c6fbf035f8eedb4df930057364b06b0c3955c607927e2525dd7f365c047a4f2756c02b9a67389b0cb01
|
7
|
+
data.tar.gz: 8c30d6afefc17936d7eaf4f0374b803f1e592c3479a96504cce35e09a06aea8aa8505ed9c9a8db0739d8f4ab2945c6ed3d2a28ffd7c8bb6648cf86232a0ab6aa
|
data/.gitignore
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
/.config
|
4
|
+
/coverage/
|
5
|
+
/InstalledFiles
|
6
|
+
/pkg/
|
7
|
+
/spec/reports/
|
8
|
+
/spec/examples.txt
|
9
|
+
/test/tmp/
|
10
|
+
/test/version_tmp/
|
11
|
+
/tmp/
|
12
|
+
|
13
|
+
Gemfile.lock
|
14
|
+
|
15
|
+
# Used by dotenv library to load environment variables.
|
16
|
+
# .env
|
17
|
+
|
18
|
+
## Specific to RubyMotion:
|
19
|
+
.dat*
|
20
|
+
.repl_history
|
21
|
+
build/
|
22
|
+
*.bridgesupport
|
23
|
+
build-iPhoneOS/
|
24
|
+
build-iPhoneSimulator/
|
25
|
+
|
26
|
+
## Specific to RubyMotion (use of CocoaPods):
|
27
|
+
#
|
28
|
+
# We recommend against adding the Pods directory to your .gitignore. However
|
29
|
+
# you should judge for yourself, the pros and cons are mentioned at:
|
30
|
+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
31
|
+
#
|
32
|
+
# vendor/Pods/
|
33
|
+
|
34
|
+
## Documentation cache and generated files:
|
35
|
+
/.yardoc/
|
36
|
+
/_yardoc/
|
37
|
+
/doc/
|
38
|
+
/rdoc/
|
39
|
+
|
40
|
+
## Environment normalization:
|
41
|
+
/.bundle/
|
42
|
+
/vendor/bundle
|
43
|
+
/lib/bundler/man/
|
44
|
+
|
45
|
+
# for a library or gem, you might want to ignore these files since the code is
|
46
|
+
# intended to run in multiple environments; otherwise, check them in:
|
47
|
+
# Gemfile.lock
|
48
|
+
# .ruby-version
|
49
|
+
# .ruby-gemset
|
50
|
+
|
51
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
52
|
+
.rvmrc
|
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. <https://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,45 @@
|
|
1
|
+
# Lolcommits Glitch
|
2
|
+
Glitch it up.
|
3
|
+
|
4
|
+
![glitch commit](https://github.com/tooluser/lolcommits-glitch/raw/master/assets/images/96385860786.jpg)
|
5
|
+
![glitch commit](https://github.com/tooluser/lolcommits-glitch/raw/master/assets/images/ab409ebe370.jpg)
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Follow the [install guide](https://github.com/mroth/lolcommits#installation) for
|
10
|
+
lolcommits first. Then run the following:
|
11
|
+
|
12
|
+
$ gem build lolcommits-glitch.gemspec
|
13
|
+
$ gem install lolcommits-glitch
|
14
|
+
|
15
|
+
Next configure and enable this plugin with:
|
16
|
+
|
17
|
+
$ lolcommits --config -p glitch
|
18
|
+
# set enabled to `true` and configure other options as you like
|
19
|
+
|
20
|
+
## Requirements
|
21
|
+
Lolcommits Glitch uses RMagick, which relies upon ImageMagick 6. If you have only 7 installed, you will receive an error about a missing header. To install 6 in parallel with 7:
|
22
|
+
|
23
|
+
```
|
24
|
+
PKG_CONFIG_PATH=/usr/local/Cellar/imagemagick@6/6.9.10-14/lib/pkgconfig/ gem install rmagick -v '2.16.0' -- --with-opt-lib=/usr/local/Cellar/imagemagick@6/6.9.10-14/lib/ --with-opt-include=/usr/local/Cellar/imagemagick/6.9.10-14/include/ImageMagick-6/
|
25
|
+
```
|
26
|
+
|
27
|
+
There is no need to unlink 7.
|
28
|
+
|
29
|
+
## Development
|
30
|
+
|
31
|
+
Check out this repo and run `bin/setup`, this will install dependencies and
|
32
|
+
generate docs. Run `bundle exec rake` to run all tests and generate a coverage
|
33
|
+
report.
|
34
|
+
|
35
|
+
You can also run `bin/console` for an interactive prompt that will allow you to
|
36
|
+
experiment with the gem code.
|
37
|
+
|
38
|
+
## Tests
|
39
|
+
|
40
|
+
In the spirit of glitching, there are no tests.
|
41
|
+
|
42
|
+
## License
|
43
|
+
|
44
|
+
The gem is available as open source under the terms of
|
45
|
+
[LGPL-3](https://opensource.org/licenses/LGPL-3.0).
|
data/Rakefile
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
require "rake/testtask"
|
3
|
+
require "rdoc/task"
|
4
|
+
|
5
|
+
# generate docs
|
6
|
+
RDoc::Task.new do |rd|
|
7
|
+
rd.main = "README.md"
|
8
|
+
rd.title = "Lolcommits Glitch Plugin"
|
9
|
+
rd.rdoc_dir = "doc"
|
10
|
+
rd.options << "--all"
|
11
|
+
rd.rdoc_files.include("README.md", "LICENSE", "lib/**/*.rb")
|
12
|
+
end
|
13
|
+
|
14
|
+
# run tests
|
15
|
+
Rake::TestTask.new(:test) do |t|
|
16
|
+
t.libs << "test"
|
17
|
+
t.libs << "lib"
|
18
|
+
t.test_files = FileList["test/**/*_test.rb"]
|
19
|
+
end
|
20
|
+
|
21
|
+
# run tests with code coverage (default)
|
22
|
+
namespace :test do
|
23
|
+
desc "Run all tests and features and generate a code coverage report"
|
24
|
+
task :coverage do
|
25
|
+
ENV['COVERAGE'] = 'true'
|
26
|
+
Rake::Task['test'].execute
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
|
31
|
+
task :default => ['test:coverage']
|
Binary file
|
Binary file
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "lolcommits/glitch"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
@@ -0,0 +1,122 @@
|
|
1
|
+
require "lolcommits/plugin/base"
|
2
|
+
require "rmagick"
|
3
|
+
require "faker"
|
4
|
+
|
5
|
+
include Magick
|
6
|
+
|
7
|
+
module Lolcommits
|
8
|
+
module Plugin
|
9
|
+
class Glitch < Base
|
10
|
+
DEFAULT_GLITCH_LEVEL = 7
|
11
|
+
DEFAULT_GLITCH_CHANCE = 100
|
12
|
+
|
13
|
+
COMPOSITE_OPERATORS = [
|
14
|
+
Magick::AddCompositeOp,
|
15
|
+
Magick::AtopCompositeOp,
|
16
|
+
Magick::BumpmapCompositeOp,
|
17
|
+
Magick::ColorBurnCompositeOp,
|
18
|
+
Magick::ColorDodgeCompositeOp,
|
19
|
+
Magick::ColorizeCompositeOp,
|
20
|
+
Magick::HardLightCompositeOp,
|
21
|
+
Magick::HueCompositeOp,
|
22
|
+
Magick::InCompositeOp,
|
23
|
+
Magick::LightenCompositeOp,
|
24
|
+
Magick::LinearBurnCompositeOp,
|
25
|
+
Magick::LinearDodgeCompositeOp,
|
26
|
+
Magick::LinearLightCompositeOp,
|
27
|
+
Magick::LuminizeCompositeOp,
|
28
|
+
Magick::MultiplyCompositeOp,
|
29
|
+
Magick::PegtopLightCompositeOp,
|
30
|
+
Magick::PinLightCompositeOp,
|
31
|
+
Magick::PlusCompositeOp,
|
32
|
+
Magick::ReplaceCompositeOp,
|
33
|
+
Magick::SaturateCompositeOp,
|
34
|
+
Magick::SoftLightCompositeOp,
|
35
|
+
Magick::VividLightCompositeOp,
|
36
|
+
Magick::XorCompositeOp,
|
37
|
+
]
|
38
|
+
|
39
|
+
def run_post_capture
|
40
|
+
images = Magick::Image.read(runner.main_image)
|
41
|
+
glitch_image = image = images.first
|
42
|
+
|
43
|
+
wax_poetic
|
44
|
+
if rand(100) < config_option(:glitch_probability)
|
45
|
+
debug "Glitching #{width(image)} x #{height(image)} #{config_option(:glitch_level)} times"
|
46
|
+
glitch_image = glitch_image(image)
|
47
|
+
end
|
48
|
+
|
49
|
+
glitch_image.write runner.main_image
|
50
|
+
end
|
51
|
+
|
52
|
+
def default_options
|
53
|
+
{
|
54
|
+
glitch_level: DEFAULT_GLITCH_LEVEL,
|
55
|
+
glitch_probability: DEFAULT_GLITCH_CHANCE,
|
56
|
+
}
|
57
|
+
end
|
58
|
+
|
59
|
+
def valid_configuration?
|
60
|
+
!@configuration.nil? && !@configuration[:glitch_level].nil?
|
61
|
+
end
|
62
|
+
|
63
|
+
private
|
64
|
+
|
65
|
+
def wax_poetic
|
66
|
+
chance = config_option(:glitch_probability)
|
67
|
+
phrase = [
|
68
|
+
Faker::Hacker.say_something_smart,
|
69
|
+
[Faker::Hacker.ingverb, Faker::Hacker.adjective, Faker::Hacker.noun].join(" "),
|
70
|
+
Faker::Company.bs,
|
71
|
+
Faker::ChuckNorris.fact,
|
72
|
+
"awaiting particle strike",
|
73
|
+
"detecting particle spin",
|
74
|
+
"flipping #{chance} coins",
|
75
|
+
"rolling D#{chance}",
|
76
|
+
].sample
|
77
|
+
puts "Glitch probability generator warming up... #{phrase}"
|
78
|
+
end
|
79
|
+
|
80
|
+
def glitch_image(image)
|
81
|
+
image.dup.tap do |glitch_image|
|
82
|
+
config_option(:glitch_level).times do
|
83
|
+
debug_glitch_iteration glitch_args = glitch_args_for(image)
|
84
|
+
glitch_image.composite!(*glitch_args)
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
def debug_glitch_iteration(args)
|
90
|
+
debug "…Glitching… with #{"%-#{COMPOSITE_OPERATORS.map(&:to_s).map(&:length).max}s" % args[3]} @ #{args[1..2]}"
|
91
|
+
end
|
92
|
+
|
93
|
+
# dont memoize!
|
94
|
+
def glitch_args_for(image)
|
95
|
+
[
|
96
|
+
image,
|
97
|
+
glitch_at_x(image),
|
98
|
+
glitch_at_y(image),
|
99
|
+
COMPOSITE_OPERATORS.sample,
|
100
|
+
]
|
101
|
+
end
|
102
|
+
|
103
|
+
# dont memoize!
|
104
|
+
def glitch_at_x(image)
|
105
|
+
rand(0...width(image)) * [-1, 1].sample
|
106
|
+
end
|
107
|
+
|
108
|
+
# dont memoize!
|
109
|
+
def glitch_at_y(image)
|
110
|
+
rand(0...height(image)) * [-1, 1].sample
|
111
|
+
end
|
112
|
+
|
113
|
+
def width(image)
|
114
|
+
@width ||= image.columns
|
115
|
+
end
|
116
|
+
|
117
|
+
def height(image)
|
118
|
+
@height ||= image.rows
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'lolcommits/glitch/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "lolcommits-glitch"
|
8
|
+
spec.version = Lolcommits::Glitch::VERSION
|
9
|
+
spec.authors = ["Joshua Marker"]
|
10
|
+
spec.email = ["joshua@nowhereville.org"]
|
11
|
+
|
12
|
+
spec.summary = %q{Glitch up your lolcommits}
|
13
|
+
spec.description = %q{Glitch and subliminal messages to delight your colleagues}
|
14
|
+
|
15
|
+
spec.homepage = "https://github.com/tooluser/lolcommits-glitch"
|
16
|
+
spec.license = "LGPL-3.0"
|
17
|
+
|
18
|
+
spec.metadata = {
|
19
|
+
"homepage_uri" => "https://github.com/tooluser/lolcommits-glitch",
|
20
|
+
"changelog_uri" => "https://github.com/tooluser/lolcommits-glitch/blob/master/CHANGELOG.md",
|
21
|
+
"source_code_uri" => "https://github.com/tooluser/lolcommits-glitch",
|
22
|
+
"bug_tracker_uri" => "https://github.com/tooluser/lolcommits-glitch/issues",
|
23
|
+
}
|
24
|
+
|
25
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
26
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
27
|
+
if spec.respond_to?(:metadata)
|
28
|
+
spec.metadata['allowed_push_host'] = "https://rubygems.org"
|
29
|
+
else
|
30
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
31
|
+
"public gem pushes."
|
32
|
+
end
|
33
|
+
|
34
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|features)/}) }
|
35
|
+
spec.test_files = `git ls-files -- {test,features}/*`.split("\n")
|
36
|
+
spec.bindir = "bin"
|
37
|
+
spec.executables = []
|
38
|
+
spec.require_paths = ["lib"]
|
39
|
+
|
40
|
+
spec.required_ruby_version = ">= 2.1"
|
41
|
+
|
42
|
+
spec.add_dependency "faker", "~> 1.8", ">= 1.8.7"
|
43
|
+
spec.add_development_dependency "pry-byebug"
|
44
|
+
spec.add_development_dependency "lolcommits", "~> 0.12", ">= 0.12.0"
|
45
|
+
spec.add_development_dependency "bundler", "~> 2.0", ">= 2.0.0"
|
46
|
+
spec.add_development_dependency "rake", "~> 12.3", ">= 12.3.0"
|
47
|
+
spec.add_development_dependency "pry"
|
48
|
+
end
|
metadata
ADDED
@@ -0,0 +1,170 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: lolcommits-glitch
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Joshua Marker
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-02-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: faker
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.8'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 1.8.7
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.8'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 1.8.7
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: pry-byebug
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
type: :development
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: lolcommits
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0.12'
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 0.12.0
|
57
|
+
type: :development
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - "~>"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0.12'
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 0.12.0
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
name: bundler
|
69
|
+
requirement: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - "~>"
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '2.0'
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 2.0.0
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '2.0'
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: 2.0.0
|
87
|
+
- !ruby/object:Gem::Dependency
|
88
|
+
name: rake
|
89
|
+
requirement: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - "~>"
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '12.3'
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 12.3.0
|
97
|
+
type: :development
|
98
|
+
prerelease: false
|
99
|
+
version_requirements: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '12.3'
|
104
|
+
- - ">="
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: 12.3.0
|
107
|
+
- !ruby/object:Gem::Dependency
|
108
|
+
name: pry
|
109
|
+
requirement: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - ">="
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '0'
|
114
|
+
type: :development
|
115
|
+
prerelease: false
|
116
|
+
version_requirements: !ruby/object:Gem::Requirement
|
117
|
+
requirements:
|
118
|
+
- - ">="
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: '0'
|
121
|
+
description: Glitch and subliminal messages to delight your colleagues
|
122
|
+
email:
|
123
|
+
- joshua@nowhereville.org
|
124
|
+
executables: []
|
125
|
+
extensions: []
|
126
|
+
extra_rdoc_files: []
|
127
|
+
files:
|
128
|
+
- ".gitignore"
|
129
|
+
- Gemfile
|
130
|
+
- LICENSE
|
131
|
+
- README.md
|
132
|
+
- Rakefile
|
133
|
+
- assets/images/96385860786.jpg
|
134
|
+
- assets/images/ab409ebe370.jpg
|
135
|
+
- bin/console
|
136
|
+
- bin/setup
|
137
|
+
- lib/lolcommits/glitch.rb
|
138
|
+
- lib/lolcommits/glitch/version.rb
|
139
|
+
- lib/lolcommits/plugin/glitch.rb
|
140
|
+
- lolcommits-glitch.gemspec
|
141
|
+
homepage: https://github.com/tooluser/lolcommits-glitch
|
142
|
+
licenses:
|
143
|
+
- LGPL-3.0
|
144
|
+
metadata:
|
145
|
+
homepage_uri: https://github.com/tooluser/lolcommits-glitch
|
146
|
+
changelog_uri: https://github.com/tooluser/lolcommits-glitch/blob/master/CHANGELOG.md
|
147
|
+
source_code_uri: https://github.com/tooluser/lolcommits-glitch
|
148
|
+
bug_tracker_uri: https://github.com/tooluser/lolcommits-glitch/issues
|
149
|
+
allowed_push_host: https://rubygems.org
|
150
|
+
post_install_message:
|
151
|
+
rdoc_options: []
|
152
|
+
require_paths:
|
153
|
+
- lib
|
154
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - ">="
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '2.1'
|
159
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
160
|
+
requirements:
|
161
|
+
- - ">="
|
162
|
+
- !ruby/object:Gem::Version
|
163
|
+
version: '0'
|
164
|
+
requirements: []
|
165
|
+
rubyforge_project:
|
166
|
+
rubygems_version: 2.6.14.1
|
167
|
+
signing_key:
|
168
|
+
specification_version: 4
|
169
|
+
summary: Glitch up your lolcommits
|
170
|
+
test_files: []
|