antikythera 0.1.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,27 +1,16 @@
1
1
  = antikythera
2
- A gem that adds some useful features to Time.
2
+ A gem that adds some useful features to Time.
3
3
 
4
4
  == Install:
5
5
  $ gem install antikythera
6
6
 
7
7
  == USAGE:
8
- require 'antikythera'
9
- Time.now.before?(Time.now + 4)
10
- => true
11
-
12
- == Contributing to antikythera
13
-
14
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
15
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
16
- * Fork the project
17
- * Start a feature/bugfix branch
18
- * Commit and push until you are happy with your contribution
19
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
20
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
21
-
22
- == Copyright
23
-
24
- Copyright (c) 2011 Renée De Voursney. See LICENSE.txt for
25
- further details.
8
+ * Time.now.before?(Time.now + 4)
9
+ $ true
10
+ * Time.now.after?(Time.now - 500)
11
+ $ true
26
12
 
13
+ Copyright (c) 2011-present MIT
27
14
 
15
+ Author : Renée De Voursney
16
+ Email : renee.devoursney@gmail.com
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 1.0.0
@@ -0,0 +1,60 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "antikythera"
8
+ s.version = "1.0.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Ren\303\251e De Voursney"]
12
+ s.date = "2011-11-18"
13
+ s.description = "Adds features to Time like before? and after? for handy comparisons and manipulation."
14
+ s.email = "renee.devoursney@gmail.com"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ ".rvmrc",
22
+ "Gemfile",
23
+ "Gemfile.lock",
24
+ "LICENSE.txt",
25
+ "README.rdoc",
26
+ "Rakefile",
27
+ "VERSION",
28
+ "antikythera.gemspec",
29
+ "lib/antikythera.rb",
30
+ "test/helper.rb",
31
+ "test/test_antikythera.rb"
32
+ ]
33
+ s.homepage = "http://github.com/reneedv/antikythera"
34
+ s.licenses = ["MIT"]
35
+ s.require_paths = ["lib"]
36
+ s.rubygems_version = "1.8.10"
37
+ s.summary = "Useful additions for Time and Date manipulation"
38
+
39
+ if s.respond_to? :specification_version then
40
+ s.specification_version = 3
41
+
42
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
43
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
44
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
45
+ s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
46
+ s.add_development_dependency(%q<rcov>, [">= 0"])
47
+ else
48
+ s.add_dependency(%q<shoulda>, [">= 0"])
49
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
50
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
51
+ s.add_dependency(%q<rcov>, [">= 0"])
52
+ end
53
+ else
54
+ s.add_dependency(%q<shoulda>, [">= 0"])
55
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
56
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
57
+ s.add_dependency(%q<rcov>, [">= 0"])
58
+ end
59
+ end
60
+
@@ -1,4 +1,4 @@
1
- class Time
1
+ module BeforeAndAfter
2
2
  def before?(time)
3
3
  self < time
4
4
  end
@@ -6,4 +6,16 @@ class Time
6
6
  def after?(time)
7
7
  self > time
8
8
  end
9
+ end
10
+
11
+ class Time
12
+ include BeforeAndAfter
13
+ end
14
+
15
+ class DateTime
16
+ include BeforeAndAfter
17
+ end
18
+
19
+ class Date
20
+ include BeforeAndAfter
9
21
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: antikythera
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
- - 0
8
7
  - 1
9
8
  - 0
10
- version: 0.1.0
9
+ - 0
10
+ version: 1.0.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Ren\xC3\xA9e De Voursney"
@@ -95,6 +95,7 @@ files:
95
95
  - README.rdoc
96
96
  - Rakefile
97
97
  - VERSION
98
+ - antikythera.gemspec
98
99
  - lib/antikythera.rb
99
100
  - test/helper.rb
100
101
  - test/test_antikythera.rb