pricehubble 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/documentation.yml +38 -0
- data/.github/workflows/test.yml +62 -0
- data/CHANGELOG.md +6 -0
- data/Makefile +8 -9
- data/README.md +4 -4
- data/Rakefile +10 -5
- data/lib/pricehubble/version.rb +1 -1
- data/pricehubble.gemspec +2 -2
- metadata +14 -7
- data/.travis.yml +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c029e790cdf1ec21949212567077f03271666ca6332a3b84a902a262ae6625e
|
4
|
+
data.tar.gz: 3df77cae40f611c456283a23e215a840ce88936748aefb9c729a205c61ebd7d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6421682c63aa011271eca9931587badf8fbf7ad1c64aadbfa9bccef42dd170e68dd3dee5ed9f8e965ee47e2055e0fdca398ed355370bd91c8a28e045fbc26729
|
7
|
+
data.tar.gz: ebe7f75db3e959c48074e0c74092ca6a9a94789645aba5051ab1a972fb8be66295092fe1a07f62a680f53c977152724e8aef31ae06e32afc316b47092e46c66f
|
@@ -0,0 +1,38 @@
|
|
1
|
+
name: Build Documentation
|
2
|
+
on:
|
3
|
+
repository_dispatch:
|
4
|
+
types: [documentation]
|
5
|
+
|
6
|
+
concurrency:
|
7
|
+
group: 'docs'
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
docs:
|
11
|
+
name: Build gem documentation
|
12
|
+
runs-on: ubuntu-20.04
|
13
|
+
timeout-minutes: 5
|
14
|
+
steps:
|
15
|
+
- uses: actions/checkout@v2
|
16
|
+
|
17
|
+
- name: Install the correct Ruby version
|
18
|
+
uses: ruby/setup-ruby@v1
|
19
|
+
with:
|
20
|
+
ruby-version: 2.5
|
21
|
+
bundler-cache: true
|
22
|
+
|
23
|
+
- name: Prepare the virtual environment
|
24
|
+
uses: hausgold/actions/ci@master
|
25
|
+
with:
|
26
|
+
clone_token: '${{ secrets.CLONE_TOKEN }}'
|
27
|
+
settings: '${{ github.repository }}'
|
28
|
+
target: ci/gem-test
|
29
|
+
|
30
|
+
- name: Build gem documentation
|
31
|
+
run: make docs
|
32
|
+
|
33
|
+
- name: Upload the code coverage report
|
34
|
+
run: coverage
|
35
|
+
|
36
|
+
- name: Add this job to the commit status
|
37
|
+
run: commit-status '${{ job.status }}'
|
38
|
+
if: always()
|
@@ -0,0 +1,62 @@
|
|
1
|
+
name: Test
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
branches:
|
5
|
+
- '**'
|
6
|
+
schedule:
|
7
|
+
- cron: '0 0 * * MON'
|
8
|
+
|
9
|
+
concurrency:
|
10
|
+
group: '${{ github.ref }}'
|
11
|
+
cancel-in-progress: true
|
12
|
+
|
13
|
+
jobs:
|
14
|
+
test:
|
15
|
+
name: 'Test the gem (Ruby ${{ matrix.ruby }}, Rails ${{ matrix.rails }})'
|
16
|
+
runs-on: ubuntu-20.04
|
17
|
+
timeout-minutes: 5
|
18
|
+
strategy:
|
19
|
+
fail-fast: false
|
20
|
+
matrix:
|
21
|
+
ruby: [2.5, 2.6, 2.7]
|
22
|
+
rails: [5.2, '6.0']
|
23
|
+
env:
|
24
|
+
BUNDLE_GEMFILE: 'gemfiles/rails_${{ matrix.rails }}.gemfile'
|
25
|
+
steps:
|
26
|
+
- uses: actions/checkout@v2
|
27
|
+
|
28
|
+
- name: Install the correct Ruby version
|
29
|
+
uses: ruby/setup-ruby@v1
|
30
|
+
with:
|
31
|
+
ruby-version: ${{ matrix.ruby }}
|
32
|
+
bundler-cache: true
|
33
|
+
|
34
|
+
- name: Prepare the virtual environment
|
35
|
+
uses: hausgold/actions/ci@master
|
36
|
+
with:
|
37
|
+
clone_token: '${{ secrets.CLONE_TOKEN }}'
|
38
|
+
settings: '${{ github.repository }}'
|
39
|
+
target: ci/gem-test
|
40
|
+
|
41
|
+
- name: Run the gem tests
|
42
|
+
run: make test
|
43
|
+
|
44
|
+
- name: Upload the code coverage report
|
45
|
+
run: coverage
|
46
|
+
|
47
|
+
trigger-docs:
|
48
|
+
name: Trigger the documentation upload
|
49
|
+
runs-on: ubuntu-20.04
|
50
|
+
timeout-minutes: 2
|
51
|
+
needs: test
|
52
|
+
if: github.ref == 'refs/heads/master'
|
53
|
+
steps:
|
54
|
+
- name: Prepare the virtual environment
|
55
|
+
uses: hausgold/actions/ci@master
|
56
|
+
with:
|
57
|
+
clone_token: '${{ secrets.CLONE_TOKEN }}'
|
58
|
+
settings: '${{ github.repository }}'
|
59
|
+
target: ci/noop
|
60
|
+
|
61
|
+
- name: Trigger the documentation upload
|
62
|
+
run: workflow documentation
|
data/CHANGELOG.md
CHANGED
data/Makefile
CHANGED
@@ -31,7 +31,6 @@ APPRAISAL ?= appraisal
|
|
31
31
|
GEM ?= gem
|
32
32
|
RAKE ?= rake
|
33
33
|
YARD ?= yard
|
34
|
-
RAKE ?= rake
|
35
34
|
RUBOCOP ?= rubocop
|
36
35
|
|
37
36
|
# Files
|
@@ -80,14 +79,14 @@ install:
|
|
80
79
|
$(GEM) install bundler -v "~> 1.0")
|
81
80
|
@$(call run-shell,$(BUNDLE) exec $(APPRAISAL) install)
|
82
81
|
|
83
|
-
update:
|
82
|
+
update:
|
84
83
|
# Install the dependencies
|
85
84
|
@$(MKDIR) -p $(VENDOR_DIR)
|
86
85
|
@$(call run-shell,$(BUNDLE) exec $(APPRAISAL) update)
|
87
86
|
|
88
|
-
test:
|
87
|
+
test:
|
89
88
|
# Run the whole test suite
|
90
|
-
@$(call run-shell,$(BUNDLE) exec $(RAKE))
|
89
|
+
@$(call run-shell,$(BUNDLE) exec $(RAKE) stats spec)
|
91
90
|
|
92
91
|
$(TEST_GEMFILES): GEMFILE=$(@:test-%=%)
|
93
92
|
$(TEST_GEMFILES):
|
@@ -126,24 +125,24 @@ endif
|
|
126
125
|
|
127
126
|
distclean: clean clean-containers clean-images
|
128
127
|
|
129
|
-
shell:
|
128
|
+
shell:
|
130
129
|
# Run an interactive shell on the container
|
131
130
|
@$(call run-shell,$(BASH) -i)
|
132
131
|
|
133
|
-
shell-irb:
|
132
|
+
shell-irb:
|
134
133
|
# Run an interactive IRB shell on the container
|
135
134
|
@$(call run-shell,bin/console)
|
136
135
|
|
137
|
-
docs:
|
136
|
+
docs:
|
138
137
|
# Build the API documentation
|
139
138
|
@$(call run-shell,$(BUNDLE) exec $(YARD) -q && \
|
140
139
|
$(BUNDLE) exec $(YARD) stats --list-undoc --compact)
|
141
140
|
|
142
|
-
notes:
|
141
|
+
notes:
|
143
142
|
# Print the code statistics (library and test suite)
|
144
143
|
@$(call run-shell,$(BUNDLE) exec $(RAKE) notes)
|
145
144
|
|
146
|
-
stats:
|
145
|
+
stats:
|
147
146
|
# Print all the notes from the code
|
148
147
|
@$(call run-shell,$(BUNDLE) exec $(RAKE) stats)
|
149
148
|
|
data/README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
![PriceHubble](doc/assets/project.svg)
|
2
2
|
|
3
|
-
[![
|
3
|
+
[![Continuous Integration](https://github.com/hausgold/pricehubble/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/hausgold/pricehubble/actions/workflows/test.yml)
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/pricehubble.svg)](https://badge.fury.io/rb/pricehubble)
|
5
|
-
[![
|
6
|
-
[![Test
|
7
|
-
[![API docs](https://
|
5
|
+
[![Test Coverage](https://automate-api.hausgold.de/v1/coverage_reports/pricehubble/coverage.svg)](https://knowledge.hausgold.de/coverage)
|
6
|
+
[![Test Ratio](https://automate-api.hausgold.de/v1/coverage_reports/pricehubble/ratio.svg)](https://knowledge.hausgold.de/coverage)
|
7
|
+
[![API docs](https://automate-api.hausgold.de/v1/coverage_reports/pricehubble/documentation.svg)](https://www.rubydoc.info/gems/pricehubble)
|
8
8
|
|
9
9
|
This project is dedicated to build a client/API wrapper around the
|
10
10
|
[PriceHubble](https://pricehubble.com) REST API. It follows strictly the
|
data/Rakefile
CHANGED
@@ -54,16 +54,21 @@ end
|
|
54
54
|
|
55
55
|
# Configure all code statistics directories
|
56
56
|
vendors = [
|
57
|
-
[:unshift, 'Clients', 'lib/pricehubble/client'],
|
58
|
-
[:unshift, 'Entities', 'lib/pricehubble/entity'],
|
59
|
-
[:unshift, 'Utilities', 'lib/pricehubble/utils'],
|
60
57
|
[:unshift, 'Top-levels', 'lib', %r{lib(/pricehubble)?/[^/]+\.rb$}],
|
58
|
+
[:unshift, 'Top-levels specs', 'spec',
|
59
|
+
%r{spec/pricehubble(_spec\.rb|/[^/]+\.rb$)}],
|
61
60
|
|
61
|
+
[:unshift, 'Clients', 'lib/pricehubble/client'],
|
62
62
|
[:unshift, 'Clients specs', 'spec/client'],
|
63
|
+
|
64
|
+
[:unshift, 'Entities', 'lib/pricehubble/entity'],
|
63
65
|
[:unshift, 'Entities specs', 'spec/entity'],
|
66
|
+
|
67
|
+
[:unshift, 'Utilities', 'lib/pricehubble/utils'],
|
64
68
|
[:unshift, 'Utilities specs', 'spec/utils'],
|
65
|
-
|
66
|
-
|
69
|
+
|
70
|
+
[:unshift, 'Instrumentation', 'lib/pricehubble/instrumentation'],
|
71
|
+
[:unshift, 'Core Extensions', 'lib/pricehubble/core_ext']
|
67
72
|
].reverse
|
68
73
|
|
69
74
|
vendors.each do |method, type, dir, pattern|
|
data/lib/pricehubble/version.rb
CHANGED
data/pricehubble.gemspec
CHANGED
@@ -32,14 +32,14 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.add_development_dependency 'appraisal'
|
33
33
|
spec.add_development_dependency 'bundler', '>= 1.16', '< 3'
|
34
34
|
spec.add_development_dependency 'factory_bot', '~> 4.11'
|
35
|
-
spec.add_development_dependency 'railties', '>= 4.2.0'
|
35
|
+
spec.add_development_dependency 'railties', '>= 4.2.0', '< 6.1'
|
36
36
|
spec.add_development_dependency 'rake', '~> 10.0'
|
37
37
|
spec.add_development_dependency 'rdoc', '~> 6.1'
|
38
38
|
spec.add_development_dependency 'redcarpet', '~> 3.4'
|
39
39
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
40
40
|
spec.add_development_dependency 'rubocop', '~> 0.63.1'
|
41
41
|
spec.add_development_dependency 'rubocop-rspec', '~> 1.31'
|
42
|
-
spec.add_development_dependency 'simplecov', '
|
42
|
+
spec.add_development_dependency 'simplecov', '< 0.18'
|
43
43
|
spec.add_development_dependency 'terminal-table', '~> 1.8'
|
44
44
|
spec.add_development_dependency 'timecop', '~> 0.9.1'
|
45
45
|
spec.add_development_dependency 'vcr', '~> 3.0'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pricehubble
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hermann Mayer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -135,6 +135,9 @@ dependencies:
|
|
135
135
|
- - ">="
|
136
136
|
- !ruby/object:Gem::Version
|
137
137
|
version: 4.2.0
|
138
|
+
- - "<"
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '6.1'
|
138
141
|
type: :development
|
139
142
|
prerelease: false
|
140
143
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -142,6 +145,9 @@ dependencies:
|
|
142
145
|
- - ">="
|
143
146
|
- !ruby/object:Gem::Version
|
144
147
|
version: 4.2.0
|
148
|
+
- - "<"
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '6.1'
|
145
151
|
- !ruby/object:Gem::Dependency
|
146
152
|
name: rake
|
147
153
|
requirement: !ruby/object:Gem::Requirement
|
@@ -230,16 +236,16 @@ dependencies:
|
|
230
236
|
name: simplecov
|
231
237
|
requirement: !ruby/object:Gem::Requirement
|
232
238
|
requirements:
|
233
|
-
- - "
|
239
|
+
- - "<"
|
234
240
|
- !ruby/object:Gem::Version
|
235
|
-
version: '0.
|
241
|
+
version: '0.18'
|
236
242
|
type: :development
|
237
243
|
prerelease: false
|
238
244
|
version_requirements: !ruby/object:Gem::Requirement
|
239
245
|
requirements:
|
240
|
-
- - "
|
246
|
+
- - "<"
|
241
247
|
- !ruby/object:Gem::Version
|
242
|
-
version: '0.
|
248
|
+
version: '0.18'
|
243
249
|
- !ruby/object:Gem::Dependency
|
244
250
|
name: terminal-table
|
245
251
|
requirement: !ruby/object:Gem::Requirement
|
@@ -332,11 +338,12 @@ extensions: []
|
|
332
338
|
extra_rdoc_files: []
|
333
339
|
files:
|
334
340
|
- ".editorconfig"
|
341
|
+
- ".github/workflows/documentation.yml"
|
342
|
+
- ".github/workflows/test.yml"
|
335
343
|
- ".gitignore"
|
336
344
|
- ".rspec"
|
337
345
|
- ".rubocop.yml"
|
338
346
|
- ".simplecov"
|
339
|
-
- ".travis.yml"
|
340
347
|
- ".yardopts"
|
341
348
|
- Appraisals
|
342
349
|
- CHANGELOG.md
|
data/.travis.yml
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
env:
|
2
|
-
global:
|
3
|
-
- CC_TEST_REPORTER_ID=e80bc2fc948962da41f411047330599fe2bdafcc378bd99a1c3bffbfae74c20f
|
4
|
-
|
5
|
-
sudo: false
|
6
|
-
language: ruby
|
7
|
-
cache: bundler
|
8
|
-
rvm:
|
9
|
-
- 2.7
|
10
|
-
- 2.6
|
11
|
-
- 2.5
|
12
|
-
|
13
|
-
gemfile:
|
14
|
-
- gemfiles/rails_5.2.gemfile
|
15
|
-
- gemfiles/rails_6.0.gemfile
|
16
|
-
|
17
|
-
before_install: gem install bundler
|
18
|
-
before_script:
|
19
|
-
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
20
|
-
- chmod +x ./cc-test-reporter
|
21
|
-
- ./cc-test-reporter before-build
|
22
|
-
script: bundle exec rake
|
23
|
-
after_script:
|
24
|
-
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|