date_continuity 0.0.1 → 0.2.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 +8 -8
  3. metadata +18 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5fcdd83d2ca171ea37773549a9e2f2834c73fd42d379616f8b59552330277523
4
- data.tar.gz: 44c7f63a6336f248571c5fad2005717bf58e3f73db9c1fa8100bfb327ede137d
3
+ metadata.gz: a9aa764c0b485fdc021ff32f8ae575926080e6735c4848bde9a4928d92e876fe
4
+ data.tar.gz: b09fd073788f628b56ec91c5c4de05439aecc8f769cae24333d91d3039fddf00
5
5
  SHA512:
6
- metadata.gz: cbfb2a9d53c8506e104a91696b992fcf8e7b04a4fbf559d5c9a301534b854615f6a841f8dbb0fe94c56b192289804343ed3db68c16913480829056e9e854d41c
7
- data.tar.gz: 85bfc77f2cf2630a850dd31ad45bd8baa30247fbad43dd2d53da7e817afa589fd72bedf42aef8a7f791bc6a50ac668cdfd1f1ad914d117f42d1181318e05e87a
6
+ metadata.gz: fc27b152feb437fb22188986926b213e3e71c5162551d819066dc9ca3bb0a3f4ad25865fb4ba1ed3821e9a3d866ae645845425a464a70179f011d06015670ed3
7
+ data.tar.gz: 5d47e3751c3dbcd297b5d30acea5fdee49f93744b4c01cc70743231c568a5fa9094e423105ea8fa1f20cec399af7e53c7353ef26ddcd28f0f5e1ef39f1efcd20
@@ -6,15 +6,15 @@ require "date_continuity/configuration"
6
6
  require "date_continuity/model"
7
7
 
8
8
  module DateContinuity
9
- @config = DateContinuity::Configuration.setup
10
-
11
- class << self
12
- extend Forwardable
9
+ def self.configuration
10
+ @configuration ||= DateContinuity::Configuration.new
11
+ end
13
12
 
14
- attr_reader :config
13
+ def self.configuration=(config)
14
+ @configuration = config
15
+ end
15
16
 
16
- # Configurable options
17
- def_delegators :@config, :time_unit_method, :time_unit_method=
18
- def_delegators :@config, :frequency_count_method, :frequency_count_method=
17
+ def self.configure
18
+ yield configuration
19
19
  end
20
20
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: date_continuity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.2.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: []
11
+ date: 2022-03-03 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
13
27
  description: Calculate fields based on a minimum set of information.
14
28
  email: andrew.w.merritt@gmail.com
15
29
  executables: []
@@ -17,7 +31,7 @@ extensions: []
17
31
  extra_rdoc_files: []
18
32
  files:
19
33
  - lib/date_continuity.rb
20
- homepage: https://rubygems.org/gems/date_continuity
34
+ homepage: https://github.com/amerritt14/date_continuity
21
35
  licenses:
22
36
  - MIT
23
37
  metadata: {}