libddwaf 1.0.12.0.0.beta1 → 1.0.13.0.0.beta1

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
  SHA256:
3
- metadata.gz: 149b110d2839d0a87023bcb956689ecc5a65c366080979a7fbdd458a59f2f928
4
- data.tar.gz: 8d5181f1cb4e98ed8aa065a948480de18a032f5a7c31f084b936e6b10800d81b
3
+ metadata.gz: 02ee495cf1f3bca929d2c0a3afb73a9bfef8cf8115524bad227ce46436bef622
4
+ data.tar.gz: f7dc161b2893d6f3734305b88ffc53c5932686231619d27591e5b6efbd6f1cb5
5
5
  SHA512:
6
- metadata.gz: 83006f3f968659cd4701f87469bd8b570bb1f245282b4a2c037a45f2e7b71bd3f4def34cba9ace7eefdd2eb0d0ba269b9d0c1301920610bd8ad0d97138413f45
7
- data.tar.gz: 31dc16a314fd59ccafb97ad828e9ac8ddfadda8b44e412f9067ae982328e5582b5d6b66e24f9d992231b0f494949b9d2cee4ce09177a3af51488d5f5c9dc304f
6
+ metadata.gz: 88ec57821ecd93d212bc5445a264532905e5959be6156a67daa949fdf51499d86bb5aeffa9130f88edfb2135823b5346cd5368d843490304d1c46968df7a5a87
7
+ data.tar.gz: 83e4017745d6b85f3a2b6a71d915cd897b893a4a1dff261b8c86a9ccab2446c59767fa96487e7820e7e6e6d7975e472033f4eb543e5b5bf832897017999b3721
@@ -3,7 +3,34 @@ on:
3
3
  - push
4
4
 
5
5
  jobs:
6
- package:
6
+ package-ruby:
7
+ strategy:
8
+ fail-fast: false
9
+ matrix:
10
+ include:
11
+ - os: ubuntu-20.04
12
+ cpu: x86_64
13
+ platform: ruby
14
+ name: Build package (${{ matrix.platform }})
15
+ runs-on: ${{ matrix.os }}
16
+ steps:
17
+ - name: Checkout
18
+ uses: actions/checkout@v2
19
+ - name: Install Linux build tools
20
+ if: ${{ startsWith(matrix.os, 'ubuntu-') }}
21
+ run: sudo apt-get install -y ruby ruby-bundler
22
+ - name: Bundle
23
+ run: |
24
+ bundle install
25
+ - name: Build package
26
+ run: |
27
+ bundle exec rake build
28
+ - name: Upload gem
29
+ uses: actions/upload-artifact@v2
30
+ with:
31
+ name: libddwaf-${{ matrix.platform }}-${{ github.run_id }}-${{ github.sha }}
32
+ path: pkg
33
+ package-binary:
7
34
  strategy:
8
35
  fail-fast: false
9
36
  matrix:
@@ -45,8 +72,48 @@ jobs:
45
72
  with:
46
73
  name: libddwaf-${{ matrix.platform }}-${{ github.run_id }}-${{ github.sha }}
47
74
  path: pkg
