hola_milind_patel 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hola_milind_patel.rb +11 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae952e856ff8c9558e32152e3707ee65a5856fc6
|
4
|
+
data.tar.gz: 9d8c2786fa2f55c33b557db92434a3beece35476
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ef6e2b4e91b5dc54e8572c3bbe70f6f406128e1987c9296a4fb8c2c7bfffb7a67e50cd84a3e4c63c618c30e6a38e19d810edd4dfdb9d8bd1055525ea33a284f
|
7
|
+
data.tar.gz: 01a37bd763223936b956909f0f597c87ea73ed6b0656d3f20ed2abae7b0d79e6224b065abe988a4183e92512e97217ae78c6ea92a5dc9a2453a66a3c366fffd2
|
data/lib/hola_milind_patel.rb
CHANGED
@@ -20,7 +20,8 @@ module HolaMilindPatel
|
|
20
20
|
center
|
21
21
|
end
|
22
22
|
else
|
23
|
-
|
23
|
+
HolaMilindPatel.locale = language
|
24
|
+
#Mobility.locale = language
|
24
25
|
centers = data.as_json
|
25
26
|
if strict == "true"
|
26
27
|
centers.map do |center|
|
@@ -52,7 +53,8 @@ module HolaMilindPatel
|
|
52
53
|
end
|
53
54
|
return c
|
54
55
|
else
|
55
|
-
|
56
|
+
HolaMilindPatel.locale = language
|
57
|
+
#Mobility.locale = language
|
56
58
|
center = data
|
57
59
|
if strict == "true"
|
58
60
|
center.as_json.each do |key,value|
|
@@ -70,4 +72,11 @@ module HolaMilindPatel
|
|
70
72
|
puts "Hello Milind! Your Gem is working!!"
|
71
73
|
puts "===================="
|
72
74
|
end
|
75
|
+
class << self
|
76
|
+
def locale=(locale)
|
77
|
+
Mobility.locale = locale
|
78
|
+
puts "Locale has been set to " + locale
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
73
82
|
end
|