opensecret 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/opensecret +9 -0
- data/lib/opensecret/safe.rb +18 -0
- data/lib/opensecret/version.rb +1 -1
- data/opensecret.gemspec +4 -3
- metadata +9 -8
- data/bin/console +0 -14
- data/bin/setup +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86ac9e31e1cc902c7acb285bedb1ba5079b5f6ae
|
4
|
+
data.tar.gz: 93b0f8d56f778c8e1448b43bbbf587086945cd0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4d7e2d75d0b5910e61754f290bf45d3f4f289f061055349127bbe4cc1c3ae44962c898bb7ae4c6b17825f323d6c7e58f63baed851571ce69f492710490f2287
|
7
|
+
data.tar.gz: 4fa24e78d89375ca01b654fd980a8dd19a214626ec57b3bc242e0ce1753c3455ef48f4acc2da0e69c02c3ce85e090a8f4ec69d4ec00daf2e4d887629adce7a06
|
data/bin/opensecret
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
|
2
|
+
module OpenSecret
|
3
|
+
|
4
|
+
class Safe
|
5
|
+
|
6
|
+
def verbose_lock
|
7
|
+
|
8
|
+
time = Time.now
|
9
|
+
minute = time.min
|
10
|
+
hour = time.hour % 12
|
11
|
+
meridian_indicator = time.hour < 12 ? 'AM' : 'PM'
|
12
|
+
"You locked me at #{minute} minutes past #{hour} o'clock, #{meridian_indicator}"
|
13
|
+
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
data/lib/opensecret/version.rb
CHANGED
data/opensecret.gemspec
CHANGED
@@ -27,14 +27,15 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
28
28
|
f.match(%r{^(test|spec|features)/})
|
29
29
|
end
|
30
|
-
|
31
|
-
spec.
|
30
|
+
|
31
|
+
spec.bindir = "bin"
|
32
|
+
spec.executables = ['opensecret']
|
32
33
|
spec.require_paths = ["lib"]
|
33
34
|
|
34
35
|
spec.add_development_dependency "bundler", "~> 1.16"
|
35
36
|
spec.add_development_dependency "rake", "~> 10.0"
|
36
37
|
spec.add_development_dependency "minitest", "~> 5.0"
|
37
38
|
|
38
|
-
spec.add_dependency
|
39
|
+
spec.add_dependency 'inifile'
|
39
40
|
|
40
41
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opensecret
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Apollo Akora
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '5.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: inifile
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
@@ -72,7 +72,8 @@ description: opensecret stashes uncrackable secrets into your Git, S3, DropBox,
|
|
72
72
|
Ansible, Terraform, Puppet and Chef.
|
73
73
|
email:
|
74
74
|
- apolloakora@gmail.com
|
75
|
-
executables:
|
75
|
+
executables:
|
76
|
+
- opensecret
|
76
77
|
extensions: []
|
77
78
|
extra_rdoc_files: []
|
78
79
|
files:
|
@@ -83,9 +84,9 @@ files:
|
|
83
84
|
- LICENSE.txt
|
84
85
|
- README.md
|
85
86
|
- Rakefile
|
86
|
-
- bin/
|
87
|
-
- bin/setup
|
87
|
+
- bin/opensecret
|
88
88
|
- lib/opensecret.rb
|
89
|
+
- lib/opensecret/safe.rb
|
89
90
|
- lib/opensecret/version.rb
|
90
91
|
- opensecret.gemspec
|
91
92
|
homepage: https://www.eco-platform.co.uk
|
@@ -108,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
109
|
version: '0'
|
109
110
|
requirements: []
|
110
111
|
rubyforge_project:
|
111
|
-
rubygems_version: 2.5.1
|
112
|
+
rubygems_version: 2.5.2.1
|
112
113
|
signing_key:
|
113
114
|
specification_version: 4
|
114
115
|
summary: opensecret locks and unlocks secrets in a simple, secure and intuitive way.
|
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "opensecret"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start(__FILE__)
|