taco_tuesday 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +5 -0
- data/README.md +10 -0
- data/lib/taco_tuesday/date.rb +3 -1
- data/lib/taco_tuesday/time.rb +3 -1
- data/lib/taco_tuesday/version.rb +1 -1
- metadata +3 -3
- data/Gemfile.lock +0 -35
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e93c599e1e312505678ed58cd7ce33ef36fad9243197c5ad03702a8b2b905f4c
|
4
|
+
data.tar.gz: d0bb5fcb0057acbe69818599f325b87712a9703f4b54ded295a307852f3ac582
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b8ddee7b6b1cac283af108e470269fa62092f49d912ff029fe4e4687c0b2b6d0338991b857bcce97663f90669a521727c96a3ee8c5ba003e72899feeab6e0c9
|
7
|
+
data.tar.gz: b8d2333fce7ecc21c92e77ef3619eab3e339e5b963f104efe5823b94558ee569dccf91fb8187f00fe406ad09408f377188b4f6fcfd4d0836ff0ff7ac1814effc
|
data/.gitignore
CHANGED
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# TacoTuesday
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/taco_tuesday.svg)](https://badge.fury.io/rb/taco_tuesday)
|
4
|
+
[![Maintainability](https://api.codeclimate.com/v1/badges/8c6cacf5c39ce8e41175/maintainability)](https://codeclimate.com/github/DRBragg/taco_tuesday/maintainability)
|
5
|
+
[![Build Status](https://travis-ci.org/DRBragg/taco_tuesday.svg?branch=master)](https://travis-ci.org/DRBragg/taco_tuesday)
|
6
|
+
|
3
7
|
Adds a taco_tuesday? method to Ruby's Date and Times classes. Cause, well, tacos.
|
4
8
|
|
5
9
|
## Installation
|
@@ -24,13 +28,16 @@ require 'taco_tuesday'
|
|
24
28
|
# May 26th 2020 is a Tuesday
|
25
29
|
tuesday = Date.new(2020, 5, 26)
|
26
30
|
tuesday.taco_tuesday? #=> true
|
31
|
+
tuesday.🌮? #=> true
|
27
32
|
|
28
33
|
# May 25th 2020 is a Monday
|
29
34
|
monday = Date.new(2020, 5, 25)
|
30
35
|
monday.taco_tuesday? #=> false
|
36
|
+
monday.🌮? #=> false
|
31
37
|
|
32
38
|
# Check if today is Taco Tuesday
|
33
39
|
Date.today.taco_tuesday? #=> Same result as Date.today.tuesday?
|
40
|
+
Date.today.🌮? #=> Same result as Date.today.taco_tuesday?
|
34
41
|
```
|
35
42
|
|
36
43
|
Or with the Time class:
|
@@ -41,13 +48,16 @@ require 'taco_tuesday'
|
|
41
48
|
# May 26th 2020 is a Tuesday
|
42
49
|
tuesday = Time.new(2020, 5, 26)
|
43
50
|
tuesday.taco_tuesday? #=> true
|
51
|
+
tuesday.🌮? #=> true
|
44
52
|
|
45
53
|
# May 25th 2020 is a Monday
|
46
54
|
monday = Time.new(2020, 5, 25)
|
47
55
|
monday.taco_tuesday? #=> false
|
56
|
+
monday.🌮? #=> false
|
48
57
|
|
49
58
|
# Check if today is Taco Tuesday
|
50
59
|
Time.now.taco_tuesday? #=> Same result as Time.now.tuesday?
|
60
|
+
Time.now.🌮? #=> Same result as Time.now.taco_tuesday?
|
51
61
|
```
|
52
62
|
|
53
63
|
## Development
|
data/lib/taco_tuesday/date.rb
CHANGED
data/lib/taco_tuesday/time.rb
CHANGED
data/lib/taco_tuesday/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: taco_tuesday
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Drew Bragg
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -63,9 +63,9 @@ files:
|
|
63
63
|
- ".gitignore"
|
64
64
|
- ".rspec"
|
65
65
|
- ".travis.yml"
|
66
|
+
- CHANGELOG.md
|
66
67
|
- CODE_OF_CONDUCT.md
|
67
68
|
- Gemfile
|
68
|
-
- Gemfile.lock
|
69
69
|
- LICENSE.txt
|
70
70
|
- README.md
|
71
71
|
- Rakefile
|
data/Gemfile.lock
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
taco_tuesday (0.1.0)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
diff-lcs (1.3)
|
10
|
-
rake (13.0.1)
|
11
|
-
rspec (3.9.0)
|
12
|
-
rspec-core (~> 3.9.0)
|
13
|
-
rspec-expectations (~> 3.9.0)
|
14
|
-
rspec-mocks (~> 3.9.0)
|
15
|
-
rspec-core (3.9.2)
|
16
|
-
rspec-support (~> 3.9.3)
|
17
|
-
rspec-expectations (3.9.2)
|
18
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
19
|
-
rspec-support (~> 3.9.0)
|
20
|
-
rspec-mocks (3.9.1)
|
21
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
22
|
-
rspec-support (~> 3.9.0)
|
23
|
-
rspec-support (3.9.3)
|
24
|
-
|
25
|
-
PLATFORMS
|
26
|
-
ruby
|
27
|
-
|
28
|
-
DEPENDENCIES
|
29
|
-
bundler (~> 1.17)
|
30
|
-
rake (>= 12.3.3)
|
31
|
-
rspec (~> 3.0)
|
32
|
-
taco_tuesday!
|
33
|
-
|
34
|
-
BUNDLED WITH
|
35
|
-
1.17.2
|