date_continuity 0.0.1 → 0.1.0

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 +4 -9
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5fcdd83d2ca171ea37773549a9e2f2834c73fd42d379616f8b59552330277523
4
- data.tar.gz: 44c7f63a6336f248571c5fad2005717bf58e3f73db9c1fa8100bfb327ede137d
3
+ metadata.gz: 22ee5b11ae14a9e2e58653f628b51f24a17d14d4ee29db368efd5694bcd7b7d1
4
+ data.tar.gz: d2624c3cd86dd005c36cf93b95bb3a31d35d11be59a97b35504668d8a2317df5
5
5
  SHA512:
6
- metadata.gz: cbfb2a9d53c8506e104a91696b992fcf8e7b04a4fbf559d5c9a301534b854615f6a841f8dbb0fe94c56b192289804343ed3db68c16913480829056e9e854d41c
7
- data.tar.gz: 85bfc77f2cf2630a850dd31ad45bd8baa30247fbad43dd2d53da7e817afa589fd72bedf42aef8a7f791bc6a50ac668cdfd1f1ad914d117f42d1181318e05e87a
6
+ metadata.gz: 1771d384dcf7c1eb59a777de9e80ba18e3e32a3916f7105b20560c4ddba32d9abb3479ad5b7cc2b995fc0418eaeccf08d61ba63c0a7d64401066a411fac31b26
7
+ data.tar.gz: 695482edc786be5d2d3a51e4a2f7df7eb74339d221c6d1a51e0ee1f93aa8955e76d37308ee07cf74810cedcc8164ef1b62f8d99df3cc8c297e12fc7aa43e7ed4
@@ -2,19 +2,14 @@
2
2
 
3
3
  require "active_record"
4
4
 
5
- require "date_continuity/configuration"
6
5
  require "date_continuity/model"
7
6
 
8
7
  module DateContinuity
9
- @config = DateContinuity::Configuration.setup
10
-
11
8
  class << self
12
- extend Forwardable
13
-
14
- attr_reader :config
9
+ attr_accessor :duration_method, :end_method, :frequency_count_method, :start_method, :time_unit_method
10
+ end
15
11
 
16
- # Configurable options
17
- def_delegators :@config, :time_unit_method, :time_unit_method=
18
- def_delegators :@config, :frequency_count_method, :frequency_count_method=
12
+ def self.configure
13
+ yield self
19
14
  end
20
15
  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.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Merritt