indian-pincodes 0.0.1 → 0.0.2

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.
@@ -1,10 +1,13 @@
1
1
  require 'yaml'
2
+ # @return Details like state name, city name, post office based on pincode.
2
3
  module IndianPincodes
3
4
  VERSION = '0.0.1'
4
5
  class << self
6
+ # Search details from pincode
5
7
  def search(code)
6
8
  db[code]
7
9
  end
10
+ # Find details from yaml file
8
11
  def db
9
12
  @db ||= begin
10
13
  this_file = File.expand_path(File.dirname(__FILE__))
@@ -12,6 +15,7 @@ module IndianPincodes
12
15
  YAML.load(File.open(india_data))
13
16
  end
14
17
  end
18
+ # Preload yaml file
15
19
  def load
16
20
  db
17
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: indian-pincodes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Milind Patel
@@ -38,22 +38,25 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- description: Gem to find pincode details inside India
41
+ description: A simple gem to search details like city, state, post office,taluka name,
42
+ district name,head office and sub office details from pincode in India
42
43
  email: 66.milind@gmail.com
43
44
  executables: []
44
45
  extensions: []
45
- extra_rdoc_files: []
46
+ extra_rdoc_files:
47
+ - README.md
46
48
  files:
47
49
  - LICENSE.txt
48
50
  - README.md
49
51
  - indian_pincodes.gemspec
50
52
  - lib/data/INDIA.yml
51
53
  - lib/indian_pincodes.rb
52
- homepage: http://rubygems.org/gems/indian-pincodes
54
+ homepage: https://github.com/milind-patel/indian_pincodes
53
55
  licenses:
54
56
  - MIT
55
- metadata: {}
56
- post_install_message:
57
+ metadata:
58
+ yard.run: yri
59
+ post_install_message: Thanks for installing indian-pincodes!
57
60
  rdoc_options: []
58
61
  require_paths:
59
62
  - lib
@@ -61,7 +64,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
61
64
  requirements:
62
65
  - - ">="
63
66
  - !ruby/object:Gem::Version
64
- version: '0'
67
+ version: 1.8.6
65
68
  required_rubygems_version: !ruby/object:Gem::Requirement
66
69
  requirements:
67
70
  - - ">="
@@ -72,6 +75,5 @@ rubyforge_project:
72
75
  rubygems_version: 2.4.8
73
76
  signing_key:
74
77
  specification_version: 4
75
- summary: A simple gem to search details like city, state, post office,taluka name,
76
- district name,head office and sub office details from pincode
78
+ summary: Gem to find pincode details inside India
77
79
  test_files: []