a_special_day 0.0.1 → 0.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc027bc2ab6a21565ec2ef64b8d3f0cf1ad7f70b
4
- data.tar.gz: 669cfe273d6587e91d31c96dfedbe516604a4e52
3
+ metadata.gz: 1837fec440cef2be2b8860be38225784859b9bbc
4
+ data.tar.gz: 83365f643aef57dbcfbdd2211d345470265d46a5
5
5
  SHA512:
6
- metadata.gz: 8d7a6aa897423bf9524ae7c97b7aeaeb96983860dd5571e5558558630509fbf44f031dc488808d93a34f773d5dd3e58cc54b98baf993a75eaa0bb397556fecb5
7
- data.tar.gz: 6d220937dff0166d1b1fd6f6233c4a946166d0fc3f3a95860e32c633dd58316e5b64b58979bc706b6df7b956d8025a25107d12606b1d2d1cd1463374ffca60c9
6
+ metadata.gz: b8335de76a03aff4c59986aca31a5f5fc809ef14067d2731727b9e70fef644f4c221640eb4f9cb1ed459677be90531562c6aa90afb925ec98dde2ba303dc04e9
7
+ data.tar.gz: 16e18f828298eb29a74f1f419c547d935bc3d9efb4474293f9e288f6c61270739343ac51798e4f1d02dfd85f6999066ef6075bef34b33f7db4d07e073aaabced
data/README.md CHANGED
@@ -1,6 +1,9 @@
1
1
  # ASpecialDay
2
2
 
3
- TODO: Write a gem description
3
+ ## Usage
4
+
5
+ Date.today.united_states_thanksgiving?
6
+ Date.today.shopping_black_friday?
4
7
 
5
8
  ## Installation
6
9
 
@@ -16,10 +19,6 @@ Or install it yourself as:
16
19
 
17
20
  $ gem install a_special_day
18
21
 
19
- ## Usage
20
-
21
- TODO: Write usage instructions here
22
-
23
22
  ## Contributing
24
23
 
25
24
  1. Fork it
@@ -1,6 +1,6 @@
1
1
  require "a_special_day/version"
2
2
 
3
- module ASpecialDay
3
+ class Date
4
4
 
5
5
  def shopping_black_friday?
6
6
  self.prev_day.united_states_thanksgiving?
@@ -10,8 +10,4 @@ module ASpecialDay
10
10
  self.month == 11 and self.thursday? and self.day >= 22
11
11
  end
12
12
 
13
- end
14
-
15
- class Date
16
- include ASpecialDay
17
13
  end
@@ -1,3 +1,3 @@
1
1
  module ASpecialDay
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: a_special_day
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
  - Cheng Guangnan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-28 00:00:00.000000000 Z
11
+ date: 2013-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler