Skip to content
Permalink
Browse files

Improve install process.

  • Loading branch information
ioquatix committed Jan 11, 2020
1 parent 6fef4ab commit da2f79c211c3e7eb704808e8b339b29445231a46
Showing with 35 additions and 16 deletions.
  1. +1 −0 Rakefile
  2. +2 −15 lib/rack.rb
  3. +29 −0 lib/rack/version.rb
  4. +3 −1 rack.gemspec
@@ -1,5 +1,6 @@
# frozen_string_literal: true

require "bundler/gem_tasks"
require "rake/testtask"

desc "Run all the tests"
@@ -11,22 +11,9 @@
# All modules meant for use in your application are <tt>autoload</tt>ed here,
# so it should be enough just to <tt>require 'rack'</tt> in your code.

module Rack
# The Rack protocol version number implemented.
VERSION = [1, 3]

# Return the Rack protocol version as a dotted string.
def self.version
VERSION.join(".")
end

RELEASE = "2.2.0"

# Return the Rack release as a dotted string.
def self.release
RELEASE
end
require_relative 'rack/version'

module Rack
HTTP_HOST = 'HTTP_HOST'
HTTP_VERSION = 'HTTP_VERSION'
HTTPS = 'HTTPS'
@@ -0,0 +1,29 @@
# frozen_string_literal: true

# Copyright (C) 2007-2019 Leah Neukirchen <http://leahneukirchen.org/infopage.html>
#
# Rack is freely distributable under the terms of an MIT-style license.
# See MIT-LICENSE or https://opensource.org/licenses/MIT.

# The Rack main module, serving as a namespace for all core Rack
# modules and classes.
#
# All modules meant for use in your application are <tt>autoload</tt>ed here,
# so it should be enough just to <tt>require 'rack'</tt> in your code.

module Rack
# The Rack protocol version number implemented.
VERSION = [1, 3]

# Return the Rack protocol version as a dotted string.
def self.version
VERSION.join(".")
end

RELEASE = "2.2.0"

# Return the Rack release as a dotted string.
def self.release
RELEASE
end
end
@@ -1,8 +1,10 @@
# frozen_string_literal: true

require_relative 'lib/rack/version'

Gem::Specification.new do |s|
s.name = "rack"
s.version = File.read('lib/rack.rb')[/RELEASE += +([\"\'])([\d][\w\.]+)\1/, 2]
s.version = Rack::RELEASE
s.platform = Gem::Platform::RUBY
s.summary = "a modular Ruby webserver interface"
s.license = "MIT"

0 comments on commit da2f79c

Please sign in to comment.
You can’t perform that action at this time.