still_active 0.1.1 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c6332676d54a35bce460f39cc99515b165207f92352efdc8026abef42fadd22d
4
- data.tar.gz: 6d69c16159ff9c6871d3f034ddbf513d2e6c637e20a15c064e2bc5d924c7dbae
3
+ metadata.gz: e1672581d65f872865a0ab5ef6a51bef6c20345d06808497df25481bdf195bdb
4
+ data.tar.gz: 880c41983cb456cb2eef5fdb163c4c02eaa918326b1c667cb9593f38166190c9
5
5
  SHA512:
6
- metadata.gz: 89a63a961f267ec2abbd2333a21074c0789543bd6d993ee0c9c258b596fcb92eedfa4219e4e565a2c786ab32ddb752af01bada0a1a1469ae78eb2a683803a7e3
7
- data.tar.gz: 3ce7e34a29ea567b5df09ab06d102278d1c4243409d15ef7d5da50ffdb443da1a4529dabc99577b75f29c50b0f7fc83db3bb03b32555107d991057e77a65c06f
6
+ metadata.gz: a746d8a4e18ba90b68fb3e0164d25f96960a7d36131cf563af4099f7aaae27ede05039f5a08aa82e0b211b2bad617d377d9e9fb0d11d8b1e56f8b1164df46299
7
+ data.tar.gz: df36ff135ce82bc57d298e6a887ea504599484116447e46fa8ca1e9881f67b098abe8795f0b6dd097bef626645c55102796e77922f9dfc8a8037cce87e22b854
@@ -0,0 +1,70 @@
1
+ # For most projects, this workflow file will not need changing; you simply need
2
+ # to commit it to your repository.
3
+ #
4
+ # You may wish to alter this file to override the set of languages analyzed,
5
+ # or to provide custom queries or build logic.
6
+ #
7
+ # ******** NOTE ********
8
+ # We have attempted to detect the languages in your repository. Please check
9
+ # the `language` matrix defined below to confirm you have the correct set of
10
+ # supported CodeQL languages.
11
+ #
12
+ name: "CodeQL"
13
+
14
+ on:
15
+ push:
16
+ branches: [ master ]
17
+ pull_request:
18
+ # The branches below must be a subset of the branches above
19
+ branches: [ master ]
20
+ schedule:
21
+ - cron: '26 18 * * 2'
22
+
23
+ jobs:
24
+ analyze:
25
+ name: Analyze
26
+ runs-on: ubuntu-latest
27
+ permissions:
28
+ actions: read
29
+ contents: read
30
+ security-events: write
31
+
32
+ strategy:
33
+ fail-fast: false
34
+ matrix:
35
+ language: [ 'ruby' ]
36
+ # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37
+ # Learn more about CodeQL language support at https://git.io/codeql-language-support
38
+
39
+ steps:
40
+ - name: Checkout repository
41
+ uses: actions/checkout@v2
42
+
43
+ # Initializes the CodeQL tools for scanning.
44
+ - name: Initialize CodeQL
45
+ uses: github/codeql-action/init@v1
46
+ with:
47
+ languages: ${{ matrix.language }}
48
+ # If you wish to specify custom queries, you can do so here or in a config file.
49
+ # By default, queries listed here will override any specified in a config file.
50
+ # Prefix the list here with "+" to use these queries and those in the config file.
51
+ # queries: ./path/to/local/query, your-org/your-repo/queries@main
52
+
53
+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54
+ # If this step fails, then you should remove it and run the build manually (see below)
55
+ - name: Autobuild
56
+ uses: github/codeql-action/autobuild@v1
57
+
58
+ # ℹ️ Command-line programs to run using the OS shell.
59
+ # 📚 https://git.io/JvXDl
60
+
61
+ # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62
+ # and modify them (or add more) to build your code if your project
63
+ # uses a compiled language
64
+
65
+ #- run: |
66
+ # make bootstrap
67
+ # make release
68
+
69
+ - name: Perform CodeQL Analysis
70
+ uses: github/codeql-action/analyze@v1
@@ -1,4 +1,4 @@
1
- name: Ruby
1
+ name: RSpec tests
2
2
 
3
3
  on: [push,pull_request]
4
4
 
@@ -12,5 +12,5 @@ jobs:
12
12
  with:
13
13
  ruby-version: 3.0.2
14
14
  bundler-cache: true
