whatsup_github 0.4.1 → 0.5.0

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: d76d974b6feb2663b6234906cde7aee2011f6fe1c87c2e90f7e4791e4f2b04a7
4
- data.tar.gz: fb62023682520d065cfdf326300f576b38e85fea9fcf7e203b8105cae4278b94
3
+ metadata.gz: bfff3f017c4ab987bfb23086782ad4ca233bbc3f8216eece2bf518b7164f71c7
4
+ data.tar.gz: 20b3555c3511a364c86c5dc7a83e6d934ab12a0fee54573b6d6cee5090ad9c49
5
5
  SHA512:
6
- metadata.gz: d50707d1f9eb818a36aec8bdc46d19d3543b037b94f9452b3734888184cf77c319364bdd5dc1a5675a4cd90718c808ad7b12052ffcba80d0ac43bd4652eb3d70
7
- data.tar.gz: 2032e86160a162ba96521fcb3f7f4ae042c9494e12786e22e28ac4a75d0fcb0ae5c3154f03fe69c1616e0f1cd81eacc2c4166393287708d9535dd1e79eaf46cd
6
+ metadata.gz: 6e4604bf0cab9e466e0c30834ae8ed4e454f9a3229e25fc4ed3c5dbd33db89919b3f280a4001f794c7edec2d3ce4ac5e2f3a7185db34b976bb187fbf5f7436b1
7
+ data.tar.gz: 29e3adc0ea5190d4ae912a00778e66db83889825963641269a954a2cd6d8f056dde54bbda0c164b026744f3dda5d2e0b0471d1d42804b19e94f5ecf4e0dcf4fa
@@ -0,0 +1,11 @@
1
+ ---
2
+ #######################
3
+ # Rubocop Config file #
4
+ #######################
5
+
6
+ inherit_gem:
7
+ rubocop-github:
8
+ - config/default.yml
9
+
10
+ Style/StringLiterals:
11
+ EnforcedStyle: single_quotes
@@ -0,0 +1,48 @@
1
+ ---
2
+ ###########################
3
+ ###########################
4
+ ## Linter GitHub Actions ##
5
+ ###########################
6
+ ###########################
7
+ name: Lint Code Base
8
+
9
+ #
10
+ # Documentation:
11
+ # https://help.github.com/en/articles/workflow-syntax-for-github-actions
12
+ #
13
+
14
+ ###################################
15
+ # Start the job on a pull request #
16
+ ###################################
17
+ on:
18
+ pull_request
19
+
20
+ ###############
21
+ # Set the Job #
22
+ ###############
23
+ jobs:
24
+ super-lint:
25
+ # Set the agent to run on
26
+ runs-on: ubuntu-latest
27
+
28
+ ##################
29
+ # Load all steps #
30
+ ##################
31
+ steps:
32
+ ##########################
33
+ # Checkout the code base #
34
+ ##########################
35
+ - name: Checkout Code
36
+ uses: actions/checkout@v3
37
+ with:
38
+ # Full git history is needed to get a proper list of changed files within `super-linter`
39
+ fetch-depth: 0
40
+
41
+ ################################
42
+ # Run Linter against code base #
43
+ ################################
44
+ - name: Lint Code Base
45
+ uses: github/super-linter@v4
46
+ env:
47
+ VALIDATE_ALL_CODEBASE: false
48
+ DEFAULT_BRANCH: main
@@ -0,0 +1,11 @@
1
+ name: Test the code
2
+ on: [pull_request]
3
+ jobs:
4
+ test:
5
+ runs-on: ubuntu-latest
6
+ steps:
7
+ - uses: actions/checkout@v3
8
+ - uses: ruby/setup-ruby@v1
9
+ with:
10
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
11
+ - run: bundle exec rake
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.5.8
1
+ ruby-2.7.7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.2
4
+
5
+ Fixes:
6
+
7
+ - Fixed a bug with non-working membership
8
+
9
+ Maintenance:
10
+
11
+ - Added code linting
12
+
3
13
  ## 0.4.1
4
14
 
5
15
  - Added authentication via an environment variable `WHATSUP_GITHUB_ACCESS_TOKEN`
