pig-ci-rails 1.0.1 → 1.1.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.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/changelog.yml +14 -10
  3. data/.github/workflows/gempush.yml +4 -15
  4. data/.github/workflows/rspec.yml +11 -24
  5. data/.github/workflows/standard.yml +27 -0
  6. data/CHANGELOG.md +36 -8
  7. data/Gemfile +1 -1
  8. data/README.md +30 -21
  9. data/Rakefile +2 -2
  10. data/config/locales/pig_ci/en.yml +1 -1
  11. data/lib/pig_ci.rb +20 -20
  12. data/lib/pig_ci/configuration.rb +2 -2
  13. data/lib/pig_ci/decorator.rb +1 -1
  14. data/lib/pig_ci/decorator/report_terminal_decorator.rb +3 -3
  15. data/lib/pig_ci/metric.rb +2 -2
  16. data/lib/pig_ci/metric/current.rb +1 -1
  17. data/lib/pig_ci/metric/historial/change_percentage.rb +1 -1
  18. data/lib/pig_ci/metric/historical.rb +5 -5
  19. data/lib/pig_ci/profiler.rb +7 -7
  20. data/lib/pig_ci/profiler/memory.rb +1 -1
  21. data/lib/pig_ci/profiler_engine.rb +2 -2
  22. data/lib/pig_ci/profiler_engine/rails.rb +11 -8
  23. data/lib/pig_ci/report.rb +7 -7
  24. data/lib/pig_ci/report/memory.rb +1 -1
  25. data/lib/pig_ci/summary.rb +3 -3
  26. data/lib/pig_ci/summary/ci.rb +7 -7
  27. data/lib/pig_ci/summary/html.rb +8 -8
  28. data/lib/pig_ci/summary/terminal.rb +3 -3
  29. data/lib/pig_ci/test_frameworks.rb +1 -1
  30. data/lib/pig_ci/test_frameworks/rspec.rb +15 -14
  31. data/lib/pig_ci/version.rb +1 -1
  32. data/lib/pig_ci/views/index.erb +4 -4
  33. data/pig_ci.gemspec +34 -32
  34. metadata +31 -32
  35. data/.dockerignore +0 -58
  36. data/.env +0 -3
  37. data/.github/FUNDING.yml +0 -3
  38. data/.github/workflows/linters.yml +0 -78
  39. data/.rubocop.yml +0 -17
  40. data/.ruby-version +0 -1
  41. data/.travis.yml +0 -27
  42. data/Aptfile +0 -0
  43. data/Dockerfile +0 -45
  44. data/docker-compose.yml +0 -20
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pig-ci-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Rogers
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-11 00:00:00.000000000 Z
11
+ date: 2021-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -90,16 +90,22 @@ dependencies:
90
90
  name: terminal-table
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - "~>"
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '1.8'
96
+ - - "<"
94
97
  - !ruby/object:Gem::Version
95
- version: 1.8.0
98
+ version: '2.1'
96
99
  type: :runtime
97
100
  prerelease: false
98
101
  version_requirements: !ruby/object:Gem::Requirement
99
102
  requirements:
100
- - - "~>"
103
+ - - ">="
104
+ - !ruby/object:Gem::Version
105
+ version: '1.8'
106
+ - - "<"
101
107
  - !ruby/object:Gem::Version
102
- version: 1.8.0
108
+ version: '2.1'
103
109
  - !ruby/object:Gem::Dependency
104
110
  name: bundler
105
111
  requirement: !ruby/object:Gem::Requirement
@@ -134,14 +140,14 @@ dependencies:
134
140
  requirements:
135
141
  - - "~>"
136
142
  - !ruby/object:Gem::Version
137
- version: 3.8.0
143
+ version: 3.11.0
138
144
  type: :development
139
145
  prerelease: false
140
146
  version_requirements: !ruby/object:Gem::Requirement
141
147
  requirements:
142
148
  - - "~>"
143
149
  - !ruby/object:Gem::Version
144
- version: 3.8.0
150
+ version: 3.11.0
145
151
  - !ruby/object:Gem::Dependency
146
152
  name: json-schema
147
153
  requirement: !ruby/object:Gem::Requirement
@@ -162,28 +168,28 @@ dependencies:
162
168
  requirements:
163
169
  - - "~>"
