queryable_collection 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.github/dependabot.yml +6 -0
- data/.github/workflows/release.yml +59 -0
- data/.github/workflows/ruby.yml +16 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +9 -0
- data/README.md +3 -0
- data/lib/queryable_collection/version.rb +2 -1
- data/queryable_collection.gemspec +2 -2
- metadata +9 -7
- data/.travis.yml +0 -13
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 2efa1fed69163d92ca5140fa0eb565caaebda6df741344d10659c2b06a59a431
|
|
4
|
+
data.tar.gz: aeb88380eef87bc23e65c62f99c797f7d6d836502ba24756f3dd57c7194f6523
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 19e4da927b3bdb502c802062e6964a0d8ed896a85e2441e5b65c1a749d31642f5b21595af275e418d6e2796f270363e5c54a1449cfcd4252b2f734676c95fc07
|
|
7
|
+
data.tar.gz: 9d0bc5b86ba52b784f28778030855c9afd838eb7aecf7fd27e072f870cf3810673f7ffb5611e6f7a0f2bef5e74179330ef527627b28bfe540949f4f24ce42d3f
|
|
@@ -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,16 @@
|
|
|
1
|
+
name: Build and Test
|
|
2
|
+
on: [push, pull_request]
|
|
3
|
+
jobs:
|
|
4
|
+
test:
|
|
5
|
+
strategy:
|
|
6
|
+
fail-fast: false
|
|
7
|
+
matrix:
|
|
8
|
+
ruby: ["2.6", "2.7", "3.0"]
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
steps:
|
|
11
|
+
- uses: actions/checkout@v2
|
|
12
|
+
- uses: ruby/setup-ruby@v1
|
|
13
|
+
with:
|
|
14
|
+
ruby-version: ${{ matrix.ruby }}
|
|
15
|
+
bundler-cache: true
|
|
16
|
+
- run: bundle exec rake
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
3.0.0
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
All notable changes to this project will be documented in this file.
|
|
3
|
+
This project adheres to [Semantic Versioning](http://semver.org/).
|
|
4
|
+
This changelog adheres to [Keep a CHANGELOG](http://keepachangelog.com/).
|
|
5
|
+
|
|
6
|
+
## 0.2.0
|
|
7
|
+
|
|
8
|
+
- [TT-8612] Update to build with github actions / ruby 3.0
|
|
9
|
+
- [TT-1392] Changelog file
|
data/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# QueryableCollection
|
|
2
2
|
|
|
3
|
+
[](http://badge.fury.io/rb/queryable_collection)
|
|
4
|
+
[](https://github.com/sealink/queryable_collection/actions)
|
|
5
|
+
|
|
3
6
|
QueryableCollection allows you to create a collection of objects and then query them based on a (user) defined set of queryable properties
|
|
4
7
|
|
|
5
8
|
## Installation
|
|
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
|
23
23
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
24
24
|
spec.require_paths = ['lib']
|
|
25
25
|
|
|
26
|
-
spec.required_ruby_version = '>= 2.
|
|
26
|
+
spec.required_ruby_version = '>= 2.6'
|
|
27
27
|
|
|
28
28
|
spec.add_dependency 'adamantium', '~> 0.2'
|
|
29
29
|
|
|
@@ -35,5 +35,5 @@ Gem::Specification.new do |spec|
|
|
|
35
35
|
spec.add_development_dependency 'simplecov-rcov'
|
|
36
36
|
spec.add_development_dependency 'coveralls'
|
|
37
37
|
spec.add_development_dependency 'rubocop'
|
|
38
|
-
spec.add_development_dependency '
|
|
38
|
+
spec.add_development_dependency 'pry-byebug'
|
|
39
39
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: queryable_collection
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Akil Madan
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
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: adamantium
|
|
@@ -137,7 +137,7 @@ dependencies:
|
|
|
137
137
|
- !ruby/object:Gem::Version
|
|
138
138
|
version: '0'
|
|
139
139
|
- !ruby/object:Gem::Dependency
|
|
140
|
-
name:
|
|
140
|
+
name: pry-byebug
|
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
|
142
142
|
requirements:
|
|
143
143
|
- - ">="
|
|
@@ -159,11 +159,14 @@ executables: []
|
|
|
159
159
|
extensions: []
|
|
160
160
|
extra_rdoc_files: []
|
|
161
161
|
files:
|
|
162
|
+
- ".github/dependabot.yml"
|
|
163
|
+
- ".github/workflows/release.yml"
|
|
164
|
+
- ".github/workflows/ruby.yml"
|
|
162
165
|
- ".gitignore"
|
|
163
166
|
- ".rspec"
|
|
164
167
|
- ".rubocop.yml"
|
|
165
168
|
- ".ruby-version"
|
|
166
|
-
-
|
|
169
|
+
- CHANGELOG.md
|
|
167
170
|
- CODE_OF_CONDUCT.md
|
|
168
171
|
- Gemfile
|
|
169
172
|
- LICENSE.txt
|
|
@@ -187,15 +190,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
187
190
|
requirements:
|
|
188
191
|
- - ">="
|
|
189
192
|
- !ruby/object:Gem::Version
|
|
190
|
-
version: '2.
|
|
193
|
+
version: '2.6'
|
|
191
194
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
192
195
|
requirements:
|
|
193
196
|
- - ">="
|
|
194
197
|
- !ruby/object:Gem::Version
|
|
195
198
|
version: '0'
|
|
196
199
|
requirements: []
|
|
197
|
-
|
|
198
|
-
rubygems_version: 2.5.1
|
|
200
|
+
rubygems_version: 3.2.3
|
|
199
201
|
signing_key:
|
|
200
202
|
specification_version: 4
|
|
201
203
|
summary: Allows the creation and querying of a collection of elements
|
data/.travis.yml
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
language: ruby
|
|
2
|
-
rvm:
|
|
3
|
-
- 2.1
|
|
4
|
-
- 2.2
|
|
5
|
-
- 2.3.0
|
|
6
|
-
before_install: gem install bundler -v 1.11.2
|
|
7
|
-
notifications:
|
|
8
|
-
email:
|
|
9
|
-
- support@travellink.com.au
|
|
10
|
-
flowdock:
|
|
11
|
-
secure: aayRwHDb8ZfboD41FdpqNT0dxvrfyzqRknSwTiNlwqzEWvTFYlqCwDbU7OGt0Fn8YRUg8+zq9ZrbJAEwn53zL/Vn3vireIw9iEYti59e6UynLD6eQOu5k1LVGDk1XLL5Mh8iZ9CQ7GOvPubutdzZAZ721gFO81K2hxSq4f7vU5YCjsuRfPfqh/vA6R8YmsPfTClu/pLsP1GsuEx6/Jkyb7fkcte5fg7G2DFEJ7tVCQabRZqOHnJZsrKB9n3bq8wccibMXYEkIYzMXCo9lD+HGyyUtLI3EHfD1B7KlilAgbacZelBUtk5J6HYajJn/2pqglsXXAkBpeyz9ZV4v8k89miS4nzzaqvQFM5hfk8cPH2jcP+ZvaOQNKg95PGiFBd/yvpoE5fJaePEqintr9x1mraHKd+cvVh02Khh3sXubeRvZnbPRewqT+14A1+JPEnpjXB1GvbazKX9VYMprDrrFDDDkl/tGUkZvDwXgUGpnrf9xS1iskBhaZxHHLXY+nUj85NjS0q6FgCdI9iPuHtDsdh4A9a3FCHqrXlSsgr580ySI0D8Kdi0JdZuP9bYZAALQ+Kf4OK4MlQ9iaZUCUu20Ld1ssQ7i2aBgbb1XIVyKSv8MK7ybP8zZwSEs45uBED3qw0bQQPxKt2JypgvhCcwBEDn34xVAm28k/seS6iS5ds=
|
|
12
|
-
sudo: false
|
|
13
|
-
cache: bundler
|