Skip to content

Commit b52f89c

Browse files
committed
Update gemspec, add console
1 parent 02d8749 commit b52f89c

File tree

4 files changed

+39
-6
lines changed

4 files changed

+39
-6
lines changed

Gemfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
55
gemspec
66

77
gem 'rake'
8-
gem 'appraisal'
9-
gem 'minitest-ci'
8+
gem 'minitest-ci'
9+
gem 'pry'

bin/console

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env ruby
2+
3+
require "bundler/setup"
4+
require "mikasa_client"
5+
6+
# You can add fixtures and/or initialization code here to make experimenting
7+
# with your gem easier. You can also use a different console, if you like.
8+
9+
# (If you use this, don't forget to add pry to your Gemfile!)
10+
require "pry"
11+
Pry.start(__FILE__)
12+
13+
# require "irb"
14+
# IRB.start(__FILE__)

bin/setup

+8
Original file line numberDiff line numberDiff line change
@@ -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

jsonapi-consumer.gemspec

+15-4
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,24 @@ Gem::Specification.new do |spec|
1313
spec.homepage = "https://github.com/jsmestad/jsonapi-consumer"
1414
spec.license = "Apache-2.0"
1515

16-
spec.files = `git ls-files -z`.split("\x0") - ['Guardfile', '.travis.yml']
17-
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18-
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
16+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
17+
# to allow pushing to a single host or delete this section to allow pushing to any host.
18+
if spec.respond_to?(:metadata)
19+
spec.metadata["allowed_push_host"] = ""
20+
else
21+
raise "RubyGems 2.0 or newer is required to protect against " \
22+
"public gem pushes."
23+
end
24+
25+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
26+
f.match(%r{^(test|spec|features)/})
27+
end
28+
spec.bindir = "exe"
29+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
1930
spec.require_paths = ["lib"]
2031

2132
spec.add_runtime_dependency "activesupport", '>= 3.2'
22-
spec.add_runtime_dependency "faraday", '~> 0.9'
33+
spec.add_runtime_dependency "faraday", '>= 0.9'
2334
spec.add_runtime_dependency "faraday_middleware"
2435
spec.add_runtime_dependency "addressable", '~> 2.5.2'
2536
spec.add_runtime_dependency "activemodel", '>= 3.2'

0 commit comments

Comments
 (0)