jekyll-turbolinks 0.0.4 → 0.0.6

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: de4c9cdfed3874dafaf0264020a6bcabbd5d77a646366a4dacd248eb775623ea
4
- data.tar.gz: 101a1f00d176369a489e79abdd114416c051927cc138142c228bcd7cc414fdde
3
+ metadata.gz: 51a8c6b046dce3f086a0a220563e7548221bc6d36d1d6e15daac2884f285a1af
4
+ data.tar.gz: 68e2724aa8aace5122ccab5007b8bb503f92f8159d89708f13c3247424c4a89b
5
5
  SHA512:
6
- metadata.gz: 59236788d6bd6a2aab4d19697fe7e6add3c328ad76eb2ab197cc7be93703c9bddfbe1e7ee75ed830700c7a9d7263b79ae3eb3c481ba1e3eec66b903e001bc5e0
7
- data.tar.gz: bfe06296739cbc007be50b778b37e7882273b47f445f8739575e8c7b06d673a3cfb08aa35469375ebea2cf885d05f607a14cd2478b6a9ada4999b7f32c4268e2
6
+ metadata.gz: c6e72011333f6c39902f82ae90b6a473fb19723837969265c163e518d1d1a542f4925a405061d8bfba7871d337865938d213576cb2b092f641368b1242fbcfde
7
+ data.tar.gz: bedaba3149bae647263533d89e9999b09319be6f7660ca295c28568e79f467d7f03df9e6f603faf91372477f22f0cad7d89cf38c988886b0b87a5eaf447d1ded
data/CHANGELOG.md ADDED
@@ -0,0 +1 @@
1
+ # Changelog
data/README.md CHANGED
@@ -45,6 +45,13 @@ turbolinks: false
45
45
 
46
46
  That's it! Turbolinks will be loaded and enabled by default.
47
47
 
48
+ Keep in mind that if you're not using [relative urls](https://0xacab.org/sutty/jekyll/jekyll-relative-urls) you must set the `turbolinks` path to an absolute path, like so:
49
+
50
+ ```yaml
51
+ turbolinks:
52
+ url: /turbolinks.js
53
+ ```
54
+
48
55
  ### Manual
49
56
 
50
57
  To add it manually call the `turbolinks` Liquid tag to insert the actual
@@ -51,12 +51,12 @@ Jekyll::Hooks.register :site, :post_render do |site|
51
51
  # Process each file and add the script
52
52
  site.each_site_file do |file|
53
53
  next unless file.respond_to? :output
54
- next unless file.data.fetch('turbolinks', true)
55
54
  next if file.output.nil?
55
+ next unless file.data.fetch('turbolinks', true)
56
56
 
57
57
  file.output
58
- .gsub! %r{</head>},
59
- "<script defer src=\"#{config['url']}\"></script></head>"
58
+ .sub! %r{</head>},
59
+ "<script defer src=\"#{config['url']}\"></script></head>"
60
60
  end
61
61
  end
62
62
 
@@ -68,5 +68,5 @@ Jekyll::Hooks.register :site, :post_write do |site|
68
68
 
69
69
  next unless config['enabled']
70
70
 
71
- FileUtils.rm Jekyll::Turbolinks.dest(site, config)
71
+ FileUtils.rm_f Jekyll::Turbolinks.dest(site, config)
72
72
  end
metadata CHANGED
@@ -1,35 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-turbolinks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
- - Sutty
8
- autorequire:
7
+ - f
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-27 00:00:00.000000000 Z
11
+ date: 2023-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '3.8'
20
- - - "<"
17
+ - - "~>"
21
18
  - !ruby/object:Gem::Version
22
- version: '4.1'
19
+ version: '4'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: '3.8'
30
- - - "<"
24
+ - - "~>"
31
25
  - !ruby/object:Gem::Version
32
- version: '4.1'
26
+ version: '4'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: turbolinks-source
35
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,72 +38,54 @@ dependencies:
44
38
  - - "~>"
45
39
  - !ruby/object:Gem::Version
46
40
  version: '5'
