codeinventory-github 0.3.0 → 0.3.1

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
  SHA1:
3
- metadata.gz: 7ccf93961c2ce1c0a53b5ea470e64426d3fc30c1
4
- data.tar.gz: '09123ff0ab9a4ff219dd57d424098d3673cce6ce'
3
+ metadata.gz: d651e57af5487d45ca2a94a294744db0478b534d
4
+ data.tar.gz: 82a01ed9bcb7f32d1df81fb81c8178b14fcb0497
5
5
  SHA512:
6
- metadata.gz: '086435f3b0ce892da1c03e27e0727d8875a572a7d9c689ee96ad74c9b55fb2f3d387ca6cc6421cac9123a331c079d9d9299a6871916c92a2bf103b221cb18f48'
7
- data.tar.gz: 66b3e4340458fbb4929c18a1beff51780be13539cb4c566e1fc2aff593d30ee338e3d3b381b20f7a33b5909bff085037ebcf17f7370fd5b0ac733b6d51d40330
6
+ metadata.gz: 261895fe5b3fdd30ff84687caaa3734f3b45dd1aeea9eca98100a0a444aef323aaa0ceb77fcd1b0167a426a459df8cdae2abb814508cc0021fabb2010499e2ea
7
+ data.tar.gz: 3ad1c942e9bd523c1b73d5cf35b8059153eef3e97b88c62ecb8f64d3e14d549e03084a0bd74987347e0b7c41f147829458afac95edb560eff433c4c32ee45f53
data/README.md CHANGED
@@ -138,6 +138,20 @@ github_source = CodeInventory::GitHub::Source.new({ access_token: "GITHUB_ACCESS
138
138
 
139
139
  In this example, `codeinventory-github` will set the tags on all your projects to `my-tag-1` and `my-tag-2` also use the contact email you specified on all projects.
140
140
 
141
+ ### Using GitHub metadata
142
+
143
+ If the metadata file does not exist or does not contain a field, and there are no overrides, `codeinventory-github` will use GitHub metadata to populate the field. These fields can be automatically populated from GitHub metadata:
144
+
145
+ * name - GitHub repository name
146
+ * description - GitHub repository description
147
+ * license - GitHub repository license
148
+ * openSourceProject - `true` if the repository is public, `false` if it is private
149
+ * tags - GitHub repository topics
150
+ * contact > email - GitHub organization email address
151
+ * repository - GitHub repository URL
152
+
153
+ If you already specify any of the above items in your GitHub repository, there is no need to specify them in a metadata file.
154
+
141
155
  ### Excluding repositories
142
156
 
143
157
  You can exclude any repository from scanning.
@@ -27,6 +27,6 @@ Gem::Specification.new do |spec|
27
27
  spec.add_development_dependency "webmock", "~> 2.1"
28
28
  spec.add_development_dependency "pry", "~> 0.10"
29
29
 
30
- spec.add_runtime_dependency "codeinventory", "~> 0.2.0"
30
+ spec.add_runtime_dependency "codeinventory", "~> 0.3.0"
31
31
  spec.add_runtime_dependency "octokit", "~> 4.6"
32
32
  end
@@ -1,5 +1,5 @@
1
1
  module CodeInventory
2
2
  module GitHub
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codeinventory-github
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Fredrickson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-02 00:00:00.000000000 Z
11
+ date: 2017-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.2.0
89
+ version: 0.3.0
90
90
  type: :runtime
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: 0.2.0
96
+ version: 0.3.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: octokit
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
150
  version: '0'
151
151
  requirements: []
152
152
  rubyforge_project:
153
- rubygems_version: 2.6.11
153
+ rubygems_version: 2.6.13
154
154
  signing_key:
155
155
  specification_version: 4
156
156
  summary: Harvests project metadata from YAML or JSON files in GitHub repositories.