proj4rb 2.2.2 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/test/unit_test.rb CHANGED
@@ -1,47 +1,47 @@
1
- # encoding: UTF-8
2
-
3
- require_relative './abstract_test'
4
-
5
- class UnitsTest < AbstractTest
6
- def test_get_all
7
- units = Proj::Unit.list.sort.collect {|unit| unit.id}
8
- assert(units.include?('deg'))
9
- assert(units.include?('km'))
10
- assert(units.include?('m'))
11
- assert(units.include?('yd'))
12
- assert(units.include?('us-mi'))
13
- end
14
-
15
- def test_linear_unit
16
- unit = Proj::Unit.get('km')
17
- assert_kind_of Proj::Unit, unit
18
- assert_equal('km', unit.id)
19
- assert_equal('km', unit.to_s)
20
- assert_equal('1000', unit.to_meter)
21
- assert_equal(1000.0, unit.factor)
22
- assert_equal('Kilometer', unit.name)
23
- assert_equal('#<Proj::Unit id="km", to_meter="1000", factor="1000.0", name="Kilometer">', unit.inspect)
24
- end
25
-
26
- def test_angular_unit
27
- unit = Proj::Unit.get('deg')
28
- assert_kind_of Proj::Unit, unit
29
- assert_equal('deg', unit.id)
30
- assert_equal('deg', unit.to_s)
31
- assert_equal('0.017453292519943296', unit.to_meter)
32
- assert_equal(0.017453292519943295, unit.factor)
33
- assert_equal('Degree', unit.name)
34
- assert_equal('#<Proj::Unit id="deg", to_meter="0.017453292519943296", factor="0.017453292519943295", name="Degree">', unit.inspect)
35
- end
36
-
37
- def test_compare
38
- u1 = Proj::Unit.get('km')
39
- u2 = Proj::Unit.get('km')
40
- assert(u1 == u2)
41
- end
42
-
43
- def test_failed_get
44
- unit = Proj::Unit.get('foo')
45
- assert_nil unit
46
- end
47
- end
1
+ # encoding: UTF-8
2
+
3
+ require_relative './abstract_test'
4
+
5
+ class UnitsTest < AbstractTest
6
+ def test_get_all
7
+ units = Proj::Unit.list.sort.collect {|unit| unit.id}
8
+ assert(units.include?('deg'))
9
+ assert(units.include?('km'))
10
+ assert(units.include?('m'))
11
+ assert(units.include?('yd'))
12
+ assert(units.include?('us-mi'))
13
+ end
14
+
15
+ def test_linear_unit
16
+ unit = Proj::Unit.get('km')
17
+ assert_kind_of Proj::Unit, unit
18
+ assert_equal('km', unit.id)
19
+ assert_equal('km', unit.to_s)
20
+ assert_equal('1000', unit.to_meter)
21
+ assert_equal(1000.0, unit.factor)
22
+ assert_equal('Kilometer', unit.name)
23
+ assert_equal('#<Proj::Unit id="km", to_meter="1000", factor="1000.0", name="Kilometer">', unit.inspect)
24
+ end
25
+
26
+ def test_angular_unit
27
+ unit = Proj::Unit.get('deg')
28
+ assert_kind_of Proj::Unit, unit
29
+ assert_equal('deg', unit.id)
30
+ assert_equal('deg', unit.to_s)
31
+ assert_equal('0.017453292519943296', unit.to_meter)
32
+ assert_equal(0.017453292519943295, unit.factor)
33
+ assert_equal('Degree', unit.name)
34
+ assert_equal('#<Proj::Unit id="deg", to_meter="0.017453292519943296", factor="0.017453292519943295", name="Degree">', unit.inspect)
35
+ end
36
+
37
+ def test_compare
38
+ u1 = Proj::Unit.get('km')
39
+ u2 = Proj::Unit.get('km')
40
+ assert(u1 == u2)
41
+ end
42
+
43
+ def test_failed_get
44
+ unit = Proj::Unit.get('foo')
45
+ assert_nil unit
46
+ end
47
+ end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proj4rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guilhem Vellut
8
8
  - Jochen Topf
9
9
  - Charlie Savage
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-01-10 00:00:00.000000000 Z
13
+ date: 2021-09-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: ffi
@@ -85,7 +85,7 @@ dependencies:
85
85
  description: " Proj4rb is a ruby binding for the Proj.4 Carthographic Projection
86
86
  library, that supports conversions between a very large number of geographic coordinate
87
87
  systems and datumspec.\n"
88
- email:
88
+ email:
89
89
  executables: []
90
90
  extensions: []
91
91
  extra_rdoc_files: []
@@ -103,22 +103,22 @@ files:
103
103
  - lib/api/api_6_0.rb
104
104
  - lib/api/api_6_1.rb
105
105
  - lib/api/api_6_2.rb
106
- - lib/area.rb
107
- - lib/config.rb
108
- - lib/context.rb
109
- - lib/coordinate.rb
110
- - lib/crs.rb
111
- - lib/ellipsoid.rb
112
- - lib/error.rb
113
- - lib/operation.rb
114
- - lib/pj_object.rb
115
- - lib/point.rb
116
- - lib/prime_meridian.rb
117
106
  - lib/proj.rb
107
+ - lib/proj/area.rb
108
+ - lib/proj/config.rb
109
+ - lib/proj/context.rb
110
+ - lib/proj/coordinate.rb
111
+ - lib/proj/crs.rb
112
+ - lib/proj/ellipsoid.rb
113
+ - lib/proj/error.rb
114
+ - lib/proj/operation.rb
115
+ - lib/proj/pj_object.rb
116
+ - lib/proj/point.rb
117
+ - lib/proj/prime_meridian.rb
118
+ - lib/proj/projection.rb
119
+ - lib/proj/transformation.rb
120
+ - lib/proj/unit.rb
118
121
  - lib/proj4.rb
119
- - lib/projection.rb
120
- - lib/transformation.rb
121
- - lib/unit.rb
122
122
  - proj4rb.gemspec
123
123
  - test/abstract_test.rb
124
124
  - test/context_test.rb
@@ -135,7 +135,7 @@ homepage: https://github.com/cfis/proj4rb
135
135
  licenses:
136
136
  - MIT
137
137
  metadata: {}
138
- post_install_message:
138
+ post_install_message:
139
139
  rdoc_options: []
140
140
  require_paths:
141
141
  - lib
@@ -151,8 +151,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  version: '0'
152
152
  requirements:
153
153
  - Proj (Proj4) Library
154
- rubygems_version: 3.1.2
155
- signing_key:
154
+ rubygems_version: 3.2.28
155
+ signing_key:
156
156
  specification_version: 4
157
157
  summary: Ruby bindings for the Proj.4 Carthographic Projection library
158
158
  test_files: []