html-pipeline-gitlab 0.1.7 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/CHANGELOG +3 -0
- data/html-pipeline-gitlab.gemspec +1 -1
- data/lib/html/pipeline/gitlab/gitlab_emoji_filter.rb +2 -11
- data/lib/html/pipeline/gitlab/version.rb +1 -1
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dea87741e247faf0c5065537f6d31cf5186afd68
|
4
|
+
data.tar.gz: 6af8c62ca27c2b502138ee3e287f537a11200cce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36a1ed216c692f9cbf94241b0acf08b71ceabb5e5b738fe63234141cb71c0c84de76aa5132f2add555ce4a2154c2870c7bde5aecd7ebb5540817b0c153effcf7
|
7
|
+
data.tar.gz: e2f91086dfaac0f148c10896a55b1bb22d97658e8d4a38f35f4e43f2c7e67359a18916516406264b3c1f5a47188cee833857e53fc48d28bacbeadf55c6d736f2
|
data/.gitignore
CHANGED
data/CHANGELOG
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_development_dependency 'pry', '~> 0.9'
|
24
24
|
|
25
25
|
spec.add_runtime_dependency 'html-pipeline', '~> 1.11.0'
|
26
|
-
spec.add_runtime_dependency 'gitlab_emoji', '~> 0.
|
26
|
+
spec.add_runtime_dependency 'gitlab_emoji', '~> 0.1'
|
27
27
|
spec.add_runtime_dependency 'sanitize', '~> 2.1'
|
28
28
|
spec.add_runtime_dependency 'actionpack', '~> 4'
|
29
29
|
spec.add_runtime_dependency 'mime-types'
|
@@ -61,24 +61,15 @@ module HTML
|
|
61
61
|
|
62
62
|
# Build a regexp that matches all valid :emoji: names.
|
63
63
|
def self.emoji_pattern
|
64
|
-
@emoji_pattern ||= /:(#{
|
64
|
+
@emoji_pattern ||= /:(#{Emoji.emojis_names.map { |name| Regexp.escape(name) }.join('|')}):/
|
65
65
|
end
|
66
66
|
|
67
67
|
def emoji_pattern
|
68
68
|
self.class.emoji_pattern
|
69
69
|
end
|
70
70
|
|
71
|
-
def self.emoji_names
|
72
|
-
Emoji.names
|
73
|
-
end
|
74
|
-
|
75
71
|
def emoji_filename(name)
|
76
|
-
#
|
77
|
-
if name == "+1"
|
78
|
-
"+1.png"
|
79
|
-
else
|
80
|
-
"#{::CGI.escape(name)}.png"
|
81
|
-
end
|
72
|
+
"#{Emoji.emoji_filename(name)}.png"
|
82
73
|
end
|
83
74
|
end
|
84
75
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: html-pipeline-gitlab
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Schilling
|
@@ -73,14 +73,14 @@ dependencies:
|
|
73
73
|
requirements:
|
74
74
|
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: 0.
|
76
|
+
version: '0.1'
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: 0.
|
83
|
+
version: '0.1'
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: sanitize
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
164
|
version: '0'
|
165
165
|
requirements: []
|
166
166
|
rubyforge_project:
|
167
|
-
rubygems_version: 2.
|
167
|
+
rubygems_version: 2.4.5
|
168
168
|
signing_key:
|
169
169
|
specification_version: 4
|
170
170
|
summary: Extension filters for html-pipeline used by GitLab
|
@@ -172,4 +172,3 @@ test_files:
|
|
172
172
|
- test/html/pipeline/gitlab_email_image_filter_test.rb
|
173
173
|
- test/html/pipeline/gitlab_gemoji_filter_test.rb
|
174
174
|
- test/test_helper.rb
|
175
|
-
has_rdoc:
|