craftyclicks-ruby 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
+ SHA1:
3
+ metadata.gz: fbb10e26b99dd6302a6600c2f5d955754c03204b
4
+ data.tar.gz: 76345592331b38fb0326f1d6bf86a309102fb083
5
+ SHA512:
6
+ metadata.gz: de2cfffb1a2afe2aade12e0470b107c1f5ff80b938a60358b39b92fbd17832c519f5dde70f5d6b1354f6ba25977e56cd881762225fe1f026cc055430006d5b32
7
+ data.tar.gz: 769c5b0668542fc3c8262fb790ba13e5561cd7190afbecadcab6f2fca1436b968bb828afdae2b48e1bc046e2507cf96d45d35c7d549f357be9dea0b3974e430b
data/.gitignore ADDED
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format Fuubar
2
+ --color
data/.rubocop.yml ADDED
@@ -0,0 +1,164 @@
1
+ # Relaxed.Ruby.Style
2
+ ## Version 2.0
3
+
4
+ Style/Alias:
5
+ Enabled: false
6
+ StyleGuide: http://relaxed.ruby.style/#stylealias
7
+
8
+ Style/AsciiComments:
9
+ Enabled: false
10
+ StyleGuide: http://relaxed.ruby.style/#styleasciicomments
11
+
12
+ Style/BeginBlock:
13
+ Enabled: false
14
+ StyleGuide: http://relaxed.ruby.style/#stylebeginblock
15
+
16
+ Style/BlockDelimiters:
17
+ Enabled: false
18
+ StyleGuide: http://relaxed.ruby.style/#styleblockdelimiters
19
+
20
+ Style/CommentAnnotation:
21
+ Enabled: false
22
+ StyleGuide: http://relaxed.ruby.style/#stylecommentannotation
23
+
24
+ Style/Documentation:
25
+ Enabled: false
26
+ StyleGuide: http://relaxed.ruby.style/#styledocumentation
27
+
28
+ Style/DotPosition:
29
+ Enabled: false
30
+ StyleGuide: http://relaxed.ruby.style/#styledotposition
31
+
32
+ Style/DoubleNegation:
33
+ Enabled: false
34
+ StyleGuide: http://relaxed.ruby.style/#styledoublenegation
35
+
36
+ Style/EndBlock:
37
+ Enabled: false
38
+ StyleGuide: http://relaxed.ruby.style/#styleendblock
39
+
40
+ Style/FormatString:
41
+ Enabled: false
42
+ StyleGuide: http://relaxed.ruby.style/#styleformatstring
43
+
44
+ Style/IfUnlessModifier:
45
+ Enabled: false
46
+ StyleGuide: http://relaxed.ruby.style/#styleifunlessmodifier
47
+
48
+ Style/Lambda:
49
+ Enabled: false
50
+ StyleGuide: http://relaxed.ruby.style/#stylelambda
51
+
52
+ Style/ModuleFunction:
53
+ Enabled: false
54
+ StyleGuide: http://relaxed.ruby.style/#stylemodulefunction
55
+
56
+ Style/MultilineBlockChain:
57
+ Enabled: false
58
+ StyleGuide: http://relaxed.ruby.style/#stylemultilineblockchain
59
+
60
+ Style/NegatedIf:
61
+ Enabled: false
62
+ StyleGuide: http://relaxed.ruby.style/#stylenegatedif
63
+
64
+ Style/NegatedWhile:
65
+ Enabled: false
66
+ StyleGuide: http://relaxed.ruby.style/#stylenegatedwhile
67
+
68
+ Style/ParallelAssignment:
69
+ Enabled: false
70
+ StyleGuide: http://relaxed.ruby.style/#styleparallelassignment
71
+
72
+ Style/PercentLiteralDelimiters:
73
+ Enabled: false
74
+ StyleGuide: http://relaxed.ruby.style/#stylepercentliteraldelimiters
75
+
76
+ Style/PerlBackrefs:
77
+ Enabled: false
78
+ StyleGuide: http://relaxed.ruby.style/#styleperlbackrefs
79
+
80
+ Style/Semicolon:
81
+ Enabled: false
82
+ StyleGuide: http://relaxed.ruby.style/#stylesemicolon
83
+
84
+ Style/SignalException:
85
+ Enabled: false
86
+ StyleGuide: http://relaxed.ruby.style/#stylesignalexception
87
+
88
+ Style/SingleLineBlockParams:
89
+ Enabled: false
90
+ StyleGuide: http://relaxed.ruby.style/#stylesinglelineblockparams
91
+
92
+ Style/SingleLineMethods:
93
+ Enabled: false
94
+ StyleGuide: http://relaxed.ruby.style/#stylesinglelinemethods
95
+
96
+ Style/SpaceBeforeBlockBraces:
97
+ Enabled: false
98
+ StyleGuide: http://relaxed.ruby.style/#stylespacebeforeblockbraces
99
+
100
+ Style/SpaceInsideParens:
101
+ Enabled: false
102
+ StyleGuide: http://relaxed.ruby.style/#stylespaceinsideparens
103
+
104
+ Style/SpecialGlobalVars:
105
+ Enabled: false
106
+ StyleGuide: http://relaxed.ruby.style/#stylespecialglobalvars
107
+
108
+ Style/StringLiterals:
109
+ Enabled: false
110
+ StyleGuide: http://relaxed.ruby.style/#stylestringliterals
111
+
112
+ Style/TrailingCommaInArguments:
113
+ Enabled: false
114
+ StyleGuide: http://relaxed.ruby.style/#styletrailingcommainarguments
115
+
116
+ Style/TrailingCommaInLiteral:
117
+ Enabled: false
118
+ StyleGuide: http://relaxed.ruby.style/#styletrailingcommainliteral
119
+
120
+ Style/WhileUntilModifier:
121
+ Enabled: false
122
+ StyleGuide: http://relaxed.ruby.style/#stylewhileuntilmodifier
123
+
124
+ Style/WordArray:
125
+ Enabled: false
126
+ StyleGuide: http://relaxed.ruby.style/#stylewordarray
127
+
128
+ Lint/AmbiguousRegexpLiteral:
129
+ Enabled: false
130
+ StyleGuide: http://relaxed.ruby.style/#lintambiguousregexpliteral
131
+
132
+ Lint/AssignmentInCondition:
133
+ Enabled: false
134
+ StyleGuide: http://relaxed.ruby.style/#lintassignmentincondition
135
+
136
+ Metrics/AbcSize:
137
+ Enabled: false
138
+
139
+ Metrics/BlockNesting:
140
+ Enabled: false
141
+
142
+ Metrics/ClassLength:
143
+ Enabled: false
144
+
145
+ Metrics/ModuleLength:
146
+ Enabled: false
147
+
148
+ Metrics/CyclomaticComplexity:
149
+ Enabled: false
150
+
151
+ Metrics/LineLength:
152
+ Enabled: false
153
+
154
+ Metrics/BlockLength:
155
+ Enabled: false
156
+
157
+ Metrics/MethodLength:
158
+ Enabled: false
159
+
160
+ Metrics/ParameterLists:
161
+ Enabled: false
162
+
163
+ Metrics/PerceivedComplexity:
164
+ Enabled: false
data/.travis.yml ADDED
@@ -0,0 +1,11 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.1
5
+ - 2.2.5
6
+ - 2.3.3
7
+ - 2.4.1
8
+
9
+ cache: bundler
10
+ before_install: gem update
11
+ script: bundle exec rspec
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in craftyclicks.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Joseph Southan
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,69 @@
1
+ # CraftyClicks
2
+ [![Build Status](https://travis-ci.org/JoeSouthan/craftyclicks-ruby.svg?branch=master)](https://travis-ci.org/JoeSouthan/craftyclicks-ruby)
3
+ [![Code Climate](https://codeclimate.com/github/JoeSouthan/craftyclicks-ruby/badges/gpa.svg)](https://codeclimate.com/github/JoeSouthan/craftyclicks-ruby)
4
+
5
+ A simple wrapper around the CraftyClicks APIs 🌍
6
+
7
+ [ClickToAddress](https://craftyclicks.co.uk/docs/global/#json-api) | [RapidAddress](https://craftyclicks.co.uk/docs/postcode-lookup/#json-api)
8
+
9
+ This is a WIP, expect the implementation to change
10
+
11
+ ## Installation
12
+
13
+ Add this line to your application's Gemfile:
14
+
15
+ ```ruby
16
+ gem 'craftyclicks-ruby'
17
+ ```
18
+
19
+ And then execute:
20
+
21
+ $ bundle
22
+
23
+ Or install it yourself as:
24
+
25
+ $ gem install craftyclicks-ruby
26
+
27
+ ## Usage
28
+
29
+ Set your API key
30
+
31
+ ```ruby
32
+ require 'crafty_clicks'
33
+
34
+ CraftyClicks.configure do |c|
35
+ c.api_key = 'API_KEY'
36
+ end
37
+
38
+ ```
39
+
40
+ ### [Address lookup](https://craftyclicks.co.uk/docs/global/#json-api):
41
+
42
+ ```ruby
43
+ CraftyClicks::AddressLookup.find(query: 'Buckingham Palace', country: 'GB')
44
+ CraftyClicks::AddressLookup.retrieve(id: '26086283', country: 'GB')
45
+ ```
46
+
47
+ ### [Postcode lookup](https://craftyclicks.co.uk/docs/postcode-lookup/#json-api)
48
+
49
+ ```ruby
50
+ CraftyClicks::PostcodeLookup.full_address(postcode: 'AA11AA')
51
+ CraftyClicks::PostcodeLookup.basic_address(postcode: 'AA11AA')
52
+ CraftyClicks::PostcodeLookup.geocode(postcodes: ['AA11AA', 'AA11AB'])
53
+ ```
54
+
55
+ ## Development
56
+
57
+ 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.
58
+
59
+ 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 tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
60
+
61
+ ## Contributing
62
+
63
+ Bug reports and pull requests are welcome on GitHub at https://github.com/JoeSouthan/craftyclicks-ruby.
64
+
65
+
66
+ ## License
67
+
68
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
69
+
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task default: :spec
data/bin/console ADDED
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'crafty_clicks'
5
+
6
+ CraftyClicks.configure do |c|
7
+ c.api_key = 'API_KEY'
8
+ end
9
+
10
+ require "pry"
11
+ Pry.start
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,36 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'crafty_clicks/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'craftyclicks-ruby'
8
+ spec.version = CraftyClicks::VERSION
9
+ spec.authors = ['Joseph Southan']
10
+ spec.email = ['joe+github@sthn.io']
11
+
12
+ spec.summary = 'A simple wrapper around the CraftClicks API'
13
+ spec.homepage = 'https://www.github.com/JoeSouthan/craftyclicks-ruby'
14
+ spec.license = 'MIT'
15
+ spec.required_ruby_version = '>= 2.1'
16
+
17
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
18
+
19
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
20
+ f.match(%r{^(test|spec|features)/})
21
+ end
22
+ spec.bindir = 'exe'
23
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
+ spec.require_paths = ['lib']
25
+
26
+ spec.add_development_dependency 'bundler', '~> 1.14'
27
+ spec.add_development_dependency 'rake', '~> 10.0'
28
+ spec.add_development_dependency 'rspec', '~> 3.0'
29
+ spec.add_development_dependency 'vcr', '~> 3'
30
+ spec.add_development_dependency 'webmock', '~> 2.1'
31
+ spec.add_development_dependency 'pry', '~> 0.10'
32
+ spec.add_development_dependency 'fuubar', '~> 2.2'
33
+ spec.add_development_dependency 'codeclimate-test-reporter', '~> 0.6'
34
+ spec.add_dependency 'rest-client', '~> 1.8'
35
+ spec.add_dependency 'oj', '~> 2.18.5'
36
+ end
@@ -0,0 +1,31 @@
1
+ module CraftyClicks
2
+ class AddressLookup
3
+ def self.find(query:, country:, id: nil, ip_address: nil, coords: [])
4
+ ApiBase.new(
5
+ product: :address,
6
+ service: :find,
7
+ http_method: :post,
8
+ params: {
9
+ query: query,
10
+ country: country,
11
+ id: id,
12
+ ip: ip_address,
13
+ coords: coords
14
+ },
15
+ ).perform_request
16
+ end
17
+
18
+ def self.retrieve(country:, id:, lines: 2)
19
+ ApiBase.new(
20
+ product: :address,
21
+ service: :retrieve,
22
+ http_method: :post,
23
+ params: {
24
+ country: country,
25
+ id: id,
26
+ lines: lines
27
+ },
28
+ ).perform_request
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,7 @@
1
+ module CraftyClicks
2
+ class ApiBase
3
+ class Exceptions
4
+ class ApiError < RuntimeError; end
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,41 @@
1
+ require 'rest-client'
2
+ require 'oj'
3
+
4
+ module CraftyClicks
5
+ class ApiBase
6
+ attr_accessor :result
7
+ ADDRESS_ENDPOINT = 'https://api.craftyclicks.co.uk/address/1.1'.freeze
8
+ POSTCODE_ENDPOINT = 'http://pcls1.craftyclicks.co.uk/json'.freeze
9
+
10
+ def initialize(product:, service:, params: {}, http_method: :get)
11
+ @product = self.class.const_get("#{product.upcase}_ENDPOINT")
12
+ @service = service
13
+ @params = params.merge(key: CraftyClicks.configuration.api_key)
14
+ @http_method = http_method
15
+ end
16
+
17
+ def perform_request
18
+ process_result(
19
+ RestClient::Request.execute(
20
+ method: @http_method,
21
+ url: "#{@product}/#{@service}",
22
+ payload: @params.to_json,
23
+ headers: { content_type: :json, accept: :json }
24
+ )
25
+ )
26
+ rescue RestClient::Unauthorized, RestClient::Forbidden, RestClient::ResourceNotFound => ex
27
+ raise Exceptions::ApiError.new(ex.response), "Unauthorized: #{ex.response}"
28
+ rescue RestClient::InternalServerError => ex
29
+ raise Exceptions::ApiError.new(ex.response), "Server error: #{ex.response}"
30
+ end
31
+
32
+ private
33
+
34
+ def process_result(request)
35
+ @result = Oj.safe_load(request)
36
+ @result = @result.is_a?(Array) ? { 'results' => @result } : @result
37
+ raise Exceptions::ApiError.new(result), "API Error: #{result}" if @result.keys.map { |k| k =~ /error/ }.any?
38
+ @result
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,5 @@
1
+ module CraftyClicks
2
+ class Configuration
3
+ attr_accessor :api_key
4
+ end
5
+ end
@@ -0,0 +1,48 @@
1
+ module CraftyClicks
2
+ class PostcodeLookup
3
+ attr_accessor :postcode, :geocode, :sort, :response_format, :lines
4
+
5
+ def initialize(service, args)
6
+ @service = service
7
+ @args = args
8
+ end
9
+
10
+ def self.full_address(*args)
11
+ new(:rapidaddress, args).make_request
12
+ end
13
+
14
+ def self.basic_address(*args)
15
+ new(:basicaddress, args).make_request
16
+ end
17
+
18
+ def self.geocode(postcodes: [], distance: {}, preserve_index: true)
19
+ ApiBase.new(
20
+ product: :postcode,
21
+ service: :geocode,
22
+ http_method: :post,
23
+ params: {
24
+ postcodes: postcodes,
25
+ distance: distance,
26
+ preserve_index: preserve_index
27
+ },
28
+ ).perform_request
29
+ end
30
+
31
+ def make_request
32
+ postcode, geocode, sort, response_format, lines = *@args
33
+
34
+ ApiBase.new(
35
+ product: :postcode,
36
+ service: @service,
37
+ http_method: :post,
38
+ params: {
39
+ postcode: postcode,
40
+ include_geocode: geocode,
41
+ sort: sort,
42
+ response: response_format,
43
+ lines: lines,
44
+ }
45
+ ).perform_request
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,3 @@
1
+ module CraftyClicks
2
+ VERSION = '0.1.0'.freeze
3
+ end
@@ -0,0 +1,21 @@
1
+ require 'crafty_clicks/address_lookup'
2
+ require 'crafty_clicks/api_base'
3
+ require 'crafty_clicks/api_base/exceptions'
4
+ require 'crafty_clicks/configuration'
5
+ require 'crafty_clicks/postcode_lookup'
6
+ require 'crafty_clicks/version'
7
+
8
+ module CraftyClicks
9
+ class << self
10
+ attr_accessor :api_key
11
+ attr_writer :configuration
12
+ end
13
+
14
+ def self.configuration
15
+ @configuration ||= Configuration.new
16
+ end
17
+
18
+ def self.configure
19
+ yield(configuration)
20
+ end
21
+ end
metadata ADDED
@@ -0,0 +1,203 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: craftyclicks-ruby
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Joseph Southan
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-04-28 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.14'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.14'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: vcr
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3'
69
+ - !ruby/object:Gem::Dependency
70
+ name: webmock
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '2.1'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '2.1'
83
+ - !ruby/object:Gem::Dependency
84
+ name: pry
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.10'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.10'
97
+ - !ruby/object:Gem::Dependency
98
+ name: fuubar
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '2.2'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '2.2'
111
+ - !ruby/object:Gem::Dependency
112
+ name: codeclimate-test-reporter
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '0.6'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '0.6'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rest-client
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '1.8'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '1.8'
139
+ - !ruby/object:Gem::Dependency
140
+ name: oj
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 2.18.5
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 2.18.5
153
+ description:
154
+ email:
155
+ - joe+github@sthn.io
156
+ executables: []
157
+ extensions: []
158
+ extra_rdoc_files: []
159
+ files:
160
+ - ".gitignore"
161
+ - ".rspec"
162
+ - ".rubocop.yml"
163
+ - ".travis.yml"
164
+ - Gemfile
165
+ - LICENSE.txt
166
+ - README.md
167
+ - Rakefile
168
+ - bin/console
169
+ - bin/setup
170
+ - crafty_clicks.gemspec
171
+ - lib/crafty_clicks.rb
172
+ - lib/crafty_clicks/address_lookup.rb
173
+ - lib/crafty_clicks/api_base.rb
174
+ - lib/crafty_clicks/api_base/exceptions.rb
175
+ - lib/crafty_clicks/configuration.rb
176
+ - lib/crafty_clicks/postcode_lookup.rb
177
+ - lib/crafty_clicks/version.rb
178
+ homepage: https://www.github.com/JoeSouthan/craftyclicks-ruby
179
+ licenses:
180
+ - MIT
181
+ metadata:
182
+ allowed_push_host: https://rubygems.org
183
+ post_install_message:
184
+ rdoc_options: []
185
+ require_paths:
186
+ - lib
187
+ required_ruby_version: !ruby/object:Gem::Requirement
188
+ requirements:
189
+ - - ">="
190
+ - !ruby/object:Gem::Version
191
+ version: '2.1'
192
+ required_rubygems_version: !ruby/object:Gem::Requirement
193
+ requirements:
194
+ - - ">="
195
+ - !ruby/object:Gem::Version
196
+ version: '0'
197
+ requirements: []
198
+ rubyforge_project:
199
+ rubygems_version: 2.5.2
200
+ signing_key:
201
+ specification_version: 4
202
+ summary: A simple wrapper around the CraftClicks API
203
+ test_files: []