data/Gemfile.lock CHANGED
@@ -1,129 +1,108 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- whatsup_github (0.4.1)
4
+ whatsup_github (0.5.0)
5
5
  netrc (~> 0.11)
6
- octokit (~> 4.20)
7
- thor (~> 1.1)
6
+ octokit (~> 6.0)
7
+ thor (~> 1.2)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activesupport (6.1.3.1)
13
- concurrent-ruby (~> 1.0, >= 1.0.2)
14
- i18n (>= 1.6, < 2)
15
- minitest (>= 5.1)
16
- tzinfo (~> 2.0)
17
- zeitwerk (~> 2.3)
18
- addressable (2.7.0)
19
- public_suffix (>= 2.0.2, < 5.0)
20
- aruba (1.0.4)
12
+ addressable (2.8.1)
13
+ public_suffix (>= 2.0.2, < 6.0)
14
+ aruba (2.1.0)
15
+ bundler (>= 1.17, < 3.0)
21
16
  childprocess (>= 2.0, < 5.0)
22
- contracts (~> 0.16.0)
23
- cucumber (>= 2.4, < 6.0)
17
+ contracts (>= 0.16.0, < 0.18.0)
18
+ cucumber (>= 4.0, < 9.0)
24
19
  rspec-expectations (~> 3.4)
25
20
  thor (~> 1.0)
26
21
  builder (3.2.4)
27
- childprocess (4.0.0)
22
+ childprocess (4.1.0)
28
23
  coderay (1.1.3)
29
- concurrent-ruby (1.1.8)
30
- contracts (0.16.0)
31
- cucumber (5.3.0)
24
+ contracts (0.16.1)
25
+ cucumber (8.0.0)
32
26
  builder (~> 3.2, >= 3.2.4)
33
- cucumber-core (~> 8.0, >= 8.0.1)
34
- cucumber-create-meta (~> 2.0, >= 2.0.2)
35
- cucumber-cucumber-expressions (~> 10.3, >= 10.3.0)
36
- cucumber-gherkin (~> 15.0, >= 15.0.2)
37
- cucumber-html-formatter (~> 9.0, >= 9.0.0)
38
- cucumber-messages (~> 13.1, >= 13.1.0)
39
- cucumber-wire (~> 4.0, >= 4.0.1)
40
- diff-lcs (~> 1.4, >= 1.4.4)
41
- multi_test (~> 0.1, >= 0.1.2)
42
- sys-uname (~> 1.2, >= 1.2.1)
43
- cucumber-core (8.0.1)
44
- cucumber-gherkin (~> 15.0, >= 15.0.2)
45
- cucumber-messages (~> 13.0, >= 13.0.1)
46
- cucumber-tag-expressions (~> 2.0, >= 2.0.4)
47
- cucumber-create-meta (2.0.4)
48
- cucumber-messages (~> 13.1, >= 13.1.0)
49
- sys-uname (~> 1.2, >= 1.2.1)
50
- cucumber-cucumber-expressions (10.3.0)
51
- cucumber-gherkin (15.0.2)
52
- cucumber-messages (~> 13.0, >= 13.0.1)
53
- cucumber-html-formatter (9.0.0)
54
- cucumber-messages (~> 13.0, >= 13.0.1)
55
- cucumber-messages (13.2.1)
56
- protobuf-cucumber (~> 3.10, >= 3.10.8)
57
- cucumber-tag-expressions (2.0.4)
58
- cucumber-wire (4.0.1)
59
- cucumber-core (~> 8.0, >= 8.0.1)
60
- cucumber-cucumber-expressions (~> 10.3, >= 10.3.0)
61
- cucumber-messages (~> 13.0, >= 13.0.1)
62
- diff-lcs (1.4.4)
63
- faraday (1.3.0)
64
- faraday-net_http (~> 1.0)
65
- multipart-post (>= 1.2, < 3)
66
- ruby2_keywords
67
- faraday-net_http (1.0.1)
68
- ffi (1.15.0)
69
- i18n (1.8.9)
70
- concurrent-ruby (~> 1.0)
27
+ cucumber-ci-environment (~> 9.0, >= 9.0.4)
28
+ cucumber-core (~> 11.0, >= 11.0.0)
29
+ cucumber-cucumber-expressions (~> 15.1, >= 15.1.1)
30
+ cucumber-gherkin (~> 23.0, >= 23.0.1)
31
+ cucumber-html-formatter (~> 19.1, >= 19.1.0)
32
+ cucumber-messages (~> 18.0, >= 18.0.0)
33
+ diff-lcs (~> 1.5, >= 1.5.0)
34
+ mime-types (~> 3.4, >= 3.4.1)
35
+ multi_test (~> 1.1, >= 1.1.0)
36
+ sys-uname (~> 1.2, >= 1.2.2)
37
+ cucumber-ci-environment (9.1.0)
38
+ cucumber-core (11.0.0)
39
+ cucumber-gherkin (~> 23.0, >= 23.0.1)
40
+ cucumber-messages (~> 18.0, >= 18.0.0)
41
+ cucumber-tag-expressions (~> 4.1, >= 4.1.0)
42
+ cucumber-cucumber-expressions (15.2.0)
43
+ cucumber-gherkin (23.0.1)
44
+ cucumber-messages (~> 18.0, >= 18.0.0)
45
+ cucumber-html-formatter (19.2.0)
46
+ cucumber-messages (~> 18.0, >= 18.0.0)
47
+ cucumber-messages (18.0.0)
48
+ cucumber-tag-expressions (4.1.0)
49
+ diff-lcs (1.5.0)
50
+ faraday (2.7.2)
51
+ faraday-net_http (>= 2.0, < 3.1)
52
+ ruby2_keywords (>= 0.0.4)
53
+ faraday-net_http (3.0.2)
54
+ faraday-retry (2.0.0)
55
+ faraday (~> 2.0)
56
+ ffi (1.15.5)
57
+ fileutils (1.7.0)
71
58
  method_source (1.0.0)
