Skip to content

Commit

Permalink
Added LICENSE and modernized gemspec
Browse files Browse the repository at this point in the history
  • Loading branch information
smathieu committed Feb 17, 2015
1 parent f8e36c5 commit a1d000f
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 18 deletions.
20 changes: 20 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
MIT License

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
$:.unshift("lib")

require "bundler/gem_tasks"
require "rake/testtask"
require "./lib/queue_classic"
require "./lib/queue_classic/tasks"
Expand Down
3 changes: 3 additions & 0 deletions lib/queue_classic/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module QC
VERSION = "3.1.0RC"
end
38 changes: 20 additions & 18 deletions queue_classic.gemspec
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
#encoding: UTF-8
Gem::Specification.new do |s|
s.name = "queue_classic"
s.email = "[email protected]"
s.version = "3.1.0.RC1"
s.description = "queue_classic is a queueing library for Ruby apps. (Rails, Sinatra, Etc...) queue_classic features asynchronous job polling, database maintained locks and no ridiculous dependencies. As a matter of fact, queue_classic only requires pg."
s.summary = "Simple, efficient worker queue for Ruby & PostgreSQL."
s.authors = ["Ryan Smith (♠ ace hacker)"]
s.homepage = "http://github.com/QueueClassic/queue_classic"
s.license = "MIT"
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'queue_classic/version'

files = []
files << "README.md"
files << Dir["sql/**/*.sql"]
files << Dir["{lib,test}/**/*.rb"]
s.files = files
s.test_files = s.files.select {|path| path =~ /^test\/.*_test.rb/}
Gem::Specification.new do |spec|
spec.name = "queue_classic"
spec.email = "[email protected]"
spec.version = QC::VERSION
spec.description = "queue_classic is a queueing library for Ruby apps. (Rails, Sinatra, Etc...) queue_classic features asynchronous job polling, database maintained locks and no ridiculous dependencies. As a matter of fact, queue_classic only requires pg."
spec.summary = "Simple, efficient worker queue for Ruby & PostgreSQL."
spec.authors = ["Ryan Smith (♠ ace hacker)"]
spec.homepage = "http://github.com/QueueClassic/queue_classic"
spec.license = "MIT"

s.require_paths = %w[lib]
spec.files = `git ls-files -z`.split("\x0")
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]

s.add_dependency "pg", ">= 0.17", "< 0.19"
spec.require_paths = %w[lib]

spec.add_dependency "pg", ">= 0.17", "< 0.19"
end

0 comments on commit a1d000f

Please sign in to comment.