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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2deabd6ae2e1ebab9e3f851cb43520740649305a
4
- data.tar.gz: dba50ebce699605188e0ca0d11ceef7e4f67e47d
3
+ metadata.gz: 86ac9e31e1cc902c7acb285bedb1ba5079b5f6ae
4
+ data.tar.gz: 93b0f8d56f778c8e1448b43bbbf587086945cd0e
5
5
  SHA512:
6
- metadata.gz: 29af7714e57b5d7320636b5b6e8dcf30acce07d38fb071f700dd79b84bc3a305588c8f70cb864c8ceeb7bd5aa035f93527c899636c33605f1245ab35ddd32de6
7
- data.tar.gz: d557ec833cb6bfbf803ad956e3e7e20a1454a73ae50374103fd9863ecae88a7d7b1aecc73c36347cb46292542dfd312e3695715621bf126f4552ae3df35d25a6
6
+ metadata.gz: e4d7e2d75d0b5910e61754f290bf45d3f4f289f061055349127bbe4cc1c3ae44962c898bb7ae4c6b17825f323d6c7e58f63baed851571ce69f492710490f2287
7
+ data.tar.gz: 4fa24e78d89375ca01b654fd980a8dd19a214626ec57b3bc242e0ce1753c3455ef48f4acc2da0e69c02c3ce85e090a8f4ec69d4ec00daf2e4d887629adce7a06
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'opensecret/safe'
4
+
5
+ puts "Hello World!"
6
+ safe = OpenSecret::Safe.new
7
+ safe.verbose_lock
8
+
9
+ exit
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Opensecret
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -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
- spec.bindir = "exe"
31
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
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 "sinatra"
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.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Apollo Akora
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-02 00:00:00.000000000 Z
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: sinatra
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/console
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.
@@ -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__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here