birthdays 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +25 -0
- data/ChangeLog.md +9 -6
- data/Gemfile +5 -2
- data/README.md +34 -8
- data/Rakefile +8 -0
- data/birthdays.gemspec +2 -2
- data/gemspec.yml +3 -5
- data/lib/birthdays/version.rb +1 -1
- data/test/helper.rb +10 -0
- metadata +15 -54
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: acad341a7bba78f6afd6f20aae01f2a911f3e30d53eba9b23215492407d9b14a
|
4
|
+
data.tar.gz: 01a99b9ad91bf808721d0e1e356c31e9205258cfa7dfb2cdabef34163f5d834e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e205fe62ceae9d0f8a83111603783b664e4e4c8916d83dfe2659a4c1f80dd32768b59b976a226c8def5a4373856d05ca0e1ab2008f07aab8857cd267ddbeff41
|
7
|
+
data.tar.gz: 96671bc0b9ad8c1791a9f8a92aaddd872b5ce9eecc9c1bdba1b39e2853d193942b1c426e95eff2f5e335f639ed12703ccd5ed0cb438c3721654ad641412330bb
|
@@ -0,0 +1,25 @@
|
|
1
|
+
name: Ruby
|
2
|
+
|
3
|
+
on: [push]
|
4
|
+
jobs:
|
5
|
+
test:
|
6
|
+
strategy:
|
7
|
+
fail-fast: false
|
8
|
+
matrix:
|
9
|
+
os: [ ubuntu-latest, macos-latest ]
|
10
|
+
ruby: [ 2.3, 2.4, 2.5, 2.6, 2.7, jruby, truffleruby ]
|
11
|
+
runs-on: ${{ matrix.os }}
|
12
|
+
steps:
|
13
|
+
- name: 'Git checkout'
|
14
|
+
uses: actions/checkout@v2
|
15
|
+
- name: 'Setup ruby'
|
16
|
+
uses: ruby/setup-ruby@v1
|
17
|
+
with:
|
18
|
+
ruby-version: ${{ matrix.ruby }}
|
19
|
+
- name: 'Install bundler and gems'
|
20
|
+
run: |
|
21
|
+
gem install bundler
|
22
|
+
bundle install --jobs 4 --retry 3
|
23
|
+
- name: "Run tests"
|
24
|
+
run: |
|
25
|
+
bundle exec rake test
|
data/ChangeLog.md
CHANGED
@@ -1,16 +1,19 @@
|
|
1
|
-
== Release v0.1.
|
1
|
+
== Release v0.1.3 (2020-07-09) ==
|
2
2
|
|
3
|
-
*
|
4
|
-
*
|
3
|
+
* Add more examples in the README
|
4
|
+
* We don't use active support anymore
|
5
|
+
* Add .bundle/config
|
6
|
+
* Add github action for tests
|
7
|
+
|
8
|
+
== Release v0.1.2 (2020-02-19) ==
|
9
|
+
|
10
|
+
* Bump version and update ChangeLog.md
|
5
11
|
* Update Rakefile
|
6
|
-
* Copyright
|
7
12
|
* ActiveSupport 5 depends on ruby >=2.2.2
|
8
13
|
* In travis the test should be under bundle exec
|
9
14
|
* Update dependencies
|
10
15
|
* We need the git version of Drain for now
|
11
16
|
* Configure travis and streamline rake and test files
|
12
|
-
* Copyright
|
13
|
-
* Copyright
|
14
17
|
* The library name changed
|
15
18
|
|
16
19
|
== Release v0.1.0 and v0.1.1 (2015-02-24) ==
|
data/Gemfile
CHANGED
@@ -1,8 +1,11 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
3
|
gemspec
|
4
|
-
gem 'drain', :github => 'DamienRobert/drain'
|
4
|
+
# gem 'drain', :github => 'DamienRobert/drain'
|
5
5
|
|
6
|
-
group :
|
6
|
+
group :extra_devel do
|
7
|
+
gem 'minitest-reporters', '~> 1.4'
|
8
|
+
gem 'yard', '~> 0.9'
|
7
9
|
gem 'kramdown'
|
10
|
+
gem 'rubygems-tasks', '~> 0.2'
|
8
11
|
end
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
* [Homepage](https://github.com/DamienRobert/birthdays#readme)
|
4
4
|
* [Issues](https://github.com/DamienRobert/birthdays/issues)
|
5
5
|
* [Documentation](http://rubydoc.info/gems/birthdays)
|
6
|
-
* [Email](mailto:Damien.Olivier.Robert+gems
|
6
|
+
* [Email](mailto:Damien.Olivier.Robert+gems@gmail.com)
|
7
7
|
|
8
8
|
[![Gem Version](https://img.shields.io/gem/v/birthdays.svg)](https://rubygems.org/gems/birthdays)
|
9
9
|
[![Build Status](https://travis-ci.org/DamienRobert/birthdays.svg?branch=master)](https://travis-ci.org/DamienRobert/birthdays)
|
@@ -28,18 +28,44 @@ By default use the file ~/.birthdays.yaml, that you can fill like:
|
|
28
28
|
|
29
29
|
Then to see the birthdays for next week just use
|
30
30
|
|
31
|
-
birthdays 'now..in 7 days'
|
31
|
+
$ birthdays 'now..in 7 days'
|
32
32
|
|
33
|
-
|
33
|
+
By default it uses the current day. We can also specify several ranges:
|
34
34
|
|
35
|
-
$
|
35
|
+
$ birthdays '2020-01-01'
|
36
|
+
On 2020-01-01 12:00:00 +0100, the birthdays are
|
37
|
+
- New Year (born 2021-01-01, -1y)
|
38
|
+
- John Doe (born 1970-01-01, 50y)
|
39
|
+
|
40
|
+
$ birthdays '2020-01-01..2020-02-01' '2020-06-01..2020-08'
|
41
|
+
On (2020-01-01 12:00:00 +0100..2020-02-01 12:00:00 +0100), the birthdays are
|
42
|
+
- New Year (born 2021-01-01, -1y)
|
43
|
+
- John Doe (born 1970-01-01, 50y)
|
44
|
+
On (2020-06-01 12:00:00 +0200..2020-08-16 12:00:00 +0200), the birthdays are
|
45
|
+
- Father's Day (born 2021-06-20, -1y)
|
46
|
+
|
47
|
+
Or query for the age instead:
|
36
48
|
|
37
|
-
|
49
|
+
$ birthdays --age 2020-01-01 2030-01
|
50
|
+
On 2020-01-01 12:00:00 +0100, the ages are
|
51
|
+
- Father's Day (born 2021-06-20, -2y) [-46177200 secs]
|
52
|
+
- Christmas (born 2020-12-25, -1y) [-30888000 secs]
|
53
|
+
- New Year (born 2021-01-01, -1y) [-31492800 secs]
|
54
|
+
- John Doe (born 1970-01-01, 50y) [50 yrs 1 day]
|
55
|
+
On 2030-01-16 12:00:00 +0100, the ages are
|
56
|
+
- Father's Day (born 2021-06-20, 9y) [104 mos 12 days 13 hrs]
|
57
|
+
- Christmas (born 2020-12-25, 10y) [110 mos 9 days 12 hrs]
|
58
|
+
- New Year (born 2021-01-01, 9y) [110 mos 2 days 12 hrs]
|
59
|
+
- John Doe (born 1970-01-01, 60y) [731 mos 12 hrs]
|
38
60
|
|
39
|
-
|
61
|
+
## Install
|
62
|
+
|
63
|
+
~~~ sh
|
64
|
+
$ gem install birthdays
|
65
|
+
~~~
|
40
66
|
|
41
67
|
## Copyright
|
42
68
|
|
43
|
-
Copyright © 2015–
|
69
|
+
Copyright © 2015–2020 Damien Robert
|
44
70
|
|
45
|
-
MIT License. See [LICENSE.txt](
|
71
|
+
MIT License. See [`LICENSE.txt`](LICENSE.txt) for details.
|
data/Rakefile
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## Uncomment to use `rake` directly rather than `bundle exec rake`
|
2
|
+
#begin
|
3
|
+
# require 'bundler/setup'
|
4
|
+
#rescue LoadError => e
|
5
|
+
# warn "Could not setup bundler: #{e.message}"
|
6
|
+
#end
|
1
7
|
require 'rake'
|
2
8
|
|
3
9
|
require 'rake/testtask'
|
@@ -15,6 +21,7 @@ rescue LoadError => e
|
|
15
21
|
warn e.message
|
16
22
|
end
|
17
23
|
end
|
24
|
+
desc 'Generate docs'
|
18
25
|
task :doc => :yard
|
19
26
|
|
20
27
|
begin
|
@@ -24,3 +31,4 @@ rescue LoadError => e
|
|
24
31
|
warn e.message
|
25
32
|
end
|
26
33
|
|
34
|
+
task :default => :test
|
data/birthdays.gemspec
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
1
|
require 'yaml'
|
4
2
|
|
5
3
|
Gem::Specification.new do |gem|
|
@@ -35,6 +33,7 @@ Gem::Specification.new do |gem|
|
|
35
33
|
end
|
36
34
|
end
|
37
35
|
gem.files = glob[gemspec['files']] if gemspec['files']
|
36
|
+
gem.files = gem.files + gemspec['extra_files'] if gemspec['extra_files']
|
38
37
|
|
39
38
|
gem.executables = gemspec.fetch('executables') do
|
40
39
|
glob['bin/*'].map { |path| File.basename(path) }
|
@@ -68,4 +67,5 @@ Gem::Specification.new do |gem|
|
|
68
67
|
end
|
69
68
|
|
70
69
|
gem.metadata['yard.run']='yri'
|
70
|
+
gem.metadata['project_name']="Birthdays"
|
71
71
|
end
|
data/gemspec.yml
CHANGED
@@ -7,12 +7,10 @@ email: Damien.Olivier.Robert+gems@gmail.com
|
|
7
7
|
homepage: https://github.com/DamienRobert/birthdays#readme
|
8
8
|
|
9
9
|
dependencies:
|
10
|
-
drain: ~> 0.
|
10
|
+
drain: ~> 0.6
|
11
11
|
chronic: ~> 0.1
|
12
12
|
chronic_duration: ~> 0.1
|
13
|
-
activesupport: ~> 5.0
|
13
|
+
# activesupport: ~> 5.0
|
14
14
|
development_dependencies:
|
15
15
|
minitest: "~> 5.0"
|
16
|
-
rake: "
|
17
|
-
rubygems-tasks: "~> 0.2"
|
18
|
-
yard: "~> 0.8"
|
16
|
+
rake: ">= 10.0"
|
data/lib/birthdays/version.rb
CHANGED
data/test/helper.rb
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
## Uncomment if you want to run a test directly without running
|
2
|
+
## `bundle exec ruby -I test test/test_...rb`
|
3
|
+
## (another solution if 'bundler/setup' is called on the Rakefile is to use
|
4
|
+
## `rake test TEST=test/test_...rb`)
|
5
|
+
# begin
|
6
|
+
# require 'bundler/setup'
|
7
|
+
# rescue LoadError => error
|
8
|
+
# warn "Could not setup bundler: #{error.message}"
|
9
|
+
# end
|
10
|
+
|
1
11
|
require 'minitest/autorun'
|
2
12
|
|
3
13
|
## Uncomment to launch pry on a failure
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: birthdays
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Damien Robert
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: drain
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.6'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.6'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: chronic
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,20 +52,6 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0.1'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: activesupport
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '5.0'
|
62
|
-
type: :runtime
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '5.0'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: minitest
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -84,44 +70,16 @@ dependencies:
|
|
84
70
|
name: rake
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
86
72
|
requirements:
|
87
|
-
- - "
|
73
|
+
- - ">="
|
88
74
|
- !ruby/object:Gem::Version
|
89
|
-
version: '10'
|
75
|
+
version: '10.0'
|
90
76
|
type: :development
|
91
77
|
prerelease: false
|
92
78
|
version_requirements: !ruby/object:Gem::Requirement
|
93
79
|
requirements:
|
94
|
-
- - "
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '10'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: rubygems-tasks
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0.2'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0.2'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: yard
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - "~>"
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0.8'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - "~>"
|
80
|
+
- - ">="
|
123
81
|
- !ruby/object:Gem::Version
|
124
|
-
version: '0
|
82
|
+
version: '10.0'
|
125
83
|
description: Show the birthdays in a time period so you don't forget them!
|
126
84
|
email: Damien.Olivier.Robert+gems@gmail.com
|
127
85
|
executables:
|
@@ -132,6 +90,8 @@ extra_rdoc_files:
|
|
132
90
|
- LICENSE.txt
|
133
91
|
- README.md
|
134
92
|
files:
|
93
|
+
- ".bundle/config"
|
94
|
+
- ".github/workflows/ruby.yml"
|
135
95
|
- ".gitignore"
|
136
96
|
- ".travis.yml"
|
137
97
|
- ".yardopts"
|
@@ -152,7 +112,8 @@ licenses:
|
|
152
112
|
- MIT
|
153
113
|
metadata:
|
154
114
|
yard.run: yri
|
155
|
-
|
115
|
+
project_name: Birthdays
|
116
|
+
post_install_message:
|
156
117
|
rdoc_options: []
|
157
118
|
require_paths:
|
158
119
|
- lib
|
@@ -167,8 +128,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
128
|
- !ruby/object:Gem::Version
|
168
129
|
version: '0'
|
169
130
|
requirements: []
|
170
|
-
rubygems_version: 3.1.
|
171
|
-
signing_key:
|
131
|
+
rubygems_version: 3.1.3
|
132
|
+
signing_key:
|
172
133
|
specification_version: 4
|
173
134
|
summary: Birthdays reminder
|
174
135
|
test_files: []
|