Skip to content

Commit

Permalink
Switch to using Bundler and license change
Browse files Browse the repository at this point in the history
* Switched to Bundler for gemification
* Switched to MIT license
* Removed old-school setup.rb
  • Loading branch information
mlipper committed Apr 25, 2013
1 parent 9afec68 commit 861f41b
Show file tree
Hide file tree
Showing 15 changed files with 106 additions and 1,619 deletions.
16 changes: 15 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
*.gem
/target
*.rbc
.bundle
.config
.yardoc
Gemfile.lock
InstalledFiles
_yardoc
coverage
#doc/
lib/bundler/man
pkg
rdoc
spec/reports
test/tmp
test/version_tmp
tmp
*.swp
.ruby-version
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: ruby
rvm:
- 1.8.7
- 1.9.3
- 2.0.0
10 changes: 9 additions & 1 deletion History.txt → CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
= Runt Changelog

== Version 0.8.0
== Version 0.9.0

* Removed old-school setup.rb

* Switched to MIT license

* Switched to Bundler for gemification

* Fixed compatiblity with Ruby 1.9 and Ruby 2.0

* Merged several commits from Paydici GitHub repo which included various enhancements and fixes by multiple contributors

Expand Down
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source 'https://rubygems.org'

# Specify your gem's dependencies in runt.gemspec
gemspec
66 changes: 22 additions & 44 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,44 +1,22 @@
The Apache Software License, Version 1.1

Copyright (c) 2003-2004 Digital Clash LLC. All rights
reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:

1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.