72
- middleware (0.1.0)
73
- minitest (5.14.4)
74
- multi_test (0.1.2)
75
- multipart-post (2.1.1)
59
+ mime-types (3.4.1)
60
+ mime-types-data (~> 3.2015)
61
+ mime-types-data (3.2022.0105)
62
+ multi_test (1.1.0)
76
63
  netrc (0.11.0)
77
- octokit (4.20.0)
78
- faraday (>= 0.9)
79
- sawyer (~> 0.8.0, >= 0.5.3)
80
- protobuf-cucumber (3.10.8)
81
- activesupport (>= 3.2)
82
- middleware
83
- thor
84
- thread_safe
85
- pry (0.14.0)
64
+ octokit (6.0.1)
65
+ faraday (>= 1, < 3)
66
+ sawyer (~> 0.9)
67
+ pry (0.14.1)
86
68
  coderay (~> 1.1)
87
69
  method_source (~> 1.0)
88
- public_suffix (4.0.6)
89
- rake (13.0.3)
90
- rspec (3.10.0)
91
- rspec-core (~> 3.10.0)
92
- rspec-expectations (~> 3.10.0)
93
- rspec-mocks (~> 3.10.0)
94
- rspec-core (3.10.1)
95
- rspec-support (~> 3.10.0)
96
- rspec-expectations (3.10.1)
70
+ public_suffix (5.0.1)
71
+ rake (13.0.6)
72
+ rspec (3.12.0)
73
+ rspec-core (~> 3.12.0)
74
+ rspec-expectations (~> 3.12.0)
75
+ rspec-mocks (~> 3.12.0)
76
+ rspec-core (3.12.0)
77
+ rspec-support (~> 3.12.0)
78
+ rspec-expectations (3.12.1)
97
79
  diff-lcs (>= 1.2.0, < 2.0)
98
- rspec-support (~> 3.10.0)
99
- rspec-mocks (3.10.2)
80
+ rspec-support (~> 3.12.0)
81
+ rspec-mocks (3.12.1)
100
82
  diff-lcs (>= 1.2.0, < 2.0)
101
- rspec-support (~> 3.10.0)
102
- rspec-support (3.10.2)
103
- ruby2_keywords (0.0.4)
104
- sawyer (0.8.2)
83
+ rspec-support (~> 3.12.0)
84
+ rspec-support (3.12.0)
85
+ ruby2_keywords (0.0.5)
86
+ sawyer (0.9.2)
105
87
  addressable (>= 2.3.5)
