jsonnet 0.5.1 → 0.5.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 92c5f9344c4b31e1c183acd4e12b5bd596540a13c938a4eb938f0759a754adce
4
- data.tar.gz: db67d7972db0f962419dafb2b8ae8fdcd2bd7e3847f6315379a4fdaa1843b3f4
3
+ metadata.gz: b21144880989556e02da3a182e6d527b7038aa090917a9f52563c77533348736
4
+ data.tar.gz: 5326728e4f910249f23cd7f26ccebab4630da2f13dc3f1a9d1bb15e000aaffc2
5
5
  SHA512:
6
- metadata.gz: 3b2b912c43980ad07bb4e40c1f467c67b919c80552b6c51984699f9127a645b099e5f43e60bfe2574634d8ba8e9b2116106511ee54880eae2e876aead524169f
7
- data.tar.gz: 1aac5b2c3b9047242184d613a26730a4418abbcb35008f1a91c71279d95a6747952c46b39b5720c25ced447e3a325d1b2aef7d7de92fe11775c3033bc734368b
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
@@ -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
- # jsonnet_wrap extension must be linked with c++ stdlib because
81
- # the C++ library Rapid YAML is being statically linked.
82
- rbconfig = RbConfig::MAKEFILE_CONFIG
83
- if rbconfig['LDSHAREDXX']
84
- rbconfig['LDSHARED'] = rbconfig['LDSHAREDXX']
85
- end
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')
@@ -1,3 +1,3 @@
1
1
  module Jsonnet
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
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.1
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