Skip to content

Commit

Permalink
Update gemspec, add console
Browse files Browse the repository at this point in the history
  • Loading branch information
jsmestad committed Apr 13, 2018
1 parent 02d8749 commit b52f89c
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
gemspec

gem 'rake'
gem 'appraisal'
gem 'minitest-ci'
gem 'minitest-ci'
gem 'pry'
14 changes: 14 additions & 0 deletions bin/console
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env ruby

require "bundler/setup"
require "mikasa_client"

# You can add fixtures and/or initialization code here to make experimenting
# with your gem easier. You can also use a different console, if you like.

# (If you use this, don't forget to add pry to your Gemfile!)
require "pry"
Pry.start(__FILE__)

# require "irb"
# IRB.start(__FILE__)
8 changes: 8 additions & 0 deletions bin/setup
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
set -vx

bundle install

# Do any other automated setup that you need to do here
19 changes: 15 additions & 4 deletions jsonapi-consumer.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,24 @@ Gem::Specification.new do |spec|
spec.homepage = "https://github.com/jsmestad/jsonapi-consumer"
spec.license = "Apache-2.0"

spec.files = `git ls-files -z`.split("\x0") - ['Guardfile', '.travis.yml']
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
# 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)
spec.metadata["allowed_push_host"] = ""
else
raise "RubyGems 2.0 or newer is required to protect against " \
"public gem pushes."
end

spec.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(%r{^(test|spec|features)/})
end
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]

spec.add_runtime_dependency "activesupport", '>= 3.2'
spec.add_runtime_dependency "faraday", '~> 0.9'
spec.add_runtime_dependency "faraday", '>= 0.9'
spec.add_runtime_dependency "faraday_middleware"
spec.add_runtime_dependency "addressable", '~> 2.5.2'
spec.add_runtime_dependency "activemodel", '>= 3.2'
Expand Down

0 comments on commit b52f89c

Please sign in to comment.