icehouse-swedishgrid 0.1.1 → 0.1.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.
@@ -12,7 +12,8 @@ Rewritten in ruby by Magnus Enarsson at ICE House, 2009.
12
12
  == SYNOPSIS:
13
13
 
14
14
  grid = SwedishGrid.new(:rt90)
15
- grid.grid_to_geodetic()
15
+ grid.grid_to_geodetic(7453389.762, 1727060.905)
16
+ # Outputs => [67.0906813246069, 21.034750437141]
16
17
 
17
18
  == DEPENDENCIES:
18
19
 
data/Rakefile ADDED
@@ -0,0 +1,55 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+
4
+ begin
5
+ require 'jeweler'
6
+ Jeweler::Tasks.new do |gem|
7
+ gem.name = "swedishgrid"
8
+ gem.summary = %Q{TODO}
9
+ gem.email = "info@entanke.se"
10
+ gem.homepage = "http://github.com/icehouse/swedishgrid"
11
+ gem.authors = ["Magnus Enarsson"]
12
+ # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
13
+ end
14
+ rescue LoadError
15
+ puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
16
+ end
17
+
18
+ require 'rake/testtask'
19
+ Rake::TestTask.new(:test) do |test|
20
+ test.libs << 'lib' << 'test'
21
+ test.pattern = 'test/**/*_test.rb'
22
+ test.verbose = true
23
+ end
24
+
25
+ begin
26
+ require 'rcov/rcovtask'
27
+ Rcov::RcovTask.new do |test|
28
+ test.libs << 'test'
29
+ test.pattern = 'test/**/*_test.rb'
30
+ test.verbose = true
31
+ end
32
+ rescue LoadError
33
+ task :rcov do
34
+ abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
35
+ end
36
+ end
37
+
38
+
39
+ task :default => :test
40
+
41
+ require 'rake/rdoctask'
42
+ Rake::RDocTask.new do |rdoc|
43
+ if File.exist?('VERSION.yml')
44
+ config = YAML.load(File.read('VERSION.yml'))
45
+ version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
46
+ else
47
+ version = ""
48
+ end
49
+
50
+ rdoc.rdoc_dir = 'rdoc'
51
+ rdoc.title = "swedishgrid #{version}"
52
+ rdoc.rdoc_files.include('README*')
53
+ rdoc.rdoc_files.include('lib/**/*.rb')
54
+ end
55
+
data/VERSION.yml ADDED
@@ -0,0 +1,4 @@
1
+ ---
2
+ :minor: 1
3
+ :patch: 2
4
+ :major: 0
@@ -1,5 +1,4 @@
1
- require "test/unit"
2
- require "swedishgrid"
1
+ require "test_helper"
3
2
 
4
3
  class TestSwedishGrid < Test::Unit::TestCase
5
4
 
@@ -0,0 +1,9 @@
1
+ require 'rubygems'
2
+ require 'test/unit'
3
+
4
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
5
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
6
+ require 'swedishgrid'
7
+
8
+ class Test::Unit::TestCase
9
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: icehouse-swedishgrid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Magnus Enarsson
@@ -13,25 +13,26 @@ date: 2009-05-05 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
16
- description: Convert coordinates between geodetic WGS84 and Swedish grid RT90 and SWEREF99 systems.
17
- email:
16
+ description:
17
+ email: magnus@icehouse.se
18
18
  executables: []
19
19
 
20
20
  extensions: []
21
21
 
22
- extra_rdoc_files: []
23
-
22
+ extra_rdoc_files:
23
+ - README.rdoc
24
24
  files:
25
- - History.txt
26
- - Manifest.txt
27
- - README
25
+ - README.rdoc
26
+ - Rakefile
27
+ - VERSION.yml
28
28
  - lib/swedishgrid.rb
29
- - test/test_swedishgrid.rb
30
- has_rdoc: false
29
+ - test/swedishgrid_test.rb
30
+ - test/test_helper.rb
31
+ has_rdoc: true
31
32
  homepage:
32
33
  post_install_message:
33
- rdoc_options: []
34
-
34
+ rdoc_options:
35
+ - --charset=UTF-8
35
36
  require_paths:
36
37
  - lib
37
38
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -52,6 +53,7 @@ rubyforge_project:
52
53
  rubygems_version: 1.2.0
53
54
  signing_key:
54
55
  specification_version: 2
55
- summary: Grit is a Ruby library for extracting information from a git repository in an object oriented manner.
56
- test_files: []
57
-
56
+ summary: Convert coordinates between geodetic WGS84 and Swedish grid RT90 and SWEREF99 systems.
57
+ test_files:
58
+ - test/swedishgrid_test.rb
59
+ - test/test_helper.rb
data/History.txt DELETED
@@ -1,3 +0,0 @@
1
- === 0.1.0 / 2009-05-05
2
-
3
- * Converted from JavaScript Version.
data/Manifest.txt DELETED
@@ -1,5 +0,0 @@
1
- History.txt
2
- Manifest.txt
3
- README.txt
4
- lib/swedishgrid.rb
5
- test/test_swedishgrid.rb