106
- faraday (> 0.8, < 2.0)
88
+ faraday (>= 0.17.3, < 3)
107
89
  sys-uname (1.2.2)
108
90
  ffi (~> 1.1)
109
- thor (1.1.0)
110
- thread_safe (0.3.6)
111
- tzinfo (2.0.4)
112
- concurrent-ruby (~> 1.0)
113
- zeitwerk (2.4.2)
91
+ thor (1.2.1)
114
92
 
115
93
  PLATFORMS
116
94
  ruby
117
- x86_64-darwin-19
118
95
 
119
96
  DEPENDENCIES
120
- aruba (~> 1.0)
121
- bundler (~> 2.2)
122
- cucumber (~> 5.3)
97
+ aruba (~> 2.1)
98
+ bundler (~> 2.1)
99
+ cucumber (~> 8.0)
100
+ faraday-retry (~> 2.0)
101
+ fileutils (~> 1.7)
123
102
  pry (~> 0.14)
124
103
  rake (~> 13.0)
125
- rspec (~> 3.10)
104
+ rspec (~> 3.12)
126
105
  whatsup_github!
127
106
 
128
107
  BUNDLED WITH
129
- 2.2.15
108
+ 2.1.4
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ require 'cucumber/rake/task'
7
7
 
8
8
  RSpec::Core::RakeTask.new(:spec)
9
9
 
10
- task default: :spec
10
+ task default: :test
11
11
 
12
12
  Cucumber::Rake::Task.new(:features) do |t|
13
13
  t.cucumber_opts = '--format pretty' # Any valid command line option can go here.
@@ -4,7 +4,6 @@ base_branch: master
4
4
  # The list of repositories to scan for pull requests
5
5
  repos:
6
6
  - magento/devdocs
7
- - magento-commerce/devdocs
8
7
 
9
8
  # Labels also will be used as a 'type' value in the output file
10
9
  labels:
@@ -19,10 +18,10 @@ output_format:
19
18
  - yaml
20
19
  # - markdown
21
20
 
22
- # The phrase that is used as a separator in the pull request descripion.
21
+ # The phrase that is used as a separator in the pull request description.
23
22
  # All the lines that follows this phrase are captured as 'description' for this PR's entry in the resulted data file.
24
23
  magic_word: whatsnew
25
24
 
26
25
  # An organization to check a contributor for membership.
27
- # Values: 'true', 'false', empry if not configured.
28
- membership: magento-commerce
26
+ # Values: 'true', 'false', empty if not configured.
27
+ # membership: magento-commerce
@@ -2,14 +2,19 @@
2
2
 
3
3
  require 'thor'
4
4
  require 'whatsup_github/runner'
5
+ require 'whatsup_github/version'
5
6
  module WhatsupGithub
7
+ # CLI options
6
8
  class CLI < Thor
7
- desc 'since DATE', 'Filters pull requests since the specified date till now.'
8
-
9
+ desc 'since DATE', 'Filters pull requests since the specified date till now. Default: last 7 days.'
9
10
  def since(date = Date.today - 7)
10
11
  runner = WhatsupGithub::Runner.new(Date.parse(date.to_s))
11
12
  runner.run
12
13
  end
13
- default_task :since
14
+
15
+ desc 'version', 'Current version of the gem'
16
+ def version
17
+ puts "Current version is #{WhatsupGithub::VERSION}"
18
+ end
14
19
  end
15
20
  end
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'singleton'
4
+
5
+ # Client authorization
6
+ module WhatsupGithub
7
+ # Create a singleton object for Client.
8
+ # Authorize with a GitHub token from $WHATSUP_GITHUB_ACCESS_TOKEN if available
9
+ # Otherwise, use credentials from ~/.netrc
10
+ # Otherwise, continue as a Guest
11
+ class Client
12
+ include Singleton
13
+
14
+ WHATSUP_GITHUB_ACCESS_TOKEN = ENV['WHATSUP_GITHUB_ACCESS_TOKEN']
15
+ private_constant :WHATSUP_GITHUB_ACCESS_TOKEN
16
+
17
+ def initialize
18
+ @client =
19
+ if WHATSUP_GITHUB_ACCESS_TOKEN
20
+ Octokit::Client.new(access_token: WHATSUP_GITHUB_ACCESS_TOKEN)
21
+ elsif File.exist? "#{ENV['HOME']}/.netrc"
22
+ Octokit::Client.new(netrc: true)
23
+ else
24
+ Octokit::Client.new
25
+ end
26
+ end
27
+
28
+ def search_issues(query)
29
+ @client.search_issues(query)
30
+ end
31
+
32
+ def pull_request(repo, number)
33
+ @client.pull_request(repo, number)
34
+ end
35
+
36
+ def org_members(org)
37
+ @client.org_members(org)
38
+ end
39
+ end
40
+ end
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'yaml'
4
4
  require 'singleton'