15
- - name: Run the default task
16
- run: bundle exec rake
15
+ - name: Execute the tests
16
+ run: bundle exec rspec
@@ -0,0 +1,47 @@
1
+ # pulled from repo
2
+ name: "Rubocop"
3
+
4
+ on:
5
+ push:
6
+ branches: [ master ]
7
+ pull_request:
8
+ # The branches below must be a subset of the branches above
9
+ branches: [ master ]
10
+ schedule:
11
+ - cron: '37 16 * * 2'
12
+
13
+ jobs:
14
+ rubocop:
15
+ runs-on: ubuntu-latest
16
+ strategy:
17
+ fail-fast: false
18
+
19
+ steps:
20
+ - name: Checkout repository
21
+ uses: actions/checkout@v2
22
+
23
+ # If running on a self-hosted runner, check it meets the requirements
24
+ # listed at https://github.com/ruby/setup-ruby#using-self-hosted-runners
25
+ - name: Set up Ruby
26
+ uses: ruby/setup-ruby@v1
27
+ with:
28
+ ruby-version: 3.0.2
29
+
30
+ # This step is not necessary if you add the gem to your Gemfile
31
+ # - name: Install Code Scanning integration
32
+ # run: bundle add code-scanning-rubocop --version 0.3.0 --skip-install
33
+
34
+ - name: Install dependencies
35
+ run: bundle install
36
+
37
+ - name: Rubocop run
38
+ run: |
39
+ bash -c "
40
+ bundle exec rubocop --require code_scanning --format CodeScanning::SarifFormatter -o rubocop.sarif
41
+ [[ $? -ne 2 ]]
42
+ "
43
+
44
+ - name: Upload Sarif output
45
+ uses: github/codeql-action/upload-sarif@v1
46
+ with:
47
+ sarif_file: rubocop.sarif
data/.rspec CHANGED
@@ -3,5 +3,4 @@
3
3
  --require dead_end
4
4
  --require spec_helper
5
5
 
6
- --require debug
7
6
  --require faker
data/.rubocop.yml CHANGED
@@ -1,4 +1,9 @@
1
+ require:
2
+ - rubocop-performance
3
+ - rubocop-rspec
4
+
1
5
  AllCops:
6
+ NewCops: enable
2
7
  TargetRubyVersion: 3.0.2
3
8
 
4
9
  inherit_gem:
@@ -6,3 +11,9 @@ inherit_gem:
6
11
 
7
12
  Layout/LineLength:
8
13
  Enabled: false
14
+
15
+ RSpec/ExampleLength:
16
+ Enabled: false
17
+
18
+ RSpec/NestedGroups:
19
+ Enabled: false
data/CHANGELOG.md CHANGED
@@ -1,4 +1,22 @@
1
- ## [Unreleased]
1
+ # Changelog
2
+
3
+ ## Unreleased
4
+
5
+ ## [0.2.0] - 2021-11-11
6
+
7
+ - Add `simultaneous-requests` command line parameter (and config option) to specify the maximum number of simultaneous requests
8
+
9
+ ## [0.1.1] - 2021-11-06
10
+
11
+ - Remove `safe_range_start` command line parameter
12
+ - Remove `warning_range_start` command line parameter
13
+
14
+ - Fix bugs
15
+ - use `last_commit_date` rather than `version_used_release_date` to determine the inactive gem emoji
16
+ - use configured values when determining which emoji to output for the inactive gem emoji
17
+ - use configured values when determining which emoji to output for the using latest version emoji
18
+ - the values for `using_latest_version_emoji` and `inactive_repository_emoji` were reversed in the markdown output
19
+ - `NoMethodError` could be raised `VersionHelper#find_version` when versions was nil
2
20
 
3
21
  ## [0.1.0] - 2021-11-06
4
22
 
data/Gemfile CHANGED
@@ -5,8 +5,9 @@ source "https://rubygems.org"
5
5
  # Specify your gem's dependencies in still_active.gemspec
6
6
  gemspec
7
7
 
8
+ gem "code-scanning-rubocop"
9
+ gem "dead_end"
8
10
  gem "rake", "~> 13.0"
9
-
10
11
  gem "rspec", "~> 3.0"
11
-
12
- gem "dead_end"
12
+ gem "vcr"
13
+ gem "webmock"
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- still_active (0.1.1)
4
+ still_active (0.2.0)
5
5
  activesupport
6
6
  async
7
7
  async-http
@@ -35,9 +35,13 @@ GEM
35
35
  async
