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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e907eabb72e3a2ebe407bfc86cb3fa3b81dc2f2f
4
- data.tar.gz: 91f2a83a06e84d95dd834f6a6bd6caff5c487ff6
3
+ metadata.gz: 4ee306a0d6564884e59d5d6dbb995f3c52218658
4
+ data.tar.gz: f902501e05fe3a4fca8aa8cdef83cf2b212406d6
5
5
  SHA512:
6
- metadata.gz: a6c6dcc46395f4e8fb0761ad0c946f9fd7a4ad5ef4967c4add2adbdcbebc9fc1a82861671d3cc8a21317f16e8654be6e432dfd51c12db757e09726291b14b8f5
7
- data.tar.gz: f1a5ab4daa14930595c6af13c92336bd97066355b8c5a72947ab3daa07eecc7f6135ac0a9067ac132a0365076c061d14229898ef107e0d2b3a2a7399355fce4e
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/mnc_cc.yaml'))
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
@@ -1,3 +1,3 @@
1
1
  module MCC_MNC
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mcc_mnc
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
  - Maciek Dubiński