From e83cbc2a327015d2c8bb4e4c94874267a75a9648 Mon Sep 17 00:00:00 2001 From: Kristian Mandrup Date: Fri, 29 Mar 2013 12:48:29 +0100 Subject: [PATCH] bump fixed version --- Gemfile | 2 +- Gemfile.lock | 130 +++++++++++++++++++++++++++ lib/timespan.rb | 3 +- lib/timespan/extensions/time_lord.rb | 2 +- lib/timespan/version.rb | 2 +- timespan.gemspec | 9 +- 6 files changed, 139 insertions(+), 9 deletions(-) create mode 100644 Gemfile.lock diff --git a/Gemfile b/Gemfile index f9fee04..3f46362 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,4 @@ -source 'https://rubygems.org' +source 'http://rubygems.org' # gem's dependencies are specified in timepan.gemspec gemspec diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..93c8ce0 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,130 @@ +PATH + remote: . + specs: + timespan (0.5.8) + activesupport (>= 3.0) + chronic + chronic_duration + spanner + sugar-high (>= 0.7.3) + xduration (>= 3.0.0) + +GEM + remote: http://rubygems.org/ + specs: + actionmailer (3.2.12) + actionpack (= 3.2.12) + mail (~> 2.4.4) + actionpack (3.2.12) + activemodel (= 3.2.12) + activesupport (= 3.2.12) + builder (~> 3.0.0) + erubis (~> 2.7.0) + journey (~> 1.0.4) + rack (~> 1.4.5) + rack-cache (~> 1.2) + rack-test (~> 0.6.1) + sprockets (~> 2.2.1) + activemodel (3.2.12) + activesupport (= 3.2.12) + builder (~> 3.0.0) + activerecord (3.2.12) + activemodel (= 3.2.12) + activesupport (= 3.2.12) + arel (~> 3.0.2) + tzinfo (~> 0.3.29) + activeresource (3.2.12) + activemodel (= 3.2.12) + activesupport (= 3.2.12) + activesupport (3.2.12) + i18n (~> 0.6) + multi_json (~> 1.0) + arel (3.0.2) + builder (3.0.4) + chronic (0.9.1) + chronic_duration (0.10.2) + numerizer (~> 0.1.1) + diff-lcs (1.2.1) + erubis (2.7.0) + hike (1.2.1) + i18n (0.6.4) + journey (1.0.4) + json (1.7.7) + mail (2.4.4) + i18n (>= 0.4.0) + mime-types (~> 1.16) + treetop (~> 1.4.8) + mime-types (1.21) + mongoid (3.1.2) + activemodel (~> 3.2) + moped (~> 1.4.2) + origin (~> 1.0) + tzinfo (~> 0.3.22) + moped (1.4.5) + multi_json (1.7.2) + numerizer (0.1.1) + origin (1.0.11) + origin-selectable_ext (0.1.1) + origin + polyglot (0.3.3) + rack (1.4.5) + rack-cache (1.2) + rack (>= 0.4) + rack-ssl (1.3.3) + rack + rack-test (0.6.2) + rack (>= 1.0) + rails (3.2.12) + actionmailer (= 3.2.12) + actionpack (= 3.2.12) + activerecord (= 3.2.12) + activeresource (= 3.2.12) + activesupport (= 3.2.12) + bundler (~> 1.0) + railties (= 3.2.12) + railties (3.2.12) + actionpack (= 3.2.12) + activesupport (= 3.2.12) + rack-ssl (~> 1.3.2) + rake (>= 0.8.7) + rdoc (~> 3.4) + thor (>= 0.14.6, < 2.0) + rake (10.0.4) + rdoc (3.12.2) + json (~> 1.4) + rspec (2.13.0) + rspec-core (~> 2.13.0) + rspec-expectations (~> 2.13.0) + rspec-mocks (~> 2.13.0) + rspec-core (2.13.1) + rspec-expectations (2.13.0) + diff-lcs (>= 1.1.3, < 2.0) + rspec-mocks (2.13.0) + spanner (0.0.2) + sprockets (2.2.2) + hike (~> 1.2) + multi_json (~> 1.0) + rack (~> 1.0) + tilt (~> 1.1, != 1.3.0) + sugar-high (0.7.3) + thor (0.18.0) + tilt (1.3.6) + treetop (1.4.12) + polyglot + polyglot (>= 0.3.1) + tzinfo (0.3.37) + xduration (3.0.0) + activesupport (>= 3.0.0) + i18n (>= 0.6) + +PLATFORMS + ruby + +DEPENDENCIES + bundler (~> 1.3) + mongoid (>= 3.0) + origin-selectable_ext (~> 0.1.1) + rails (>= 3.1) + rake + rspec (>= 2.12.0) + timespan! diff --git a/lib/timespan.rb b/lib/timespan.rb index 05e0d9c..ce9b5e4 100644 --- a/lib/timespan.rb +++ b/lib/timespan.rb @@ -65,11 +65,10 @@ def initialize options = {} @is_new = false end - def self.duration_classes + def duration_classes [::Duration, ::String] end - def asap! @asap = true end diff --git a/lib/timespan/extensions/time_lord.rb b/lib/timespan/extensions/time_lord.rb index b405ffb..6b4fb96 100644 --- a/lib/timespan/extensions/time_lord.rb +++ b/lib/timespan/extensions/time_lord.rb @@ -1,7 +1,7 @@ require 'time-lord' class Timespan - def self.duration_classes + def duration_classes [::TimeLord::Period, ::Duration, ::String] end diff --git a/lib/timespan/version.rb b/lib/timespan/version.rb index 63f7a30..789b56c 100644 --- a/lib/timespan/version.rb +++ b/lib/timespan/version.rb @@ -1,3 +1,3 @@ class Timespan - VERSION = '0.5.8' + VERSION = '0.5.9' end \ No newline at end of file diff --git a/timespan.gemspec b/timespan.gemspec index 6a2c05d..8c56b42 100644 --- a/timespan.gemspec +++ b/timespan.gemspec @@ -1,14 +1,15 @@ # coding: utf-8 lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) -require 'my_gem/version' +require 'timespan/version' Gem::Specification.new do |spec| - spec.name = "my_gem" - spec.version = MyGem::VERSION + spec.name = "timespan" + spec.version = Timespan::VERSION spec.authors = ["Kristian Mandrup"] spec.date = "2013-03-13" - spec.description = "Makes it easy to calculate time distance in different units" + spec.summary = "Calculate and store time distance (Mongoid only)" + spec.description = "Makes it easy to store time duration, make calculations and comparions and store the duration using Mongoid" spec.email = "kmandrup@gmail.com" spec.license = "MIT"