pbom 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pbom/package.rb +7 -2
- data/lib/pbom/version.rb +1 -1
- data/lib/pbom.rb +1 -1
- metadata +3 -3
- /data/exe/{cli → pbom} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0021803b241fae23c10972fd43cb1a786f3c42d47903e21d7b0140551578eef2'
|
4
|
+
data.tar.gz: a02f1b3893afe059b648c07782b5d2c94445dd526b1b4b94d221027d15926248
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 634f7b5e5675121cedd21b6e60d6196934a0f75b2c6e71eca25219fe58c7c03f9945b05f64dc696394025bfd7f59f7b5b78277c8e504f1f183c0c9133caefc0d
|
7
|
+
data.tar.gz: 98067ce7233963751298545a26de713c76bc2955f06c2d3427778514e3738b3e1a5816a1571094661fc7f78baa2c286bd2a01c73cb409d730241bda9aef274b7
|
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
|
-
|
101
|
-
|
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
data/lib/pbom.rb
CHANGED
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.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Nesbitt
|
@@ -71,7 +71,7 @@ description: 'Paper Bill of Materials (PBOM) - Generate a paper bill of material
|
|
71
71
|
email:
|
72
72
|
- andrewnez@gmail.com
|
73
73
|
executables:
|
74
|
-
-
|
74
|
+
- pbom
|
75
75
|
extensions: []
|
76
76
|
extra_rdoc_files: []
|
77
77
|
files:
|
@@ -80,7 +80,7 @@ files:
|
|
80
80
|
- CODE_OF_CONDUCT.md
|
81
81
|
- LICENSE.txt
|
82
82
|
- Rakefile
|
83
|
-
- exe/
|
83
|
+
- exe/pbom
|
84
84
|
- lib/pbom.rb
|
85
85
|
- lib/pbom/package.rb
|
86
86
|
- lib/pbom/version.rb
|
/data/exe/{cli → pbom}
RENAMED
File without changes
|