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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d6d87b5e8bf635549bc8a437f7f5b2c98a7d3d5c1d96f2b9a78d643945b74a5
4
- data.tar.gz: a8a08079d7dfb3fc360787f2ad4b3b70ebf36c329e9e83f48bce73b8cd0f4704
3
+ metadata.gz: e93c599e1e312505678ed58cd7ce33ef36fad9243197c5ad03702a8b2b905f4c
4
+ data.tar.gz: d0bb5fcb0057acbe69818599f325b87712a9703f4b54ded295a307852f3ac582
5
5
  SHA512:
6
- metadata.gz: 65febba2dd03d97ef9da0faa36e08d6e1dbadc20cde75bc9f10ec89bc98e29b35784228e3a60edf28bd3a79a3cbfe0d090b001687c94b2dbd7ca641fd90d5fef
7
- data.tar.gz: 13028c858da82dc9655e4de999add22602182bbfacd32823d1825016e73dd2ec909be8f19e97f1887b808aa2daeb2086ff36e8cce5f88dcc266fb36dbe8353a5
6
+ metadata.gz: 7b8ddee7b6b1cac283af108e470269fa62092f49d912ff029fe4e4687c0b2b6d0338991b857bcce97663f90669a521727c96a3ee8c5ba003e72899feeab6e0c9
7
+ data.tar.gz: b8d2333fce7ecc21c92e77ef3619eab3e339e5b963f104efe5823b94558ee569dccf91fb8187f00fe406ad09408f377188b4f6fcfd4d0836ff0ff7ac1814effc
data/.gitignore CHANGED
@@ -6,6 +6,7 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+ Gemfile.lock
9
10
 
10
11
  # rspec failure tracking
11
12
  .rspec_status
@@ -0,0 +1,5 @@
1
+ ### 0.2.0
2
+
3
+ Enhancements
4
+
5
+ * adds `#🌮?` for more succinct Taco Tuesday checking
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
@@ -4,4 +4,6 @@ class Date
4
4
  def taco_tuesday?
5
5
  tuesday?
6
6
  end
7
- end
7
+
8
+ alias 🌮? taco_tuesday?
9
+ end
@@ -4,4 +4,6 @@ class Time
4
4
  def taco_tuesday?
5
5
  tuesday?
6
6
  end
7
- end
7
+
8
+ alias 🌮? taco_tuesday?
9
+ end
@@ -1,3 +1,3 @@
1
1
  module TacoTuesday
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
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.1.1
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-05-28 00:00:00.000000000 Z
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
@@ -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