36
36
  async-pool (0.3.9)
37
37
  async (>= 1.25)
38
+ code-scanning-rubocop (0.5.0)
39
+ rubocop (~> 1.0)
38
40
  concurrent-ruby (1.1.9)
39
41
  console (1.13.1)
40
42
  fiber-local
43
+ crack (0.4.5)
44
+ rexml
41
45
  dead_end (3.0.1)
42
46
  debug (1.3.4)
43
47
  irb (>= 1.3.6)
@@ -74,6 +78,7 @@ GEM
74
78
  faraday (>= 0.8, < 2)
75
79
  hashie (~> 3.5, >= 3.5.2)
76
80
  oauth2 (~> 1.0)
81
+ hashdiff (1.0.1)
77
82
  hashie (3.6.0)
78
83
  i18n (1.8.11)
79
84
  concurrent-ruby (~> 1.0)
@@ -134,6 +139,11 @@ GEM
134
139
  unicode-display_width (>= 1.4.0, < 3.0)
135
140
  rubocop-ast (1.12.0)
136
141
  parser (>= 3.0.1.1)
142
+ rubocop-performance (1.12.0)
143
+ rubocop (>= 1.7.0, < 2.0)
144
+ rubocop-ast (>= 0.4.0)
145
+ rubocop-rspec (2.6.0)
146
+ rubocop (~> 1.19)
137
147
  rubocop-shopify (2.3.0)
138
148
  rubocop (~> 1.22)
139
149
  ruby-progressbar (1.11.0)
@@ -143,20 +153,31 @@ GEM
143
153
  tzinfo (2.0.4)
144
154
  concurrent-ruby (~> 1.0)
145
155
  unicode-display_width (2.1.0)
156
+ vcr (6.0.0)
157
+ webmock (3.14.0)
158
+ addressable (>= 2.8.0)
159
+ crack (>= 0.3.2)
160
+ hashdiff (>= 0.4.0, < 2.0.0)
146
161
  zeitwerk (2.5.1)
147
162
 
148
163
  PLATFORMS
149
164
  x86_64-darwin-21
165
+ x86_64-linux
150
166
 
151
167
  DEPENDENCIES
168
+ code-scanning-rubocop
152
169
  dead_end
153
170
  debug
154
171
  faker
155
172
  rake (~> 13.0)
156
173
  rspec (~> 3.0)
157
174
  rubocop
175
+ rubocop-performance
176
+ rubocop-rspec
158
177
  rubocop-shopify
159
178
  still_active!
179
+ vcr
180
+ webmock
160
181
 
161
182
  BUNDLED WITH
162
- 2.2.30
183
+ 2.2.31
data/README.md CHANGED
@@ -22,6 +22,7 @@ Usage: still_active [options]
22
22
  --markdown Prints output in markdown format
23
23
  --json Prints output in JSON format
24
24
  --github-oauth-token=TOKEN GitHub OAuth token to make API calls
25
+ --simultaneous-requests=QTY Number of simultaneous requests made
25
26
  --safe-range-end=YEARS maximum number of years since last activity to be considered safe
26
27
  --warning-range-end=YEARS maximum number of years since last activity to be considered worrying
27
28
  --critical-warning-emoji=EMOJI
@@ -52,16 +53,21 @@ stll_active --github-oauth-token=my-token-here
52
53
 
53
54
  Outputs:
54
55
 
