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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/hola_milind_patel.rb +11 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 132d4afba34d046db42cb3f0dbc051cea09ca687
4
- data.tar.gz: 3c0a93551b0c82c783e2dd6a98897c047f60cb60
3
+ metadata.gz: ae952e856ff8c9558e32152e3707ee65a5856fc6
4
+ data.tar.gz: 9d8c2786fa2f55c33b557db92434a3beece35476
5
5
  SHA512:
6
- metadata.gz: 5d688f9e1449eb6e18015f43dfb7be7e76f13cb0c18b25f5d1eef16ae25fbf40d3829dfdb1a9ab026f3101e6ffaadfb3a9300c98479b4af1293e8580fb22bc78
7
- data.tar.gz: 155b3d5846616a26edf402abcc4ab1c4c1d8921aee62eb3e2f4d2f9cde75502c4c9df5f6fecc68f77fb0c866e134711be0288f51bbd96ecdbb2ad6b63f5975c2
6
+ metadata.gz: 7ef6e2b4e91b5dc54e8572c3bbe70f6f406128e1987c9296a4fb8c2c7bfffb7a67e50cd84a3e4c63c618c30e6a38e19d810edd4dfdb9d8bd1055525ea33a284f
7
+ data.tar.gz: 01a37bd763223936b956909f0f597c87ea73ed6b0656d3f20ed2abae7b0d79e6224b065abe988a4183e92512e97217ae78c6ea92a5dc9a2453a66a3c366fffd2
@@ -20,7 +20,8 @@ module HolaMilindPatel
20
20
  center
21
21
  end
22
22
  else
23
- Mobility.locale = language
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
- Mobility.locale = language
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hola_milind_patel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Milind Patel