calendarium-romanum 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +4 -0
- data/.rspec +2 -0
- data/.rubocop.yml +47 -0
- data/.travis.yml +20 -0
- data/.yardopts +3 -0
- data/CHANGELOG.md +340 -0
- data/Gemfile +25 -0
- data/Gemfile.lock +86 -0
- data/README.md +515 -0
- data/Rakefile +9 -0
- data/calendarium-romanum.gemspec +26 -0
- data/doc/data_readme.md +2 -0
- data/doc/images/class_diagram.png +0 -0
- data/doc/images/class_diagram.puml +44 -0
- data/doc/yard_readme.rdoc +76 -0
- data/lib/calendarium-romanum/sanctorale.rb +29 -3
- data/lib/calendarium-romanum/sanctorale_factory.rb +2 -2
- data/lib/calendarium-romanum/sanctorale_loader.rb +3 -3
- data/lib/calendarium-romanum/version.rb +2 -2
- metadata +17 -26
- data/spec/abstract_date_spec.rb +0 -70
- data/spec/calendar_spec.rb +0 -756
- data/spec/celebration_factory_spec.rb +0 -40
- data/spec/celebration_spec.rb +0 -67
- data/spec/cli_spec.rb +0 -169
- data/spec/colour_spec.rb +0 -22
- data/spec/data_spec.rb +0 -46
- data/spec/date_parser_spec.rb +0 -68
- data/spec/date_spec.rb +0 -61
- data/spec/dates_spec.rb +0 -73
- data/spec/day_spec.rb +0 -151
- data/spec/enum_spec.rb +0 -51
- data/spec/i18n_spec.rb +0 -68
- data/spec/ordinalizer_spec.rb +0 -44
- data/spec/perpetual_calendar_spec.rb +0 -125
- data/spec/rank_spec.rb +0 -77
- data/spec/readme_spec.rb +0 -58
- data/spec/sanctorale_factory_spec.rb +0 -146
- data/spec/sanctorale_loader_spec.rb +0 -229
- data/spec/sanctorale_spec.rb +0 -281
- data/spec/season_spec.rb +0 -22
- data/spec/spec_helper.rb +0 -46
- data/spec/temporale_spec.rb +0 -693
- data/spec/year_spec.rb +0 -25
data/spec/year_spec.rb
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
require_relative 'spec_helper'
|
2
|
-
|
3
|
-
describe CR::Util::Year do
|
4
|
-
let(:y) { described_class.new 2000 }
|
5
|
-
let(:day_count) { 366 }
|
6
|
-
|
7
|
-
describe '#each' do
|
8
|
-
it 'yields for each iteration' do
|
9
|
-
expect {|b| y.each(&b) }.to yield_control
|
10
|
-
end
|
11
|
-
|
12
|
-
it 'yields the expected number of times' do
|
13
|
-
expect {|b| y.each(&b) }.to yield_control.exactly(day_count).times
|
14
|
-
end
|
15
|
-
|
16
|
-
it 'yields calendar day instances' do
|
17
|
-
expected_class = Array.new(day_count, Date)
|
18
|
-
expect {|b| y.each(&b) }.to yield_successive_args(*expected_class)
|
19
|
-
end
|
20
|
-
|
21
|
-
it 'returns Enumerator if called without a block' do
|
22
|
-
expect(y.each).to be_a Enumerator
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|