3. The end-user documentation included with the redistribution,
if any, must include the following acknowledgment:
"This product includes software developed by the
Runt team (http://runt.rubyforge.org/)."
Alternately, this acknowledgment may appear in the software itself,
if and wherever such third-party acknowledgments normally appear.

4. The names "Runt" and "Digital Clash" not be used to endorse or
promote products derived from this software without prior written
permission. For written permission, please contact
info@digitalclash.com.

5. Products derived from this software may not be called "Runt",
"Digital Clash", nor may "Runt" or "Digital Clash" appear in
their name, without prior written permission of Digital Clash LLC.

THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL DIGITAL CLASH LLC OR ITS CONTRIBUTORS
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
Copyright (c) 2013 Matthew Lipper

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.
56 changes: 0 additions & 56 deletions Manifest.txt

This file was deleted.

38 changes: 6 additions & 32 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,39 +8,13 @@

* gem install runt

<b>or</b>

* Unpack the Runt distribution.

$ tar -xzvf runt-<version>.tar.gz

* cd $UNPACK_DIR/runt/

* execute:

$ ruby setup.rb config
$ ruby setup.rb setup
$ ruby setup.rb install (may require root privilege)

<b>or</b>

$ ruby setup.rb --help

for more options.

= QUICK START

* require 'runt'

* See Runt website[http://runt.rubyforge.org].

* See $UNPACK_DIR/runt/test/*.rb for example usage.

* See this mini-TemporalExpression tutorial[http://runt.rubyforge.org/doc/files/doc/tutorial_te_rdoc.html]
* Also this tutorial[http://runt.rubyforge.org/doc/files/doc/tutorial_schedule_rdoc.html]
* And this tutorial[http://runt.rubyforge.org/doc/files/doc/tutorial_sugar_rdoc.html]

* See http://chronicj.digitalclash.com/apidocs/index.html for commented Java source (JavaDoc)
* See this mini-TemporalExpression tutorial[doc/tutorial_te_rdoc.rdoc]
* Also this tutorial[doc/tutorial_schedule_rdoc.rdoc]
* And this tutorial[doc/tutorial_sugar_rdoc.rdoc]

Get in touch if you have questions or if Runt causes your computer to burst into flames...

Expand Down Expand Up @@ -91,9 +65,9 @@ The number 12, and the letters E, J, and B.
= Etc...

Author:: Matthew Lipper <mlipper@gmail.com>
Requires:: Ruby 1.8.0 or later, Date/DateTime classes
Requires:: Ruby 1.8.7 or later, Date/DateTime classes
License:: Copyright 2004 by Digital Clash LLC.
Released under the Apache Software license (see LICENSE.txt)
Released under the MIT License (see LICENSE.txt)
included in the distribution.

= Warranty
Expand All @@ -103,4 +77,4 @@ implied warranties, including, without limitation, the implied
warranties of merchantibility and fitness for a particular
purpose.

link://../dcl-small.gif
link:site/dcl-small.gif
67 changes: 5 additions & 62 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,66 +1,9 @@
require 'rubygems'
require 'rake'
require "bundler/gem_tasks"
require "rake/testtask"

begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "runt"

gem.authors = ["Matthew Lipper"]
gem.summary = %q{Runt is a Ruby[http://www.ruby-lang.org/en/] implementation of select Martin Fowler patterns[http://www.martinfowler.com/articles].}
gem.description = %Q{
Runt is an implementation of select temporal patterns by Martin Fowler in the super-fantastic Ruby language. Runt provides:
* ability to define recurring events using simple, set-like expressions
* an interfaced-based API for creating schedules for arbitrary events/objects
* precisioned date types using Time Points
* date Ranges
* everlasting peace and/or eternal life
}
gem.email = ["mlipper@gmail.com"]
gem.extra_rdoc_files = ["History.txt", "LICENSE.txt", "Manifest.txt", "README.txt"]
gem.files = ["History.txt", "LICENSE.txt", "Manifest.txt", "README.txt", "Rakefile", "TODO", "examples/payment_report.rb", "examples/payment_reporttest.rb", "examples/reminder.rb", "examples/schedule_tutorial.rb", "examples/schedule_tutorialtest.rb", "lib/runt.rb", "lib/runt/daterange.rb", "lib/runt/dprecision.rb", "lib/runt/expressionbuilder.rb", "lib/runt/pdate.rb", "lib/runt/schedule.rb", "lib/runt/sugar.rb", "lib/runt/temporalexpression.rb", "runt.gemspec", "setup.rb", "site/blue-robot3.css", "site/dcl-small.gif", "site/index.html", "site/logohover.png", "site/runt-logo.gif", "site/runt-logo.psd", "test/aftertetest.rb", "test/baseexpressiontest.rb", "test/beforetetest.rb", "test/collectiontest.rb", "test/combinedexpressionstest.rb", "test/daterangetest.rb", "test/dayintervaltetest.rb", "test/difftest.rb", "test/dimonthtest.rb", "test/diweektest.rb", "test/dprecisiontest.rb", "test/everytetest.rb", "test/expressionbuildertest.rb", "test/icalendartest.rb", "test/intersecttest.rb", "test/pdatetest.rb", "test/redaytest.rb", "test/remonthtest.rb", "test/reweektest.rb", "test/reyeartest.rb", "test/temporalrangetest.rb", "test/runttest.rb", "test/scheduletest.rb", "test/temporaldatetest.rb", "test/sugartest.rb", "test/temporalexpressiontest.rb", "test/uniontest.rb", "test/wimonthtest.rb", "test/yeartetest.rb"]
gem.has_rdoc = true
gem.homepage = %q{http://github.com/mlipper/runt}
gem.rdoc_options = ["--main", "README.txt"]
gem.require_paths = ["lib"]
gem.rubyforge_project = %q{Runt}
gem.rubygems_version = %q{1.3.1}
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end

require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/*test.rb'
test.verbose = true
end

begin
require 'rcov/rcovtask'
Rcov::RcovTask.new do |test|
test.libs << 'test'
test.pattern = 'test/*test.rb'
test.verbose = true
end
rescue LoadError
task :rcov do
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
end
Rake::TestTask.new(:test) do |t|
t.libs << "test"
t.pattern = "test/*test.rb"
end

task :default => :test

require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""

rdoc.rdoc_dir = 'rdoc'
rdoc.title = "runt #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

3 changes: 1 addition & 2 deletions lib/runt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
require 'time'
require 'date'
require 'date/format'
require "runt/version"
require "runt/dprecision"
require "runt/pdate"
require "runt/temporalexpression"
Expand All @@ -56,8 +57,6 @@
#
module Runt

VERSION = "0.8.0"

class << self

def day_name(number)
Expand Down
3 changes: 3 additions & 0 deletions lib/runt/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module Runt
VERSION = "0.9.0"
end
Loading

0 comments on commit 861f41b

Please sign in to comment.