jsonnet 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +45 -0
- data/ext/jsonnet/extconf.rb +7 -6
- data/lib/jsonnet/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b21144880989556e02da3a182e6d527b7038aa090917a9f52563c77533348736
|
4
|
+
data.tar.gz: 5326728e4f910249f23cd7f26ccebab4630da2f13dc3f1a9d1bb15e000aaffc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8423047526b7bcda8f25501bfa8b937cf585786982d477053445230877b4dc7ea0cff3d398abcc6cdacddbc8387611a187f9760ae7290034dbb4b157768cd833
|
7
|
+
data.tar.gz: 36f6a67d475dbddbc356fe42a9d164af6dabdf7d9be49dfb19b127413f24e0458aa7c8ae3306100a9f1f031b933a0346874137fb1589555bc35cc6625d291728
|
@@ -0,0 +1,45 @@
|
|
1
|
+
name: Run Unit Tests
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ "master" ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ "master" ]
|
8
|
+
|
9
|
+
permissions:
|
10
|
+
contents: read
|
11
|
+
|
12
|
+
jobs:
|
13
|
+
test:
|
14
|
+
name: Test
|
15
|
+
strategy:
|
16
|
+
matrix:
|
17
|
+
ruby-version: ['2.7', '3.0', '3.1']
|
18
|
+
os: ['ubuntu-latest', 'macos-latest']
|
19
|
+
runs-on: ${{ matrix.os }}
|
20
|
+
|
21
|
+
steps:
|
22
|
+
- uses: actions/checkout@v3
|
23
|
+
- name: Set up Ruby
|
24
|
+
uses: ruby/setup-ruby@v1
|
25
|
+
with:
|
26
|
+
ruby-version: ${{ matrix.ruby-version }}
|
27
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
28
|
+
- name: Run tests
|
29
|
+
run: bundle exec rake test
|
30
|
+
|
31
|
+
test-with-system-lib:
|
32
|
+
name: Test with system library
|
33
|
+
runs-on: ubuntu-latest
|
34
|
+
|
35
|
+
steps:
|
36
|
+
- uses: actions/checkout@v3
|
37
|
+
- name: Set up Ruby
|
38
|
+
uses: ruby/setup-ruby@v1
|
39
|
+
with:
|
40
|
+
ruby-version: 3.1
|
41
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
42
|
+
- name: Prepare libjsonnet
|
43
|
+
run: sudo apt install libjsonnet-dev
|
44
|
+
- name: Run tests
|
45
|
+
run: env JSONNET_USE_SYSTEM_LIBRARIES=1 bundle exec rake test
|
data/ext/jsonnet/extconf.rb
CHANGED
@@ -77,12 +77,13 @@ unless using_system_libraries?
|
|
77
77
|
$LIBPATH = ["#{recipe.path}/lib"] | $LIBPATH
|
78
78
|
$CPPFLAGS << " -I#{recipe.path}/include"
|
79
79
|
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
80
|
+
end
|
81
|
+
|
82
|
+
# jsonnet_wrap extension must be linked with c++ stdlib because
|
83
|
+
# the C++ library Rapid YAML is being statically linked.
|
84
|
+
rbconfig = RbConfig::MAKEFILE_CONFIG
|
85
|
+
if rbconfig['LDSHAREDXX']
|
86
|
+
rbconfig['LDSHARED'] = rbconfig['LDSHAREDXX']
|
86
87
|
end
|
87
88
|
|
88
89
|
abort 'libjsonnet.h not found' unless have_header('libjsonnet.h')
|
data/lib/jsonnet/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jsonnet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuki Yugui Sonoda
|
@@ -89,6 +89,7 @@ extensions:
|
|
89
89
|
extra_rdoc_files: []
|
90
90
|
files:
|
91
91
|
- ".clang-format"
|
92
|
+
- ".github/workflows/ruby.yml"
|
92
93
|
- ".gitignore"
|
93
94
|
- ".travis.yml"
|
94
95
|
- Gemfile
|