secros 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +4 -2
  3. data/Gemfile.lock +0 -6
  4. data/README.md +45 -0
  5. data/secros.gemspec +2 -1
  6. metadata +16 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 92c24a2cd0f2bcb9648ce7724b13c2420b34e206
4
- data.tar.gz: 05225159eaf0df5489eaad1d246edf52629cc62a
3
+ metadata.gz: 15ce56fdc4331530e56ac64ed1790655b6fcc694
4
+ data.tar.gz: ac388a453e79399eb864ba43637d99b88909a30f
5
5
  SHA512:
6
- metadata.gz: dea3620bc9726debd3bbb2ca597b161434730eef8c6d67d83d215a2df61ce09dcfe699654e826cf0d4bf1b65da9a63e902f94f8f39075078079957cd50c9575a
7
- data.tar.gz: 4fba5d664efc5d04d18ab1141a1f922ea5ff67c84cef5a7860af376452aa3b2c61a92d43a63d5b39f047a04e7a8a4bada0c479ad6eaa1628703a30b83635de90
6
+ metadata.gz: f3ddb898dbfa1edd5266f51c44aa73cd54ee76f2f67bd1eff16db44aedfd982f64acba9edfba5fb3e4c0c97c700cdae84d2e347e032beb6fa5e6df8059548ca5
7
+ data.tar.gz: 3b162e36799484a52edc7bbfcd759ac7544c7bf05d648185741a65c6d9f02745fc1b789ba9d0dacf1f01c4299d7721d19098d24b40581d16a6e1df98cdea6683
data/Gemfile CHANGED
@@ -1,5 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gemspec
4
-
5
3
  gem 'activesupport'
4
+
5
+ group :test do
6
+ gem 'rspec'
7
+ end
data/Gemfile.lock CHANGED
@@ -1,8 +1,3 @@
1
- PATH
2
- remote: .
3
- specs:
4
- secros (0.1.0)
5
-
6
1
  GEM
7
2
  remote: https://rubygems.org/
8
3
  specs:
@@ -34,4 +29,3 @@ PLATFORMS
34
29
  DEPENDENCIES
35
30
  activesupport
36
31
  rspec
37
- secros!
data/README.md ADDED
@@ -0,0 +1,45 @@
1
+ ##DESCRIPTION
2
+
3
+ Secros enables you to manage your secret values in one place.
4
+
5
+ ##USAGE
6
+
7
+ ###Make secrets
8
+
9
+ ####STEP 1. Install secros
10
+
11
+ ```bash
12
+ gem install secros
13
+ ```
14
+
15
+ ####STEP 2. Generate template
16
+
17
+ ```bash
18
+ secros your_generate_path
19
+ ```
20
+
21
+ ####STEP 2. Add secrets to secrets.yml
22
+
23
+ ```yml
24
+ values:
25
+ key: value
26
+ files:
27
+ file: file_name
28
+ ```
29
+
30
+ ###Access secrets
31
+
32
+ ####STEP 1. Add secros to Gemfile
33
+
34
+ ```rb
35
+ gem 'secros'
36
+ ```
37
+
38
+ also `gem install secros` and `require 'secros'` works.
39
+
40
+ ###STEP 2. Access secrets via key
41
+
42
+ ```rb
43
+ Secros.new(your_generate_path).values(:key) # == 'value'
44
+ Secros.new(your_generate_path).files(:file) # == "#{your_generate_path}/files/file_name}"
45
+ ```
data/secros.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'secros'
3
- s.version = '0.1.1'
3
+ s.version = '0.1.2'
4
4
  s.authors = ['Tetsuri Moriya']
5
5
  s.email = ['tetsuri.moriya@gmail.com']
6
6
  s.summary = 'Secrets management gem'
@@ -10,4 +10,5 @@ Gem::Specification.new do |s|
10
10
  s.files = `git ls-files`.split("\n")
11
11
  s.executables = ['secros']
12
12
  s.add_development_dependency 'rspec', '~> 0'
13
+ s.add_runtime_dependency 'activesupport', '~> 0'
13
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: secros
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tetsuri Moriya
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: activesupport
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  description: You can manage all your secrets in one place.
28
42
  email:
29
43
  - tetsuri.moriya@gmail.com
@@ -35,6 +49,7 @@ files:
35
49
  - ".gitignore"
36
50
  - Gemfile
37
51
  - Gemfile.lock
52
+ - README.md
38
53
  - bin/secros
39
54
  - config/secrets.yml
40
55
  - lib/generate.rb