jekyll-hostname 1.0.8 → 1.0.9

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: 9e5767ed1e95df4cdd49b85dd3a03f6a6275ba10aadad187794cd5539d81d7dd
4
- data.tar.gz: 2c2c7b2d261a8e1c5c5e02dde1c661eafd85a39210640d0f8a6a8dea173f683c
3
+ metadata.gz: 7ba07cc9c2105aa7968e5360f851f0807428fbb69a22649abb56e58805b3ebbe
4
+ data.tar.gz: 848a1efdca14c7c9624524de3ab050ecb51ae599754ed31ddc1ca4aa65aed000
5
5
  SHA512:
6
- metadata.gz: da948dbfbee8fa41916fcfb3ca3827cbe4fe64389129ef455b12a6e155e23a59ccd2ddf9e015ea803cb39e5b0818d68a500a7ff0a5db86068824bf6a086fb44c
7
- data.tar.gz: f31c9666005ad7c8b1dfb5be774a01539ee0ba7bef371c536b34ff8e84de2742aab1595a2b08e0d7b64e2240eb09ebc09fd0da73c5a535532325d39eb56da0ba
6
+ metadata.gz: 7c9f3c06ecc8c44feb9f7b917ccb0fdbd83bf8f26ff7bbefc57ac57bdd3be90bc33a6764c9e6729fbcacbd2d4ca0dc57a7381f81acfa83c251f60ff07a03ed0a
7
+ data.tar.gz: 9f1fd168bf81f94a537451b2ded3ea52e6a8d0f4f709074be69d838f53394e1afaf4e5aa0d1da51dc91fbe9b9ad8305e6dee51c2dc6ef9c5d8e16a13b559cb69
data/.gitignore CHANGED
@@ -11,4 +11,4 @@ Gemfile.lock
11
11
  /tmp/
12
12
 
13
13
  # Ignore all files with the .gem extension
14
- *.gem
14
+ *.gem
data/README.md CHANGED
@@ -47,3 +47,27 @@ The `hostname` filter extracts the root domain from the given url string(here `s
47
47
  ## License
48
48
 
49
49
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
50
+
51
+ ```
52
+ MIT License
53
+
54
+ Copyright (c) 2021 Gourav Khunger
55
+
56
+ Permission is hereby granted, free of charge, to any person obtaining a copy
57
+ of this software and associated documentation files (the "Software"), to deal
58
+ in the Software without restriction, including without limitation the rights
59
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
60
+ copies of the Software, and to permit persons to whom the Software is
61
+ furnished to do so, subject to the following conditions:
62
+
63
+ The above copyright notice and this permission notice shall be included in all
64
+ copies or substantial portions of the Software.
65
+
66
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
67
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
68
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
69
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
70
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
71
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
72
+ SOFTWARE.
73
+ ```
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ require "rake/testtask"
2
+
3
+ Rake::TestTask.new do |t|
4
+ t.pattern = "spec/*_spec.rb"
5
+ end
6
+
7
+ desc "Run tests"
8
+ task :default => [:test]
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "jekyll-hostname"
3
- spec.version = "1.0.8"
3
+ spec.version = "1.0.9"
4
4
  spec.authors = ["Gourav Khunger"]
5
5
  spec.email = ["gouravkhunger18@gmail.com"]
6
6
 
@@ -9,8 +9,9 @@ Gem::Specification.new do |spec|
9
9
  spec.license = "MIT"
10
10
 
11
11
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r!^(test|spec|features)/!) }
12
- spec.require_paths = ['lib']
12
+ spec.require_paths = ["lib"]
13
13
  spec.required_ruby_version = ">= 2.5.0"
14
14
 
15
- spec.add_dependency "jekyll"
15
+ spec.add_runtime_dependency "jekyll", ">= 3.0.0"
16
+ spec.add_development_dependency "minitest", "~> 5.14"
16
17
  end
@@ -1,10 +1,13 @@
1
- require 'uri'
1
+ require "uri"
2
+ require "jekyll"
2
3
 
3
4
  module Jekyll
4
5
  module JekyllHostname
6
+
5
7
  def hostname(input)
6
8
  URI.parse(input).host
7
9
  end
10
+
8
11
  end
9
12
  end
10
13
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-hostname
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gourav Khunger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-26 00:00:00.000000000 Z
11
+ date: 2022-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -16,14 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 3.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 3.0.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: minitest
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '5.14'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '5.14'
27
41
  description:
28
42
  email:
29
43
  - gouravkhunger18@gmail.com
@@ -35,6 +49,7 @@ files:
35
49
  - Gemfile
36
50
  - LICENSE.md
37
51
  - README.md
52
+ - Rakefile
38
53
  - jekyll-hostname.gemspec
39
54
  - lib/jekyll-hostname.rb
40
55
  homepage: https://github.com/gouravkhunger/jekyll-hostname
@@ -56,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
56
71
  - !ruby/object:Gem::Version
57
72
  version: '0'
58
73
  requirements: []
59
- rubygems_version: 3.2.32
74
+ rubygems_version: 3.3.11
60
75
  signing_key:
61
76
  specification_version: 4
62
77
  summary: A Jekyll plugin that provides a liquid filter to extract the hostname from