readonce 1.0.0 → 1.0.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: 00699973a8a36e6611b8b3ee1370a2dce4c6d9c0
4
- data.tar.gz: ec5ba588479252584f3f41e41ea1ea2a3839b734
3
+ metadata.gz: 93b215aafa56bea915fd4f069891b1a90e105562
4
+ data.tar.gz: 1f8a0283e4f3f4cb13e229126021297a34b80053
5
5
  SHA512:
6
- metadata.gz: a2cdd4c7c2d487aacad5e5bc3630a9541ee7f2ca7069f58ab377ec3f2ab1657e69807adb0029dfe8e909ede5a1a89623b96d8b7e772c87aa92ad6ebef464510a
7
- data.tar.gz: 67452cf4b7dd77bed05132d04fd2dfc45573748672cfa4ab853ef1a0470b7a794f3b21536c2a7bd6c68402f0025497aed1fe53c39cb337c93f45b7cd6727e46b
6
+ metadata.gz: 96cf6fbb23f2c65bc3bdf89b3f20ba9328f45d65367517d614e751670cccbda7f7725f1453113b49b5870ebd4af2423c1b3335607e0cbdc65cd94f129469b51b
7
+ data.tar.gz: 1c5ca0e836d24420796b552638d9a6d3e6ae0a0614e6e484e9ef958b8c2f8ec45f8fb2acd6b565b158aca54cc11630b547c1a8721aed611d7428a03c7aa4774e
data/README.md CHANGED
@@ -1,38 +1,32 @@
1
- # Readonce
1
+ # ReadOnce
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/readonce`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ Readonce is a command line utility for sharing passwords and other private information with exactly one person.
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
5
+ This CLI takes any data from STDIN, pushes it to the [readonce-server web service](https://github.com/freerobby/readonce-server), and returns a unique URL where the data can be queried exactly once.
6
6
 
7
- ## Installation
8
-
9
- Add this line to your application's Gemfile:
10
-
11
- ```ruby
12
- gem 'readonce'
13
- ```
7
+ As soon as the first request for a given key is received by the web service, its associated data are deleted.
14
8
 
15
- And then execute:
9
+ ## Installation
16
10
 
17
- $ bundle
11
+ `gem install readonce` -- that's it!
18
12
 
19
- Or install it yourself as:
13
+ ## Usage
20
14
 
21
- $ gem install readonce
15
+ To share a line of text, such as a password, use:
22
16
 
23
- ## Usage
17
+ `echo "foobar123" | readonce`
24
18
 
25
- TODO: Write usage instructions here
19
+ To share a file, such as a private key, use:
26
20
 
27
- ## Development
21
+ `readonce < mykey.pem`
28
22
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
23
+ You can check whether your readonce data has been accessed with:
30
24
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
25
+ `readonce -s <key>`
32
26
 
33
- ## Contributing
27
+ Or, you can have readonce block until it has been accessed, so you can see exactly when the recipient has viewed it:
34
28
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/readonce.
29
+ `readonce -w < mykey.pem` or `readonce -w <key>`
36
30
 
37
31
 
38
32
  ## License
@@ -1,3 +1,3 @@
1
1
  module Readonce
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
data/lib/readonce.rb CHANGED
@@ -3,7 +3,7 @@ require 'readonce/version'
3
3
  require 'httparty'
4
4
 
5
5
  class ReadOnce
6
- BASE_URI = 'http://readonce-production.herokuapp.com'
6
+ BASE_URI = 'https://readonce-production.herokuapp.com'
7
7
 
8
8
  def self.from_key(key)
9
9
  r = ReadOnce.new
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: readonce
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robby Grossman