5
+ require 'fileutils'
5
6
 
6
7
  module WhatsupGithub
7
8
  # Creates readable objects from confirurarion files
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'octokit'
4
4
  require_relative 'config_reader'
5
+ require_relative 'client'
5
6
 
6
7
  module WhatsupGithub
7
8
  # Gets issues found on GitHub by query
@@ -51,28 +52,19 @@ module WhatsupGithub
51
52
  # Otherwise, use credentials from ~/.netrc
52
53
  # Otherwise, continue as a Guest
53
54
  def client
54
- return @client if @client
55
-
56
- @client =
57
- if ENV['WHATSUP_GITHUB_ACCESS_TOKEN']
58
- Octokit::Client.new(access_token: ENV['WHATSUP_GITHUB_ACCESS_TOKEN'])
59
- elsif File.exist? "#{ENV['HOME']}/.netrc"
60
- Octokit::Client.new(netrc: true)
61
- else
62
- Octokit::Client.new
63
- end
55
+ Client.instance
64
56
  end
65
57
 
66
58
  def search_issues(label)
67
59
  auto_paginate
68
- query = "repo:#{repo} label:\"#{label}\" merged:>=#{since} base:#{base_branch}"
60
+ query = "repo:#{repo} label:\"#{label}\" merged:>=#{since} base:#{base_branch} is:pull-request"
69
61
  puts "Searching on GitHub by query #{query}"
70
62
  client.search_issues(query)
71
63
  end
72
64
 
73
65
  def search_issues_with_magic_word(label)
74
66
  auto_paginate
75
- query = "repo:#{repo} label:\"#{label}\" merged:>=#{since} base:#{base_branch} \"#{magic_word}\" in:body"
67
+ query = "repo:#{repo} label:\"#{label}\" merged:>=#{since} base:#{base_branch} \"#{magic_word}\" in:body is:pull-request"
76
68
  puts "Searching on GitHub by query #{query}"
77
69
  client.search_issues(query)
78
70
  end
@@ -3,7 +3,6 @@
3
3
  require_relative 'row'
4
4
  require_relative 'pulls'
5
5
  require_relative 'config_reader'
6
- require_relative 'members'
7
6
 
8
7
  module WhatsupGithub
9
8
  # Creates Row objects for the future table
@@ -82,7 +81,7 @@ module WhatsupGithub
82
81
  def load_members
83
82
  return if @members
84
83
 
85
- @members = Members.new(config.membership).members
84
+ @members = client.org_members(config.membership)
86
85
  end
87
86
 
88
87
  def member_logins
@@ -93,5 +92,9 @@ module WhatsupGithub
93
92
  def config
94
93
  Config.instance
95
94
  end
95
+
96
+ def client
97
+ Client.instance
98
+ end
96
99
  end
97
100
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WhatsupGithub
4
- VERSION = '0.4.1'
4
+ VERSION = '0.5.0'
5
5
  end
@@ -34,16 +34,18 @@ Gem::Specification.new do |spec|
34
34
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
35
35
  spec.require_paths = ['lib']
36
36
 
37
- spec.required_ruby_version = '>= 2.5.0'
37
+ spec.required_ruby_version = '>= 2.7.0'
38
38
 
39
39
  spec.add_dependency 'netrc', '~> 0.11'
40
- spec.add_dependency 'octokit', '~> 4.20'
41
- spec.add_dependency 'thor', '~> 1.1'
40
+ spec.add_dependency 'octokit', '~> 6.0'
41
+ spec.add_dependency 'thor', '~> 1.2'
42
42
 
