Sha256: f8b938a8b93cf98c133d4a7ad90d2a01ad69aec382358420fdfb4751e7d4dc4b

Contents?: true

Size: 728 Bytes

Versions: 13

Compression:

Stored size: 728 Bytes

Contents

# frozen_string_literal: true

# source: https://stephenagrice.medium.com/making-a-command-line-ruby-gem-write-build-and-push-aec24c6c49eb

GEM_NAME = 'openai_101'

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'openai_101/version'

RSpec::Core::RakeTask.new(:spec)

require 'rake/extensiontask'

desc 'Compile all the extensions'
task build: :compile

Rake::ExtensionTask.new('openai_101') do |ext|
  ext.lib_dir = 'lib/openai_101'
end

desc 'Publish the gem to RubyGems.org'
task :publish do
  version = Openai101::VERSION
  system 'gem build'
  system "gem push #{GEM_NAME}-#{version}.gem"
end

desc 'Remove old *.gem files'
task :clean do
  system 'rm *.gem'
end

task default: %i[clobber compile spec]

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
openai_101-1.2.8 Rakefile
openai_101-1.2.7 Rakefile
openai_101-1.2.6 Rakefile
openai_101-1.2.5 Rakefile
openai_101-1.2.4 Rakefile
openai_101-1.2.3 Rakefile
openai_101-1.2.2 Rakefile
openai_101-1.2.1 Rakefile
openai_101-1.2.0 Rakefile
openai_101-0.2.0 Rakefile
openai_101-0.1.0 Rakefile
openai_101-1.0.0 Rakefile
openai_101-0.0.2 Rakefile