build-environment 1.1.4 → 1.1.5

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
- SHA1:
3
- metadata.gz: 25a717f5b970d072d8fd7f680701baaf0c9d3d09
4
- data.tar.gz: 4d9a54092c60ab20940b705a817525c5ada16d3c
2
+ SHA256:
3
+ metadata.gz: b0001c02a60a21462a7e644815ae06687d5acac4bdeecafc62595039f70e9deb
4
+ data.tar.gz: ba745fa38286124d8bf9892a11c6c5ccc79dce5e3730bace910448ae3d58f78c
5
5
  SHA512:
6
- metadata.gz: c1092b69a33c5b1e9e9786ef1b602d4d4da056cf1662b216865509d3c7d52305b6c504cd915f62d2aecc3a447c9e1899783ef817128c8c34517e467c6525d5bc
7
- data.tar.gz: 437efe8a16b0adce6bc88a3044e1067590b57e60fc37a724d9a306bada464c3777922464b3fa21988a0065e226aa69c3ca746e238c6392766778345bb3319645
6
+ metadata.gz: 2fca1929969d76556766f4fa8e62e0029888eea3e3577c08f789eaeeedd1d8644b7e9ae04c00960640dea4e0f7d0ae51b340602af3021b01ff73a2d66f8e6bc5
7
+ data.tar.gz: fa73b7209f17233c442c2a24232526d027ac7c81bc3d6173c41c4f7fbd51af9e92073c3d68c792639dfe89f66996ad42a2caea3360e6f264d25d73e716f2458b
data/.travis.yml CHANGED
@@ -1,15 +1,20 @@
1
1
  language: ruby
2
- sudo: false
3
- dist: trusty
2
+ dist: xenial
4
3
  cache: bundler
5
- rvm:
6
- - 2.1.8
7
- - 2.2.4
8
- - 2.3.0
9
- - 2.4.0
10
- - ruby-head
11
- - jruby-head
4
+
12
5
  matrix:
6
+ include:
7
+ - rvm: 2.3
8
+ - rvm: 2.4
9
+ - rvm: 2.5
10
+ - rvm: 2.6
11
+ - rvm: truffleruby
12
+ - rvm: jruby-head
13
+ env: JRUBY_OPTS="--debug -X+O"
14
+ - rvm: ruby-head
15
+ - rvm: rbx-3
13
16
  allow_failures:
14
- - rvm: "ruby-head"
15
- - rvm: "jruby-head"
17
+ - rvm: ruby-head
18
+ - rvm: truffleruby
19
+ - rvm: jruby-head
20
+ - rvm: rbx-3
data/README.md CHANGED
@@ -10,28 +10,30 @@ Build::Environment provides a nested hash data structure which can contain lambd
10
10
 
11
11
  Add this line to your application's Gemfile:
12
12
 
13
- gem 'build-environment'
13
+ gem 'build-environment'
14
14
 
15
15
  And then execute:
16
16
 
17
- $ bundle
17
+ $ bundle
18
18
 
19
19
  Or install it yourself as:
20
20
 
21
- $ gem install build-environment
21
+ $ gem install build-environment
22
22
 
23
23
  ## Usage
24
24
 
25
25
  A build environment in essence is a key-value storage, but it maintains a linked list so that lookups can be propagated towards the root. This allows a parent to provide, say, defaults, while the child can override these. The envirionment can contain strings, arrays and lambdas, which are evaluated when converting the environment into a hash.
26
26
 
27
- a = Build::Environment.new
28
- a[:cflags] = ["-std=c++11"]
27
+ ```ruby
28
+ a = Build::Environment.new
29
+ a[:cflags] = ["-std=c++11"]
29
30
 
30
- b = Build::Environment.new(a, {})
31
- b[:cflags] = ["-stdlib=libc++"]
32
- b[:rcflags] = lambda {cflags }
31
+ b = Build::Environment.new(a, {})
32
+ b[:cflags] = ["-stdlib=libc++"]
33
+ b[:rcflags] = lambda {cflags }
33
34
 
34
- b.flatten
35
+ b.flatten
36
+ ```
35
37
 
36
38
  ### Key Logic
37
39
 
@@ -29,7 +29,7 @@ module Build
29
29
  end
30
30
 
31
31
  def to_s
32
- "#<#{@klass} #{@block ? @block.source_location.join(':') : 'unknown'}>"
32
+ "#<#{klass} #{block ? block.source_location.join(':') : 'unknown'}>"
33
33
  end
34
34
  end
35
35
 
@@ -1,5 +1,5 @@
1
1
  module Build
2
2
  class Environment
3
- VERSION = "1.1.4"
3
+ VERSION = "1.1.5"
4
4
  end
5
5
  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
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-26 00:00:00.000000000 Z
11
+ date: 2019-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -97,8 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  - !ruby/object:Gem::Version
98
98
  version: '0'
99
99
  requirements: []
100
- rubyforge_project:
101
- rubygems_version: 2.6.10
100
+ rubygems_version: 3.0.1
102
101
  signing_key:
103
102
  specification_version: 4
104
103
  summary: A nested hash data structure for controlling build environments.