jekyll-spdx_licenses 0.4.1 → 0.4.2

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: cd69a8133fd339273749425eac8ca17833ffbcc5170d5236091f469efbcf1bf0
4
- data.tar.gz: 657bf1141a78efb969f22038239ebae45401da8412fe461173e9be3edad10db0
3
+ metadata.gz: 675549916a04bb6a066ef09f34cd8364e579ec4e386d13970c356433fa23183c
4
+ data.tar.gz: 9d4173e770520668a3533ff4af7d2ea94ccc7f6e10d3a2cdde223573739f84f9
5
5
  SHA512:
6
- metadata.gz: 1029bb5fef5091ad00af3241ad98ac0de086b1285b4b65509ab771d344cd7ae233caf696e75a80dcef2ae7577f84480a265d66a82f32a31ea0a802389ac78491
7
- data.tar.gz: c0c570f4a2d1248ae9f09dc1537d18254bbf6b853b93ec9569ed231e08bd0cbf6f44394292f191833969ddf78dc4f68c3a5a0b2a2b276a472827c1d27dd5de97
6
+ metadata.gz: 03abc2e8d878846d382c4a971a3170f525bde1fa68a7ae9d647d4c69a9774eb2fe12d3c28867a24eac8cddecc10b075ad0e5e28112df3d638a403da3457e90b0
7
+ data.tar.gz: 93add10f1c1e33f1733a253d08cc850deed56fe0eeebd32f4f3ad1e1043103b150f3fdef20db6ae9cf82db6d20e53706ae4d42d9e3b651501c5860769557b4d6
@@ -1,6 +1,8 @@
1
+ require 'spdx-licenses'
2
+
1
3
  module Jekyll
2
4
  module SpdxLicenses
3
- class SpdxFilter
5
+ module SpdxFilter
4
6
  def spdx_link_id(license_id)
5
7
  license = ::SpdxLicenses.lookup(license_id)
6
8
  raise 'License ID not valid according to SPDX licenses' unless license
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module SpdxLicenses
3
- VERSION = "0.4.1"
3
+ VERSION = "0.4.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-spdx_licenses
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Tanna
@@ -100,9 +100,6 @@ files:
100
100
  - lib/jekyll-spdx_licenses.rb
101
101
  - lib/jekyll/spdx_licenses.rb
102
102
  - lib/jekyll/spdx_licenses/spdx_filter.rb
103
- - lib/jekyll/spdx_licenses/spdx_link_id_tag.rb
104
- - lib/jekyll/spdx_licenses/spdx_link_tag.rb
105
- - lib/jekyll/spdx_licenses/spdx_name_tag.rb
106
103
  - lib/jekyll/spdx_licenses/version.rb
107
104
  homepage: https://gitlab.com/jamietanna/jekyll-spdx_licenses
108
105
  licenses: []
@@ -1,18 +0,0 @@
1
- require 'liquid'
2
- require 'spdx-licenses'
3
-
4
- module Jekyll
5
- module SpdxLicenses
6
- class SpdxLinkIdTag < Liquid::Tag
7
- def initialize(tag_name, license_id, tokens)
8
- super
9
- raise 'License ID not valid according to SPDX licenses' unless ::SpdxLicenses.exist?(license_id)
10
- @license = ::SpdxLicenses.lookup(license_id)
11
- end
12
-
13
- def render(content)
14
- "<a href=\"https://spdx.org/licenses/#{@license.id}.html\">#{@license.id}</a>"
15
- end
16
- end
17
- end
18
- end
@@ -1,18 +0,0 @@
1
- require 'liquid'
2
- require 'spdx-licenses'
3
-
4
- module Jekyll
5
- module SpdxLicenses
6
- class SpdxLinkTag < Liquid::Tag
7
- def initialize(tag_name, license_id, tokens)
8
- super
9
- raise 'License ID not valid according to SPDX licenses' unless ::SpdxLicenses.exist?(license_id)
10
- @license = ::SpdxLicenses.lookup(license_id)
11
- end
12
-
13
- def render(content)
14
- "<a href=\"https://spdx.org/licenses/#{@license.id}.html\">#{@license.name}</a>"
15
- end
16
- end
17
- end
18
- end
@@ -1,18 +0,0 @@
1
- require 'liquid'
2
- require 'spdx-licenses'
3
-
4
- module Jekyll
5
- module SpdxLicenses
6
- class SpdxNameTag < Liquid::Tag
7
- def initialize(tag_name, license_id, tokens)
8
- super
9
- raise 'License ID not valid according to SPDX licenses' unless ::SpdxLicenses.exist?(license_id)
10
- @license = ::SpdxLicenses.lookup(license_id)
11
- end
12
-
13
- def render(content)
14
- @license.name
15
- end
16
- end
17
- end
18
- end