zendesk-rinku 1.7.3 → 1.8.0
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 +5 -5
- data/README.markdown +22 -5
- data/Rakefile +3 -2
- data/lib/rinku.rb +0 -1
- data/rinku.gemspec +4 -3
- metadata +8 -37
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 54a58fb261c13b831efbcf7b02fc42867eef6cb867a45e8859e111a00cc2f7b8
|
4
|
+
data.tar.gz: ff337afc9ba30a1112a82c35bca2da168b592776ba285d3a0b16c0014a107cde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd34c05b73e2c7f058b145d4bf50a1366e35cb115762c7df2fc38330b19fbc1bc74b2a224c54dbb7dfe9e3d7b92556fd77d0f88d3ef329978364942d784ad1e1
|
7
|
+
data.tar.gz: 66d41807109f60e2ffee7bf03f5557b9284b95529e12c4ec9f33fac5986345d690af296cd4dc3fc48bcb2b9ac5661ac2866b4b8cbcc29ac952205d7d38c22116
|
data/README.markdown
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
-
#
|
2
|
-
|
1
|
+
# Rinku
|
2
|
+
|
3
|
+
Due to the absence of external maintenance, this is now a fully Zendesk owned/maintained gem.
|
3
4
|
|
4
5
|
Rinku does linking
|
5
6
|
==================
|
@@ -10,7 +11,7 @@ just like the Ruby on Rails `auto_link` method -- but it's about 20 times faster
|
|
10
11
|
because it's written in C, and it's about 20 times smarter when linking,
|
11
12
|
because it does actual parsing instead of RegEx replacements.
|
12
13
|
|
13
|
-
Rinku is a Ruby Gem
|
14
|
+
Rinku is a Ruby Gem
|
14
15
|
-------------------
|
15
16
|
|
16
17
|
Rinku is available as a Ruby gem:
|
@@ -56,8 +57,8 @@ the 'http://' protocol.
|
|
56
57
|
HTML, Rinku is smart enough to skip the links that are already enclosed in `<a>`
|
57
58
|
tags.`
|
58
59
|
|
59
|
-
- `mode` is a symbol, either `:all`, `:urls` or `:email_addresses`,
|
60
|
-
which specifies which kind of links will be auto-linked.
|
60
|
+
- `mode` is a symbol, either `:all`, `:urls` or `:email_addresses`,
|
61
|
+
which specifies which kind of links will be auto-linked.
|
61
62
|
|
62
63
|
- `link_attr` is a string containing the link attributes for each link that
|
63
64
|
will be generated. These attributes are not sanitized and will be include as-is
|
@@ -99,6 +100,22 @@ require 'rails_rinku'
|
|
99
100
|
The `rails_rinku` package monkeypatches Rails with an `auto_link` method that
|
100
101
|
mimics 100% the original one, parameter per parameter. It's just faster.
|
101
102
|
|
103
|
+
Releasing a new version
|
104
|
+
----------------------------------------------------
|
105
|
+
A new version is published to RubyGems.org every time a change to `version.rb` is pushed to the `main` branch.
|
106
|
+
In short, follow these steps:
|
107
|
+
1. Update `version.rb`,
|
108
|
+
2. run `bundle lock` to update `Gemfile.lock`,
|
109
|
+
3. merge this change into `main`, and
|
110
|
+
4. look at [the action](https://github.com/zendesk/rinku/actions/workflows/publish.yml) for output.
|
111
|
+
|
112
|
+
To create a pre-release from a non-main branch:
|
113
|
+
1. change the version in `version.rb` to something like `1.2.0.pre.1` or `2.0.0.beta.2`,
|
114
|
+
2. push this change to your branch,
|
115
|
+
3. go to [Actions → “Publish to RubyGems.org” on GitHub](https://github.com/zendesk/rinku/actions/workflows/publish.yml),
|
116
|
+
4. click the “Run workflow” button,
|
117
|
+
5. pick your branch from a dropdown.
|
118
|
+
|
102
119
|
Rinku has an awesome license
|
103
120
|
----------------------------
|
104
121
|
|
data/Rakefile
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'date'
|
2
2
|
require 'rake/clean'
|
3
3
|
require 'rake/extensiontask'
|
4
|
+
require 'bundler/setup'
|
4
5
|
require 'bundler/gem_tasks'
|
5
6
|
require 'digest/md5'
|
6
7
|
|
@@ -19,14 +20,14 @@ Rake::ExtensionTask.new('rinku')
|
|
19
20
|
require 'rake/testtask'
|
20
21
|
Rake::TestTask.new('test') do |t|
|
21
22
|
t.test_files = FileList['test/*_test.rb']
|
22
|
-
t.ruby_opts += ['-rubygems'] if defined? Gem
|
23
|
+
t.ruby_opts += ['-r rubygems'] if defined? Gem
|
23
24
|
end
|
24
25
|
task 'test' => [:compile]
|
25
26
|
|
26
27
|
# PACKAGING =================================================================
|
27
28
|
|
28
29
|
require 'rubygems'
|
29
|
-
$spec =
|
30
|
+
$spec = Bundler::GemHelper.gemspec
|
30
31
|
|
31
32
|
def package(ext='')
|
32
33
|
"pkg/zendesk-rinku-#{$spec.version}" + ext
|
data/lib/rinku.rb
CHANGED
data/rinku.gemspec
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
+
require_relative "lib/version"
|
2
|
+
|
1
3
|
Gem::Specification.new do |s|
|
2
4
|
s.name = 'zendesk-rinku'
|
3
|
-
s.version =
|
5
|
+
s.version = Rinku::VERSION
|
4
6
|
s.summary = "Mostly autolinking"
|
5
7
|
s.description = <<-EOF
|
6
8
|
A fast and very smart autolinking library that
|
@@ -28,6 +30,5 @@ Gem::Specification.new do |s|
|
|
28
30
|
rinku.gemspec
|
29
31
|
]
|
30
32
|
s.extensions = ["ext/rinku/extconf.rb"]
|
31
|
-
s.
|
32
|
-
s.add_development_dependency "rake-compiler"
|
33
|
+
s.required_ruby_version = ">= 2.7"
|
33
34
|
end
|
metadata
CHANGED
@@ -1,45 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zendesk-rinku
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shajith Chacko
|
8
8
|
- Jonathan Cheatham
|
9
9
|
- Matt Barker
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
14
|
-
dependencies:
|
15
|
-
- !ruby/object:Gem::Dependency
|
16
|
-
name: rake
|
17
|
-
requirement: !ruby/object:Gem::Requirement
|
18
|
-
requirements:
|
19
|
-
- - ">="
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '0'
|
22
|
-
type: :development
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
requirements:
|
26
|
-
- - ">="
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
version: '0'
|
29
|
-
- !ruby/object:Gem::Dependency
|
30
|
-
name: rake-compiler
|
31
|
-
requirement: !ruby/object:Gem::Requirement
|
32
|
-
requirements:
|
33
|
-
- - ">="
|
34
|
-
- !ruby/object:Gem::Version
|
35
|
-
version: '0'
|
36
|
-
type: :development
|
37
|
-
prerelease: false
|
38
|
-
version_requirements: !ruby/object:Gem::Requirement
|
39
|
-
requirements:
|
40
|
-
- - ">="
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: '0'
|
13
|
+
date: 2025-05-27 00:00:00.000000000 Z
|
14
|
+
dependencies: []
|
43
15
|
description: |2
|
44
16
|
A fast and very smart autolinking library that
|
45
17
|
acts as a drop-in replacement for Rails `auto_link`
|
@@ -68,7 +40,7 @@ homepage: https://github.com/zendesk/rinku
|
|
68
40
|
licenses:
|
69
41
|
- ISC
|
70
42
|
metadata: {}
|
71
|
-
post_install_message:
|
43
|
+
post_install_message:
|
72
44
|
rdoc_options: []
|
73
45
|
require_paths:
|
74
46
|
- lib
|
@@ -76,16 +48,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
76
48
|
requirements:
|
77
49
|
- - ">="
|
78
50
|
- !ruby/object:Gem::Version
|
79
|
-
version: '
|
51
|
+
version: '2.7'
|
80
52
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
53
|
requirements:
|
82
54
|
- - ">="
|
83
55
|
- !ruby/object:Gem::Version
|
84
56
|
version: '0'
|
85
57
|
requirements: []
|
86
|
-
|
87
|
-
|
88
|
-
signing_key:
|
58
|
+
rubygems_version: 3.1.6
|
59
|
+
signing_key:
|
89
60
|
specification_version: 4
|
90
61
|
summary: Mostly autolinking
|
91
62
|
test_files: []
|