Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move gemspec into urlcrypt.gemspec #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ require:

AllCops:
NewCops: enable
TargetRubyVersion: 2.6

ThreadSafety:
Enabled: true
Expand Down
19 changes: 1 addition & 18 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,11 @@
require File.join(File.dirname(__FILE__), 'config', 'environment.rb')
require 'rake/clean'
require 'rake/testtask'
require 'rubygems'
require 'rubygems/package_task'
require 'bundler'
require "bundler/gem_tasks"

task :default => ['test:all']

gemspec = Gem::Specification.new do |s|
s.author = "Thomas Fuchs"
s.email = "[email protected]"
s.extra_rdoc_files = ["README.md"]
s.files = FileList["Rakefile", "{config,lib,test}/**/*"]
s.name = 'urlcrypt'
s.require_paths << 'lib'
s.requirements << 'none'
s.summary = "Securely encode and decode short pieces of arbitrary binary data in URLs."
s.version = "0.2.0"
end

Gem::PackageTask.new(gemspec) do |pkg|
pkg.need_tar = true
end

namespace :test do
Rake::TestTask.new :all do |t|
t.libs << 'test'
Expand Down
26 changes: 26 additions & 0 deletions urlcrypt.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Gem::Specification.new do |spec|
spec.name = 'urlcrypt'
spec.version = "0.2.0"
spec.authors = ["Thomas Fuchs"]
spec.email = ["[email protected]"]
spec.extra_rdoc_files = ["README.md"]

spec.summary = "Securely encode and decode short pieces of arbitrary binary data in URLs."
spec.description = "Securely encode and decode short pieces of arbitrary binary data in URLs."
spec.homepage = "https://github.com/cheerful/URLcrypt"
spec.license = "MIT"
spec.required_ruby_version = Gem::Requirement.new(">= 2.6.0")

spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = "https://github.com/cheerful/URLcrypt"

# 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 = FileList["Rakefile", "{config,lib,test}/**/*"]
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
spec.requirements << 'none'

spec.metadata['rubygems_mfa_required'] = 'true'
end