GUI-graticule 0.2.7.5 → 0.2.7.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -64,6 +64,10 @@ module Graticule #:nodoc:
64
64
  def <=>(other)
65
65
  other.preference <=> preference
66
66
  end
67
+
68
+ def self.service_name
69
+ self.name.split("::").last
70
+ end
67
71
 
68
72
  private
69
73
 
@@ -109,6 +109,10 @@ module Graticule
109
109
  hash[:precision] = precision.order
110
110
  hash[:warning] = warning
111
111
 
112
+ if geocoder
113
+ hash[:geocoder] = geocoder.class.service_name
114
+ end
115
+
112
116
  hash
113
117
  end
114
118
 
@@ -30,23 +30,23 @@ module Graticule
30
30
  end
31
31
 
32
32
  def self.city
33
- @@city ||= Precision.new(3, "city")
33
+ @@city ||= Precision.new(4, "city")
34
34
  end
35
35
 
36
36
  def self.zip
37
- @@zip ||= Precision.new(4, "zip")
37
+ @@zip ||= Precision.new(5, "zip")
38
38
  end
39
39
 
40
40
  def self.street
41
- @@street ||= Precision.new(5, "street")
41
+ @@street ||= Precision.new(6, "street")
42
42
  end
43
43
 
44
44
  def self.address
45
- @@address ||= Precision.new(6, "address")
45
+ @@address ||= Precision.new(8, "address")
46
46
  end
47
47
 
48
48
  def self.premise
49
- @@premise ||= Precision.new(7, "premise")
49
+ @@premise ||= Precision.new(9, "premise")
50
50
  end
51
51
  end
52
52
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: GUI-graticule
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7.5
4
+ version: 0.2.7.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Keepers