ffi-gdal 1.0.3 → 1.0.4

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: 1c96db8fd0258779078ba79f4824ea7dbfe8115399b7ef10f9ecbaf7cdc0c8e3
4
- data.tar.gz: cd13b8b02e2d1245b7a422d684a79acec2f0740d69377f6405f0b138a6b91e35
3
+ metadata.gz: 5687af49ac85e98515af311f02534829272c66d86c1d6b94446a8cb5e29870f7
4
+ data.tar.gz: e92e6bb4adc98c2d2dbbaba15d33e2ba15cf186efc0204b9645918f251cbb9be
5
5
  SHA512:
6
- metadata.gz: 30681bfe2c7304288ffeee013ee37718c957c1137cf1c1e829c372935a457d191f2cb582a1563d3605f409f63ab0be61e10fdb82ef705d9409b79d7fb3ca4607
7
- data.tar.gz: c24a7335f5d2629c90d5d1452e27f5c379abc3a7d8fbf769ba8a6756370d18ffd444b5b091bfd46d0e908a9f3995cba05b14f295d907412972db47bdcb94c131
6
+ metadata.gz: d1d0340ac0e2e58bc9972a95980b337f3f47c8f148fbb9e9a40b5bdb7b64de91b77afda82760c737a0894a8f09f88612148efbf5e6430720c4535163472f39ed
7
+ data.tar.gz: '02245493a040172999137d0876710500c5453ead4e208bd8157525890410e320f782ef7fa13d000c9c74bd3e41d67f5aef6bbd1a93d3484df932a690797f9906'
data/Changelog.md CHANGED
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to
7
7
  [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
8
8
 
9
+ ## [1.0.4] - 2023-02-06
10
+
11
+ ### Fixed
12
+
13
+ - Move `OGR::GeometryMixins::Extensions#is_3d?` to `OGR::Geometry`.
14
+
9
15
  ## [1.0.3] - 2023-01-27
10
16
 
11
17
  ### Fixed
data/bin/rake CHANGED
@@ -15,7 +15,7 @@ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
15
15
  bundle_binstub = File.expand_path("bundle", __dir__)
16
16
 
17
17
  if File.file?(bundle_binstub)
18
- if /This file was generated by Bundler/.match?(File.read(bundle_binstub, 300))
18
+ if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
19
19
  load(bundle_binstub)
20
20
  else
21
21
  abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
data/bin/rspec CHANGED
@@ -15,7 +15,7 @@ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
15
15
  bundle_binstub = File.expand_path("bundle", __dir__)
16
16
 
17
17
  if File.file?(bundle_binstub)
18
- if /This file was generated by Bundler/.match?(File.read(bundle_binstub, 300))
18
+ if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
19
19
  load(bundle_binstub)
20
20
  else
21
21
  abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
data/bin/rubocop CHANGED
@@ -15,7 +15,7 @@ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
15
15
  bundle_binstub = File.expand_path("bundle", __dir__)
16
16
 
17
17
  if File.file?(bundle_binstub)
18
- if /This file was generated by Bundler/.match?(File.read(bundle_binstub, 300))
18
+ if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
19
19
  load(bundle_binstub)
20
20
  else
21
21
  abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module FFI
4
4
  module GDAL
5
- VERSION = "1.0.3"
5
+ VERSION = "1.0.4"
6
6
  end
7
7
  end
@@ -44,14 +44,6 @@ module OGR
44
44
  !equals?(other)
45
45
  end
46
46
 
47
- def is_2d?
48
- coordinate_dimension == 2
49
- end
50
-
51
- def is_3d?
52
- coordinate_dimension == 3
53
- end
54
-
55
47
  # @return [Boolean]
56
48
  def invalid?
57
49
  !valid?
data/lib/ogr/geometry.rb CHANGED
@@ -263,6 +263,14 @@ module OGR
263
263
  point
264
264
  end
265
265
 
266
+ def is_2d?
267
+ coordinate_dimension == 2
268
+ end
269
+
270
+ def is_3d?
271
+ coordinate_dimension == 3
272
+ end
273
+
266
274
  # Dump as WKT to the given +file_path+; dumps to STDOUT if none is given.
267
275
  #
268
276
  # @param file_path [String] The text file to write to.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffi-gdal
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Loveless
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-27 00:00:00.000000000 Z
11
+ date: 2023-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bindata