Sha256: 950084c6e102f3e9930b1453bad2b2a23633daa26541afb2f5ecbe30c0fbe26f

Contents?: true

Size: 690 Bytes

Versions: 1

Compression:

Stored size: 690 Bytes

Contents

# frozen_string_literal: true

require 'bundler/gem_tasks'
require 'rake/testtask'

Rake::TestTask.new(:test) do |t|
  t.libs << 'test'
  t.test_files = FileList['test/**/test_*.rb']
  t.verbose = true
  t.warning = true
  t.ruby_opts = ['-I"test"', '-r./test/helper']
end

# Set the default task to :test if you want `rake` to run tests by default
task default: :test

desc 'Tag the current version and push tags to remote'
task :tag do
  version = File.read(File.join(File.dirname(__FILE__), 'lib', 'json-orm',
                                'version.rb')).match(/VERSION = ['"](.*)['"]/)[1]
  `git tag -a v#{version} -m "Release version #{version}"`
  `git push origin v#{version}`
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
json-orm-0.2.1 Rakefile