164
170
  - !ruby/object:Gem::Version
165
- version: 3.9.0
171
+ version: 3.10.0
166
172
  type: :development
167
173
  prerelease: false
168
174
  version_requirements: !ruby/object:Gem::Requirement
169
175
  requirements:
170
176
  - - "~>"
171
177
  - !ruby/object:Gem::Version
172
- version: 3.9.0
178
+ version: 3.10.0
173
179
  - !ruby/object:Gem::Dependency
174
180
  name: simplecov
175
181
  requirement: !ruby/object:Gem::Requirement
176
182
  requirements:
177
183
  - - "~>"
178
184
  - !ruby/object:Gem::Version
179
- version: 0.17.0
185
+ version: 0.20.0
180
186
  type: :development
181
187
  prerelease: false
182
188
  version_requirements: !ruby/object:Gem::Requirement
183
189
  requirements:
184
190
  - - "~>"
185
191
  - !ruby/object:Gem::Version
186
- version: 0.17.0
192
+ version: 0.20.0
187
193
  - !ruby/object:Gem::Dependency
188
194
  name: yard
189
195
  requirement: !ruby/object:Gem::Requirement
@@ -206,21 +212,13 @@ executables: []
206
212
  extensions: []
207
213
  extra_rdoc_files: []
208
214
  files:
209
- - ".dockerignore"
210
- - ".env"
211
- - ".github/FUNDING.yml"
212
215
  - ".github/workflows/changelog.yml"
213
216
  - ".github/workflows/gempush.yml"
214
- - ".github/workflows/linters.yml"
215
217
  - ".github/workflows/rspec.yml"
218
+ - ".github/workflows/standard.yml"
216
219
  - ".gitignore"
217
- - ".rubocop.yml"
218
- - ".ruby-version"
219
- - ".travis.yml"
220
- - Aptfile
221
220
  - CHANGELOG.md
222
221
  - CODE_OF_CONDUCT.md
223
- - Dockerfile
224
222
  - Gemfile
225
223
  - LICENSE
226
224
  - README.md
@@ -228,7 +226,6 @@ files:
228
226
  - bin/console
229
227
  - bin/setup
230
228
  - config/locales/pig_ci/en.yml
231
- - docker-compose.yml
232
229
  - lib/pig_ci.rb
233
230
  - lib/pig_ci/configuration.rb
234
231
  - lib/pig_ci/decorator.rb
@@ -262,12 +259,14 @@ files:
262
259
  homepage: https://github.com/PigCI/pig-ci-rails
263
260
  licenses:
264
261
  - MIT
265
- metadata: {}
266
- post_install_message: |-
267
- Thank you for installing Pig CI!
268
- Upgrade Notes:
269
- The latest version adds a "config.thresholds" option which replaces the PigCI.com GitHub integration.
270
- See https://github.com/PigCI/pig-ci-rails#configuring-thresholds for more information :)
262
+ metadata:
263
+ bug_tracker_uri: https://github.com/PigCI/pig-ci-rails/issues
264
+ changelog_uri: https://github.com/PigCI/pig-ci-rails/blob/master/CHANGELOG.md
265
+ documentation_uri: https://github.com/PigCI/pig-ci-rails
266
+ homepage_uri: https://github.com/PigCI/pig-ci-rails
267
+ source_code_uri: https://github.com/PigCI/pig-ci-rails
268
+ funding_uri: https://www.buymeacoffee.com/MikeRogers0
269
+ post_install_message:
271
270
  rdoc_options: []
272
271
  require_paths:
273
272
  - lib
@@ -275,15 +274,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
275
274
  requirements:
276
275
  - - ">="
277
276
  - !ruby/object:Gem::Version
278
- version: '2.3'
277
+ version: '2.5'
279
278
  required_rubygems_version: !ruby/object:Gem::Requirement
280
279
  requirements:
281
280
  - - ">="
282
281
  - !ruby/object:Gem::Version
283
282
  version: '0'
284
283
  requirements: []
285
- rubygems_version: 3.0.3
286
- signing_key:
284
+ rubygems_version: 3.2.3
285
+ signing_key:
287
286
  specification_version: 4
288
287
  summary: Monitor your Ruby Applications metrics via your test suite.
289
288
  test_files: []
