Blame view

syspro-ruby.gemspec 1.54 KB
bbf1c61a   Joe Weakley   Updated documenta...
1
2
3
  # frozen_string_literal: true
  
  lib = File.expand_path('lib', __dir__)
31f9a345   Isaac Lewis   init; some tests
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
bbf1c61a   Joe Weakley   Updated documenta...
5
  require 'syspro/version'
31f9a345   Isaac Lewis   init; some tests
6
7
  
  Gem::Specification.new do |spec|
bbf1c61a   Joe Weakley   Updated documenta...
8
    spec.name          = 'syspro-ruby'
31f9a345   Isaac Lewis   init; some tests
9
    spec.version       = Syspro::VERSION
bbf1c61a   Joe Weakley   Updated documenta...
10
11
    spec.authors       = ['Isaac Lewis']
    spec.email         = ['isaac@ike.io']
31f9a345   Isaac Lewis   init; some tests
12
  
bbf1c61a   Joe Weakley   Updated documenta...
13
14
    spec.summary       = 'SYSPRO 7 Api Ruby adapter'
    spec.license       = 'MIT'
31f9a345   Isaac Lewis   init; some tests
15
16
17
18
  
    # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
    # to allow pushing to a single host or delete this section to allow pushing to any host.
    if spec.respond_to?(:metadata)
bbf1c61a   Joe Weakley   Updated documenta...
19
      spec.metadata['allowed_push_host'] = 'http://rubygems.org'
31f9a345   Isaac Lewis   init; some tests
20
    else
bbf1c61a   Joe Weakley   Updated documenta...
21
22
      raise 'RubyGems 2.0 or newer is required to protect against ' \
        'public gem pushes.'
31f9a345   Isaac Lewis   init; some tests
23
    end
bbf1c61a   Joe Weakley   Updated documenta...
24
    spec.required_ruby_version = '>= 1.9.0'
31f9a345   Isaac Lewis   init; some tests
25
  
bbf1c61a   Joe Weakley   Updated documenta...
26
    spec.files = `git ls-files -z`.split("\x0").reject do |f|
31f9a345   Isaac Lewis   init; some tests
27
28
      f.match(%r{^(test|spec|features)/})
    end
bbf1c61a   Joe Weakley   Updated documenta...
29
    spec.bindir        = 'exe'
31f9a345   Isaac Lewis   init; some tests
30
    spec.executables   = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
bbf1c61a   Joe Weakley   Updated documenta...
31
    spec.require_paths = ['lib']
31f9a345   Isaac Lewis   init; some tests
32
  
bbf1c61a   Joe Weakley   Updated documenta...
33
34
    spec.add_dependency('faraday', '~> 0.10')
    spec.add_dependency('nokogiri', '~> 1.8.2')
51fb5579   Isaac Lewis   add client test, ...
35
  
bbf1c61a   Joe Weakley   Updated documenta...
36
37
38
39
40
    spec.add_development_dependency 'bundler', '~> 1.16'
    spec.add_development_dependency 'minitest', '~> 5.0'
    spec.add_development_dependency 'pry', '~> 0.11'
    spec.add_development_dependency 'rake', '~> 10.0'
    spec.add_development_dependency 'rubocop', '~> 0.54.0'
f65bf747   Joe Weakley   Added and configu...
41
42
    spec.add_development_dependency 'webmock', '~> 3.3.0'
    spec.add_development_dependency 'minitest-vcr', '~> 1.4.0'
31f9a345   Isaac Lewis   init; some tests
43
  end