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 +5 -5
- data/.travis.yml +16 -11
- data/README.md +11 -9
- data/lib/build/environment/constructor.rb +1 -1
- data/lib/build/environment/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b0001c02a60a21462a7e644815ae06687d5acac4bdeecafc62595039f70e9deb
|
4
|
+
data.tar.gz: ba745fa38286124d8bf9892a11c6c5ccc79dce5e3730bace910448ae3d58f78c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fca1929969d76556766f4fa8e62e0029888eea3e3577c08f789eaeeedd1d8644b7e9ae04c00960640dea4e0f7d0ae51b340602af3021b01ff73a2d66f8e6bc5
|
7
|
+
data.tar.gz: fa73b7209f17233c442c2a24232526d027ac7c81bc3d6173c41c4f7fbd51af9e92073c3d68c792639dfe89f66996ad42a2caea3360e6f264d25d73e716f2458b
|
data/.travis.yml
CHANGED
@@ -1,15 +1,20 @@
|
|
1
1
|
language: ruby
|
2
|
-
|
3
|
-
dist: trusty
|
2
|
+
dist: xenial
|
4
3
|
cache: bundler
|
5
|
-
|
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:
|
15
|
-
- rvm:
|
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
|
-
|
13
|
+
gem 'build-environment'
|
14
14
|
|
15
15
|
And then execute:
|
16
16
|
|
17
|
-
|
17
|
+
$ bundle
|
18
18
|
|
19
19
|
Or install it yourself as:
|
20
20
|
|
21
|
-
|
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
|
-
|
28
|
-
|
27
|
+
```ruby
|
28
|
+
a = Build::Environment.new
|
29
|
+
a[:cflags] = ["-std=c++11"]
|
29
30
|
|
30
|
-
|
31
|
-
|
32
|
-
|
31
|
+
b = Build::Environment.new(a, {})
|
32
|
+
b[:cflags] = ["-stdlib=libc++"]
|
33
|
+
b[:rcflags] = lambda {cflags }
|
33
34
|
|
34
|
-
|
35
|
+
b.flatten
|
36
|
+
```
|
35
37
|
|
36
38
|
### Key Logic
|
37
39
|
|
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.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:
|
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
|
-
|
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.
|