clavius 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 1d984a93f31c3341e8da6d9621844d64ed93489a
4
+ data.tar.gz: 445473b481a49888889c4187d3233a537471f265
5
+ SHA512:
6
+ metadata.gz: 4a66eff0003d01f1a891fd5976ca205ce8565a20bccc5d4f8ceb95b4364830684e013a06e4c47abef94f9034fbfa403eb4f8ba728b6b439a8db238248cfa4610
7
+ data.tar.gz: c8be97c17611b197fe1eec31f77dbe9a3b92a676cceb3429d30af4048458bdf2c139a374e045759473cd356103cb9c54b9702b84576751e30fda31cfe9715bd3
@@ -0,0 +1,46 @@
1
+ # Clavius
2
+
3
+ Date calculations based on a schedule.
4
+
5
+ ## Installation
6
+
7
+ ```
8
+ gem install clavius
9
+ ```
10
+
11
+ ## Configuration
12
+
13
+ ```ruby
14
+ Clavius.configure do |c|
15
+ c.weekdays = %i[mon tue wed thu fri]
16
+ c.included = [Date.new(2015, 6, 1)]
17
+ c.excluded = [Date.new(2015, 1, 1), Date.new(2015, 12, 25)]
18
+ end
19
+ ```
20
+
21
+ ## Usage
22
+
23
+ ```ruby
24
+ Clavius.active?(Date.new(2014, 1, 5))
25
+
26
+ Clavius.inactive?(Date.new(2014, 5, 2))
27
+
28
+ Clavius.days(5).before(Date.new(2015, 1, 5))
29
+
30
+ Clavius.days(2).after(Date.new(2015, 1, 5))
31
+
32
+ Clavius.between(Date.new(2006, 1, 1), Date.new(2006, 1, 8))
33
+ ```
34
+
35
+ ## Contributing
36
+
37
+ Pull requests are welcome, but consider asking for a feature or bug fix first
38
+ through the issue tracker. When contributing code, please squash sloppy commits
39
+ aggressively and follow [Tim Pope's guidelines](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
40
+ for commit messages.
41
+
42
+ ## Copyright
43
+
44
+ Copyright (c) 2015 Craig Little. See [LICENSE][license] for details.
45
+
46
+ [license]: https://github.com/craiglittle/clavius/blob/master/LICENSE
@@ -0,0 +1,4 @@
1
+ module Clavius
2
+ end
3
+
4
+ require 'clavius/version'
@@ -0,0 +1,5 @@
1
+ module Clavius
2
+
3
+ VERSION = '0.0.1'
4
+
5
+ end
metadata ADDED
@@ -0,0 +1,76 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: clavius
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Craig Little
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-03-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '10.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '10.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.0'
41
+ description: Date calculations based on a schedule.
42
+ email:
43
+ - craiglttl@gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - README.md
49
+ - lib/clavius.rb
50
+ - lib/clavius/version.rb
51
+ homepage: https://github.com/craiglittle/clavius
52
+ licenses:
53
+ - MIT
54
+ metadata: {}
55
+ post_install_message:
56
+ rdoc_options: []
57
+ require_paths:
58
+ - lib
59
+ required_ruby_version: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: '2.0'
64
+ required_rubygems_version: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ requirements: []
70
+ rubyforge_project:
71
+ rubygems_version: 2.4.5
72
+ signing_key:
73
+ specification_version: 4
74
+ summary: Date calculations
75
+ test_files: []
76
+ has_rdoc: