Skip to content

Commit

Permalink
Prepare the gem to accept pushing to gemfury
Browse files Browse the repository at this point in the history
  • Loading branch information
knarewski committed Oct 26, 2022
1 parent 645c8ed commit 6eb975d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,21 @@ require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'ffi-compiler/compile_task'
require 'mini_portile2'
require 'gemfury'
require 'gemfury/command'

# Override rubygem_push to push to gemfury instead when doing `rake release`
module Bundler
class GemHelper
def rubygem_push(path)
::Gemfury::Command::App.start(['push', path, '--as=livelink'])
end

def version_tag
"#{name}-#{version}"
end
end
end

WEBP = MiniPortile.new('libwebp', '1.2.4')
WEBP.files = ['https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.2.4.tar.gz']
Expand Down
3 changes: 3 additions & 0 deletions webp-ffi.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@ Gem::Specification.new do |spec|
spec.require_paths = ["lib"]
spec.extensions << 'ext/webp_ffi/Rakefile'

spec.metadata['allowed_push_host'] = 'gem.fury.io'

spec.add_runtime_dependency "ffi", ">= 1.9.0"
spec.add_runtime_dependency "ffi-compiler", ">= 0.1.2"
spec.add_dependency("mini_portile2", "~> 2.8.0")

spec.add_development_dependency "bundler", ">= 1.2"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec", ">= 3"
spec.add_development_dependency 'gemfury', '~> 0.12.0'
end

0 comments on commit 6eb975d

Please sign in to comment.