47
- - !ruby/object:Gem::Dependency
48
- name: rubocop
49
- requirement: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - "~>"
52
- - !ruby/object:Gem::Version
53
- version: '0.68'
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - "~>"
59
- - !ruby/object:Gem::Version
60
- version: '0.68'
61
- - !ruby/object:Gem::Dependency
62
- name: rubocop-performance
63
- requirement: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: '0'
68
- type: :development
69
- prerelease: false
70
- version_requirements: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - "~>"
73
- - !ruby/object:Gem::Version
74
- version: '0'
75
- description: 'Hooks turbolinks into a Jekyll site for faster navigation
76
-
77
- '
41
+ description: Hooks turbolinks into a Jekyll site for faster navigation
78
42
  email:
79
- - hi@sutty.nl
43
+ - f@sutty.nl
80
44
  executables: []
81
45
  extensions: []
82
- extra_rdoc_files: []
46
+ extra_rdoc_files:
47
+ - README.md
48
+ - CHANGELOG.md
49
+ - LICENSE
83
50
  files:
84
- - ".gitignore"
85
- - Gemfile
51
+ - CHANGELOG.md
86
52
  - LICENSE
87
53
  - README.md
88
- - jekyll-turbolinks.gemspec
89
54
  - lib/jekyll-turbolinks.rb
90
55
  - lib/jekyll/tags/turbolinks.rb
91
56
  homepage: https://0xacab.org/sutty/jekyll/jekyll-turbolinks
92
57
  licenses:
93
- - GPL-3.0+
94
- metadata: {}
95
- post_install_message:
96
- rdoc_options: []
58
+ - AGPL-3.0
59
+ metadata:
60
+ bug_tracker_uri: https://0xacab.org/sutty/jekyll/jekyll-turbolinks/issues
61
+ homepage_uri: https://0xacab.org/sutty/jekyll/jekyll-turbolinks
62
+ source_code_uri: https://0xacab.org/sutty/jekyll/jekyll-turbolinks
63
+ changelog_uri: https://0xacab.org/sutty/jekyll/jekyll-turbolinks/-/blob/master/CHANGELOG.md
64
+ documentation_uri: https://rubydoc.info/gems/jekyll-turbolinks
65
+ post_install_message:
66
+ rdoc_options:
67
+ - "--title"
68
+ - jekyll-turbolinks - A Jekyll plugin to use turbolinks
69
+ - "--main"
70
+ - README.md
71
+ - "--line-numbers"
72
+ - "--inline-source"
73
+ - "--quiet"
97
74
  require_paths:
98
75
  - lib
99
76
  required_ruby_version: !ruby/object:Gem::Requirement
100
77
  requirements:
101
78
  - - ">="
102
79
  - !ruby/object:Gem::Version
103
- version: '0'
80
+ version: 2.7.0
104
81
  required_rubygems_version: !ruby/object:Gem::Requirement
105
82
  requirements:
106
83
  - - ">="
107
84
  - !ruby/object:Gem::Version
108
85
  version: '0'
109
86
  requirements: []
110
- rubyforge_project:
111
- rubygems_version: 2.7.6.2
112
- signing_key:
87
+ rubygems_version: 3.3.26
88
+ signing_key:
113
89
  specification_version: 4
114
90
  summary: A Jekyll plugin to use turbolinks
115
91
  test_files: []
data/.gitignore DELETED
@@ -1,2 +0,0 @@
1
- *.gem
2
- Gemfile.lock
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
- gemspec
@@ -1,27 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- lib = File.expand_path('lib', __dir__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
-
6
- Gem::Specification.new do |gem|
7
- gem.name = 'jekyll-turbolinks'
8
- gem.version = '0.0.4'
9
- gem.authors = ['Sutty']
10
- gem.email = ['hi@sutty.nl']
11
- gem.description = <<~DESC
12
- Hooks turbolinks into a Jekyll site for faster navigation
13
- DESC
14
- gem.summary = 'A Jekyll plugin to use turbolinks'
15
- gem.homepage = 'https://0xacab.org/sutty/jekyll/jekyll-turbolinks'
16
- gem.license = 'GPL-3.0+'
17
-
18
- gem.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
19
- gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
20
- gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
21
- gem.require_paths = ['lib']
22
-
23
- gem.add_runtime_dependency 'jekyll', '>= 3.8', '< 4.1'
24
- gem.add_runtime_dependency 'turbolinks-source', '~> 5'
25
- gem.add_development_dependency('rubocop', '~> 0.68')
26
- gem.add_development_dependency('rubocop-performance', '~> 0')
27
- end