datewari 1.0.3 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +75 -0
- data/.gitignore +1 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/datewari.gemspec +0 -3
- data/gemfiles/rails50.gemfile +1 -1
- data/gemfiles/rails51.gemfile +1 -1
- data/gemfiles/rails60.gemfile +6 -0
- data/gemfiles/rails61.gemfile +5 -0
- data/gemfiles/rails70.gemfile +5 -0
- data/lib/datewari/version.rb +1 -1
- metadata +7 -46
- data/.travis.yml +0 -28
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4757bf96a70bad10143eb9c2b790b73d684c0053cd820ade449095cc185f53c
|
4
|
+
data.tar.gz: a5c23c968a696c0dd6a9217d4b7b3c1a8c0d68559019cd0370122ea8a4689417
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4be75ff27c66c363c231bed355e1942e7abc82f48619fdd1e12685af9e35b6c7f48d34980f2ce2d46b980a65ae525428865e0e326ac4d95a8e6c7665e3bbc5eb
|
7
|
+
data.tar.gz: b4361ed839a63ee21015281b68a6af0a8ac075a907e885d2378a11d3a21e156ec96cc05e925fa92b1ceb9e25a24395f96b9317c3c4db9f59d016b01cf457ceba
|
@@ -0,0 +1,75 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on: [push, pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
test:
|
7
|
+
runs-on: ubuntu-20.04
|
8
|
+
services:
|
9
|
+
postgres:
|
10
|
+
image: postgis/postgis:10-2.5
|
11
|
+
env:
|
12
|
+
POSTGRES_USER: postgres
|
13
|
+
POSTGRES_PASSWORD: postgres
|
14
|
+
ports:
|
15
|
+
- 5432:5432
|
16
|
+
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
|
17
|
+
mysql:
|
18
|
+
image: mysql:5.7
|
19
|
+
env:
|
20
|
+
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
21
|
+
ports:
|
22
|
+
- 3306:3306
|
23
|
+
options: --health-cmd "mysqladmin ping -h localhost" --health-interval 20s --health-timeout 10s --health-retries 10
|
24
|
+
strategy:
|
25
|
+
fail-fast: false
|
26
|
+
matrix:
|
27
|
+
ruby: [2.4, 2.5, 2.6, 2.7, '3.0', 3.1]
|
28
|
+
gemfile: ['rails50', 'rails51', 'rails52', 'rails60', 'rails61', 'rails70']
|
29
|
+
database: ['mysql', 'postgresql', 'postgis']
|
30
|
+
exclude:
|
31
|
+
- ruby: 2.4
|
32
|
+
gemfile: rails60
|
33
|
+
- ruby: 2.4
|
34
|
+
gemfile: rails61
|
35
|
+
- ruby: 2.4
|
36
|
+
gemfile: rails70
|
37
|
+
- ruby: 2.5
|
38
|
+
gemfile: rails70
|
39
|
+
- ruby: 2.6
|
40
|
+
gemfile: rails70
|
41
|
+
- ruby: 3.0
|
42
|
+
gemfile: rails50
|
43
|
+
- ruby: 3.0
|
44
|
+
gemfile: rails51
|
45
|
+
- ruby: 3.0
|
46
|
+
gemfile: rails52
|
47
|
+
- ruby: 3.1
|
48
|
+
gemfile: rails50
|
49
|
+
- ruby: 3.1
|
50
|
+
gemfile: rails51
|
51
|
+
- ruby: 3.1
|
52
|
+
gemfile: rails52
|
53
|
+
|
54
|
+
name: ruby ${{ matrix.ruby }}, ${{ matrix.gemfile }}, ${{ matrix.database }}
|
55
|
+
|
56
|
+
env:
|
57
|
+
DATABASE: ${{ matrix.database }}
|
58
|
+
POSTGRES_USER: postgres
|
59
|
+
POSTGRES_PASSWORD: postgres
|
60
|
+
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
|
61
|
+
|
62
|
+
steps:
|
63
|
+
- uses: actions/checkout@v2
|
64
|
+
- uses: ruby/setup-ruby@v1
|
65
|
+
with:
|
66
|
+
ruby-version: ${{ matrix.ruby }}
|
67
|
+
bundler-cache: true
|
68
|
+
- name: Prepare test
|
69
|
+
run: |
|
70
|
+
cd spec/dummy
|
71
|
+
BUNDLE_GEMFILE=../../${{ env.BUNDLE_GEMFILE }} RAILS_ENV=test bundle exec rake db:create db:migrate db:seed
|
72
|
+
cd ../..
|
73
|
+
- name: Run test
|
74
|
+
run: |
|
75
|
+
bundle exec rspec
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
data/datewari.gemspec
CHANGED
@@ -26,8 +26,5 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.add_development_dependency "pg"
|
27
27
|
spec.add_development_dependency "activerecord-postgis-adapter"
|
28
28
|
spec.add_development_dependency "rspec-rails"
|
29
|
-
spec.add_development_dependency "rails-controller-testing"
|
30
29
|
spec.add_development_dependency "simplecov"
|
31
|
-
spec.add_development_dependency "pry-rails"
|
32
|
-
spec.add_development_dependency "pry-byebug"
|
33
30
|
end
|
data/gemfiles/rails50.gemfile
CHANGED
data/gemfiles/rails51.gemfile
CHANGED
data/lib/datewari/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datewari
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoshikazu Kaneta
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -122,20 +122,6 @@ dependencies:
|
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: rails-controller-testing
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - ">="
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0'
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - ">="
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '0'
|
139
125
|
- !ruby/object:Gem::Dependency
|
140
126
|
name: simplecov
|
141
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -150,34 +136,6 @@ dependencies:
|
|
150
136
|
- - ">="
|
151
137
|
- !ruby/object:Gem::Version
|
152
138
|
version: '0'
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: pry-rails
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - ">="
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: '0'
|
160
|
-
type: :development
|
161
|
-
prerelease: false
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - ">="
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: '0'
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: pry-byebug
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - ">="
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '0'
|
174
|
-
type: :development
|
175
|
-
prerelease: false
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- - ">="
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: '0'
|
181
139
|
description: An ActiveRecord extension to build date oriented pagination links such
|
182
140
|
as monthly pages and weekly pages
|
183
141
|
email:
|
@@ -186,9 +144,9 @@ executables: []
|
|
186
144
|
extensions: []
|
187
145
|
extra_rdoc_files: []
|
188
146
|
files:
|
147
|
+
- ".github/workflows/ci.yml"
|
189
148
|
- ".gitignore"
|
190
149
|
- ".rspec"
|
191
|
-
- ".travis.yml"
|
192
150
|
- CHANGELOG.md
|
193
151
|
- CODE_OF_CONDUCT.md
|
194
152
|
- Gemfile
|
@@ -199,6 +157,9 @@ files:
|
|
199
157
|
- gemfiles/rails50.gemfile
|
200
158
|
- gemfiles/rails51.gemfile
|
201
159
|
- gemfiles/rails52.gemfile
|
160
|
+
- gemfiles/rails60.gemfile
|
161
|
+
- gemfiles/rails61.gemfile
|
162
|
+
- gemfiles/rails70.gemfile
|
202
163
|
- lib/datewari.rb
|
203
164
|
- lib/datewari/helper.rb
|
204
165
|
- lib/datewari/helper/link_renderer.rb
|
@@ -230,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
230
191
|
- !ruby/object:Gem::Version
|
231
192
|
version: '0'
|
232
193
|
requirements: []
|
233
|
-
rubygems_version: 3.
|
194
|
+
rubygems_version: 3.1.2
|
234
195
|
signing_key:
|
235
196
|
specification_version: 4
|
236
197
|
summary: An ActiveRecord extension to build date oriented pagination links
|
data/.travis.yml
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
rvm:
|
3
|
-
- 2.3
|
4
|
-
- 2.4
|
5
|
-
- 2.5
|
6
|
-
- 2.6
|
7
|
-
services:
|
8
|
-
- mysql
|
9
|
-
- postgresql
|
10
|
-
addons:
|
11
|
-
postgresql: "9.5"
|
12
|
-
apt:
|
13
|
-
packages:
|
14
|
-
- postgresql-9.5-postgis-2.3
|
15
|
-
env:
|
16
|
-
- DATABASE=mysql
|
17
|
-
- DATABASE=postgresql
|
18
|
-
- DATABASE=postgis
|
19
|
-
gemfile:
|
20
|
-
- gemfiles/rails50.gemfile
|
21
|
-
- gemfiles/rails51.gemfile
|
22
|
-
- gemfiles/rails52.gemfile
|
23
|
-
before_script:
|
24
|
-
- psql -U postgres -c "create extension postgis"
|
25
|
-
- cd spec/dummy
|
26
|
-
- bundle exec rake db:create db:migrate db:seed RAILS_ENV=test
|
27
|
-
- cd ../..
|
28
|
-
script: bundle exec rspec
|