onetime-up 0.6.2 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/onetime +7 -0
- data/lib/onetime/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 608460e67b5939792b49aad0117baa385911125337337624113f4e1a95388063
|
|
4
|
+
data.tar.gz: ff189cbd5cd36d19e102dea6dcd16acc2015a7de13400b5c42bd2638152e4533
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dfd25117746474d2ccb452aaeeaa5dcbb4b8ebe3c4a28c078ed11f33c2011bb19d60a25058be2a1fa5e9f98a9e56da75a4a5c877a7c559b6305f40753f38c031
|
|
7
|
+
data.tar.gz: 66b1255b1dd1d9f8c18e7e617daea8034ad518a0391f230276cb93a919a054a733fd2d2040ce3086c012ac29fc0dc76a824578e5e2f27acc2f584f2cbe3bfbf2
|
data/bin/onetime
CHANGED
|
@@ -177,6 +177,13 @@ class Onetime::CLI
|
|
|
177
177
|
option :p, :passphrase, String, "Passphrase to encrypt the secret (something only you and recipient know)"
|
|
178
178
|
option :r, :recipient, Array, "Email address to deliver the secret link"
|
|
179
179
|
command :generate do |obj|
|
|
180
|
+
extra_args = Array(obj.argv).flatten.compact
|
|
181
|
+
unless extra_args.empty?
|
|
182
|
+
raise RuntimeError, "generate takes no arguments (got: %s). Did you mean: onetime share < %s" % [extra_args.join(' '), extra_args.first]
|
|
183
|
+
end
|
|
184
|
+
if !$stdin.tty? && !$stdin.eof?
|
|
185
|
+
raise RuntimeError, "generate does not read stdin. Did you mean: onetime share"
|
|
186
|
+
end
|
|
180
187
|
recipients = [obj.option.recipient, obj.global.recipient].flatten.compact.uniq
|
|
181
188
|
opts = { :ttl => obj.option.ttl, :recipient => recipients }
|
|
182
189
|
opts[:passphrase] = obj.option.passphrase if obj.option.passphrase
|
data/lib/onetime/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: onetime-up
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Delano Mandelbaum
|
|
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
102
102
|
- !ruby/object:Gem::Version
|
|
103
103
|
version: 2.0.0
|
|
104
104
|
requirements: []
|
|
105
|
-
rubygems_version: 4.0.
|
|
105
|
+
rubygems_version: 4.0.9
|
|
106
106
|
specification_version: 4
|
|
107
107
|
summary: Command-line tool and library for onetimesecret.com API (API v2)
|
|
108
108
|
test_files: []
|