northern_pike 0.1.0 → 0.1.1

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: 87ac4cb5ac3a1d39c4ef6d4aa722e4f99f5cee96
4
- data.tar.gz: cd1ec2f7412a2e894213145b54aeb53a17089e03
3
+ metadata.gz: 6aa8b80db3a5e80ac99e3d84225e9824e99ac39d
4
+ data.tar.gz: 85860b81b55b934d65ac8c9d0affb9d73a027333
5
5
  SHA512:
6
- metadata.gz: 451a906add38f304811f4446fc208737b12b33270367909e189e5aa70e4e69723a61e77fbbf03953bc4a92caa6787bfe530993f69d61e9c1a715992580f07abd
7
- data.tar.gz: 23c89ae49b1b948dfb67ec493f8ac1d3e3fcabf9e3af85d5d82f17f58c126c37d47f4fbcd90715c10d32cc27c9d825998a5a8f80821b0117e2dbc66b489acc49
6
+ metadata.gz: b70eb65c51376913b8cfb67b7f3ce6a16aa4ec2906ffc6be8322e40c384cd4f4decca02155f8498db53e6a6600623643a940512323eda5545eccbc1b5b7e4f76
7
+ data.tar.gz: 95d20f6cacf13a3060793923052a83d1462d19337ad902d4a2a32e60801b61db9de342293fc2590d422833219dafe3ad3d74f431f7dd11353ceef07406c54373
data/.gitignore CHANGED
@@ -8,3 +8,4 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  .byebug_history
11
+ .gem
data/README.md CHANGED
@@ -44,7 +44,7 @@ After checking out the repo, run `bin/setup` to install dependencies. You can al
44
44
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
45
45
 
46
46
  ## Contributing
47
- Bug reports and pull requests are welcome on GitHub at https://github.com/Steven/northern_pike.
47
+ Bug reports and pull requests are welcome on GitHub at https://github.com/cookiescrumbs/northern-pike.
48
48
 
49
49
  ## License
50
50
  This code is free to use under the terms of the MIT license.
data/lib/northern_pike.rb CHANGED
@@ -33,4 +33,18 @@ module NorthernPike
33
33
 
34
34
  { os_map_ref: OsMapRef::Location.for("#{location.lon},#{location.lat}").map_reference }
35
35
  end
36
+
37
+ def self.easting_northing_to_lat_lng(easting:, northing:)
38
+ location = GlobalConvert::Location.new(
39
+ input: {
40
+ projection: :osgb36,
41
+ lon: easting,
42
+ lat: northing
43
+ },
44
+ output: {
45
+ projection: :wgs84
46
+ }
47
+ )
48
+ { lat: (location.lat * 180 / Math::PI), lng: (location.lon * 180 / Math::PI) }
49
+ end
36
50
  end
@@ -1,3 +1,3 @@
1
1
  module NorthernPike
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -32,10 +32,10 @@ Gem::Specification.new do |spec|
32
32
  spec.add_dependency 'global_convert', '0.0.2'
33
33
  spec.add_dependency 'os_map_ref', '0.5.0'
34
34
 
35
- spec.add_development_dependency 'bundler', '1.14'
35
+ spec.add_development_dependency 'bundler'
36
36
  spec.add_development_dependency 'byebug', '11.1.1'
37
37
  spec.add_development_dependency 'rake', '10.0'
38
38
  spec.add_development_dependency 'rspec', '3.9.0'
39
39
  spec.add_development_dependency 'rubocop', '0.79.0'
40
40
 
41
- end
41
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: northern_pike
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-21 00:00:00.000000000 Z
11
+ date: 2021-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: global_convert
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '1.14'
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '1.14'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: byebug
57
57
  requirement: !ruby/object:Gem::Requirement