aaq 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: 5d97d8f9bcdcb551beb826b56ac19446d65ee049f31d65b8bbcf19e5a9e1e4f2
4
- data.tar.gz: c47cf6ae819cde7f8382590200bd75faf114745029662082d98c2bb46fbbd21a
3
+ metadata.gz: 9cab226391144dd5064b2fbc96b924636e269a9c2603d18d4fb60d414849acfe
4
+ data.tar.gz: 1af17ec31992d271aac400c3ce47d1faf58960853ef59fd7c3cc97e37b6c5a2b
5
5
  SHA512:
6
- metadata.gz: e1efa723ac14dbf45d5cd5f2e3129d412d57025fdac3626cd590ffc68b865c4a7a60088017ffe1597a693cb8045010f068667205b5c66e97981bce1108c5627e
7
- data.tar.gz: d00cea0bb3ff14f9bdd8addb8e7030364d540de93242e23b84655eb1b7aa2e661e8ad41f97f29d2ae082ca10221c48ebbd7d0494b6c5acd7fcf9fe1adaf2751c
6
+ metadata.gz: 7fc18b47144a71608afad1515da2c45845223ba4237a1ccbce60431742f253330abc9ffa0271c6b458b7c16b411c60245e62c671588cdd9cef2733a528f58259
7
+ data.tar.gz: a104f1ee0769d0de1de81fd4e7d6d676f8191af18b4f6a246076fe6375421262a8a268cf8b85daca41f310fcfa2c18ac07b1fbbc0cd33e23cb2e00ab090b7636
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2018-07-16 06:42:25 +0900 using RuboCop version 0.58.1.
3
+ # on 2018-07-18 22:17:05 +0900 using RuboCop version 0.58.1.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
@@ -36,7 +36,7 @@ Naming/UncommunicativeMethodParamName:
36
36
  # Offense count: 1
37
37
  Security/Eval:
38
38
  Exclude:
39
- - 'bin/aaq'
39
+ - 'exe/aaq'
40
40
 
41
41
  # Offense count: 1
42
42
  Security/Open:
data/README.md CHANGED
@@ -1,9 +1,17 @@
1
+
1
2
  # AAQ - Ascii Art Quine
2
3
 
4
+ [![Gem Version](https://badge.fury.io/rb/aaq.svg)](https://badge.fury.io/rb/aaq)
5
+ [![MIT License](https://img.shields.io/github/license/mashape/apistatus.svg)](LICENSE)
6
+
7
+ Create ascii art quine from image file.
8
+
9
+ ![Demo.gif](https://github.com/yskoht/aaq/raw/gif/demo.gif)
10
+
3
11
  ```sh
4
12
  # Download sample image
5
13
  curl -O https://github-media-downloads.s3.amazonaws.com/Octocats.zip && unzip Octocats.zip
6
- aaq Octocat/Octocat.png --color
14
+ bundle exec aaq Octocat/Octocat.png --color
7
15
  ```
8
16
 
9
17
  ## Installation
@@ -31,25 +39,25 @@ $ gem install aaq
31
39
  Simple quine.
32
40
 
33
41
  ```sh
34
- aaq Octocat/Octocat.png
42
+ bundle exec aaq Octocat/Octocat.png
35
43
  ```
36
44
 
37
45
  Colorful quine.
38
46
 
39
47
  ```sh
40
- aaq Octocat/Octocat.png --color
48
+ bundle exec aaq Octocat/Octocat.png --color
41
49
  ```
42
50
 
43
51
  Delete escape sequence.
44
52
 
45
53
  ```sh
46
- aaq Octocat/Octocat.png --color | ruby -ne 'puts $_.gsub(/\e.*?m/, "")' | ruby
54
+ bundle exec aaq Octocat/Octocat.png --color | ruby -ne 'puts $_.gsub(/\e.*?m/, "")' | ruby
47
55
  ```
48
56
 
49
57
  Put `--color` option.
50
58
 
51
59
  ```sh
52
- aaq Octocat/Octocat.png | xargs -0 -J % ruby -e % '' --color
60
+ bundle exec aaq Octocat/Octocat.png | xargs -0 -J % ruby -e % '' --color
53
61
  ```
54
62
 
55
63
  In source code.
data/exe/aaq CHANGED
@@ -11,4 +11,8 @@ opt.banner = 'Usage: bundle exec aaq [image] [--color]'
11
11
  opt.on('--color', 'output color ascii-art')
12
12
  args = opt.parse(ARGV)
13
13
 
14
- eval AAQ::AAQ.new(args[0]).convert.to_s
14
+ if args.empty?
15
+ puts opt.help
16
+ else
17
+ eval AAQ::AAQ.new(args[0]).convert.to_s
18
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AAQ
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aaq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - yskoht
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-16 00:00:00.000000000 Z
11
+ date: 2018-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler