scaffold_plus 1.7.13 → 1.7.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d2698f0edfe0972cf4be6a92b1c4390fa2148d1
4
- data.tar.gz: 409532c06960f54339dd7e496eddeba112f37a6c
3
+ metadata.gz: 5e1b158b5a64782f24bd5b862ac9c195b9868c0a
4
+ data.tar.gz: 2c9290a494019d95cd6e0c8796f5d86bc7f893b2
5
5
  SHA512:
6
- metadata.gz: f2cf3e501cebfc685e8a3bd6b161a005647851978e7669d43308ab2eef71ccb7a57659e93aba1f597c6fb5badb04d4a4df75b9e9ff73df3a65c043215e99ad44
7
- data.tar.gz: 79b419ec66d6d74d1e9f7ff5cb006bf2b386f452698902f3b306cfa4a4fdcd28ec1da2ce8fcd9834ba6c993f74fff61b7cdf20aa8802ae483a802598d35f8538
6
+ metadata.gz: 6ccb0f1db4d173dc2a147a85b48815bdab8e980f76c4455b695f34f45850500060e73e1145d0a7177d4448d7d78dff50b3d40e55ea78c431401ccf8f1ea15490
7
+ data.tar.gz: 8ffbe2e0e780c247b5b0e25fa631197dc5af29e0b6f704932b885d8ebbb6e56cb7e45aa343869a2cce5624d61d627fc7ad61b5a71f0fbada69b3c5fcaa162249
@@ -35,7 +35,7 @@ module ScaffoldPlus
35
35
  lines = options.before? ? [ "" ] : []
36
36
  lines << [
37
37
  " def to_lat_lon",
38
- " [#{lat}.to_f, #{lng}.to_f]",
38
+ " [#{lat}, #{lng}]",
39
39
  " end",
40
40
  "",
41
41
  " def as_dms(value)",
@@ -48,10 +48,10 @@ module ScaffoldPlus
48
48
  " # Normalize geo information",
49
49
  " wgs84 = Wgs84.new",
50
50
  " if self.#{lat}.present?",
51
- " self.#{lat} = wgs84.as_deg(self.#{lat}.to_f)",
51
+ " self.#{lat} = wgs84.as_bigdec(self.#{lat})",
52
52
  " end",
53
53
  " if self.#{lng}.present?",
54
- " self.#{lng} = wgs84.as_deg(self.#{lng}.to_f)",
54
+ " self.#{lng} = wgs84.as_bigdec(self.#{lng})",
55
55
  " end",
56
56
  " end",
57
57
  ""
@@ -1,3 +1,3 @@
1
1
  module ScaffoldPlus
2
- VERSION = "1.7.13"
2
+ VERSION = "1.7.14"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scaffold_plus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.13
4
+ version: 1.7.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Volker Wiegand