data/.dockerignore DELETED
@@ -1,58 +0,0 @@
1
- .git
2
- .gitignore
3
- README.md
4
-
5
- #
6
- # OS X
7
- #
8
- .DS_Store
9
- .AppleDouble
10
- .LSOverride
11
- # Icon must end with two \r
12
- Icon
13
- # Thumbnails
14
- ._*
15
- # Files that might appear on external disk
16
- .Spotlight-V100
17
- .Trashes
18
- # Directories potentially created on remote AFP share
19
- .AppleDB
20
- .AppleDesktop
21
- Network Trash Folder
22
- Temporary Items
23
- .apdisk
24
-
25
- #
26
- # Rails
27
- #
28
- .env.sample
29
- *.rbc
30
- capybara-*.html
31
- log
32
- tmp
33
- db/*.sqlite3
34
- db/*.sqlite3-journal
35
- public/system
36
- public/assets
37
- public/packs
38
- public/packs-test
39
- node_modules
40
- yarn-error.log
41
- yarn-debug.log*
42
- .yarn-integrity
43
- external_dns.log
44
-
45
- coverage/
46
- spec/tmp
47
- **.orig
48
-
49
- .bundle
50
-
51
- .ruby-gemset
52
-
53
- .rvmrc
54
-
55
- # if using bower-rails ignore default bower_components path bower.json files
56
- vendor/assets/bower_components
57
- *.bowerrc
58
- bower.json
data/.env DELETED
@@ -1,3 +0,0 @@
1
- # Adhoc ENVs
2
- LANG=en_US.UTF-8
3
- EDITOR=vim
data/.github/FUNDING.yml DELETED
@@ -1,3 +0,0 @@
1
- # These are supported funding model platforms
2
-
3
- custom: ['https://pigci.com/']
@@ -1,78 +0,0 @@
1
- ---
2
- name: Linters
3
-
4
- on:
5
- pull_request:
6
- branches: [ master ]
7
-
8
- jobs:
9
- dotenv:
10
- runs-on: ubuntu-latest
11
- steps:
12
- - uses: actions/checkout@v1
13
- - name: dotenv-linter
14
- uses: wemake-services/dotenv-linter@0.1.5
15
- with:
16
- reporter: 'github-pr-review'
17
- options: '.env'
18
- env:
19
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20
- rubocop:
21
- runs-on: ubuntu-latest
22
- steps:
23
- - uses: actions/checkout@v1
24
- - name: Rubocop Linter Action
25
- uses: andrewmcodes/rubocop-linter-action@v3.1.0
26
- env:
27
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28
- languagetool:
29
- runs-on: ubuntu-latest
30
- steps:
31
- - uses: actions/checkout@v2
32
- - uses: reviewdog/action-languagetool@v1
33
- with:
34
- github_token: ${{ secrets.github_token }}
35
- # Change reviewdog reporter if you need [github-pr-check,github-check,github-pr-review].
36
- reporter: github-pr-review
37
- # Change reporter level if you need.
38
- level: info
39
- hadolint:
40
- runs-on: ubuntu-latest
41
- steps:
42
- - name: Check out code
43
- uses: actions/checkout@v1
44
- - name: hadolint
45
- uses: reviewdog/action-hadolint@v1
46
- with:
47
- github_token: ${{ secrets.github_token }}
48
- reporter: github-pr-review
49
- fasterer:
50
- runs-on: ubuntu-latest
51
- steps:
52
- - name: Check out code
53
- uses: actions/checkout@v1
54
- - name: fasterer
55
- uses: vk26/action-fasterer@v1
56
- with:
57
- github_token: ${{ secrets.github_token }}
58
- reporter: github-pr-review
59
- stylelint:
60
- runs-on: ubuntu-latest
61
- steps:
62
- - uses: actions/checkout@v1
63
- - name: stylelint
64
- uses: reviewdog/action-stylelint@v1
65
- with:
66
- github_token: ${{ secrets.github_token }}
67
- reporter: github-pr-review
68
- stylelint_input: '**/*.css'
69
- eslint:
70
- runs-on: ubuntu-latest
71
- steps:
72
- - uses: actions/checkout@v1
73
- - name: eslint
74
- uses: reviewdog/action-eslint@v1
75
- with:
76
- github_token: ${{ secrets.github_token }}
77
- reporter: github-pr-review
78
- eslint_flags: 'app/'
data/.rubocop.yml DELETED
@@ -1,17 +0,0 @@
1
- ---
2
- AllCops:
3
- Exclude:
4
- - db/schema.rb
5
- - 'node_modules/**/*'
6
- - 'vendor/**/*'
7
- - '.git/**/*'
8
- - 'bin/*'
9
-
10
- Style/FrozenStringLiteralComment:
11
- EnforcedStyle: never
12
-
13
- Layout/LineLength:
14
- Max: 120
15
-
16
- Style/ClassAndModuleChildren:
17
- EnforcedStyle: compact
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 2.6.6
data/.travis.yml DELETED
@@ -1,27 +0,0 @@
1
- ---
2
- sudo: false
3
-
4
- language: ruby
5
-
6
- cache: bundler
7
-
8
- rvm:
9
- - 2.3.8
10
- - 2.4.7
11
- - 2.5.7
12
- - 2.6.6
13
- - 2.7.1
14
-
15
- before_install:
16
- - gem install bundler -v 2.0.2
17
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
18
- - chmod +x ./cc-test-reporter
19
- - ./cc-test-reporter before-build
20
-
21
- script: "bundle exec rake spec"
22
-
23
- after_script:
24
- - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
25
-
26
- notifications:
27
- email: false
data/Aptfile DELETED
File without changes
data/Dockerfile DELETED
@@ -1,45 +0,0 @@
1
- FROM ruby:2.6.6-alpine AS development
2
-
3
- LABEL maintainer="Mike Rogers <me@mikerogers.io>"
4
-
5
- # Install the Essentials
6
- ENV BUILD_DEPS="curl tar wget linux-headers bash" \
7
- DEV_DEPS="ruby-dev build-base postgresql-dev zlib-dev libxml2-dev libxslt-dev readline-dev tzdata git nodejs vim sqlite-dev"
8
-
9
- RUN apk add --update --upgrade $BUILD_DEPS $DEV_DEPS
10
-
11
- # Add the current apps files into docker image
12
- RUN mkdir -p /usr/src/app
13
- WORKDIR /usr/src/app
14
-
15
- # Install any extra dependencies via Aptfile
16
- COPY Aptfile /usr/src/app/Aptfile
17
- RUN apk add --update $(cat /usr/src/app/Aptfile | xargs)
18
-
19
- # Set up environment
20
- ENV PATH /usr/src/app/bin:$PATH
21
-
22
- # Add some helpers to reduce typing when inside the containers
23
- RUN echo 'alias bx="bundle exec"' >> ~/.bashrc
24
-
25
- # Set ruby version
26
- COPY .ruby-version /usr/src/app
27
-
28
- # Install latest bundler
29
- RUN gem update --system && gem install bundler:2.0.2
30
- RUN bundle config --global silence_root_warning 1 && echo -e 'gem: --no-document' >> /etc/gemrc
31
-
32
- RUN mkdir -p /usr/src/bundler
33
- RUN bundle config path /usr/src/bundler
34
-
35
- CMD ["bundle", "exec", "rake", "spec"]
36
-
37
- FROM development AS production
38
-
39
- # Install Ruby Gems
40
- COPY Gemfile /usr/src/app
41
- COPY Gemfile.lock /usr/src/app
42
- RUN bundle check || bundle install --jobs=$(nproc)
43
-
44
- # Copy the rest of the app
45
- COPY . /usr/src/app
data/docker-compose.yml DELETED
@@ -1,20 +0,0 @@
1
- ---
2
- # Docker Compose 2.4 is for local development
3
- # https://www.heroku.com/podcasts/codeish/57-discussing-docker-containers-and-kubernetes-with-a-docker-captain - Source on that.
4
- version: '2.4'
5
-
6
- services:
7
- web:
8
- image: pig-ci-rails:latest
9
- build:
10
- context: .
11
- dockerfile: Dockerfile
12
- target: development
13
- env_file:
14
- - .env
15
- command: >
16
- bash -c "bundle check || bundle install &&
17
- bundle exec rake spec"
18
- volumes:
19
- - .:/usr/src/app
20
- - ~/.docker-data/ruby/2.6.6/bundler:/usr/src/bundler:delegated