sinatra-hexacta 0.9.7 → 0.9.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b97b62887d184597d148d7130331462bd070240e1af4b83406f897c228f08583
4
- data.tar.gz: d53746e2585c46bd57ea1fd242df5cad27ca7169c7505246ff09d94ad3f28be1
3
+ metadata.gz: 3b09731f11bb84a5c0cdf375704854f8221af4551f0b19a2215c2c6501695f1f
4
+ data.tar.gz: f303c526ff69d7e2c1d077842807c5c2efe6961262d23d821d34cb020c30024f
5
5
  SHA512:
6
- metadata.gz: 16cebd71cab149bfd4fc46b6fd002ac5a46806cf06c1d2ed5b81837aab12ff0e604cb035b42ae15e44283c411450d31255c02f39cec841984fb945a8621970a5
7
- data.tar.gz: 770b3423e956d9428fdf5cd126aaff360f93cc6609c296103883bb6b329656fc5572ae6b790fdd7a32cc462780d87febe55293bed537c41497086af1b6236c00
6
+ metadata.gz: 9ab7ed10ae230ba1ea869c047ff81f49eae1f3b5cc51916848cf40ee97ac3a34d38fe6ee33f90b5f1130a933842022f446bfa835d01be7adf3b8a6a0d872716a
7
+ data.tar.gz: 4625603c05c8ec901ff9fd8e183cbf9691a2b6f501902c2cefdbd1ec346000593e26c398aeee49cea683fd866072f23f5c569c3d70dcf0d9d6101696ec088352
@@ -17,8 +17,8 @@ class Antiquity
17
17
  months.divmod(12).first
18
18
  end
19
19
 
20
- def to_s
21
- date = (@periods.last && @periods.last.end_date) || Date.today
20
+ def to_s(upto_date=Date.today)
21
+ date = (@periods.last && @periods.last.end_date) || upto_date
22
22
  result = ""
23
23
  return result if @periods.empty?
24
24
  if date >= @periods.first.start_date
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-hexacta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.7
4
+ version: 0.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marco Zanger