-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyr.gemspec
40 lines (34 loc) · 1.49 KB
/
pyr.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# coding: utf-8
# frozen_string_literal: true
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'pyr/version'
Gem::Specification.new do |spec|
spec.name = 'pyr'
spec.version = PYR::VERSION
spec.authors = ['M. Simon Borg']
spec.email = ['[email protected]']
spec.summary = 'Make requests to the Phone Your Rep API and get '\
'Ruby objects in return'
spec.description = 'Wraps the Phone Your Rep API up with an idiomatic Ruby'\
' bow. Easily construct requests with block syntax and receive a response '\
'with http status, headers, raw body, and ActiveRecord-esque objects that '\
'make data-querying easy (using the lazy_record gem).'
spec.homepage = 'https://www.github.com/msimonborg/pyr'
spec.license = 'MIT'
if spec.respond_to?(:metadata)
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
else
raise 'RubyGems 2.0 or newer is required to protect against ' \
'public gem pushes.'
end
spec.files = `git ls-files -z lib LICENSE.txt README.md`.split("\0")
spec.bindir = 'exe'
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']
spec.required_ruby_version = '>= 2.3.0'
spec.add_dependency 'faraday', '>= 0.11.0'
spec.add_dependency 'faraday_middleware', '>= 0.11.0'
spec.add_dependency 'lazy_record', '~> 0.6.2'
spec.add_development_dependency 'bundler', '~> 1.14'
end