ncypher 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +5 -13
  2. data/README.md +6 -1
  3. data/exe/ncypher +4 -10
  4. data/lib/ncypher/version.rb +1 -1
  5. metadata +17 -17
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- OTRjMTEyYzk5MzAwZjg1YWEyOWJjYzhhOWE3MWJhZTVmZDY4YzFlMg==
5
- data.tar.gz: !binary |-
6
- Y2Y5ODBmNjRkNDgxMWExMjk0OWI4NGM2MTZkYTIwNGM4ZDNlNzZhNw==
2
+ SHA1:
3
+ metadata.gz: 6c9b9a1e596c95f752611a13bac4579f743b8275
4
+ data.tar.gz: 7e3700161dde7dd891146e014c9a785ed5830ea6
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- NDk4MGY2YmM5NWQxZjAwNTI3MmFkMDczMTFlNjMyMGRlMTMxNTMwYTQ1OTE2
10
- ZTVhMjIzZjFjNDFhYjMyN2MyOTFkNzdmMzM3ODg1OTYxOWUzZmQ4MDQxYTI0
11
- YzU1ODkzZWE3NzY0MWFjN2E5OTFkZDZiMjU5N2Y1ZjdiYzlkNTc=
12
- data.tar.gz: !binary |-
13
- NWQ1Yzk1ZTgzMTI0MGJjYzUwMmI3ZDJmMjdiNDNlNThlZDI2MjRhMjE3ZThm
14
- OGU1MmIzODM5OGEyN2QwNjM1OWE0ZmE2MWM2MzQ4YTA2ODYyNThkOGUyMjdl
15
- YzhhNGUwYjFjMWVhZmU2NDBmODc3MmZlNWUyYjEyMWVjMGMxNWI=
6
+ metadata.gz: e829c4e976f81855f17b5776b7e2a6b7b78b136d6c35f247e7bf41c362e8994e8e6b44b0bd2806ab0db842aaeb6b44c985ee954eb35dbd5337c017fb09780eef
7
+ data.tar.gz: e0ded75c35de3557e0168e5c6a617cefd2ed30b5fe3ed03d5eefbef6d58061aa1417bc20bd6b2e86e94dfd0002c8690aa4c0a2503b54913ed90c24c6d9e06981
data/README.md CHANGED
@@ -1,5 +1,4 @@
1
1
  [![Code Climate](https://codeclimate.com/github/pcboy/ncypher/badges/gpa.svg)](https://codeclimate.com/github/pcboy/ncypher)
2
- [![codebeat badge](https://codebeat.co/badges/411b2b78-0734-40ec-9ca2-4383f66cf92f)](https://codebeat.co/projects/github-com-pcboy-ncypher)
3
2
  [![Build Status](https://travis-ci.org/pcboy/ncypher.svg)](https://travis-ci.org/pcboy/ncypher)
4
3
 
5
4
  # Ncypher
@@ -57,6 +56,12 @@ p4$$w0rd
57
56
 
58
57
  :)
59
58
 
59
+ ncypher also supports stdin. So you can do
60
+ ```
61
+ $> cat secret_file | ncypher encrypt > secret_file.encrypted
62
+ $> cat secret_file.encrypted | ncypher decrypt > secret_file
63
+ ```
64
+
60
65
  ## Development
61
66
 
62
67
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -19,15 +19,9 @@ case cmd
19
19
  when "key"
20
20
  puts Ncypher::Ncypher.new.key_b64
21
21
  when "encrypt"
22
- if text = ARGV.shift
23
- puts Ncypher::Ncypher.new.encrypt(text)
24
- else
25
- STDERR.puts "usage: Ncypher encrypt <text>"
26
- end
22
+ text = (ARGV.shift || STDIN.read)
23
+ puts Ncypher::Ncypher.new.encrypt(text)
27
24
  when "decrypt"
28
- if text = ARGV.shift
29
- puts Ncypher::Ncypher.new.decrypt(text)
30
- else
31
- STDERR.puts "usage: Ncypher decrypt <text>"
32
- end
25
+ text = (ARGV.shift || STDIN.read)
26
+ puts Ncypher::Ncypher.new.decrypt(text)
33
27
  end
@@ -1,3 +1,3 @@
1
1
  module Ncypher
2
- VERSION = "0.5.0"
2
+ VERSION = "0.6.0"
3
3
  end
metadata CHANGED
@@ -1,83 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ncypher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Hagege
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-19 00:00:00.000000000 Z
11
+ date: 2017-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.12'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.12'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '5.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '5.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rbnacl-libsodium
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '1.0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rbnacl
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '3.0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '3.0'
83
83
  description: ''
@@ -88,8 +88,8 @@ executables:
88
88
  extensions: []
89
89
  extra_rdoc_files: []
90
90
  files:
91
- - .gitignore
92
- - .travis.yml
91
+ - ".gitignore"
92
+ - ".travis.yml"
93
93
  - CODE_OF_CONDUCT.md
94
94
  - Gemfile
95
95
  - LICENSE.txt
@@ -111,17 +111,17 @@ require_paths:
111
111
  - lib
112
112
  required_ruby_version: !ruby/object:Gem::Requirement
113
113
  requirements:
114
- - - ! '>='
114
+ - - ">="
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
117
  required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  requirements:
119
- - - ! '>='
119
+ - - ">="
120
120
  - !ruby/object:Gem::Version
121
121
  version: '0'
122
122
  requirements: []
123
123
  rubyforge_project:
124
- rubygems_version: 2.4.5
124
+ rubygems_version: 2.4.6
125
125
  signing_key:
126
126
  specification_version: 4
127
127
  summary: Ncypher lets you encrypt/decrypt credentials in a safe and transparent way