build-environment 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rspec +1 -0
- data/.travis.yml +13 -3
- data/lib/build/environment/base.rb +2 -2
- data/lib/build/environment/version.rb +1 -1
- data/spec/spec_helper.rb +29 -0
- metadata +5 -4
- data/.simplecov +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25a717f5b970d072d8fd7f680701baaf0c9d3d09
|
4
|
+
data.tar.gz: 4d9a54092c60ab20940b705a817525c5ada16d3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1092b69a33c5b1e9e9786ef1b602d4d4da056cf1662b216865509d3c7d52305b6c504cd915f62d2aecc3a447c9e1899783ef817128c8c34517e467c6525d5bc
|
7
|
+
data.tar.gz: 437efe8a16b0adce6bc88a3044e1067590b57e60fc37a724d9a306bada464c3777922464b3fa21988a0065e226aa69c3ca746e238c6392766778345bb3319645
|
data/.rspec
CHANGED
data/.travis.yml
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
language: ruby
|
2
|
+
sudo: false
|
3
|
+
dist: trusty
|
4
|
+
cache: bundler
|
2
5
|
rvm:
|
3
|
-
-
|
4
|
-
-
|
5
|
-
|
6
|
+
- 2.1.8
|
7
|
+
- 2.2.4
|
8
|
+
- 2.3.0
|
9
|
+
- 2.4.0
|
10
|
+
- ruby-head
|
11
|
+
- jruby-head
|
12
|
+
matrix:
|
13
|
+
allow_failures:
|
14
|
+
- rvm: "ruby-head"
|
15
|
+
- rvm: "jruby-head"
|
@@ -60,13 +60,13 @@ module Build
|
|
60
60
|
@values.size + (@parent ? @parent.size : 0)
|
61
61
|
end
|
62
62
|
|
63
|
-
def []
|
63
|
+
def [](key)
|
64
64
|
environment = lookup(key)
|
65
65
|
|
66
66
|
environment ? environment.values[key] : nil
|
67
67
|
end
|
68
68
|
|
69
|
-
def []=
|
69
|
+
def []=(key, value)
|
70
70
|
@values[key] = value
|
71
71
|
end
|
72
72
|
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
|
2
|
+
if ENV['COVERAGE']
|
3
|
+
begin
|
4
|
+
require 'simplecov'
|
5
|
+
|
6
|
+
SimpleCov.start do
|
7
|
+
add_filter "/spec/"
|
8
|
+
end
|
9
|
+
|
10
|
+
if ENV['TRAVIS']
|
11
|
+
require 'coveralls'
|
12
|
+
Coveralls.wear!
|
13
|
+
end
|
14
|
+
rescue LoadError
|
15
|
+
warn "Could not load simplecov: #{$!}"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
require "bundler/setup"
|
20
|
+
require "build/environment"
|
21
|
+
|
22
|
+
RSpec.configure do |config|
|
23
|
+
# Enable flags like --only-failures and --next-failure
|
24
|
+
config.example_status_persistence_file_path = ".rspec_status"
|
25
|
+
|
26
|
+
config.expect_with :rspec do |c|
|
27
|
+
c.syntax = :expect
|
28
|
+
end
|
29
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: build-environment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -61,7 +61,6 @@ extra_rdoc_files: []
|
|
61
61
|
files:
|
62
62
|
- ".gitignore"
|
63
63
|
- ".rspec"
|
64
|
-
- ".simplecov"
|
65
64
|
- ".travis.yml"
|
66
65
|
- Gemfile
|
67
66
|
- README.md
|
@@ -78,6 +77,7 @@ files:
|
|
78
77
|
- spec/build/environment/environment_spec.rb
|
79
78
|
- spec/build/environment/freeze_spec.rb
|
80
79
|
- spec/build/environment/system_spec.rb
|
80
|
+
- spec/spec_helper.rb
|
81
81
|
homepage: ''
|
82
82
|
licenses:
|
83
83
|
- MIT
|
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
98
|
version: '0'
|
99
99
|
requirements: []
|
100
100
|
rubyforge_project:
|
101
|
-
rubygems_version: 2.
|
101
|
+
rubygems_version: 2.6.10
|
102
102
|
signing_key:
|
103
103
|
specification_version: 4
|
104
104
|
summary: A nested hash data structure for controlling build environments.
|
@@ -107,3 +107,4 @@ test_files:
|
|
107
107
|
- spec/build/environment/environment_spec.rb
|
108
108
|
- spec/build/environment/freeze_spec.rb
|
109
109
|
- spec/build/environment/system_spec.rb
|
110
|
+
- spec/spec_helper.rb
|