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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 70dc66e657f36492cba7d2ab4d499ecadc3a9844
4
- data.tar.gz: a1640c33d4b8dc485942c5c3def55eb3610adc36
3
+ metadata.gz: 86111bb4983474fd5901eb15e28388b882d98b83
4
+ data.tar.gz: c1a7f560c583ae632623fc57641439fc4d525edb
5
5
  SHA512:
6
- metadata.gz: 95b3fafc218b4c4ff43482c59ec75e9c25c87f64d07dc317e2d7de601f171c4190ad41e19a1c74457c4b602c8d63a0585766317a022ab06c0bfe117657309f46
7
- data.tar.gz: fe2e5eeb2c373c414ad4d5405bcf824203e4cc601eb73c0c2330c3a31a2a33865e4904533a946562860816c19a7e799bc7b2d69deb44f70f771a836ef5a9222d
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
- $ lgtm_hd <source> <output> [--clipboard]
23
- $ lgtm_hd http://domain.com/image.jpg /path/lgtm.jpg
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
- * Smart Color - render White or Black caption based on the background's darkness
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
- ## TODO List
33
- * Add options for [font size, positions] (Code already setup for this, expect new version soon!)
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
- * Integrate with lgtm.in or google images
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.
@@ -65,7 +65,7 @@ module LgtmHD
65
65
  end
66
66
 
67
67
  def captionFont
68
- Configuration::ROOT_DIR << Configuration::FONT_PATH
68
+ '' << ROOT_DIR << Configuration::FONT_PATH
69
69
  end
70
70
 
71
71
  def captionFontSize
@@ -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
@@ -1,3 +1,3 @@
1
1
  module LgtmHD
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lgtm_hd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Huy Dinh