timely 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +6 -0
- data/.github/workflows/release.yml +59 -0
- data/.github/workflows/ruby.yml +19 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +4 -0
- data/README.md +13 -2
- data/gemfiles/{rails6.gemfile → rails60.gemfile} +0 -0
- data/gemfiles/{rails5.gemfile → rails61.gemfile} +1 -1
- data/lib/timely/version.rb +1 -1
- data/timely.gemspec +2 -2
- metadata +11 -23
- data/.travis.yml +0 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5aeec444ee90189672055555263e90807c7f2bad4e366c5e44d74dd4d578cd30
|
4
|
+
data.tar.gz: e5bf46db86fee6448233e03aaba2dfe7dc7f66771f6d82c30db2e231e03b48b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a47c451934a28dda82fae5eb78145791b5d8727e371683f506ade5f3ee4f609167bf5bec209c1dd545ae8399fa82df22ec994903df4c000c36b844b8c42255f3
|
7
|
+
data.tar.gz: bc96a85cae09b52d5381a915847c1f76df9613592e632403ca1d69dca74486f7d7bf464b5777d850bb88689cba0ded45101c49503470f2c0e8242d3f09a1f420
|
@@ -0,0 +1,59 @@
|
|
1
|
+
name: Release
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
tags:
|
6
|
+
- "v*"
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
build:
|
10
|
+
name: Build
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
steps:
|
13
|
+
- name: Checkout
|
14
|
+
uses: actions/checkout@v2
|
15
|
+
- uses: ruby/setup-ruby@v1
|
16
|
+
with:
|
17
|
+
bundler-cache: true
|
18
|
+
- run: bundle exec rake
|
19
|
+
|
20
|
+
release:
|
21
|
+
needs: build
|
22
|
+
name: Release
|
23
|
+
runs-on: ubuntu-latest
|
24
|
+
steps:
|
25
|
+
- name: Checkout
|
26
|
+
uses: actions/checkout@v2
|
27
|
+
|
28
|
+
- name: Generate Changelog
|
29
|
+
run: |
|
30
|
+
# Get version from github ref (remove 'refs/tags/' and prefix 'v')
|
31
|
+
version="${GITHUB_REF#refs/tags/v}"
|
32
|
+
npx changelog-parser CHANGELOG.md | jq -cr ".versions | .[] | select(.version == \"$version\") | .body" > ${{ github.workflow }}-CHANGELOG.txt
|
33
|
+
|
34
|
+
- name: Release
|
35
|
+
uses: softprops/action-gh-release@v1
|
36
|
+
with:
|
37
|
+
body_path: ${{ github.workflow }}-CHANGELOG.txt
|
38
|
+
env:
|
39
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
40
|
+
|
41
|
+
publish:
|
42
|
+
needs: [build, release]
|
43
|
+
name: Publish
|
44
|
+
runs-on: ubuntu-latest
|
45
|
+
|
46
|
+
steps:
|
47
|
+
- uses: actions/checkout@v2
|
48
|
+
- uses: ruby/setup-ruby@v1
|
49
|
+
|
50
|
+
- name: Publish to RubyGems
|
51
|
+
run: |
|
52
|
+
mkdir -p $HOME/.gem
|
53
|
+
touch $HOME/.gem/credentials
|
54
|
+
chmod 0600 $HOME/.gem/credentials
|
55
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
56
|
+
gem build *.gemspec
|
57
|
+
gem push *.gem
|
58
|
+
env:
|
59
|
+
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
|
@@ -0,0 +1,19 @@
|
|
1
|
+
name: Build and Test
|
2
|
+
on: [push, pull_request]
|
3
|
+
jobs:
|
4
|
+
test:
|
5
|
+
strategy:
|
6
|
+
fail-fast: false
|
7
|
+
matrix:
|
8
|
+
gemfile: [rails60, rails61]
|
9
|
+
ruby: ["2.6", "2.7", "3.0"]
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
env:
|
12
|
+
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
|
13
|
+
steps:
|
14
|
+
- uses: actions/checkout@v2
|
15
|
+
- uses: ruby/setup-ruby@v1
|
16
|
+
with:
|
17
|
+
ruby-version: ${{ matrix.ruby }}
|
18
|
+
bundler-cache: true
|
19
|
+
- run: bundle exec rake
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3.0.0
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
# Timely
|
2
2
|
|
3
|
-
[![Build Status](https://
|
3
|
+
[![Build Status](https://github.com/sealink/timely/workflows/Build%20and%20Test/badge.svg?branch=master)](https://github.com/sealink/timely/actions)
|
4
4
|
[![Coverage Status](https://coveralls.io/repos/sealink/timely/badge.png)](https://coveralls.io/r/sealink/timely)
|
5
|
-
[![Dependency Status](https://gemnasium.com/sealink/timely.png?travis)](https://gemnasium.com/sealink/timely)
|
6
5
|
[![Code Climate](https://codeclimate.com/github/sealink/timely.png)](https://codeclimate.com/github/sealink/timely)
|
7
6
|
|
8
7
|
# DESCRIPTION
|
@@ -59,3 +58,15 @@ some_date.at_time(some_time) # => Sat May 03 13:40:22 -0500 2008
|
|
59
58
|
some_time.on(some_date) # => Sat May 03 13:40:22 -0500 2008
|
60
59
|
some_date.at(some_time) # => Sat May 03 13:40:22 -0500 2008
|
61
60
|
```
|
61
|
+
|
62
|
+
# Release
|
63
|
+
|
64
|
+
To publish a new version of this gem the following steps must be taken.
|
65
|
+
|
66
|
+
* Update the version in the following files
|
67
|
+
```
|
68
|
+
CHANGELOG.md
|
69
|
+
lib/timely/version.rb
|
70
|
+
````
|
71
|
+
* Create a tag using the format v0.1.0
|
72
|
+
* Follow build progress in GitHub actions
|
File without changes
|
data/lib/timely/version.rb
CHANGED
data/timely.gemspec
CHANGED
@@ -19,11 +19,12 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
20
20
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
21
21
|
spec.require_paths = ['lib']
|
22
|
+
spec.required_ruby_version = '>= 2.6'
|
22
23
|
|
23
24
|
spec.add_development_dependency 'actionpack'
|
24
25
|
spec.add_development_dependency 'activerecord'
|
25
26
|
spec.add_development_dependency 'activesupport'
|
26
|
-
spec.add_development_dependency 'bundler', '~> 2.
|
27
|
+
spec.add_development_dependency 'bundler', '~> 2.2.0'
|
27
28
|
spec.add_development_dependency 'coverage-kit'
|
28
29
|
spec.add_development_dependency 'coveralls'
|
29
30
|
spec.add_development_dependency 'rake'
|
@@ -35,6 +36,5 @@ Gem::Specification.new do |spec|
|
|
35
36
|
spec.add_development_dependency 'simplecov-rcov'
|
36
37
|
spec.add_development_dependency 'sqlite3'
|
37
38
|
spec.add_development_dependency 'timecop'
|
38
|
-
spec.add_development_dependency 'travis'
|
39
39
|
spec.add_development_dependency 'pry'
|
40
40
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: timely
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Noack
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 2.
|
61
|
+
version: 2.2.0
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 2.
|
68
|
+
version: 2.2.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: coverage-kit
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -220,20 +220,6 @@ dependencies:
|
|
220
220
|
- - ">="
|
221
221
|
- !ruby/object:Gem::Version
|
222
222
|
version: '0'
|
223
|
-
- !ruby/object:Gem::Dependency
|
224
|
-
name: travis
|
225
|
-
requirement: !ruby/object:Gem::Requirement
|
226
|
-
requirements:
|
227
|
-
- - ">="
|
228
|
-
- !ruby/object:Gem::Version
|
229
|
-
version: '0'
|
230
|
-
type: :development
|
231
|
-
prerelease: false
|
232
|
-
version_requirements: !ruby/object:Gem::Requirement
|
233
|
-
requirements:
|
234
|
-
- - ">="
|
235
|
-
- !ruby/object:Gem::Version
|
236
|
-
version: '0'
|
237
223
|
- !ruby/object:Gem::Dependency
|
238
224
|
name: pry
|
239
225
|
requirement: !ruby/object:Gem::Requirement
|
@@ -255,18 +241,20 @@ executables: []
|
|
255
241
|
extensions: []
|
256
242
|
extra_rdoc_files: []
|
257
243
|
files:
|
244
|
+
- ".github/dependabot.yml"
|
245
|
+
- ".github/workflows/release.yml"
|
246
|
+
- ".github/workflows/ruby.yml"
|
258
247
|
- ".gitignore"
|
259
248
|
- ".rspec"
|
260
249
|
- ".rubocop.yml"
|
261
250
|
- ".ruby-version"
|
262
|
-
- ".travis.yml"
|
263
251
|
- CHANGELOG.md
|
264
252
|
- Gemfile
|
265
253
|
- LICENSE
|
266
254
|
- README.md
|
267
255
|
- Rakefile
|
268
|
-
- gemfiles/
|
269
|
-
- gemfiles/
|
256
|
+
- gemfiles/rails60.gemfile
|
257
|
+
- gemfiles/rails61.gemfile
|
270
258
|
- lib/timely.rb
|
271
259
|
- lib/timely/date.rb
|
272
260
|
- lib/timely/date_chooser.rb
|
@@ -327,14 +315,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
327
315
|
requirements:
|
328
316
|
- - ">="
|
329
317
|
- !ruby/object:Gem::Version
|
330
|
-
version: '
|
318
|
+
version: '2.6'
|
331
319
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
332
320
|
requirements:
|
333
321
|
- - ">="
|
334
322
|
- !ruby/object:Gem::Version
|
335
323
|
version: '0'
|
336
324
|
requirements: []
|
337
|
-
rubygems_version: 3.
|
325
|
+
rubygems_version: 3.2.3
|
338
326
|
signing_key:
|
339
327
|
specification_version: 4
|
340
328
|
summary: Set of time, date, weekday related methods.
|
data/.travis.yml
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
rvm:
|
3
|
-
- 2.6
|
4
|
-
- 2.7
|
5
|
-
matrix:
|
6
|
-
fast_finish: true
|
7
|
-
before_install:
|
8
|
-
- gem install bundler
|
9
|
-
script: bundle exec rake spec
|
10
|
-
gemfile:
|
11
|
-
- gemfiles/rails5.gemfile
|
12
|
-
- gemfiles/rails6.gemfile
|
13
|
-
notifications:
|
14
|
-
email:
|
15
|
-
- support@travellink.com.au
|
16
|
-
sudo: false
|
17
|
-
cache: bundler
|