55
- | gem activity old? | up to date? | name | version used | release date | latest version | release date | latest pre-release version | release date | last commit date |
56
- | ----------------- | ----------- | -------------------------------------------------------------- | ----------------------------------------------------------------- | ------------ | ----------------------------------------------------------------- | ------------ | -------------------------------------------------------------------- | ------------ | ------------------------------------------------------ |
57
- | | ✅ | [dead_end](https://github.com/zombocom/dead_end) | [3.0.1](https://rubygems.org/gems/dead_end/versions/3.0.1) | 2021/11 | [3.0.1](https://rubygems.org/gems/dead_end/versions/3.0.1) | 2021/11 | ❓ | ❓ | [2021/11](https://github.com/zombocom/dead_end) |
58
- | | ✅ | [debug](https://github.com/ruby/debug) | [1.3.4](https://rubygems.org/gems/debug/versions/1.3.4) | 2021/10 | [1.3.4](https://rubygems.org/gems/debug/versions/1.3.4) | 2021/10 | [1.0.0.rc2](https://rubygems.org/gems/debug/versions/1.0.0.rc2) | 2021/09 | [2021/11](https://github.com/ruby/debug) |
59
- | | ✅ | [faker](https://github.com/faker-ruby/faker) | [2.19.0](https://rubygems.org/gems/faker/versions/2.19.0) | 2021/08 | [2.19.0](https://rubygems.org/gems/faker/versions/2.19.0) | 2021/08 | | | [2021/11](https://github.com/faker-ruby/faker) |
60
- | | ✅ | [rake](https://github.com/ruby/rake) | [13.0.6](https://rubygems.org/gems/rake/versions/13.0.6) | 2021/07 | [13.0.6](https://rubygems.org/gems/rake/versions/13.0.6) | 2021/07 | [13.0.0.pre.1](https://rubygems.org/gems/rake/versions/13.0.0.pre.1) | 2019/09 | [2021/07](https://github.com/ruby/rake) |
61
- | | ✅ | [rspec](https://github.com/rspec/rspec) | [3.10.0](https://rubygems.org/gems/rspec/versions/3.10.0) | 2020/10 | [3.10.0](https://rubygems.org/gems/rspec/versions/3.10.0) | 2020/10 | [3.6.0.beta2](https://rubygems.org/gems/rspec/versions/3.6.0.beta2) | 2016/12 | [2021/10](https://github.com/rspec/rspec) |
62
- | | ✅ | [rubocop](https://github.com/rubocop/rubocop) | [1.22.3](https://rubygems.org/gems/rubocop/versions/1.22.3) | 2021/10 | [1.22.3](https://rubygems.org/gems/rubocop/versions/1.22.3) | 2021/10 | | | [2021/11](https://github.com/rubocop/rubocop) |
63
- | | ✅ | [rubocop-shopify](https://github.com/Shopify/ruby-style-guide) | [2.3.0](https://rubygems.org/gems/rubocop-shopify/versions/2.3.0) | 2021/10 | [2.3.0](https://rubygems.org/gems/rubocop-shopify/versions/2.3.0) | 2021/10 | ❓ | ❓ | [2021/11](https://github.com/Shopify/ruby-style-guide) |
64
- | | ✅ | [still_active](https://github.com/SeanLF/still_active) | [0.1.0](https://rubygems.org/gems/still_active/versions/0.1.0) | 2021/11 | [0.1.0](https://rubygems.org/gems/still_active/versions/0.1.0) | 2021/11 | ❓ | ❓ | [2021/11](https://github.com/SeanLF/still_active) |
56
+ | gem activity old? | up to date? | name | version used | release date | latest version | release date | latest pre-release version | release date | last commit date |
57
+ | ----------------- | ----------- | -------------------------------------------------------------------------- | ----------------------------------------------------------------------- | ------------ | ----------------------------------------------------------------------- | ------------ | ----------------------------------------------------------------------- | ------------ | ------------------------------------------------------------ |
58
+ | | ✅ | [code-scanning-rubocop](https://github.com/arthurnn/code-scanning-rubocop) | [0.5.0](https://rubygems.org/gems/code-scanning-rubocop/versions/0.5.0) | 2020/12 | [0.5.0](https://rubygems.org/gems/code-scanning-rubocop/versions/0.5.0) | 2020/12 | ❓ | ❓ | [2020/12](https://github.com/arthurnn/code-scanning-rubocop) |
59
+ | | ✅ | [dead_end](https://github.com/zombocom/dead_end) | [3.0.1](https://rubygems.org/gems/dead_end/versions/3.0.1) | 2021/11 | [3.0.1](https://rubygems.org/gems/dead_end/versions/3.0.1) | 2021/11 | ❓ | ❓ | [2021/11](https://github.com/zombocom/dead_end) |
60
+ | | ✅ | [debug](https://github.com/ruby/debug) | [1.3.4](https://rubygems.org/gems/debug/versions/1.3.4) | 2021/10 | [1.3.4](https://rubygems.org/gems/debug/versions/1.3.4) | 2021/10 | [1.0.0.rc2](https://rubygems.org/gems/debug/versions/1.0.0.rc2) | 2021/09 | [2021/11](https://github.com/ruby/debug) |
61
+ | | ✅ | [faker](https://github.com/faker-ruby/faker) | [2.19.0](https://rubygems.org/gems/faker/versions/2.19.0) | 2021/08 | [2.19.0](https://rubygems.org/gems/faker/versions/2.19.0) | 2021/08 | | | [2021/11](https://github.com/faker-ruby/faker) |
62
+ | | ✅ | [rake](https://github.com/ruby/rake) | [13.0.6](https://rubygems.org/gems/rake/versions/13.0.6) | 2021/07 | [13.0.6](https://rubygems.org/gems/rake/versions/13.0.6) | 2021/07 | [13.0.0.pre.1](https://rubygems.org/gems/rake/versions/13.0.0.pre.1) | 2019/09 | [2021/07](https://github.com/ruby/rake) |
63
+ | | ✅ | [rspec](https://github.com/rspec/rspec) | [3.10.0](https://rubygems.org/gems/rspec/versions/3.10.0) | 2020/10 | [3.10.0](https://rubygems.org/gems/rspec/versions/3.10.0) | 2020/10 | [3.6.0.beta2](https://rubygems.org/gems/rspec/versions/3.6.0.beta2) | 2016/12 | [2021/10](https://github.com/rspec/rspec) |
64
+ | | ✅ | [rubocop](https://github.com/rubocop/rubocop) | [1.22.3](https://rubygems.org/gems/rubocop/versions/1.22.3) | 2021/10 | [1.22.3](https://rubygems.org/gems/rubocop/versions/1.22.3) | 2021/10 | ❓ | ❓ | [2021/11](https://github.com/rubocop/rubocop) |
65
+ | | ✅ | [rubocop-performance](https://github.com/rubocop/rubocop-performance) | [1.12.0](https://rubygems.org/gems/rubocop-performance/versions/1.12.0) | 2021/10 | [1.12.0](https://rubygems.org/gems/rubocop-performance/versions/1.12.0) | 2021/10 | ❓ | ❓ | [2021/11](https://github.com/rubocop/rubocop-performance) |
66
+ | | ✅ | [rubocop-rspec](https://github.com/rubocop/rubocop-rspec) | [2.6.0](https://rubygems.org/gems/rubocop-rspec/versions/2.6.0) | 2021/11 | [2.6.0](https://rubygems.org/gems/rubocop-rspec/versions/2.6.0) | 2021/11 | [2.0.0.pre](https://rubygems.org/gems/rubocop-rspec/versions/2.0.0.pre) | 2020/10 | [2021/11](https://github.com/rubocop/rubocop-rspec) |
67
+ | | ✅ | [rubocop-shopify](https://github.com/Shopify/ruby-style-guide) | [2.3.0](https://rubygems.org/gems/rubocop-shopify/versions/2.3.0) | 2021/10 | [2.3.0](https://rubygems.org/gems/rubocop-shopify/versions/2.3.0) | 2021/10 | ❓ | ❓ | [2021/11](https://github.com/Shopify/ruby-style-guide) |
68
+ | | ✅ | [still_active](https://github.com/SeanLF/still_active) | [0.1.1](https://rubygems.org/gems/still_active/versions/0.1.1) | 2021/11 | [0.1.1](https://rubygems.org/gems/still_active/versions/0.1.1) | 2021/11 | ❓ | ❓ | [2021/11](https://github.com/SeanLF/still_active) |
69
+ | | ✅ | [vcr](https://github.com/vcr/vcr) | [6.0.0](https://rubygems.org/gems/vcr/versions/6.0.0) | 2020/05 | [6.0.0](https://rubygems.org/gems/vcr/versions/6.0.0) | 2020/05 | [2.0.0.rc2](https://rubygems.org/gems/vcr/versions/2.0.0.rc2) | 2012/02 | [2021/10](https://github.com/vcr/vcr) |
70
+ | | ✅ | [webmock](https://github.com/bblimke/webmock) | [3.14.0](https://rubygems.org/gems/webmock/versions/3.14.0) | 2021/08 | [3.14.0](https://rubygems.org/gems/webmock/versions/3.14.0) | 2021/08 | [2.0.0.beta2](https://rubygems.org/gems/webmock/versions/2.0.0.beta2) | 2016/04 | [2021/09](https://github.com/bblimke/webmock) |
65
71
 
66
72
  ### Configuration options
67
73
 
data/bin/console CHANGED
@@ -7,7 +7,5 @@ require "still_active"
7
7
  # You can add fixtures and/or initialization code here to make experimenting
8
8
  # with your gem easier. You can also use a different console, if you like.
9
9
 
10
- require "debug"
11
-
12
10
  require "irb"
13
11
  IRB.start(__FILE__)