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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/date_continuity.rb +17 -1
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ae163c095ead21318b708c9ff4576f5c76c71aacf32f417fb98f6f049cdd8d9
4
- data.tar.gz: 545e1c92d3c091ac0d43f91e29393b272563f4202e4dcb328cbbc8f27e3ccd07
3
+ metadata.gz: 5fcdd83d2ca171ea37773549a9e2f2834c73fd42d379616f8b59552330277523
4
+ data.tar.gz: 44c7f63a6336f248571c5fad2005717bf58e3f73db9c1fa8100bfb327ede137d
5
5
  SHA512:
6
- metadata.gz: 17eeae7db2ebce492316fccc97c8b8a7cff696d2ac1e718aac68004e928b1cf7d64b7970d9ccda133e867f4d100de3688149d0e806a8552092d17d79183355b7
7
- data.tar.gz: 89c28ab6a86c797940f0b0f77ca76330a3efd0079141a509638aaa625ca443bbffba4365b51ddc695b811313dcc9e346702ef72c024c4379c389701e32be56e2
6
+ metadata.gz: cbfb2a9d53c8506e104a91696b992fcf8e7b04a4fbf559d5c9a301534b854615f6a841f8dbb0fe94c56b192289804343ed3db68c16913480829056e9e854d41c
7
+ data.tar.gz: 85bfc77f2cf2630a850dd31ad45bd8baa30247fbad43dd2d53da7e817afa589fd72bedf42aef8a7f791bc6a50ac668cdfd1f1ad914d117f42d1181318e05e87a
@@ -1,4 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class DateContinuity
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.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: []