43
- spec.add_development_dependency 'aruba', '~> 1.0'
44
- spec.add_development_dependency 'bundler', '~> 2.2'
45
- spec.add_development_dependency 'cucumber', '~> 5.3'
43
+ spec.add_development_dependency 'aruba', '~> 2.1'
44
+ spec.add_development_dependency 'bundler', '~> 2.1'
45
+ spec.add_development_dependency 'cucumber', '~> 8.0'
46
46
  spec.add_development_dependency 'pry', '~> 0.14'
47
47
  spec.add_development_dependency 'rake', '~> 13.0'
48
- spec.add_development_dependency 'rspec', '~> 3.10'
48
+ spec.add_development_dependency 'rspec', '~> 3.12'
49
+ spec.add_development_dependency 'fileutils', '~> 1.7'
50
+ spec.add_development_dependency 'faraday-retry', '~> 2.0'
49
51
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whatsup_github
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dima Shevtsov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-06 00:00:00.000000000 Z
11
+ date: 2023-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: netrc
@@ -30,70 +30,70 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '4.20'
33
+ version: '6.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '4.20'
40
+ version: '6.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: thor
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.1'
47
+ version: '1.2'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.1'
54
+ version: '1.2'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: aruba
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.0'
61
+ version: '2.1'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '1.0'
68
+ version: '2.1'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '2.2'
75
+ version: '2.1'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '2.2'
82
+ version: '2.1'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: cucumber
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '5.3'
89
+ version: '8.0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '5.3'
96
+ version: '8.0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: pry
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -128,14 +128,42 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '3.10'
131
+ version: '3.12'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '3.10'
138
+ version: '3.12'
139
+ - !ruby/object:Gem::Dependency
140
+ name: fileutils
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '1.7'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '1.7'
153
+ - !ruby/object:Gem::Dependency
154
+ name: faraday-retry
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '2.0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '2.0'
139
167
  description:
140
168
  email:
141
169
  - shevtsov@adobe.com
@@ -144,10 +172,12 @@ executables:
144
172
  extensions: []
145
173
  extra_rdoc_files: []
146
174
  files:
175
+ - ".github/linters/.ruby-lint.yml"
176
+ - ".github/workflows/linter.yml"
177
+ - ".github/workflows/tests.yml"
147
178
  - ".gitignore"
148
179
  - ".rspec"
149
180
  - ".ruby-version"
150
- - ".travis.yml"
151
181
  - CHANGELOG.md
152
182
  - Gemfile
153
183
  - Gemfile.lock
@@ -160,9 +190,9 @@ files:
160
190
  - lib/template/.whatsup.yml
161
191
  - lib/whatsup_github.rb
162
192
  - lib/whatsup_github/cli.rb
193
+ - lib/whatsup_github/client.rb
163
194
  - lib/whatsup_github/config_reader.rb
164
195
  - lib/whatsup_github/generator.rb
165
- - lib/whatsup_github/members.rb
166
196
  - lib/whatsup_github/pulls.rb
167
197
  - lib/whatsup_github/row.rb
168
198
  - lib/whatsup_github/row_collector.rb
@@ -186,14 +216,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
186
216
  requirements:
187
217
  - - ">="
188
218
  - !ruby/object:Gem::Version
189
- version: 2.5.0
219
+ version: 2.7.0
190
220
  required_rubygems_version: !ruby/object:Gem::Requirement
191
221
  requirements:
192
222
  - - ">="
193
223
  - !ruby/object:Gem::Version
194
224
  version: '0'
195
225
  requirements: []
196
- rubygems_version: 3.1.4
226
+ rubygems_version: 3.1.6
197
227
  signing_key:
198
228
  specification_version: 4
199
229
  summary: Collect info from GitHub pull requests.
data/.travis.yml DELETED
@@ -1,6 +0,0 @@
1
- ---
2
- sudo: false
3
- language: ruby
4
- cache: bundler
5
- before_install: gem install bundler -v 2.2.15
6
- script: bundle exec rake spec features
@@ -1,18 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module WhatsupGithub
4
- # Members of an organization
5
- class Members
6
- def initialize(org)
7
- @org = org
8
- end
9
-
10
- def client
11
- Octokit::Client.new(netrc: true)
12
- end
13
-
14
- def members
15
- client.org_members @org
16
- end
17
- end
18
- end