ffi-geos 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +49 -0
- data/.rubocop.yml +342 -60
- data/Gemfile +1 -6
- data/ffi-geos.gemspec +5 -0
- data/lib/ffi-geos/buffer_params.rb +1 -1
- data/lib/ffi-geos/coordinate_sequence.rb +32 -32
- data/lib/ffi-geos/geometry.rb +5 -5
- data/lib/ffi-geos/geometry_collection.rb +4 -4
- data/lib/ffi-geos/line_string.rb +10 -10
- data/lib/ffi-geos/multi_line_string.rb +1 -1
- data/lib/ffi-geos/point.rb +4 -4
- data/lib/ffi-geos/polygon.rb +4 -4
- data/lib/ffi-geos/prepared_geometry.rb +1 -1
- data/lib/ffi-geos/strtree.rb +1 -1
- data/lib/ffi-geos/version.rb +1 -1
- data/lib/ffi-geos/wkb_reader.rb +1 -1
- data/lib/ffi-geos/wkb_writer.rb +2 -2
- data/lib/ffi-geos/wkt_reader.rb +1 -1
- data/lib/ffi-geos/wkt_writer.rb +2 -2
- data/lib/ffi-geos.rb +8 -4
- data/sonar-project.properties +4 -4
- data/test/coordinate_sequence_tests.rb +6 -6
- data/test/geometry_collection_tests.rb +4 -4
- data/test/geometry_tests.rb +57 -32
- data/test/line_string_tests.rb +13 -5
- data/test/point_tests.rb +3 -3
- data/test/polygon_tests.rb +3 -3
- data/test/strtree_tests.rb +8 -8
- data/test/test_helper.rb +37 -12
- metadata +7 -6
- data/.travis.yml +0 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8cae6d50f584d97081d0f48fb2a065c9b67f01acda9d00f1afafddc84a1d82f5
|
4
|
+
data.tar.gz: eb08bf8f6c1ebb23311f18b61b9507d0cab6c69252c60f4dd0932c8be03a66ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67ea976bab672422786b6df68ba446e2063904334cc9a8faf73bd819d29e2093c4ff861155e8d19ef96bc992aee56577660479ef9e135f6529236a6893366986
|
7
|
+
data.tar.gz: 5852b247aff666069d5007142a793badc17098107c40f41119c7e9465a20577acf6f2c8c2785159f040cd78c2abbd9e19b24037dbaf2a44cdaa43a4431d7302c
|
@@ -0,0 +1,49 @@
|
|
1
|
+
---
|
2
|
+
name: FFI Geos
|
3
|
+
'on':
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
- github-actions
|
8
|
+
pull_request:
|
9
|
+
jobs:
|
10
|
+
tests:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
strategy:
|
13
|
+
matrix:
|
14
|
+
ruby: [ '2.6', '2.7', '3.0', '3.1' ]
|
15
|
+
name: Ruby ${{ matrix.ruby }} tests
|
16
|
+
steps:
|
17
|
+
- name: Check out app
|
18
|
+
uses: actions/checkout@v2
|
19
|
+
with:
|
20
|
+
fetch-depth: 0
|
21
|
+
- name: Set up apt packages
|
22
|
+
run: sudo apt-get -yqq install libgeos-dev
|
23
|
+
- name: Set up Ruby
|
24
|
+
uses: ruby/setup-ruby@v1
|
25
|
+
with:
|
26
|
+
ruby-version: ${{ matrix.ruby }}
|
27
|
+
- name: Bundle install
|
28
|
+
run: |-
|
29
|
+
gem update --system
|
30
|
+
bundle install --path=.bundle --jobs 2 --retry 3
|
31
|
+
- name: Run Tests
|
32
|
+
env:
|
33
|
+
COVERAGE: 'true'
|
34
|
+
CI: 'true'
|
35
|
+
run: bundle exec rake test
|
36
|
+
- name: Fix coverage report
|
37
|
+
if: always()
|
38
|
+
run: sed -i "s/\/home\/runner\/work\/ffi-geos\/ffi-geos\//\/github\/workspace\//g" coverage/coverage.json || true
|
39
|
+
- name: Run rubocop
|
40
|
+
if: always()
|
41
|
+
env:
|
42
|
+
RAILS_ENV: test
|
43
|
+
run: bundle exec rubocop --parallel --format=json > rubocop-report.json || true
|
44
|
+
- name: Run SonarCloud
|
45
|
+
if: always()
|
46
|
+
uses: sonarsource/sonarcloud-github-action@master
|
47
|
+
env:
|
48
|
+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
49
|
+
SONAR_TOKEN: "${{ secrets.SONAR_CLOUD_TOKEN }}"
|