armg 0.4.1 → 0.4.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
  SHA1:
3
- metadata.gz: b37b86d4f90a8ad8af66ba0fb26a48032e675bd4
4
- data.tar.gz: 43388359ff129867310885e50342ecb4a6f64c7f
3
+ metadata.gz: feb25825f42bb77ce8045de4f598db6bb390aa5b
4
+ data.tar.gz: 0bbcf41c3d2827d8b981338c1b73ef1bbdf9b079
5
5
  SHA512:
6
- metadata.gz: 7856607ce925dee8f6c13d73a5b35c907d28bc247c2112054f3ae9c4cf562a7add4e42f3429d65563e103a9686d21372780769138cc8a18c1b6378ebd1e3296f
7
- data.tar.gz: ee9cd5c6c74f48c22431d191405c625427538973ffbf487db63d545789530dbadb2a987b16294e399915352d872e0a20a7e49b605955e859ff43c3501c747f24
6
+ metadata.gz: 14ce6e39a911d0f059c6fb7e445367d31a95a5863fc7da783d402583fe92b28b5f4b03f841562a7ff6c85c21735e9f5402ff48a9c28b6e6010daf06abe32986a
7
+ data.tar.gz: 04dd0edbfb001fa9002b8db42ee02c4e6dced286da3837f805edc0c42ecdf0634147ecdb63eda48520c905d076388f34066844ccfb8d8bf30eb94b8b8fd82bc9
data/README.md CHANGED
@@ -54,7 +54,7 @@ class CustomParser
54
54
  end
55
55
 
56
56
  def parse(wkb)
57
- wkb_without_srid = wkb.bytes[4..-1].pack('c*')
57
+ wkb_without_srid = wkb.b.slice(4..-1)
58
58
  @parser.parse(wkb_without_srid)
59
59
  end
60
60
  end
@@ -1,3 +1,3 @@
1
1
  module Armg
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.2'
3
3
  end
@@ -9,10 +9,10 @@ class Armg::WkbParser
9
9
  end
10
10
 
11
11
  def parse(wkb)
12
- wkb = wkb.bytes
12
+ wkb = wkb.b
13
13
  srid = wkb.slice!(0..3)
14
- wkb[4] = 0x20
14
+ wkb[4] = "\x20"
15
15
  wkb.insert(5, *srid)
16
- @parser.parse(wkb.pack('c*'))
16
+ @parser.parse(wkb)
17
17
  end
18
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: armg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara