timely 0.4.2 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +6 -0
- data/.github/workflows/release.yml +59 -0
- data/.github/workflows/ruby.yml +19 -0
- data/.rubocop.yml +22 -2
- data/.ruby-version +1 -1
- data/CHANGELOG.md +23 -0
- data/Gemfile +2 -0
- data/README.md +13 -2
- data/Rakefile +6 -4
- data/gemfiles/rails60.gemfile +8 -0
- data/gemfiles/rails61.gemfile +8 -0
- data/lib/timely.rb +2 -0
- data/lib/timely/date.rb +6 -2
- data/lib/timely/date_chooser.rb +29 -30
- data/lib/timely/date_range.rb +17 -19
- data/lib/timely/date_time.rb +3 -1
- data/lib/timely/rails.rb +2 -0
- data/lib/timely/rails/calendar_tag.rb +3 -3
- data/lib/timely/rails/date.rb +3 -1
- data/lib/timely/rails/date_group.rb +42 -18
- data/lib/timely/rails/date_range_validity_module.rb +8 -6
- data/lib/timely/rails/date_time.rb +5 -3
- data/lib/timely/rails/extensions.rb +12 -37
- data/lib/timely/rails/period.rb +14 -12
- data/lib/timely/rails/season.rb +14 -33
- data/lib/timely/rails/time.rb +7 -3
- data/lib/timely/railtie.rb +2 -0
- data/lib/timely/range.rb +4 -2
- data/lib/timely/string.rb +4 -2
- data/lib/timely/time.rb +7 -3
- data/lib/timely/time_since.rb +5 -3
- data/lib/timely/trackable_date_set.rb +21 -21
- data/lib/timely/version.rb +3 -1
- data/lib/timely/week_days.rb +22 -14
- data/rails/init.rb +2 -0
- data/spec/calendar_tag_spec.rb +11 -10
- data/spec/date_chooser_spec.rb +67 -62
- data/spec/date_group_spec.rb +103 -5
- data/spec/date_range_spec.rb +29 -19
- data/spec/date_spec.rb +3 -1
- data/spec/extensions_spec.rb +5 -9
- data/spec/rails/date_spec.rb +5 -3
- data/spec/rails/date_time_spec.rb +9 -7
- data/spec/rails/period_spec.rb +2 -0
- data/spec/rails/time_spec.rb +6 -4
- data/spec/schema.rb +4 -3
- data/spec/season_spec.rb +23 -26
- data/spec/spec_helper.rb +16 -1
- data/spec/support/coverage_loader.rb +3 -1
- data/spec/temporal_patterns_spec.rb +5 -5
- data/spec/time_since_spec.rb +6 -4
- data/spec/time_spec.rb +6 -4
- data/spec/trackable_date_set_spec.rb +20 -18
- data/spec/week_days_spec.rb +41 -16
- data/timely.gemspec +23 -19
- metadata +54 -26
- data/.travis.yml +0 -22
- data/gemfiles/rails5.gemfile +0 -6
- data/gemfiles/rails6.gemfile +0 -6
- data/spec/string_spec.rb +0 -14
@@ -1,15 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
4
|
|
3
5
|
describe Timely::TemporalPatterns do
|
4
|
-
|
5
6
|
before(:all) do
|
6
7
|
@from = Date.new(2012, 1, 1)
|
7
8
|
@to = Date.new(2013, 4, 1)
|
8
9
|
end
|
9
10
|
|
10
|
-
it
|
11
|
+
it 'should be able to create a basic 1st-of-the-month recurrence pattern' do
|
11
12
|
pattern = Timely::TemporalPatterns::Pattern.new([@from..@to], 1.month)
|
12
|
-
expect(pattern.to_s).to eq
|
13
|
+
expect(pattern.to_s).to eq 'every 1st of the month from 2012-01-01T00:00:00+00:00 to 2013-04-01T00:00:00+00:00'
|
13
14
|
|
14
15
|
expect(pattern.match?('01-05-2012'.to_date)).to be true
|
15
16
|
expect(pattern.match?('01-08-2012'.to_date)).to be true
|
@@ -19,10 +20,9 @@ describe Timely::TemporalPatterns do
|
|
19
20
|
expect(pattern.match?('01-06-2013'.to_date)).to be false
|
20
21
|
end
|
21
22
|
|
22
|
-
it
|
23
|
+
it 'should only allow a positive duration to be set as the frequency of the pattern' do
|
23
24
|
expect { Timely::TemporalPatterns::Frequency.new(2) }.to raise_error(ArgumentError)
|
24
25
|
expect { Timely::TemporalPatterns::Frequency.new(-5.months) }.to raise_error(ArgumentError)
|
25
26
|
expect(Timely::TemporalPatterns::Frequency.new(3.months).to_s).to eq 'every 3 months'
|
26
27
|
end
|
27
|
-
|
28
28
|
end
|
data/spec/time_since_spec.rb
CHANGED
@@ -1,11 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'timely/time_since'
|
2
4
|
|
3
5
|
require 'timecop'
|
4
6
|
|
5
7
|
describe Timely::TimeSince do
|
6
|
-
before
|
8
|
+
before do
|
7
9
|
Timecop.freeze(DateTime.new(2000, 1, 10, 12, 0, 42))
|
8
|
-
|
10
|
+
end
|
9
11
|
after { Timecop.return }
|
10
12
|
|
11
13
|
context '42 seconds ago' do
|
@@ -17,8 +19,8 @@ describe Timely::TimeSince do
|
|
17
19
|
|
18
20
|
context 'a day ago' do
|
19
21
|
subject(:time) { DateTime.new(2000, 1, 9, 12, 0, 42) }
|
20
|
-
its(:seconds_since) { should eq 24*60*60 }
|
21
|
-
its(:minutes_since) { should eq 24*60 }
|
22
|
+
its(:seconds_since) { should eq 24 * 60 * 60 }
|
23
|
+
its(:minutes_since) { should eq 24 * 60 }
|
22
24
|
its(:hours_since) { should eq 24 }
|
23
25
|
end
|
24
26
|
end
|
data/spec/time_spec.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
4
|
|
3
5
|
TestTime = Class.new(Time) do
|
@@ -7,7 +9,7 @@ end
|
|
7
9
|
describe Time do
|
8
10
|
it 'should be able to set date on a time' do
|
9
11
|
xmas = Date.new(2012, 12, 25)
|
10
|
-
lunch_time = TestTime.parse(
|
12
|
+
lunch_time = TestTime.parse('12:00')
|
11
13
|
xmas_lunch = lunch_time.on_date(xmas)
|
12
14
|
expect(xmas_lunch.year).to eq 2012
|
13
15
|
expect(xmas_lunch.month).to eq 12
|
@@ -17,9 +19,9 @@ describe Time do
|
|
17
19
|
expect(xmas_lunch.sec).to eq 0
|
18
20
|
end
|
19
21
|
|
20
|
-
it
|
21
|
-
time = TestTime.parse(
|
22
|
-
expect(time.on_date(Date.parse(
|
22
|
+
it 'should allow setting the date part given a date' do
|
23
|
+
time = TestTime.parse('2010-01-01 09:30:00')
|
24
|
+
expect(time.on_date(Date.parse('2012-12-31'))).to eq Time.parse('2012-12-31 09:30:00')
|
23
25
|
end
|
24
26
|
end
|
25
27
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
4
|
|
3
5
|
describe Timely::TrackableDateSet, ' tracking 7 days' do
|
@@ -6,45 +8,45 @@ describe Timely::TrackableDateSet, ' tracking 7 days' do
|
|
6
8
|
@trackable_date_set = Timely::TrackableDateSet.new(@range)
|
7
9
|
end
|
8
10
|
|
9
|
-
it
|
11
|
+
it 'should start on the first date' do
|
10
12
|
expect(@trackable_date_set.start_date).to eq Date.today
|
11
13
|
end
|
12
14
|
|
13
|
-
it
|
15
|
+
it 'should end on the last date' do
|
14
16
|
expect(@trackable_date_set.end_date).to eq Date.today + 6
|
15
17
|
end
|
16
18
|
|
17
|
-
it
|
18
|
-
expect(
|
19
|
+
it 'should have the 7 days set' do
|
20
|
+
expect(dates).to eq @range.to_a
|
19
21
|
expect(@trackable_date_set.duration).to eq 7
|
20
22
|
expect(@trackable_date_set.number_of_nights).to eq 7
|
21
23
|
end
|
22
24
|
|
23
|
-
it
|
24
|
-
expect(
|
25
|
+
it 'should have all the 7 days to do' do
|
26
|
+
expect(dates_to_do).to eq @range.to_a
|
25
27
|
should_not_have_done(@range.to_a)
|
26
28
|
end
|
27
29
|
|
28
|
-
it
|
30
|
+
it 'should have only the last 6 days to do when we set_done! the first one' do
|
29
31
|
@trackable_date_set.set_date_done!(Date.today)
|
30
|
-
expect(
|
32
|
+
expect(dates_to_do).to eq(((Date.today + 1)..(Date.today + 6)).to_a)
|
31
33
|
|
32
34
|
should_not_have_done(@range.to_a - [Date.today])
|
33
35
|
should_have_done([Date.today])
|
34
36
|
end
|
35
37
|
|
36
|
-
it
|
38
|
+
it 'should have the first, and last three left to do if we set 2nd, 3rd & 4th to be done' do
|
37
39
|
dates_to_be_done = [Date.today + 1, Date.today + 2, Date.today + 3]
|
38
40
|
@trackable_date_set.set_dates_done!(dates_to_be_done)
|
39
41
|
|
40
|
-
expect(
|
42
|
+
expect(dates_to_do).to eq [Date.today, Date.today + 4, Date.today + 5, Date.today + 6]
|
41
43
|
should_not_have_done(@range.to_a - dates_to_be_done)
|
42
44
|
should_have_done(dates_to_be_done)
|
43
45
|
end
|
44
46
|
|
45
|
-
it
|
47
|
+
it 'should have none left to do when set_all_done!' do
|
46
48
|
@trackable_date_set.set_all_done!
|
47
|
-
expect(
|
49
|
+
expect(dates_to_do).to eq []
|
48
50
|
should_have_done(@range.to_a)
|
49
51
|
end
|
50
52
|
|
@@ -59,22 +61,22 @@ describe Timely::TrackableDateSet, ' tracking 7 days' do
|
|
59
61
|
end
|
60
62
|
|
61
63
|
def should_have_done(dates)
|
62
|
-
dates.each{|date| expect(@trackable_date_set.
|
64
|
+
dates.each { |date| expect(@trackable_date_set.done_dates?(date)).to be true }
|
63
65
|
end
|
64
66
|
|
65
67
|
def should_not_have_done(dates)
|
66
|
-
dates.each{|date| expect(@trackable_date_set.
|
68
|
+
dates.each { |date| expect(@trackable_date_set.done_dates?(date)).to be false }
|
67
69
|
end
|
68
70
|
|
69
|
-
def
|
71
|
+
def dates
|
70
72
|
contained_dates = []
|
71
|
-
@trackable_date_set.each_date{|date| contained_dates << date}
|
73
|
+
@trackable_date_set.each_date { |date| contained_dates << date }
|
72
74
|
contained_dates
|
73
75
|
end
|
74
76
|
|
75
|
-
def
|
77
|
+
def dates_to_do
|
76
78
|
contained_dates = []
|
77
|
-
@trackable_date_set.each_date_to_do{|date| contained_dates << date}
|
79
|
+
@trackable_date_set.each_date_to_do { |date| contained_dates << date }
|
78
80
|
contained_dates
|
79
81
|
end
|
80
82
|
end
|
data/spec/week_days_spec.rb
CHANGED
@@ -1,30 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
4
|
|
3
|
-
describe Timely::WeekDays do
|
5
|
+
RSpec.describe Timely::WeekDays do
|
4
6
|
before do
|
5
|
-
@weekdays = Timely::WeekDays.new(:
|
7
|
+
@weekdays = Timely::WeekDays.new(tue: true, thu: true)
|
6
8
|
end
|
7
9
|
|
8
10
|
it 'should create via hash, integer and array' do
|
9
11
|
# 0 0 1 0 1 0 0
|
10
12
|
# Sat Fri Thu Wed Tue Mon Sun
|
11
|
-
expect(Timely::WeekDays.new(0b0010100).weekdays).to eq [
|
12
|
-
expect(Timely::WeekDays.new(%w
|
13
|
-
expect(Timely::WeekDays.new(:
|
13
|
+
expect(Timely::WeekDays.new(0b0010100).weekdays).to eq %i[tue thu]
|
14
|
+
expect(Timely::WeekDays.new(%w[0 0 1 0 1 0 0]).weekdays).to eq %i[tue thu]
|
15
|
+
expect(Timely::WeekDays.new(tue: true, thu: true).weekdays).to eq %i[tue thu]
|
14
16
|
end
|
15
17
|
|
16
18
|
it 'should be able to set/unset days' do
|
17
19
|
@weekdays[:mon] = true
|
18
|
-
expect(@weekdays.weekdays).to eq [
|
20
|
+
expect(@weekdays.weekdays).to eq %i[mon tue thu]
|
19
21
|
@weekdays[:tue] = false
|
20
|
-
expect(@weekdays.weekdays).to eq [
|
22
|
+
expect(@weekdays.weekdays).to eq %i[mon thu]
|
21
23
|
end
|
22
24
|
|
23
|
-
it 'should output days nicely' do
|
24
|
-
expect(Timely::WeekDays.new(%w
|
25
|
-
expect(Timely::WeekDays.new(%w
|
26
|
-
expect(Timely::WeekDays.new(%w
|
27
|
-
expect(Timely::WeekDays.new(%w
|
25
|
+
it 'should output days nicely' do
|
26
|
+
expect(Timely::WeekDays.new(%w[1 0 0 0 0 0 0]).to_s).to eq 'Sun'
|
27
|
+
expect(Timely::WeekDays.new(%w[1 0 1 0 0 0 0]).to_s).to eq 'Sun, and Tue'
|
28
|
+
expect(Timely::WeekDays.new(%w[1 0 1 1 0 0 0]).to_s).to eq 'Sun, Tue, and Wed'
|
29
|
+
expect(Timely::WeekDays.new(%w[1 0 1 1 0 1 0]).to_s).to eq 'Sun, Tue, Wed, and Fri'
|
28
30
|
end
|
29
31
|
|
30
32
|
it 'should be able to determine if days of the week are selected' do
|
@@ -36,8 +38,8 @@ describe Timely::WeekDays do
|
|
36
38
|
end
|
37
39
|
|
38
40
|
it 'should be able to determine if it would be applicable on a date' do
|
39
|
-
expect(@weekdays.applies_for_date?(Date.new(2012,
|
40
|
-
expect(@weekdays.applies_for_date?(Date.new(2012,
|
41
|
+
expect(@weekdays.applies_for_date?(Date.new(2012, 0o4, 22))).to be false # Sunday
|
42
|
+
expect(@weekdays.applies_for_date?(Date.new(2012, 0o4, 24))).to be true # Tuesday
|
41
43
|
end
|
42
44
|
|
43
45
|
it 'should be able to convert to integer for use in databases, etc.' do
|
@@ -45,7 +47,30 @@ describe Timely::WeekDays do
|
|
45
47
|
end
|
46
48
|
|
47
49
|
it 'should be able to determine if all days are selected' do
|
48
|
-
expect(Timely::WeekDays.new(%w
|
49
|
-
expect(Timely::WeekDays.new(%w
|
50
|
+
expect(Timely::WeekDays.new(%w[1 1 1 1 1 1 1]).all_days?).to be true
|
51
|
+
expect(Timely::WeekDays.new(%w[1 1 1 1 1 0 1]).all_days?).to be false
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
RSpec.describe 'Timely::WeekDays.from_range' do
|
56
|
+
{
|
57
|
+
'single date as string': { date_range: '2019-10-17', expected_weekdays: [:thu] },
|
58
|
+
'single date as object': { date_range: '2019-10-17'.to_date, expected_weekdays: [:thu] },
|
59
|
+
'range with strings': {
|
60
|
+
date_range: '2019-10-17'..'2019-10-18',
|
61
|
+
expected_weekdays: %i[thu fri]
|
62
|
+
},
|
63
|
+
'range with objects': {
|
64
|
+
date_range: ('2019-10-17'.to_date)..('2019-10-18'.to_date),
|
65
|
+
expected_weekdays: %i[thu fri]
|
66
|
+
}
|
67
|
+
}.each do |type, data|
|
68
|
+
it "#{type} has correct weekdays and applies for dates" do
|
69
|
+
weekdays = Timely::WeekDays.from_range(data[:date_range])
|
70
|
+
expect(weekdays.weekdays).to eq(data[:expected_weekdays])
|
71
|
+
Array(data[:date_range]).each do |date|
|
72
|
+
expect(weekdays.applies_for_date?(date.to_date)).to eq(true)
|
73
|
+
end
|
74
|
+
end
|
50
75
|
end
|
51
76
|
end
|
data/timely.gemspec
CHANGED
@@ -1,36 +1,40 @@
|
|
1
|
-
#
|
2
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = File.expand_path('lib', __dir__)
|
3
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
5
|
require 'timely/version'
|
5
6
|
|
6
7
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name =
|
8
|
+
spec.name = 'timely'
|
8
9
|
spec.version = Timely::VERSION
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = [
|
11
|
-
spec.description =
|
12
|
-
spec.summary =
|
10
|
+
spec.authors = ['Michael Noack']
|
11
|
+
spec.email = ['support@travellink.com.au']
|
12
|
+
spec.description = 'Set of time, date, weekday related methods.'
|
13
|
+
spec.summary = 'Set of time, date, weekday related methods.'
|
13
14
|
spec.homepage = 'http://github.com/sealink/timely'
|
14
15
|
|
15
|
-
spec.license =
|
16
|
+
spec.license = 'MIT'
|
16
17
|
|
17
|
-
spec.files = `git ls-files`.split(
|
18
|
+
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
|
18
19
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
19
20
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
|
-
spec.require_paths = [
|
21
|
+
spec.require_paths = ['lib']
|
22
|
+
spec.required_ruby_version = '>= 2.6'
|
21
23
|
|
22
|
-
spec.add_development_dependency
|
23
|
-
spec.add_development_dependency
|
24
|
-
spec.add_development_dependency '
|
25
|
-
spec.add_development_dependency '
|
24
|
+
spec.add_development_dependency 'actionpack'
|
25
|
+
spec.add_development_dependency 'activerecord'
|
26
|
+
spec.add_development_dependency 'activesupport'
|
27
|
+
spec.add_development_dependency 'bundler', '~> 2.2.0'
|
26
28
|
spec.add_development_dependency 'coverage-kit'
|
27
|
-
spec.add_development_dependency 'simplecov-rcov'
|
28
29
|
spec.add_development_dependency 'coveralls'
|
30
|
+
spec.add_development_dependency 'rake'
|
31
|
+
spec.add_development_dependency 'rspec'
|
32
|
+
spec.add_development_dependency 'rspec-its'
|
33
|
+
spec.add_development_dependency 'database_cleaner'
|
29
34
|
spec.add_development_dependency 'rubocop'
|
35
|
+
spec.add_development_dependency 'rubocop-rails'
|
36
|
+
spec.add_development_dependency 'simplecov-rcov'
|
30
37
|
spec.add_development_dependency 'sqlite3'
|
31
|
-
spec.add_development_dependency 'activesupport'
|
32
|
-
spec.add_development_dependency 'activerecord'
|
33
|
-
spec.add_development_dependency 'actionpack'
|
34
38
|
spec.add_development_dependency 'timecop'
|
35
|
-
spec.add_development_dependency '
|
39
|
+
spec.add_development_dependency 'pry'
|
36
40
|
end
|
metadata
CHANGED
@@ -1,31 +1,31 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: timely
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Noack
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: actionpack
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: activerecord
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: activesupport
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
@@ -53,7 +53,21 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: bundler
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.2.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 2.2.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: coverage-kit
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
73
|
- - ">="
|
@@ -67,7 +81,7 @@ dependencies:
|
|
67
81
|
- !ruby/object:Gem::Version
|
68
82
|
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
84
|
+
name: coveralls
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
72
86
|
requirements:
|
73
87
|
- - ">="
|
@@ -81,7 +95,7 @@ dependencies:
|
|
81
95
|
- !ruby/object:Gem::Version
|
82
96
|
version: '0'
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
98
|
+
name: rake
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
86
100
|
requirements:
|
87
101
|
- - ">="
|
@@ -95,7 +109,7 @@ dependencies:
|
|
95
109
|
- !ruby/object:Gem::Version
|
96
110
|
version: '0'
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
112
|
+
name: rspec
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
100
114
|
requirements:
|
101
115
|
- - ">="
|
@@ -109,7 +123,7 @@ dependencies:
|
|
109
123
|
- !ruby/object:Gem::Version
|
110
124
|
version: '0'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
126
|
+
name: rspec-its
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
114
128
|
requirements:
|
115
129
|
- - ">="
|
@@ -123,7 +137,7 @@ dependencies:
|
|
123
137
|
- !ruby/object:Gem::Version
|
124
138
|
version: '0'
|
125
139
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
140
|
+
name: database_cleaner
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
128
142
|
requirements:
|
129
143
|
- - ">="
|
@@ -137,7 +151,7 @@ dependencies:
|
|
137
151
|
- !ruby/object:Gem::Version
|
138
152
|
version: '0'
|
139
153
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
154
|
+
name: rubocop
|
141
155
|
requirement: !ruby/object:Gem::Requirement
|
142
156
|
requirements:
|
143
157
|
- - ">="
|
@@ -151,7 +165,7 @@ dependencies:
|
|
151
165
|
- !ruby/object:Gem::Version
|
152
166
|
version: '0'
|
153
167
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
168
|
+
name: rubocop-rails
|
155
169
|
requirement: !ruby/object:Gem::Requirement
|
156
170
|
requirements:
|
157
171
|
- - ">="
|
@@ -165,7 +179,21 @@ dependencies:
|
|
165
179
|
- !ruby/object:Gem::Version
|
166
180
|
version: '0'
|
167
181
|
- !ruby/object:Gem::Dependency
|
168
|
-
name:
|
182
|
+
name: simplecov-rcov
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: sqlite3
|
169
197
|
requirement: !ruby/object:Gem::Requirement
|
170
198
|
requirements:
|
171
199
|
- - ">="
|
@@ -193,7 +221,7 @@ dependencies:
|
|
193
221
|
- !ruby/object:Gem::Version
|
194
222
|
version: '0'
|
195
223
|
- !ruby/object:Gem::Dependency
|
196
|
-
name:
|
224
|
+
name: pry
|
197
225
|
requirement: !ruby/object:Gem::Requirement
|
198
226
|
requirements:
|
199
227
|
- - ">="
|
@@ -213,18 +241,20 @@ executables: []
|
|
213
241
|
extensions: []
|
214
242
|
extra_rdoc_files: []
|
215
243
|
files:
|
244
|
+
- ".github/dependabot.yml"
|
245
|
+
- ".github/workflows/release.yml"
|
246
|
+
- ".github/workflows/ruby.yml"
|
216
247
|
- ".gitignore"
|
217
248
|
- ".rspec"
|
218
249
|
- ".rubocop.yml"
|
219
250
|
- ".ruby-version"
|
220
|
-
- ".travis.yml"
|
221
251
|
- CHANGELOG.md
|
222
252
|
- Gemfile
|
223
253
|
- LICENSE
|
224
254
|
- README.md
|
225
255
|
- Rakefile
|
226
|
-
- gemfiles/
|
227
|
-
- gemfiles/
|
256
|
+
- gemfiles/rails60.gemfile
|
257
|
+
- gemfiles/rails61.gemfile
|
228
258
|
- lib/timely.rb
|
229
259
|
- lib/timely/date.rb
|
230
260
|
- lib/timely/date_chooser.rb
|
@@ -266,7 +296,6 @@ files:
|
|
266
296
|
- spec/schema.rb
|
267
297
|
- spec/season_spec.rb
|
268
298
|
- spec/spec_helper.rb
|
269
|
-
- spec/string_spec.rb
|
270
299
|
- spec/support/coverage_loader.rb
|
271
300
|
- spec/temporal_patterns_spec.rb
|
272
301
|
- spec/time_since_spec.rb
|
@@ -286,14 +315,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
286
315
|
requirements:
|
287
316
|
- - ">="
|
288
317
|
- !ruby/object:Gem::Version
|
289
|
-
version: '
|
318
|
+
version: '2.6'
|
290
319
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
291
320
|
requirements:
|
292
321
|
- - ">="
|
293
322
|
- !ruby/object:Gem::Version
|
294
323
|
version: '0'
|
295
324
|
requirements: []
|
296
|
-
rubygems_version: 3.
|
325
|
+
rubygems_version: 3.2.3
|
297
326
|
signing_key:
|
298
327
|
specification_version: 4
|
299
328
|
summary: Set of time, date, weekday related methods.
|
@@ -311,7 +340,6 @@ test_files:
|
|
311
340
|
- spec/schema.rb
|
312
341
|
- spec/season_spec.rb
|
313
342
|
- spec/spec_helper.rb
|
314
|
-
- spec/string_spec.rb
|
315
343
|
- spec/support/coverage_loader.rb
|
316
344
|
- spec/temporal_patterns_spec.rb
|
317
345
|
- spec/time_since_spec.rb
|