jsonip 1.0.1 → 1.0.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
  SHA1:
3
- metadata.gz: 19daf7e7f93be6b4b9df32fb92c6059d7919b3cf
4
- data.tar.gz: 1c8248df2f5e3979fe763629b30ee5fb8fd63290
3
+ metadata.gz: 0fd9654343b66667b9164da8fbc4058690a5df37
4
+ data.tar.gz: e136420c09a32b296be1e0b8d58103f9a057d242
5
5
  SHA512:
6
- metadata.gz: c2f0a8cbbf8eb12869257a2c44d40b17b7d7806f4a1b95e7978b750d79a39a80830086265cce5136fa4303771b5c6070c60c37bc797c139b5fb150171f94cb62
7
- data.tar.gz: 3ad5c12a70c14f6d57f105ae5e6f624de8ba8dc1b1ca68e5533ee18b024638512fd060e22e6eec46a9d3195d5ed1e42f81bc95a0f8c65722da1e3279a5581a75
6
+ metadata.gz: e90f188dbe07d4ad53fc5a797e9d66aa0af7c8d8988b33be9a68cf7bb42e2b419bc041fabce2f5b8b267083c552dfc4bd382ed8c92218f357f8b89ad6abc868b
7
+ data.tar.gz: 4896cf9e834bbb0347b49d1ce83df5ff9f68fd0bcd98a98b3afa0ff800689323c91a23974913aa601fe2e38df787ec634b1f53766ebc5fd3ec529e68cf1d41b9
@@ -5,8 +5,15 @@ module Jsonip
5
5
  class CLI < Thor
6
6
  default_task :copy
7
7
 
8
+ map '-S' => 'script'
9
+
8
10
  class_option :quiet, type: :boolean, aliases: [ '-q', '-s', '--silent' ], desc: 'Prints minimal output. Useful for shell scripts and pipes'
9
11
 
12
+ desc "script", "Like print --quiet. Useful for shell scripts and pipes."
13
+ def script
14
+ say json_ip
15
+ end
16
+
10
17
  desc "print", "Prints your IP, but dont copy"
11
18
  def print
12
19
  say print_message
@@ -1,3 +1,3 @@
1
1
  module Jsonip
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsonip
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jorge Calás Lozano