bank_holidays 0.0.1 → 0.0.2

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
  SHA1:
3
- metadata.gz: 35f429a62ef5fcb244e3d34ca0b2798adde139b4
4
- data.tar.gz: 53c567cbde92963afed9e398c8afaaf1bbe1c2c5
3
+ metadata.gz: 76cf9adbe2bf62e2cb67648a2fdb7da31aaebefd
4
+ data.tar.gz: 651538b09977d8164a3d35f0a0b53b8d4b3a6b07
5
5
  SHA512:
6
- metadata.gz: cfa831ceeb9ee63486841e5ee5b451627f19b2addd46fc854fb697d807b2798d217033c9486533d6ea8356a8e3bac22178f10f6b34f8a26352ae9d037f3a7542
7
- data.tar.gz: 2551719810481acac25aaf66b9d1cf64b009d9e435f103dbf2e6ca655231757a85cf212003bb775cb805aff2968d7e9cb62b2bc91e25e7f4f72aca0c6a886294
6
+ metadata.gz: 77cb9229437f000256c4b7b6e5066f4ba4272a9a2163a78804bb89e818142c6756ed5f9bea2b02c746c6e25490eef1892a9cc3bc74d635a08bec6d244d6b844f
7
+ data.tar.gz: c584d06572543d1d9f051aca3e0e900e201ed27e842bb65843106033b07bcfcd21affaa4fc8d550983e81f3d88189f1d28108720976e777a0d352fdfa712b2e2
data/lib/bank_holidays.rb CHANGED
@@ -18,5 +18,13 @@ module BankHolidays
18
18
  @date = date
19
19
  @summary = summary
20
20
  end
21
+
22
+ def as_json
23
+ {
24
+ title: summary,
25
+ start: date.rfc822,
26
+ end: date.rfc822
27
+ }
28
+ end
21
29
  end
22
30
  end
@@ -1,3 +1,3 @@
1
1
  module BankHolidays
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bank_holidays
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Patching