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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1c2e582e583c4400274fdd33ec9b4150ce4910a8bd6b8aeec4cbf029378bc89
4
- data.tar.gz: 2edaa056bc36349f835250e4a55414022b55a0773c0d215c35c706bd023cd925
3
+ metadata.gz: 6c029e790cdf1ec21949212567077f03271666ca6332a3b84a902a262ae6625e
4
+ data.tar.gz: 3df77cae40f611c456283a23e215a840ce88936748aefb9c729a205c61ebd7d8
5
5
  SHA512:
6
- metadata.gz: 8ac3db724b8f3f60e1a760b36f248772b601824ea63cd24bcfedcefe6ba31128bfaf8d0956280335775c5bf5a5faae652cb6348b11c700f2aff1c91a0179c37e
7
- data.tar.gz: 566857d2fb6ce6163b55cbc2d3d3c46ecedd20e46565bde0aedb205902c7aca01c99f689d60fb38afce263a7f87c47cdca00dba928d426b64a11c6241234d937
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
@@ -1,3 +1,9 @@
1
+ ### 0.4.2
2
+
3
+ * Migrated to Github Actions
4
+ * Migrated to our own coverage reporting
5
+ * Added the code statistics to the test process
6
+
1
7
  ### 0.4.1
2
8
 
3
9
  * Corrected the GNU Make release target
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: install
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: #install
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: install
128
+ shell:
130
129
  # Run an interactive shell on the container
131
130
  @$(call run-shell,$(BASH) -i)
132
131
 
133
- shell-irb: install
132
+ shell-irb:
134
133
  # Run an interactive IRB shell on the container
135
134
  @$(call run-shell,bin/console)
136
135
 
137
- docs: install
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: install
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: install
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
- [![Build Status](https://travis-ci.com/hausgold/pricehubble.svg?token=4XcyqxxmkyBSSV3wWRt7&branch=master)](https://travis-ci.com/hausgold/pricehubble)
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
- [![Maintainability](https://api.codeclimate.com/v1/badges/cd15f59fc84566e4b200/maintainability)](https://codeclimate.com/repos/5da572bd60163201b800c255/maintainability)
6
- [![Test Coverage](https://api.codeclimate.com/v1/badges/cd15f59fc84566e4b200/test_coverage)](https://codeclimate.com/repos/5da572bd60163201b800c255/test_coverage)
7
- [![API docs](https://img.shields.io/badge/docs-API-blue.svg)](https://www.rubydoc.info/gems/pricehubble)
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
- [:unshift, 'Top-levels specs', 'spec',
66
- %r{spec/pricehubble(_spec\.rb|/[^/]+\.rb$)}]
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|
@@ -2,5 +2,5 @@
2
2
 
3
3
  module PriceHubble
4
4
  # The version of the +price-hubble+ gem
5
- VERSION = '0.4.1'
5
+ VERSION = '0.4.2'
6
6
  end
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', '~> 0.15'
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.1
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-05-12 00:00:00.000000000 Z
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.15'
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.15'
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