75
+ test-ruby:
76
+ needs: package-ruby
77
+ strategy:
78
+ fail-fast: false
79
+ matrix:
80
+ include:
81
+ - os: ubuntu-20.04
82
+ cpu: x86_64
83
+ platform: ruby
84
+ image: ruby:2.6
85
+ qemu: amd64
86
+ libc: gnu
87
+ name: Test package (${{ matrix.platform }}-${{ matrix.libc }})
88
+ runs-on: ${{ matrix.os }}
89
+ steps:
90
+ - name: Enable ${{ matrix.qemu }} platform
91
+ id: qemu
92
+ if: ${{ matrix.cpu != 'amd64' }}
93
+ run: |
94
+ docker run --privileged --rm tonistiigi/binfmt:latest --install ${{ matrix.qemu }} | tee platforms.json
95
+ echo "::set-output name=platforms::$(cat platforms.json)"
96
+ - name: Start container
97
+ id: container
98
+ run: |
99
+ echo ${{ matrix.image }} > container_image
100
+ docker run --rm -d -v "${PWD}":"${PWD}" -w "${PWD}" --platform linux/${{ matrix.qemu }} ${{ matrix.image }} /bin/sleep 64d | tee container_id
101
+ docker exec -w "${PWD}" $(cat container_id) uname -a
102
+ echo "::set-output name=id::$(cat container_id)"
103
+ - uses: actions/download-artifact@v2
104
+ with:
105
+ name: libddwaf-${{ matrix.platform }}-${{ github.run_id }}-${{ github.sha }}
106
+ path: pkg
107
+ - name: List artifact files
108
+ run: find .
109
+ working-directory: pkg
110
+ - name: Install gem
111
+ run: docker exec -w "${PWD}" ${{ steps.container.outputs.id }} gem install --verbose pkg/*.gem
112
+ - name: Run smoke test
113
+ run: |
114
+ docker exec -w "${PWD}" ${{ steps.container.outputs.id }} ruby -e 'begin require "libddwaf"; rescue LoadError => e; puts e.message; else fail "loaded when it should not"; end'
48
115
  test-linux:
49
- needs: package
116
+ needs: package-binary
50
117
  strategy:
51
118
  fail-fast: false
52
119
  matrix:
@@ -107,7 +174,7 @@ jobs:
107
174
  run: |
108
175
  docker exec -w "${PWD}" ${{ steps.container.outputs.id }} ruby -r 'libddwaf' -e 'v = Datadog::Security::WAF::LibDDWAF::Version.new; Datadog::Security::WAF::LibDDWAF.ddwaf_get_version(v); p [v[:major], v[:minor], v[:patch]]'
109
176
  test-darwin:
110
- needs: package
177
+ needs: package-binary
111
178
  strategy:
112
179
  fail-fast: false
113
180
  matrix:
@@ -8,6 +8,18 @@ jobs:
8
8
  fail-fast: false
9
9
  matrix:
10
10
  include:
11
+ - os: ubuntu-20.04
12
+ cpu: x86_64
13
+ platform: x86_64-linux
14
+ image: ruby:3.1-rc
15
+ qemu: amd64
16
+ libc: gnu
17
+ - os: ubuntu-20.04
18
+ cpu: aarch64
19
+ platform: aarch64-linux
20
+ image: ruby:3.1-rc
21
+ qemu: arm64
22
+ libc: gnu
11
23
  - os: ubuntu-20.04
12
24
  cpu: x86_64
13
25
  platform: x86_64-linux
@@ -74,6 +86,18 @@ jobs:
74
86
  image: ruby:2.1
75
87
  qemu: amd64
76
88
  libc: gnu
89
+ - os: ubuntu-20.04
90
+ cpu: x86_64
91
+ platform: x86_64-linux
92
+ image: ruby:3.1-rc-alpine
93
+ qemu: amd64
94
+ libc: musl
95
+ - os: ubuntu-20.04
96
+ cpu: aarch64
97
+ platform: aarch64-linux
98
+ image: ruby:3.1-rc-alpine
99
+ qemu: arm64
100
+ libc: musl
77
101
  - os: ubuntu-20.04
78
102
  cpu: x86_64
79
103
  platform: x86_64-linux
@@ -2,10 +2,10 @@ module Datadog
2
2
  module Security
3
3
  module WAF
4
4
  module VERSION
5
- BASE_STRING = '1.0.12'
5
+ BASE_STRING = '1.0.13'
6
6
  STRING = "#{BASE_STRING}.0.0.beta1"
7
7
  MINIMUM_RUBY_VERSION = '2.1'
8
- MAXIMUM_RUBY_VERSION = '3.1'
8
+ MAXIMUM_RUBY_VERSION = '3.2'
9
9
  end
10
10
  end
11
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libddwaf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.12.0.0.beta1
4
+ version: 1.0.13.0.0.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Datadog, Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 1980-01-01 00:00:00.000000000 Z
11
+ date: 2021-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -52,7 +52,7 @@ licenses:
52
52
  - BSD-3-Clause
53
53
  metadata:
54
54
  allowed_push_host: https://rubygems.org
55
- post_install_message:
55
+ post_install_message:
56
56
  rdoc_options: []
57
57
  require_paths:
58
58
  - lib
@@ -63,15 +63,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
63
63
  version: '2.1'
64
64
  - - "<"
65
65
  - !ruby/object:Gem::Version
66
- version: '3.1'
66
+ version: '3.2'
67
67
  required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  requirements:
69
69
  - - ">="
70
70
  - !ruby/object:Gem::Version
71
71
  version: 2.0.0
72
72
  requirements: []
73
- rubygems_version: 3.2.16
74
- signing_key:
73
+ rubygems_version: 3.1.2
74
+ signing_key:
75
75
  specification_version: 4
76
76
  summary: Datadog WAF
77
77
  test_files: []