envyable 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +8 -2
- data/bin/envyable +1 -1
- data/lib/envyable/cli.rb +1 -1
- data/lib/envyable/loader.rb +1 -1
- data/lib/envyable/version.rb +1 -1
- data/spec/envyable/cli_spec.rb +7 -7
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d4af1ced0824764bbac3e7f28bda8982ddc9d85
|
4
|
+
data.tar.gz: f70751518161fba856b02d3cfe3a0d4039ca4552
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7866d20605d48c64e15f8f5b8a4d58ad6b41708c6e2468b00f77d7757d5db49dc37a94a8aaf2039732fd0b11c2786ec989c46e4e6693cfb6d3b4bbda369929f
|
7
|
+
data.tar.gz: 9f514156650430d6ea34ef5d764e1c4eb7fe1f47b13377a47a33466c639bc11537e329c0af19a60b5e15518faa7d2577fd41aec2ad500e6281203db2a3accb31
|
data/.travis.yml
CHANGED
@@ -1,12 +1,18 @@
|
|
1
1
|
language: ruby
|
2
|
+
sudo: required
|
3
|
+
dist: trusty
|
2
4
|
rvm:
|
3
5
|
- 2.0.0
|
4
6
|
- 2.1.10
|
5
7
|
- 2.2.5
|
6
8
|
- 2.3.1
|
7
9
|
- jruby-19mode
|
8
|
-
- rbx-3
|
10
|
+
- rbx-3
|
9
11
|
before_install: gem install bundler
|
10
12
|
matrix:
|
11
13
|
allow_failures:
|
12
|
-
- rvm: rbx-3
|
14
|
+
- rvm: rbx-3
|
15
|
+
addons:
|
16
|
+
apt:
|
17
|
+
packages:
|
18
|
+
- haveged
|
data/bin/envyable
CHANGED
data/lib/envyable/cli.rb
CHANGED
@@ -10,7 +10,7 @@ module Envyable
|
|
10
10
|
def install
|
11
11
|
create_file("config/env.yml")
|
12
12
|
create_file("config/env.yml.example")
|
13
|
-
if File.
|
13
|
+
if File.exist?("#{destination_root}/.gitignore")
|
14
14
|
append_to_file(".gitignore") do
|
15
15
|
"\n# Don't check in credentials \nconfig/env.yml"
|
16
16
|
end
|
data/lib/envyable/loader.rb
CHANGED
data/lib/envyable/version.rb
CHANGED
data/spec/envyable/cli_spec.rb
CHANGED
@@ -11,29 +11,29 @@ describe Envyable::CLI do
|
|
11
11
|
describe "install" do
|
12
12
|
it "should create a file in config/env.yml" do
|
13
13
|
env_yml = "#{cli.destination_root}/config/env.yml"
|
14
|
-
File.
|
14
|
+
File.exist?(env_yml).must_equal false
|
15
15
|
capture_io { cli.install }
|
16
|
-
File.
|
16
|
+
File.exist?(env_yml).must_equal true
|
17
17
|
end
|
18
18
|
|
19
19
|
it "should create a file in config/env.yml.example" do
|
20
20
|
env_yml_example = "#{cli.destination_root}/config/env.yml.example"
|
21
|
-
File.
|
21
|
+
File.exist?(env_yml_example).must_equal false
|
22
22
|
capture_io { cli.install }
|
23
|
-
File.
|
23
|
+
File.exist?(env_yml_example).must_equal true
|
24
24
|
end
|
25
25
|
|
26
26
|
it "should not create a .gitignore" do
|
27
27
|
gitignore = "#{cli.destination_root}/.gitignore"
|
28
|
-
File.
|
28
|
+
File.exist?(gitignore).must_equal false
|
29
29
|
capture_io { cli.install }
|
30
|
-
File.
|
30
|
+
File.exist?(gitignore).must_equal false
|
31
31
|
end
|
32
32
|
|
33
33
|
it "should add config/env.yml to existing .gitignore" do
|
34
34
|
gitignore = "#{cli.destination_root}/.gitignore"
|
35
35
|
cli = Envyable::CLI.new([], {}, :destination_root => destination_root(:with_gitignore => true))
|
36
|
-
File.
|
36
|
+
File.exist?(gitignore).must_equal true
|
37
37
|
File.readlines(gitignore).none? { |line| line == "config/env.yml" }.must_equal true
|
38
38
|
capture_io { cli.install }
|
39
39
|
File.readlines(gitignore).any? { |line| line == "config/env.yml" }.must_equal true
|
metadata
CHANGED
@@ -1,16 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: envyable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Phil Nash
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
+
name: thor
|
14
15
|
requirement: !ruby/object:Gem::Requirement
|
15
16
|
requirements:
|
16
17
|
- - ">="
|
@@ -19,7 +20,6 @@ dependencies:
|
|
19
20
|
- - "<"
|
20
21
|
- !ruby/object:Gem::Version
|
21
22
|
version: '2.0'
|
22
|
-
name: thor
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -31,12 +31,12 @@ dependencies:
|
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '2.0'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
|
+
name: bundler
|
34
35
|
requirement: !ruby/object:Gem::Requirement
|
35
36
|
requirements:
|
36
37
|
- - "~>"
|
37
38
|
- !ruby/object:Gem::Version
|
38
39
|
version: '1.3'
|
39
|
-
name: bundler
|
40
40
|
type: :development
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -45,12 +45,12 @@ dependencies:
|
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '1.3'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
|
+
name: minitest
|
48
49
|
requirement: !ruby/object:Gem::Requirement
|
49
50
|
requirements:
|
50
51
|
- - ">="
|
51
52
|
- !ruby/object:Gem::Version
|
52
53
|
version: '0'
|
53
|
-
name: minitest
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -59,12 +59,12 @@ dependencies:
|
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '0'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
|
+
name: rake
|
62
63
|
requirement: !ruby/object:Gem::Requirement
|
63
64
|
requirements:
|
64
65
|
- - ">="
|
65
66
|
- !ruby/object:Gem::Version
|
66
67
|
version: '0'
|
67
|
-
name: rake
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
121
|
version: '0'
|
122
122
|
requirements: []
|
123
123
|
rubyforge_project:
|
124
|
-
rubygems_version: 2.
|
124
|
+
rubygems_version: 2.5.1
|
125
125
|
signing_key:
|
126
126
|
specification_version: 4
|
127
127
|
summary: The simplest yaml to ENV config loader
|
@@ -132,3 +132,4 @@ test_files:
|
|
132
132
|
- spec/fixtures/default_env.yml
|
133
133
|
- spec/fixtures/env.yml
|
134
134
|
- spec/spec_helper.rb
|
135
|
+
has_rdoc:
|