date_continuity 0.0.0 → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/date_continuity.rb +17 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fcdd83d2ca171ea37773549a9e2f2834c73fd42d379616f8b59552330277523
|
4
|
+
data.tar.gz: 44c7f63a6336f248571c5fad2005717bf58e3f73db9c1fa8100bfb327ede137d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbfb2a9d53c8506e104a91696b992fcf8e7b04a4fbf559d5c9a301534b854615f6a841f8dbb0fe94c56b192289804343ed3db68c16913480829056e9e854d41c
|
7
|
+
data.tar.gz: 85bfc77f2cf2630a850dd31ad45bd8baa30247fbad43dd2d53da7e817afa589fd72bedf42aef8a7f791bc6a50ac668cdfd1f1ad914d117f42d1181318e05e87a
|
data/lib/date_continuity.rb
CHANGED
@@ -1,4 +1,20 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
require "active_record"
|
4
|
+
|
5
|
+
require "date_continuity/configuration"
|
6
|
+
require "date_continuity/model"
|
7
|
+
|
8
|
+
module DateContinuity
|
9
|
+
@config = DateContinuity::Configuration.setup
|
10
|
+
|
11
|
+
class << self
|
12
|
+
extend Forwardable
|
13
|
+
|
14
|
+
attr_reader :config
|
15
|
+
|
16
|
+
# Configurable options
|
17
|
+
def_delegators :@config, :time_unit_method, :time_unit_method=
|
18
|
+
def_delegators :@config, :frequency_count_method, :frequency_count_method=
|
19
|
+
end
|
4
20
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: date_continuity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Merritt
|
@@ -10,7 +10,7 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2022-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description:
|
13
|
+
description: Calculate fields based on a minimum set of information.
|
14
14
|
email: andrew.w.merritt@gmail.com
|
15
15
|
executables: []
|
16
16
|
extensions: []
|
@@ -39,5 +39,5 @@ requirements: []
|
|
39
39
|
rubygems_version: 3.0.8
|
40
40
|
signing_key:
|
41
41
|
specification_version: 4
|
42
|
-
summary:
|
42
|
+
summary: A gem to handle calculating start/end dates based on a duration and frequency
|
43
43
|
test_files: []
|