lapluviosilla-tickle 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.8
1
+ 0.1.9
@@ -1,65 +1,65 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in rakefile, and run the gemspec command
4
- # -*- encoding: utf-8 -*-
5
-
6
- Gem::Specification.new do |s|
7
- s.name = %q{lapluviosilla-tickle}
8
- s.version = "0.1.8"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Joshua Lippiner"]
12
- s.date = %q{2010-08-23}
13
- s.description = %q{Tickle is a date/time helper gem to help parse natural language into a recurring pattern. Tickle is designed to be a compliment of Chronic and can interpret things such as "every 2 days, every Sunday, Sundays, Weekly, etc.}
14
- s.email = %q{jlippiner@noctivity.com}
15
- s.extra_rdoc_files = [
16
- "LICENSE",
17
- "README.rdoc"
18
- ]
19
- s.files = [
20
- ".document",
21
- ".gitignore",
22
- ".rvmrc",
23
- "LICENSE",
24
- "README.rdoc",
25
- "Rakefile",
26
- "SCENARIOS.rdoc",
27
- "VERSION",
28
- "git-flow-version",
29
- "lapluviosilla-tickle.gemspec",
30
- "lib/numerizer/numerizer.rb",
31
- "lib/tickle.rb",
32
- "lib/tickle/handler.rb",
33
- "lib/tickle/repeater.rb",
34
- "lib/tickle/tickle.rb",
35
- "test/git-flow-version",
36
- "test/helper.rb",
37
- "test/test_parsing.rb"
38
- ]
39
- s.homepage = %q{http://github.com/lapluviosilla/tickle}
40
- s.rdoc_options = ["--charset=UTF-8"]
41
- s.require_paths = ["lib"]
42
- s.rubygems_version = %q{1.3.7}
43
- s.summary = %q{natural language parser for recurring events}
44
- s.test_files = [
45
- "test/helper.rb",
46
- "test/test_parsing.rb"
47
- ]
48
-
49
- if s.respond_to? :specification_version then
50
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
51
- s.specification_version = 3
52
-
53
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
54
- s.add_runtime_dependency(%q<chronic>, [">= 0.2.3"])
55
- s.add_development_dependency(%q<shoulda>, [">= 2.10.3"])
56
- else
57
- s.add_dependency(%q<chronic>, [">= 0.2.3"])
58
- s.add_dependency(%q<shoulda>, [">= 2.10.3"])
59
- end
60
- else
61
- s.add_dependency(%q<chronic>, [">= 0.2.3"])
62
- s.add_dependency(%q<shoulda>, [">= 2.10.3"])
63
- end
64
- end
65
-
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{lapluviosilla-tickle}
8
+ s.version = "0.1.9"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Joshua Lippiner"]
12
+ s.date = %q{2010-12-08}
13
+ s.description = %q{Tickle is a date/time helper gem to help parse natural language into a recurring pattern. Tickle is designed to be a compliment of Chronic and can interpret things such as "every 2 days, every Sunday, Sundays, Weekly, etc.}
14
+ s.email = %q{jlippiner@noctivity.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ ".gitignore",
22
+ ".rvmrc",
23
+ "LICENSE",
24
+ "README.rdoc",
25
+ "Rakefile",
26
+ "SCENARIOS.rdoc",
27
+ "VERSION",
28
+ "git-flow-version",
29
+ "lapluviosilla-tickle.gemspec",
30
+ "lib/numerizer/numerizer.rb",
31
+ "lib/tickle.rb",
32
+ "lib/tickle/handler.rb",
33
+ "lib/tickle/repeater.rb",
34
+ "lib/tickle/tickle.rb",
35
+ "test/git-flow-version",
36
+ "test/helper.rb",
37
+ "test/test_parsing.rb"
38
+ ]
39
+ s.homepage = %q{http://github.com/lapluviosilla/tickle}
40
+ s.rdoc_options = ["--charset=UTF-8"]
41
+ s.require_paths = ["lib"]
42
+ s.rubygems_version = %q{1.3.7}
43
+ s.summary = %q{natural language parser for recurring events}
44
+ s.test_files = [
45
+ "test/helper.rb",
46
+ "test/test_parsing.rb"
47
+ ]
48
+
49
+ if s.respond_to? :specification_version then
50
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
51
+ s.specification_version = 3
52
+
53
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
54
+ s.add_runtime_dependency(%q<chronic>, [">= 0.2.3"])
55
+ s.add_development_dependency(%q<shoulda>, [">= 2.10.3"])
56
+ else
57
+ s.add_dependency(%q<chronic>, [">= 0.2.3"])
58
+ s.add_dependency(%q<shoulda>, [">= 2.10.3"])
59
+ end
60
+ else
61
+ s.add_dependency(%q<chronic>, [">= 0.2.3"])
62
+ s.add_dependency(%q<shoulda>, [">= 2.10.3"])
63
+ end
64
+ end
65
+
data/lib/tickle/tickle.rb CHANGED
@@ -56,7 +56,7 @@ module Tickle #:nodoc:
56
56
  Tickle.dwrite("start: #{@start}, until: #{@until}, now: #{options[:now].to_date}")
57
57
 
58
58
  # => ** this is mostly for testing. Bump by 1 day if today (or in the past for testing)
59
- raise(InvalidDateExpression, "the start date (#{@start.to_date}) cannot occur in the past for a future event") if @start && @start.to_date < Date.today
59
+ raise(InvalidDateExpression, "the start date (#{@start.to_date}) cannot occur in the past for a future event") if @start && @start.to_date < options[:now].to_date
60
60
  raise(InvalidDateExpression, "the start date (#{@start.to_date}) cannot occur after the end date") if @until && @start.to_date > @until.to_date
61
61
 
62
62
  # no need to guess at expression if the start_date is in the future
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lapluviosilla-tickle
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 8
10
- version: 0.1.8
9
+ - 9
10
+ version: 0.1.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Joshua Lippiner
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-23 00:00:00 -05:00
18
+ date: 2010-12-08 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency