github-lister-core 0.1.4 → 0.1.6

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: 71abd2312f87ca7bfcf5c5d13ee6b29198df72393843884bad5ad52392d8d330
4
- data.tar.gz: c12ba53829f26d94e909d97ad549198c6bb7192c65a4a7959e06ead424efb516
3
+ metadata.gz: 22f46d214a9ede3433e161770c99c8dc23f489c5c522e4431d39f5d14bfb75a1
4
+ data.tar.gz: '096668b123f11a7da5557ccb85ae926e11b9b9d30beeab86ac197a5a501db349'
5
5
  SHA512:
6
- metadata.gz: f0f55d0fcc10d157679348cd9363a839144b7f290c4e5021a7a6129d1f86aea3d3eda99dbd8af172243b3f5782fe7bafc619f008392bdb226f61a1b250e767ae
7
- data.tar.gz: e35bbc956f58abadbb1c7eef9ec7d29bc6583f257a15c1ca31aa16a835dae8047a0c5d8dab6e71fe5ceb303b10f6f1fbd4934ba1e195a2fdef602337f0c5e0d0
6
+ metadata.gz: 408cdacea0f69213a0b14a6316503e9675761c37145abbcbe140f99c6991775b1c75b8e2a331898f7c12bfc560024ef137da83fccc946ac5a4a221761151b896
7
+ data.tar.gz: 67d007d2954fa5c02dc0babfd8e0c4f79afd50935c2aaae3ecf756c5e6469cad6d6bb798d5675bc0f38050497923b5a64953f7677f031eb322bad1d94f460615
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  **/ab-results*
2
2
  Gemfile.lock
3
3
  .rspec_status
4
+ *.gem
data/CHANGELOG.md CHANGED
@@ -5,11 +5,23 @@ All notable changes to this project will be documented in this file.
5
5
 
6
6
  This changelog was automatically generated using [Caretaker](https://github.com/DevelopersToolbox/caretaker) by [Wolf Software](https://github.com/WolfSoftware)
7
7
 
8
+ ### [v0.1.6](https://github.com/DevelopersToolbox/github-lister-core/compare/v0.1.5...v0.1.6)
9
+
10
+ > Released on June, 13th 2022
11
+
12
+ - fix pakcage and git ignore [`[head]`](https://github.com/DevelopersToolbox/github-lister-core/commit/)
13
+
14
+ ### [v0.1.5](https://github.com/DevelopersToolbox/github-lister-core/compare/v0.1.4...v0.1.5)
15
+
16
+ > Released on June, 13th 2022
17
+
18
+ - Added workflows [`[84a37a1]`](https://github.com/DevelopersToolbox/github-lister-core/commit/84a37a1b39c71a48f877d972a4bbdaea9571e39d)
19
+
8
20
  ### [v0.1.4](https://github.com/DevelopersToolbox/github-lister-core/compare/v0.1.3...v0.1.4)
9
21
 
10
22
  > Released on May, 20th 2022
11
23
 
12
- - Added SAML error handling and also capture genereic error and surface the message [`[head]`](https://github.com/DevelopersToolbox/github-lister-core/commit/)
24
+ - Added SAML error handling and also capture genereic error and surface the message [`[7b72478]`](https://github.com/DevelopersToolbox/github-lister-core/commit/7b72478d5de58b5dd862d04bf0d66345dc334b1c)
13
25
 
14
26
  - rebrand [`[c84ea27]`](https://github.com/DevelopersToolbox/github-lister-core/commit/c84ea270deed05ecdd3f483a7921e5260ef6b46d)
15
27
 
data/README.md CHANGED
@@ -80,6 +80,7 @@ All of the exposed methods will return data in JSON format.
80
80
  | :add_latest_release | This will add information about the latest release to the details (Requires an additional look query per repo) |
81
81
  | :add_releases | This will add information about releases to the repository (Requires an additional look query per repo) |
82
82
  | :add_languages | This will add the repository languages to the details (Requires an additional look query per repo) |
83
+ | :add_workflows | This will add the repository workflow information to the details (Requires an additional look query per repo) |
83
84
 
84
85
  > :user, :username, :org, :org_name can be either a single user/organisation name _OR_ a comma-separated list of user/organisation names _OR_ an array of user/organisation names. If more than one name is given, the results for all names will be merged together into one result set.
85
86
 
data/VERSION.txt CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.6
@@ -89,6 +89,7 @@ class GithubListerCore
89
89
  repos = add_latest_release_private(client, repos) if flag_set?(options, :add_latest_release)
90
90
  repos = add_releases_private(client, repos) if flag_set?(options, :add_releases)
91
91
  repos = add_languages_private(client, repos) if flag_set?(options, :add_languages)
92
+ repos = add_workflows_private(client, repos) if flag_set?(options, :add_workflows)
92
93
  repos
93
94
  end
94
95
  end
@@ -1,3 +1,3 @@
1
1
  class GithubListerCore
2
- VERSION = '0.1.4'.freeze
2
+ VERSION = '0.1.6'.freeze
3
3
  end
@@ -0,0 +1,29 @@
1
+ #
2
+ # Add workflows to each repository
3
+ #
4
+ class GithubListerCore
5
+ class << self
6
+ #
7
+ # Everything below here is private
8
+ #
9
+
10
+ private
11
+
12
+ #
13
+ # Extra the slug from the payload and return it
14
+ #
15
+ def workflows_private(client, repo)
16
+ workflows = function_wrapper(client, 'list_workflows', repo)
17
+ decode_sawyer_resource(workflows) || {}
18
+ end
19
+
20
+ #
21
+ # Add topics to each repo
22
+ #
23
+ # This method smells of :reek:FeatureEnvy
24
+ def add_workflows_private(client, repos)
25
+ (repo_list ||= []) << Parallel.each(repos, :in_threads => repos.count) { |repo| repo[:workflows] = workflows_private(client, repo[:full_name]) }
26
+ repo_list.flatten
27
+ end
28
+ end
29
+ end
@@ -19,6 +19,7 @@ require_relative 'github-lister-core/topics'
19
19
  require_relative 'github-lister-core/users'
20
20
  require_relative 'github-lister-core/utils'
21
21
  require_relative 'github-lister-core/version'
22
+ require_relative 'github-lister-core/workflows'
22
23
  require_relative 'github-lister-core/wrapper'
23
24
 
24
25
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-lister-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Gurney aka Wolf
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-05-20 00:00:00.000000000 Z
11
+ date: 2022-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -181,6 +181,7 @@ files:
181
181
  - lib/github-lister-core/users.rb
182
182
  - lib/github-lister-core/utils.rb
183
183
  - lib/github-lister-core/version.rb
184
+ - lib/github-lister-core/workflows.rb
184
185
  - lib/github-lister-core/wrapper.rb
185
186
  - testing/get-raw.rb
186
187
  homepage: https://github.com/DevelopersToolbox/github-lister-core