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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1a04526910d21f11a1ed3fb6454963fa945d735b
4
- data.tar.gz: aa1094422047dd9abc6f21f256db333d5bd822b2
3
+ metadata.gz: dea87741e247faf0c5065537f6d31cf5186afd68
4
+ data.tar.gz: 6af8c62ca27c2b502138ee3e287f537a11200cce
5
5
  SHA512:
6
- metadata.gz: 4534b8f0a609dc402022277731c89c79eb5f6092c1ef262539872db562691c32d01cde63f9d1d90af2d2aaa5e3ad838859b047f96f794e81f68f21dfca36d89b
7
- data.tar.gz: 7fff5f62c408bb0fe8a39961ee60800642d25c9652c274bf66148e0a941f334d105566b816ec798ffe2e37a29af67a813194bfd6cdd75a8fc865e5c8b95098e2
6
+ metadata.gz: 36a1ed216c692f9cbf94241b0acf08b71ceabb5e5b738fe63234141cb71c0c84de76aa5132f2add555ce4a2154c2870c7bde5aecd7ebb5540817b0c153effcf7
7
+ data.tar.gz: e2f91086dfaac0f148c10896a55b1bb22d97658e8d4a38f35f4e43f2c7e67359a18916516406264b3c1f5a47188cee833857e53fc48d28bacbeadf55c6d736f2
data/.gitignore CHANGED
@@ -12,4 +12,5 @@
12
12
  *.o
13
13
  *.a
14
14
  mkmf.log
15
- vendor/bundle/*
15
+ vendor/bundle/*
16
+ *.gem
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ v 0.2.0
2
+ - Use new gitlab_emoji with Openemoji inside
3
+
1
4
  v 0.1.2
2
5
  - Use sanitize 2.1 because GitLab has a dependency to it
3
6
 
@@ -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.0.1'
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 ||= /:(#{emoji_names.map { |name| Regexp.escape(name) }.join('|')}):/
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
- # CGI.escape makes + into %20, skip that in this case
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
@@ -1,7 +1,7 @@
1
1
  module Html
2
2
  module Pipeline
3
3
  module Gitlab
4
- VERSION = '0.1.7'
4
+ VERSION = '0.2.0'
5
5
  end
6
6
  end
7
7
  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.1.7
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.0.1
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.0.1
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.2.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: