Skip to content

Commit

Permalink
Allow pushing to rubygems (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
mzruya authored Sep 14, 2019
1 parent 39ce185 commit 0269ee1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/push_gem.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
name: Push Gem

on:
pull_request:
branches:
- master
push:
branches:
- master
- release/*

jobs:
build:
Expand Down
9 changes: 2 additions & 7 deletions query-matchers.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ Gem::Specification.new do |spec|
# 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'] = "TODO: Set to 'http://mygemserver.com'"

spec.metadata['homepage_uri'] = spec.homepage
spec.metadata['source_code_uri'] = spec.homepage
spec.metadata['changelog_uri'] = spec.homepage
Expand All @@ -30,11 +28,8 @@ Gem::Specification.new do |spec|

# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
spec.files = Dir.chdir(File.expand_path(__dir__)) do
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
end
spec.bindir = 'exe'
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.files = Dir['README.md', 'lib/**/*']

spec.require_paths = ['lib']

spec.add_runtime_dependency 'activerecord', '>= 4.0', '<= 6.0'
Expand Down

0 comments on commit 0269ee1

Please sign in to comment.