pbom 0.1.0 → 0.1.2

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: 54d8fbd5ccb1200ff9aac909c4928d1f5ded135502ac6620cf9a2254e22862d4
4
- data.tar.gz: d73b8eeb5afd4d25d28e888f12049cae870a2490f85e7682f62d63e14a576444
3
+ metadata.gz: b2afa78a3d98b1d24fd9e0105d33dfd692f19effb45a04cef12f3d9a87ad42b9
4
+ data.tar.gz: d670d41965ebb53a77ef2bbfb070b6d79509c1f43547fd4fe9cf230e2a092d7a
5
5
  SHA512:
6
- metadata.gz: d83eed7796e532137e3b74caf7333a098237a6d2114de7e41d0cd6ac4e8f3d63e6c302fc236f667659a3b2ee79813f6dc9d1e9f3620de059f153ed1963b89a23
7
- data.tar.gz: 1137799edfa0c4c49354dd19e0f3215c02a8be618dbe13fc716102647dd8984166617365299cb374a8b544628ff7f377153e09b28da8ef49bc7216b93dcbb136
6
+ metadata.gz: ac88e763729e7051fe90b2de9378f357be1bd0e0f25be61ea4887124ff99c119eff743a9b463e4403af4d1f1a9be1f612db690043bf2551834232b9567629828
7
+ data.tar.gz: 4e92733355c62c64b6af7d1617ab96f3ad23b871bfb80534ba0d5af65e0d0f8a3e23e3b6f52ff31041708c1065e8b77a5c3b32bb135a52259ee4966004403c0a
data/CITATION.cff CHANGED
@@ -11,7 +11,7 @@ authors:
11
11
  orcid: 'https://orcid.org/0009-0007-2710-1118'
12
12
  repository-code: 'https://github.com/andrew/PBOM'
13
13
  abstract: >-
14
- "Generate a package bill of materials from a project"
14
+ "Paper Bill of Materials (PBOM) - Generate a paper bill of materials from the software of a paper "
15
15
  keywords:
16
16
  - open source
17
17
  - package management
data/lib/pbom/package.rb CHANGED
@@ -84,6 +84,7 @@ module Pbom
84
84
  if @details['repo_metadata'] && @details['repo_metadata']['metadata'] && @details['repo_metadata']['metadata']['files'] && @details['repo_metadata']['metadata']['files']['citation']
85
85
 
86
86
  path = @details['repo_metadata']['metadata']['files']['citation']
87
+ return unless path.end_with?('.cff')
87
88
  puts "Downloading #{path} from #{@details['repo_metadata']['full_name']}..."
88
89
  branch = @details['repo_metadata']['default_branch'] || 'master'
89
90
 
@@ -97,8 +98,12 @@ module Pbom
97
98
  end
98
99
 
99
100
  def render_citation_cff
100
- cff = CFF::Index.read(@citation)
101
- cff.to_bibtex
101
+ begin
102
+ cff = CFF::Index.read(@citation)
103
+ cff.to_bibtex
104
+ rescue StandardError
105
+ nil
106
+ end
102
107
  end
103
108
 
104
109
  def generate_bib_entry
data/lib/pbom/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pbom
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.2"
5
5
  end
data/lib/pbom.rb CHANGED
@@ -22,7 +22,7 @@ module Pbom
22
22
  load_purls
23
23
 
24
24
  generate_references_bib
25
-
25
+ puts ""
26
26
  puts "PBOM generated at #{output_path}"
27
27
  puts " - #{packages.count} unique packages found"
28
28
  puts " - sbom.json"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pbom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Nesbitt
@@ -66,7 +66,8 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- description: Generate a package bill of materials from a project
69
+ description: 'Paper Bill of Materials (PBOM) - Generate a paper bill of materials
70
+ from the software of a paper '
70
71
  email:
71
72
  - andrewnez@gmail.com
72
73
  executables:
@@ -109,5 +110,6 @@ requirements: []
109
110
  rubygems_version: 3.5.16
110
111
  signing_key:
111
112
  specification_version: 4
112
- summary: Generate a package bill of materials from a project
113
+ summary: Paper Bill of Materials (PBOM) - Generate a paper bill of materials from
114
+ the software of a paper
113
115
  test_files: []