date_continuity 0.0.0 → 0.1.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 +19 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ae163c095ead21318b708c9ff4576f5c76c71aacf32f417fb98f6f049cdd8d9
4
- data.tar.gz: 545e1c92d3c091ac0d43f91e29393b272563f4202e4dcb328cbbc8f27e3ccd07
3
+ metadata.gz: 3b2c82afe0f2c75341f185beb73d42b342230a42b3a5a0c39c6d8eac0150e390
4
+ data.tar.gz: 3cbac97c4ef0e7180a4db12506ef1026ef718cb0b853b5b8b00b36e1b85626f2
5
5
  SHA512:
6
- metadata.gz: 17eeae7db2ebce492316fccc97c8b8a7cff696d2ac1e718aac68004e928b1cf7d64b7970d9ccda133e867f4d100de3688149d0e806a8552092d17d79183355b7
7
- data.tar.gz: 89c28ab6a86c797940f0b0f77ca76330a3efd0079141a509638aaa625ca443bbffba4365b51ddc695b811313dcc9e346702ef72c024c4379c389701e32be56e2
6
+ metadata.gz: b8ebeb68346a77478840e90fe8014cb59f7d6008e77cf98ccc154a346948223b0b3ed468c6380aa6ca01095c6ca406f8cf6a9225e29d9b6065737e62c3124db1
7
+ data.tar.gz: 5d4e430a577158306fc7115cac688539e910bb9ed6190ade98507a61d6042493dbf71f38efef0380bff18d092e263e6cf3a9986363b72fb4dab8454fac2221d0
@@ -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
+ def self.configuration
10
+ @configuration ||= DateContinuity::Configuration.new
11
+ end
12
+
13
+ def self.configuration=(config)
14
+ @configuration = config
15
+ end
16
+
17
+ def self.configure
18
+ yield configuration
19
+ end
4
20
  end
metadata CHANGED
@@ -1,16 +1,30 @@
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.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Merritt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-18 00:00:00.000000000 Z
12
- dependencies: []
13
- description: ''
11
+ date: 2022-02-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">"
18
+ - !ruby/object:Gem::Version
19
+ version: 5.0.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">"
25
+ - !ruby/object:Gem::Version
26
+ version: 5.0.0
27
+ description: Calculate fields based on a minimum set of information.
14
28
  email: andrew.w.merritt@gmail.com
15
29
  executables: []
16
30
  extensions: []
@@ -39,5 +53,5 @@ requirements: []
39
53
  rubygems_version: 3.0.8
40
54
  signing_key:
41
55
  specification_version: 4
42
- summary: ''
56
+ summary: A gem to handle calculating start/end dates based on a duration and frequency
43
57
  test_files: []