mcc_mnc 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/mcc_mnc/mcc.rb +2 -2
- data/lib/mcc_mnc/version.rb +1 -1
- 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: 4ee306a0d6564884e59d5d6dbb995f3c52218658
|
4
|
+
data.tar.gz: f902501e05fe3a4fca8aa8cdef83cf2b212406d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ad951b4d06c7eae73ea184dd62a2fb4e76320a86c5238eeac01f8b8c34e35f4ac56e4d60897d765fa829935ebae9d5d07d1c75e78379b7e363ba4d6f8fc7c85
|
7
|
+
data.tar.gz: a28d96653d224930fa73545ad0a1fa0a42a03adbba55810bbb32eeb3b3fd9057831f5238e2c1426d73e694d0147714b5584c727c4d393dc58cce1c5a3bf0f146
|
data/lib/mcc_mnc/mcc.rb
CHANGED
@@ -7,13 +7,13 @@ module MCC_MNC
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def self.find(mcc)
|
10
|
-
@mcc_cc ||= YAML.load(File.read('data
|
10
|
+
@mcc_cc ||= YAML.load(File.read(File.join(File.expand_path(File.dirname(__FILE__)), '..', '..', 'data', 'mnc_cc.yaml')))
|
11
11
|
cc = @mcc_cc[Integer("#{mcc}", 10)]
|
12
12
|
new(mcc, cc)
|
13
13
|
end
|
14
14
|
|
15
15
|
def inspect
|
16
|
-
"<MCC mcc: #{mcc}, cc: #{cc}>"
|
16
|
+
"<MCC mcc: #{mcc.inspect}, cc: #{cc.inspect}>"
|
17
17
|
end
|
18
18
|
|
19
19
|
end
|
data/lib/mcc_mnc/version.rb
CHANGED