build-environment 1.1.3 → 1.1.4

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: d63dc4795e7ecd921983627f39645f7b1c4cbd1e
4
- data.tar.gz: 822896b39bf081d65c6b9f0f2c02617e923aadb4
3
+ metadata.gz: 25a717f5b970d072d8fd7f680701baaf0c9d3d09
4
+ data.tar.gz: 4d9a54092c60ab20940b705a817525c5ada16d3c
5
5
  SHA512:
6
- metadata.gz: 062f483a5c33512b0293a9f1275a0f00018b5b01926c71677119a8a314ebfb45f970458787fd19e2de0bd47917bd7ab94fb550fac367bd41fd557b8b5e619020
7
- data.tar.gz: ce5774ab9d41601bc361613d973a462995f5abcc78cef75936515f8f3c46bdafb0510e78287538d46be7fe6177d5a26a7c5daae61634ccd2a9cb33cd6c5d1c62
6
+ metadata.gz: c1092b69a33c5b1e9e9786ef1b602d4d4da056cf1662b216865509d3c7d52305b6c504cd915f62d2aecc3a447c9e1899783ef817128c8c34517e467c6525d5bc
7
+ data.tar.gz: 437efe8a16b0adce6bc88a3044e1067590b57e60fc37a724d9a306bada464c3777922464b3fa21988a0065e226aa69c3ca746e238c6392766778345bb3319645
data/.rspec CHANGED
@@ -2,3 +2,4 @@
2
2
  --format documentation
3
3
  --backtrace
4
4
  --warnings
5
+ --require spec_helper
@@ -1,5 +1,15 @@
1
1
  language: ruby
2
+ sudo: false
3
+ dist: trusty
4
+ cache: bundler
2
5
  rvm:
3
- - "2.0"
4
- - "2.1"
5
- env: COVERAGE=true
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 [] (key)
63
+ def [](key)
64
64
  environment = lookup(key)
65
65
 
66
66
  environment ? environment.values[key] : nil
67
67
  end
68
68
 
69
- def []= (key, value)
69
+ def []=(key, value)
70
70
  @values[key] = value
71
71
  end
72
72
 
@@ -1,5 +1,5 @@
1
1
  module Build
2
2
  class Environment
3
- VERSION = "1.1.3"
3
+ VERSION = "1.1.4"
4
4
  end
5
5
  end
@@ -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.3
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: 2016-01-09 00:00:00.000000000 Z
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.4.6
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
data/.simplecov DELETED
@@ -1,9 +0,0 @@
1
-
2
- SimpleCov.start do
3
- add_filter "/spec/"
4
- end
5
-
6
- if ENV['TRAVIS']
7
- require 'coveralls'
8
- Coveralls.wear!
9
- end