lgtm_hd 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +26 -6
- data/lib/lgtm_hd.rb +1 -1
- data/lib/lgtm_hd/configuration.rb +0 -1
- data/lib/lgtm_hd/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86111bb4983474fd5901eb15e28388b882d98b83
|
4
|
+
data.tar.gz: c1a7f560c583ae632623fc57641439fc4d525edb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc9e1dba8a4d7194fd387d7116732bef293011b8c835be88ebef7991619e4d60bda8c4a197b809219e731f211fa3bef25fdfeed81aef57ebc2246528a69c2939
|
7
|
+
data.tar.gz: a30eb21cf655aae8a4e56f762c8aa7185e194080b2936e910472835e8ef1eef2e0e7dad1d7782f844b79317db09866494e5af19acb191eeb2516835e00d88027
|
data/README.md
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
[![Build Status](https://travis-ci.org/phradion/lgtm_hd.svg?branch=master)](https://travis-ci.org/phradion/lgtm_hd)
|
3
3
|
[![Code Climate](https://codeclimate.com/github/phradion/lgtm_hd/badges/gpa.svg)](https://codeclimate.com/github/phradion/lgtm_hd)
|
4
4
|
[![Test Coverage](https://codeclimate.com/github/phradion/lgtm_hd/badges/coverage.svg)](https://codeclimate.com/github/phradion/lgtm_hd/coverage)
|
5
|
+
[![Gem Version](https://badge.fury.io/rb/lgtm_hd.svg)](https://badge.fury.io/rb/lgtm_hd)
|
5
6
|
|
6
7
|
This game is for LGTM lovers that want to generate cool shits without leaving their terminal.
|
7
8
|
|
@@ -15,25 +16,34 @@ Source | Happy Taeyeon!
|
|
15
16
|
:-------------------------:|:-------------------------:
|
16
17
|
![](./images/example_2_before.png?raw=true) | ![](./images/example_2_after.jpg?raw=true)
|
17
18
|
|
19
|
+
|
18
20
|
## Installation
|
21
|
+
|
19
22
|
$ gem install lgtm_hd
|
20
23
|
|
21
24
|
## Usage
|
22
|
-
|
23
|
-
$ lgtm_hd
|
25
|
+
|
26
|
+
$ lgtm_hd [transform] <source> <output> [--clipboard]
|
27
|
+
$ lgtm_hd http://domain.com/image.jpg /path/lgtm.jpg
|
28
|
+
|
29
|
+
# Default command is transform so you can just leave the command empty.
|
24
30
|
|
25
31
|
## Features
|
26
|
-
|
32
|
+
|
33
|
+
* Smart Color - render White or Black caption based on the background\'s darkness
|
27
34
|
* Source Image - Support Offline (file) or Online (url)
|
28
35
|
* Caption Position - Top Center or Bottom Center positions for the caption
|
29
36
|
* Auto Clipboard - MacOSX user can just paste directly to comment box on Github after running the programm. On other OSes the clipboard only returns the path to the generated LGTM image.
|
30
37
|
* Formats - GIF, PNG, JPEG (SVG and TIFF not tested yet)
|
31
38
|
* Max Image size is 500px by 500px
|
32
|
-
|
33
|
-
|
39
|
+
|
40
|
+
|
41
|
+
## Features TODO List
|
42
|
+
|
43
|
+
* Add options for \[font size, positions\] (Code already setup for this, expect new version soon!)
|
34
44
|
* Add --source-random option incase there is no source provided.
|
35
45
|
* Add --caption-color for more colorful captions
|
36
|
-
*
|
46
|
+
* Integration to lgtm.in
|
37
47
|
* Submission to lgtm.in
|
38
48
|
* Query lgtm or google images and return the first found item
|
39
49
|
* Interactive mode with image preview in ASCII generation
|
@@ -41,7 +51,15 @@ Source | Happy Taeyeon!
|
|
41
51
|
* Add progress bar for the whole generation process
|
42
52
|
* Support multiple LGTM texts
|
43
53
|
|
54
|
+
|
55
|
+
## Development
|
56
|
+
|
57
|
+
* Need to add RSpect test. Target is 90% code coverage on code climate.
|
58
|
+
* Need to refactor Lgtm_HD module for a more generic approach so it can become a meme generator in the future, not just LGTM.
|
59
|
+
|
60
|
+
|
44
61
|
## Contributing
|
62
|
+
|
45
63
|
As I am new in Ruby. Please feel free to help me improving this gem in whatever way you want, for examples, code contributing, code reviewing, manual testing or even just brushing up ideas :)
|
46
64
|
|
47
65
|
Bug reports and pull requests are welcome on GitHub at https://github.com/phradion/lgtm_hd. Of course as long as you follow the [Contributor Covenant](contributor-covenant.org) code of conduct.
|
@@ -51,5 +69,7 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/phradi
|
|
51
69
|
|
52
70
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
53
71
|
|
72
|
+
|
54
73
|
## About Me
|
74
|
+
|
55
75
|
Ruby Newbie and Chandler Bing's big fan.
|
data/lib/lgtm_hd.rb
CHANGED
@@ -5,7 +5,6 @@ module LgtmHD
|
|
5
5
|
DESCRIPTION = "Generating images from user input with LGTM text on it, or fetching images from LGTM.in based on user's query. Finally put the image to clipboard."
|
6
6
|
|
7
7
|
TEMP_FILE_PREFIX = "lgtm_tmp_"
|
8
|
-
ROOT_DIR = ROOT_DIR
|
9
8
|
|
10
9
|
# Output Image configurations
|
11
10
|
OUTPUT_MAX_WIDTH = 500
|
data/lib/lgtm_hd/version.rb
CHANGED