memegen-ng 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ddebc0fd45e6e965d4a3f1849261edb51a1a9b9c
4
+ data.tar.gz: 287490254ecb9400dbed2dfdf60b7e3913270ea5
5
+ SHA512:
6
+ metadata.gz: 503b0bee738fb94cd643746beba1bb9ebe9c4331f85e4eaa46eed60ff25271105b0694b0d9bb41f621f31496107e1edbbeaf5b57b6f5c8422e981a9870f930e4
7
+ data.tar.gz: abe24e4792a711d02f927d2e7912ab5cb86ffaf66e9fe2b74ecbdc22464446b5098a278acf640d585f6fc5a219324f3d3af297876a03b62e78bb97d20d2b7660
@@ -0,0 +1,5 @@
1
+ pkg/*.gem
2
+ coverage/
3
+ .coveralls.yml
4
+ .bundle
5
+ Gemfile.lock
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format Fuubar
2
+ --color
@@ -0,0 +1,2 @@
1
+ Encoding:
2
+ Enabled: false
@@ -0,0 +1,13 @@
1
+ language: ruby
2
+ cache: bundler
3
+ rvm:
4
+ - 2.1.0
5
+ - 2.0.0
6
+ - 1.9.3
7
+ notifications:
8
+ email: false
9
+ irc:
10
+ template:
11
+ - "%{repository}/%{branch}/%{build_number}: %{message} -- %{build_url}"
12
+ channels:
13
+ secure: apfile13u7nRXFlnUW6xFVfs5pjLPRWPmQxx841vs98ykhjl71JNFpU/Hx2zJRqd3qmyyF3UAfS1xAEDlFmrwfNDC7+UZwLWS7L5MGqaLxtalnDviiSp+VwjsfhDCkoWmt6RBsLH666l34+m2sXnbyAlZ7J0zKiNzIbxzXnYEpw=
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014 Les Aker
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
22
+
@@ -0,0 +1,36 @@
1
+ memegen-ng
2
+ =========
3
+
4
+ [![Gem Version](https://img.shields.io/gem/v/memegen-ng.svg)](https://rubygems.org/gems/memegen-ng)
5
+ [![Dependency Status](https://img.shields.io/gemnasium/akerl/memegen-ng.svg)](https://gemnasium.com/akerl/memegen-ng)
6
+ [![Code Climate](https://img.shields.io/codeclimate/github/akerl/memegen-ng.svg)](https://codeclimate.com/github/akerl/memegen-ng)
7
+ [![Coverage Status](https://img.shields.io/coveralls/akerl/memegen-ng.svg)](https://coveralls.io/r/akerl/memegen-ng)
8
+ [![Build Status](https://img.shields.io/travis/akerl/memegen-ng.svg)](https://travis-ci.org/akerl/memegen-ng)
9
+ [![MIT Licensed](https://img.shields.io/badge/license-MIT-green.svg)](https://tldrlegal.com/license/mit-license)
10
+
11
+ Meme generator based on [memegen](https://github.com/cmdrkeene/memegen)
12
+
13
+ ## Usage
14
+
15
+ Run memegen with no arguments to list the available images:
16
+
17
+ EXAMPLE_HERE
18
+
19
+ To make an image, provide an image name, top text, and bottom text. Either of the texts can be empty.
20
+
21
+ EXAMPLE_HERE
22
+
23
+ EXAMPLE_IMAGE_HERE
24
+
25
+ ## Installation
26
+
27
+ You'll need to install [ImageMagick](http://www.imagemagick.org/script/index.php) and [ghostscript](http://www.ghostscript.com/). On Macs, the easiest way is via [Homebrew](http://brew.sh/), where the packages are helpfully called "imagemagick" and "ghostscript".
28
+
29
+ Once you have those taken care of, install the gem:
30
+
31
+ gem install memegen-ng
32
+
33
+ ## License
34
+
35
+ memegen is released under the MIT License. See the bundled LICENSE file for details.
36
+
@@ -0,0 +1,14 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+ require 'rubocop/rake_task'
4
+
5
+ desc 'Run tests'
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ desc 'Run Rubocop on the gem'
9
+ Rubocop::RakeTask.new(:rubocop) do |task|
10
+ task.patterns = ['lib/**/*.rb', 'spec/**/*.rb']
11
+ task.fail_on_error = true
12
+ end
13
+
14
+ task default: [:spec, :rubocop, :build, :install]
File without changes
@@ -0,0 +1,19 @@
1
+ ##
2
+ # memegen-ng generates meme images using imagemagick
3
+ module MemeGen
4
+ RESOURCE_PATH = Pathname.new(__FILE__).realpath.split[0].to_s + '/resources'
5
+
6
+ class << self
7
+ ##
8
+ # Insert a helper .new() method for creating a Meme object
9
+
10
+ def new(*args)
11
+ MemeGen::Meme.new(*args)
12
+ end
13
+ end
14
+
15
+ ##
16
+ # Meme object
17
+ class Meme
18
+ end
19
+ end
@@ -0,0 +1,24 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = 'memegen-ng'
3
+ s.version = '0.0.1'
4
+ s.date = Time.now.strftime("%Y-%m-%d")
5
+
6
+ s.summary = 'Meme generator'
7
+ s.description = "Generates meme images using imagemagick"
8
+ s.authors = ['Les Aker']
9
+ s.email = 'me@lesaker.org'
10
+ s.homepage = 'https://github.com/akerl/memegen-ng'
11
+ s.license = 'MIT'
12
+
13
+ s.files = `git ls-files`.split
14
+ s.test_files = `git ls-files spec/*`.split
15
+ s.executables = ['memegen']
16
+
17
+ s.add_dependency 'rmagick', '~> 2.13.2'
18
+
19
+ s.add_development_dependency 'rubocop', '~> 0.20.0'
20
+ s.add_development_dependency 'rake', '~> 10.3.0'
21
+ s.add_development_dependency 'coveralls', '~> 0.7.0'
22
+ s.add_development_dependency 'rspec', '~> 2.14.1'
23
+ s.add_development_dependency 'fuubar', '~> 1.3.2'
24
+ end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ describe MemeGen do
4
+ describe '#new' do
5
+ it 'creates Meme objects' do
6
+ expect(MemeGen.new).to be_an_instance_of MemeGen::Meme
7
+ end
8
+ end
9
+
10
+ describe MemeGen::Meme do
11
+ end
12
+ end
@@ -0,0 +1,10 @@
1
+ require 'simplecov'
2
+ require 'coveralls'
3
+
4
+ SimpleCov.formatter = Coveralls::SimpleCov::Formatter
5
+ SimpleCov.start do
6
+ add_filter '/spec/'
7
+ end
8
+
9
+ require 'rspec'
10
+ require 'memegen'
metadata ADDED
@@ -0,0 +1,144 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: memegen-ng
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Les Aker
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-04-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rmagick
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 2.13.2
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 2.13.2
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.20.0
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.20.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 10.3.0
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 10.3.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: coveralls
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.7.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.7.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 2.14.1
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 2.14.1
83
+ - !ruby/object:Gem::Dependency
84
+ name: fuubar
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 1.3.2
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 1.3.2
97
+ description: Generates meme images using imagemagick
98
+ email: me@lesaker.org
99
+ executables:
100
+ - memegen
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - ".gitignore"
105
+ - ".rspec"
106
+ - ".rubocop.yml"
107
+ - ".travis.yml"
108
+ - Gemfile
109
+ - LICENSE
110
+ - README.md
111
+ - Rakefile
112
+ - bin/memegen
113
+ - lib/memegen.rb
114
+ - memegen-ng.gemspec
115
+ - resources/fonts/Impact.ttf
116
+ - spec/memegen_spec.rb
117
+ - spec/spec_helper.rb
118
+ homepage: https://github.com/akerl/memegen-ng
119
+ licenses:
120
+ - MIT
121
+ metadata: {}
122
+ post_install_message:
123
+ rdoc_options: []
124
+ require_paths:
125
+ - lib
126
+ required_ruby_version: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
131
+ required_rubygems_version: !ruby/object:Gem::Requirement
132
+ requirements:
133
+ - - ">="
134
+ - !ruby/object:Gem::Version
135
+ version: '0'
136
+ requirements: []
137
+ rubyforge_project:
138
+ rubygems_version: 2.0.14
139
+ signing_key:
140
+ specification_version: 4
141
+ summary: Meme generator
142
+ test_files:
143
+ - spec/memegen_spec.rb
144
+ - spec/spec_helper.rb