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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9af9099263d420d122e266e2342e8896eaa656e2
4
- data.tar.gz: 838d6e0b501c7b82b101cddee16a5804cfd21029
3
+ metadata.gz: 3d4af1ced0824764bbac3e7f28bda8982ddc9d85
4
+ data.tar.gz: f70751518161fba856b02d3cfe3a0d4039ca4552
5
5
  SHA512:
6
- metadata.gz: c15fcfebd3d6f87e7c5a6b3ddebfe0ae5c8ea374e696a49432cf6eb138706e72b65d9a30a712fd5052f52a831ae9a4b972db45d0da45c6c95b2f789072afdbd6
7
- data.tar.gz: 816bad4d47b57e8830233288c814d2439766cdf587643186e62f71df69a93d340ee866d41d54c1ac5db31f656e1c6010ca86839e80b9442217f6f9608ba8b671
6
+ metadata.gz: e7866d20605d48c64e15f8f5b8a4d58ad6b41708c6e2468b00f77d7757d5db49dc37a94a8aaf2039732fd0b11c2786ec989c46e4e6693cfb6d3b4bbda369929f
7
+ data.tar.gz: 9f514156650430d6ea34ef5d764e1c4eb7fe1f47b13377a47a33466c639bc11537e329c0af19a60b5e15518faa7d2577fd41aec2ad500e6281203db2a3accb31
@@ -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.56
10
+ - rbx-3
9
11
  before_install: gem install bundler
10
12
  matrix:
11
13
  allow_failures:
12
- - rvm: rbx-3.56
14
+ - rvm: rbx-3
15
+ addons:
16
+ apt:
17
+ packages:
18
+ - haveged
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  require "thor"
3
3
 
4
- require "./lib/envyable/cli"
4
+ require File.expand_path('../lib/envyable/cli', __dir__)
5
5
 
6
6
  Envyable::CLI.start
@@ -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.exists?("#{destination_root}/.gitignore")
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
@@ -41,7 +41,7 @@ module Envyable
41
41
 
42
42
  def load_yml
43
43
  yml_path = File.expand_path(@path)
44
- return nil unless File.exists?(yml_path)
44
+ return nil unless File.exist?(yml_path)
45
45
  YAML.load_file(yml_path)
46
46
  end
47
47
 
@@ -1,3 +1,3 @@
1
1
  module Envyable
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
@@ -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.exists?(env_yml).must_equal false
14
+ File.exist?(env_yml).must_equal false
15
15
  capture_io { cli.install }
16
- File.exists?(env_yml).must_equal true
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.exists?(env_yml_example).must_equal false
21
+ File.exist?(env_yml_example).must_equal false
22
22
  capture_io { cli.install }
23
- File.exists?(env_yml_example).must_equal true
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.exists?(gitignore).must_equal false
28
+ File.exist?(gitignore).must_equal false
29
29
  capture_io { cli.install }
30
- File.exists?(gitignore).must_equal false
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.exists?(gitignore).must_equal true
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.0
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-08-31 00:00:00.000000000 Z
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.6.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: