mapbaidu 0.0.6 → 0.0.7

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.
Files changed (2) hide show
  1. data/lib/map_baidu.rb +2 -2
  2. metadata +3 -3
data/lib/map_baidu.rb CHANGED
@@ -54,7 +54,7 @@ class MapBaiDu
54
54
  return _get_round_base_lng_and_lat_and_distance(current_lat, current_lng, distance)
55
55
  end
56
56
 
57
- def round_base_lng_and_lat(distance, lng, lat)
57
+ def self.round_base_lng_and_lat(distance, lng, lat)
58
58
 
59
59
  current_lat = (lat.round(4)*10000).to_int
60
60
  current_lng = (lng.round(4)*10000).to_int
@@ -100,7 +100,7 @@ class MapBaiDu
100
100
  return result
101
101
  end
102
102
 
103
- def round_base_lng_and_lat_to_i(distance, lng, lat)
103
+ def self.round_base_lng_and_lat_to_i(distance, lng, lat)
104
104
 
105
105
  result = Array.new
106
106
  array = self.round_base_lng_and_lat(distance, lng, lat)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mapbaidu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,9 +9,9 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-23 00:00:00.000000000 Z
12
+ date: 2013-05-24 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: ! 'you can get round base lng && lat '
14
+ description: change round_base function to static function
15
15
  email: zhangfortune527@gmail.com
16
16
  executables: []
17
17
  extensions: []