cyprus-postal-codes 0.1.0

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 0d732be91129396dfeefde4cc7f9ca7ec86344a658acc284c40e5f33bb20b019
4
+ data.tar.gz: e278f18084a4f29be83cedca09f9d09bb6a8128494689bb8f485862105044c1b
5
+ SHA512:
6
+ metadata.gz: '0483cce51cdcb5569b4e01ee9d8b585887493d925141ce91ad0a25cdfb95a7a57203ff751002f0d1df634b715d7f15332b1af47f6eed710901cd0c4db21df4ce'
7
+ data.tar.gz: a165dd76795f8f907a9e49645b0b5d55e2936f06096c8ac7a01f7843d3cabd59cf508a4b1f1afab988647ecf52f40bb6e71478992683a0a970942bf007764bd2
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,27 @@
1
+ require:
2
+ - rubocop-rake
3
+ - rubocop-rspec
4
+
5
+ AllCops:
6
+ TargetRubyVersion: 2.7
7
+
8
+ RSpec/NestedGroups:
9
+ Max: 4
10
+
11
+ Style/Documentation:
12
+ Enabled: false
13
+
14
+ Style/StringLiterals:
15
+ Enabled: true
16
+ EnforcedStyle: double_quotes
17
+
18
+ Style/StringLiteralsInInterpolation:
19
+ Enabled: true
20
+ EnforcedStyle: double_quotes
21
+
22
+ # be a bit kinder with our metrics
23
+ Metrics/BlockLength:
24
+ IgnoredMethods: ['describe', 'context']
25
+
26
+ Layout/LineLength:
27
+ Max: 120
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2022-01-22
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at e.giataganas@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in cyprus-postal-codes.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "rspec", "~> 3.0"
11
+
12
+ gem "rubocop", "~> 1.21"
13
+ gem "rubocop-rake"
14
+ gem "rubocop-rspec"
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 Evangelos Giataganas
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,189 @@
1
+ # Cyprus Postal Codes API Rubygem
2
+
3
+ [![Build Status](https://github.com/DigitalAppsCY/cyprus-postal-codes/workflows/CI/badge.svg)](https://github.com/DigitalAppsCY/cyprus-postal-codes/actions)
4
+
5
+ ![logo](cyprus_postal_codes.png)
6
+
7
+ The easiest and most complete rubygem for [CYPRUS POST: POSTAL CODES API](https://documenter.getpostman.com/view/6477303/RztmtUjG).
8
+
9
+ ## Table of Contents
10
+
11
+ - [Installation](#installation)
12
+ - [Usage](#usage)
13
+ - [Resources](#resources)
14
+ - [Addresses](#addresses)
15
+ - [Districts](#districts)
16
+ - [Areas](#areas)
17
+ - [Search](#search)
18
+ - [Government Services](#government-Services)
19
+ - [Post Office Boxes](#post-office-boxes)
20
+ - [Parcel 24 Locations](#parcel-24-locations)
21
+ - [Occupied Areas](#occupied-areas)
22
+ - [Development](#development)
23
+ - [Contributing](#contributing)
24
+ - [License](#license)
25
+ - [Code of Conduct](#code-of-conduct)
26
+
27
+ ## Installation
28
+
29
+ Add this line to your application's Gemfile:
30
+
31
+ ```ruby
32
+ gem 'cyprus-postal-codes'
33
+ ```
34
+
35
+ And then execute:
36
+
37
+ ```bash
38
+ $ bundle install
39
+ ```
40
+
41
+ Or install it yourself as:
42
+
43
+ ```bash
44
+ $ gem install cyprus-postal-codes
45
+ ```
46
+
47
+ And access the library in Ruby:
48
+
49
+ ```ruby
50
+ require 'cyprus-postal-codes'
51
+ ```
52
+
53
+ ## Usage
54
+
55
+ To access the API, you'll need to create a `CyprusPostalCodes::Client` and pass in your API key. You can use [Cyprus Post](https://www.cypruspost.post/en/contact) contact form to request your API key.
56
+
57
+ The API is multi-language. has `lng` param on each resources. It can either be `el` which will return the response in greek or `en` which will return the response in english.
58
+
59
+ ### The client will default to the greek
60
+
61
+ ```ruby
62
+ client = CyprusPostalCodes::Client.new(api_key: ENV["CYPRUS_POSTAL_CODES_API_KEY"])
63
+ ```
64
+
65
+ ### The client will use english
66
+
67
+ ```ruby
68
+ client = CyprusPostalCodes::Client.new(api_key: ENV["CYPRUS_POSTAL_CODES_API_KEY"], lng: "en")
69
+ ```
70
+
71
+ The client then gives you access to each of the resources.
72
+
73
+ ## Resources
74
+
75
+ The gem maps as closely as we can to the Cyprus Postal Codes API so you can easily convert API examples to gem code.
76
+
77
+ Responses are returned as `Hash`.
78
+
79
+ ### Addresses
80
+
81
+ Retrieve the addresses or P.O.Boxes within selected post code.
82
+
83
+ Required parameter:
84
+ - `post_code`, must be 4 characters
85
+
86
+ ```ruby
87
+ client.addresses(post_code: 1017)
88
+ ```
89
+
90
+ ### Districts
91
+
92
+ Retrieve districts where post code search can be applied.
93
+
94
+ ```ruby
95
+ client.districts
96
+ ```
97
+
98
+ ### Areas
99
+
100
+ Retrieve areas in selected district.
101
+
102
+ Required parameter
103
+ - `district`, available districts can be found calling [district](#districts)
104
+
105
+ ```ruby
106
+ client.areas(district: "lefkosia")
107
+ ```
108
+
109
+ ### Search
110
+
111
+ Retrieves addresses filtered by the parameter.
112
+
113
+ Required parameter:
114
+ - `param`, must be at least 3 characters with characters contained in street name
115
+ - `district`, available districts can be found calling [district](#districts)
116
+
117
+ Optional parameter:
118
+ - `areas`, areas can be found calling [areas](#areas)
119
+
120
+ ```ruby
121
+ client.search(district: "lefkosia", param: "arc")
122
+ ```
123
+
124
+ ### Government Services
125
+
126
+ Retrieve government authorities' information with param be contained in name. In order to filter locations by their district, you can fill district parameter with param attribute.
127
+
128
+ Required parameter:
129
+ - `param`, must be at least 3 characters with characters contained in name
130
+
131
+ Optional parameter:
132
+ - `district`, available districts can be found calling [district](#districts)
133
+
134
+ ```ruby
135
+ client.government_services(param: "arc")
136
+ ```
137
+
138
+ ### Post Office Boxes
139
+
140
+ Retrieve post office box's information with selected number.
141
+
142
+ Required parameter:
143
+ - `number`, must be at least 5 characters
144
+
145
+ ```ruby
146
+ client.post_office_boxes(number: 12220)
147
+ ```
148
+
149
+ ### Parcel 24 Locations
150
+
151
+ Retrieve Parcel24 location's information with param be contained in name. In order to filter locations by their district, you can fill district parameter with param attribute.
152
+
153
+ Optional parameter:
154
+ - `param`, must be at least 3 characters with characters contained in name
155
+ - `district`, available districts can be found calling [district](#districts)
156
+
157
+ ```ruby
158
+ client.parcel24_locations
159
+ ```
160
+
161
+ ### Occupied Areas
162
+
163
+ Retrieve addresses of occupied area in selected district with param be contained in street name. In order to filter locations by their district, you can fill district parameter with param attribute.
164
+
165
+ Optional parameter:
166
+ - `param`, characters contained in street name
167
+ - `district`, available districts can be found calling [district](#districts)
168
+
169
+ ```ruby
170
+ client.occupied_areas
171
+ ```
172
+
173
+ ## Development
174
+
175
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
176
+
177
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
178
+
179
+ ## Contributing
180
+
181
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/cyprus-postal-codes. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/cyprus-postal-codes/blob/main/CODE_OF_CONDUCT.md).
182
+
183
+ ## License
184
+
185
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
186
+
187
+ ## Code of Conduct
188
+
189
+ Everyone interacting in the CyprusPostalCodes project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/cyprus-postal-codes/blob/main/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[rubocop spec]
Binary file
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CyprusPostalCodes
4
+ class Client
5
+ module Addresses
6
+ def addresses(post_code:, page_token: nil)
7
+ get("addresses", postal_code: post_code, page_token: page_token)
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CyprusPostalCodes
4
+ class Client
5
+ module Areas
6
+ def areas(district:, page_token: nil)
7
+ get("get-areas", district: district, page_token: page_token)
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CyprusPostalCodes
4
+ class Client
5
+ module Districts
6
+ def districts
7
+ get("district-selection")
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CyprusPostalCodes
4
+ class Client
5
+ module GovernmentServices
6
+ def government_services(param:, district: nil, page_token: nil)
7
+ get("government-services", param: param, district: district, page_token: page_token)
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CyprusPostalCodes
4
+ class Client
5
+ module OccupiedAreas
6
+ def occupied_areas(district: nil, param: nil, page_token: nil)
7
+ get("occupied-areas", district: district, param: param, page_token: page_token)
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,44 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CyprusPostalCodes
4
+ class Client
5
+ module Paginator
6
+ RESOURCES = %w[addresses result].freeze
7
+ private_constant :RESOURCES
8
+
9
+ def next_page
10
+ paginator&.dig("tokens", "next_page")
11
+ end
12
+
13
+ def previous_page
14
+ paginator&.dig("tokens", "previous_page")
15
+ end
16
+
17
+ def first_page
18
+ paginator&.dig("tokens", "first_page")
19
+ end
20
+
21
+ def last_page
22
+ paginator&.dig("tokens", "last_page")
23
+ end
24
+
25
+ def total_pages
26
+ paginator&.fetch("total_pages") || 0
27
+ end
28
+
29
+ def total_count
30
+ paginator&.fetch("total_count") || 0
31
+ end
32
+
33
+ private
34
+
35
+ def paginator
36
+ @paginator = last_response&.body&.dig("data", resource&.join, "paginator")
37
+ end
38
+
39
+ def resource
40
+ last_response&.body&.dig("data")&.keys & RESOURCES
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CyprusPostalCodes
4
+ class Client
5
+ module Parcel24Locations
6
+ def parcel24_locations(district: nil, param: nil, page_token: nil)
7
+ get("parcel24-locations", district: district, param: param, page_token: page_token)
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CyprusPostalCodes
4
+ class Client
5
+ module PostOfficeBoxes
6
+ def post_office_boxes(number:, page_token: nil)
7
+ get("post-office-boxes", number: number, page_token: page_token)
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CyprusPostalCodes
4
+ class Client
5
+ module Search
6
+ def search(district:, param:, area: nil, page_token: nil)
7
+ get("search", district: district, param: param, area: area, page_token: page_token)
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,53 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "faraday"
4
+ require "faraday_middleware"
5
+
6
+ module CyprusPostalCodes
7
+ class Client
8
+ include Addresses
9
+ include Areas
10
+ include Districts
11
+ include GovernmentServices
12
+ include OccupiedAreas
13
+ include Paginator
14
+ include Parcel24Locations
15
+ include PostOfficeBoxes
16
+ include Search
17
+
18
+ BASE_URL = "https://cypruspost.post/api/postal-codes/"
19
+ private_constant :BASE_URL
20
+
21
+ def initialize(api_key:, lng: "el")
22
+ @api_key = api_key
23
+ @lng = lng
24
+ end
25
+
26
+ def get(resource, options = {})
27
+ @last_response = connection.get(resource, options.merge(default_params))
28
+ @last_response.body["data"]
29
+ end
30
+
31
+ def last_response
32
+ @last_response if defined?(@last_response)
33
+ end
34
+
35
+ private
36
+
37
+ attr_reader :api_key, :lng
38
+
39
+ def default_params
40
+ { lng: lng }
41
+ end
42
+
43
+ def connection
44
+ @connection ||= Faraday.new do |conn|
45
+ conn.url_prefix = BASE_URL
46
+ conn.headers["Authorization"] = api_key
47
+ conn.adapter Faraday.default_adapter
48
+ conn.request :json
49
+ conn.response :json, content_type: "application/json"
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CyprusPostalCodes
4
+ class Error < StandardError; end
5
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CyprusPostalCodes
4
+ VERSION = "0.1.0"
5
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "cyprus_postal_codes/version"
4
+
5
+ module CyprusPostalCodes
6
+ autoload :Addresses, "cyprus_postal_codes/client/addresses"
7
+ autoload :Areas, "cyprus_postal_codes/client/areas"
8
+ autoload :Client, "cyprus_postal_codes/client"
9
+ autoload :Districts, "cyprus_postal_codes/client/districts"
10
+ autoload :Error, "cyprus_postal_codes/error"
11
+ autoload :GovernmentServices, "cyprus_postal_codes/client/government_services"
12
+ autoload :OccupiedAreas, "cyprus_postal_codes/client/occupied_areas"
13
+ autoload :Paginator, "cyprus_postal_codes/client/paginator"
14
+ autoload :Parcel24Locations, "cyprus_postal_codes/client/parcel24_locations"
15
+ autoload :PostOfficeBoxes, "cyprus_postal_codes/client/post_office_boxes"
16
+ autoload :Search, "cyprus_postal_codes/client/search"
17
+ end
@@ -0,0 +1,4 @@
1
+ module CyprusPostalCodes
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,99 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cyprus-postal-codes
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Evangelos Giataganas
8
+ - Despo Pentara
9
+ autorequire:
10
+ bindir: exe
11
+ cert_chain: []
12
+ date: 2022-02-06 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: faraday
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '1.9'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '1.9'
28
+ - !ruby/object:Gem::Dependency
29
+ name: faraday_middleware
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '1.2'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '1.2'
42
+ description: 'A gem for using the CyprusPost: Postal Codes API (https://documenter.getpostman.com/view/6477303/RztmtUjG)'
43
+ email:
44
+ - evangelos@digitalapps.io
45
+ - despo@extractmethod.com
46
+ executables: []
47
+ extensions: []
48
+ extra_rdoc_files: []
49
+ files:
50
+ - ".rspec"
51
+ - ".rubocop.yml"
52
+ - CHANGELOG.md
53
+ - CODE_OF_CONDUCT.md
54
+ - Gemfile
55
+ - LICENSE.txt
56
+ - README.md
57
+ - Rakefile
58
+ - cyprus_postal_codes.png
59
+ - lib/cyprus_postal_codes.rb
60
+ - lib/cyprus_postal_codes/client.rb
61
+ - lib/cyprus_postal_codes/client/addresses.rb
62
+ - lib/cyprus_postal_codes/client/areas.rb
63
+ - lib/cyprus_postal_codes/client/districts.rb
64
+ - lib/cyprus_postal_codes/client/government_services.rb
65
+ - lib/cyprus_postal_codes/client/occupied_areas.rb
66
+ - lib/cyprus_postal_codes/client/paginator.rb
67
+ - lib/cyprus_postal_codes/client/parcel24_locations.rb
68
+ - lib/cyprus_postal_codes/client/post_office_boxes.rb
69
+ - lib/cyprus_postal_codes/client/search.rb
70
+ - lib/cyprus_postal_codes/error.rb
71
+ - lib/cyprus_postal_codes/version.rb
72
+ - sig/cyprus_postal_codes/cyprus_postal_codes.rbs
73
+ homepage: https://github.com/EGiataganas/cyprus-postal-codes
74
+ licenses:
75
+ - MIT
76
+ metadata:
77
+ homepage_uri: https://github.com/EGiataganas/cyprus-postal-codes
78
+ source_code_uri: https://github.com/EGiataganas/cyprus-postal-codes
79
+ changelog_uri: https://github.com/EGiataganas/cyprus-postal-codes/blob/master/CHANGELOG.md
80
+ post_install_message:
81
+ rdoc_options: []
82
+ require_paths:
83
+ - lib
84
+ required_ruby_version: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: 2.7.0
89
+ required_rubygems_version: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ requirements: []
95
+ rubygems_version: 3.1.6
96
+ signing_key:
97
+ specification_version: 4
98
+ summary: 'A gem for using the CyprusPost: Postal Codes API'
99
+ test_files: []