slackdown 0.2.2 → 0.2.3

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
- SHA1:
3
- metadata.gz: 58b0f93326ecf2d9687914d78db43783a38a749b
4
- data.tar.gz: a9894bd1a07fcdcf9967d72dbd54a6808eb25a03
2
+ SHA256:
3
+ metadata.gz: 29795eefdbe543dc993a74a411ef4d04b8736847e16e0145ce7b735ad3074be4
4
+ data.tar.gz: '03008d5e16d894ce2d004faf2bd2131a084b0b24058449b38346067ffe061680'
5
5
  SHA512:
6
- metadata.gz: f4ad6dfd608f7b323edeafb51f2491db511552a166f4fe09f909c2d7ddb0e468964a06e4076d284f47107872bc4b26049cfcb7ef4720ade87bfc0afde456881f
7
- data.tar.gz: 2552f0053c1edf94b8b1817d9c1859991e5f7d1d6a62c9f03810fef7388f818bc8241ac0dcc20210a343f15df22e486e8f19c1d6cdb39b47677c35c775acc9b3
6
+ metadata.gz: 8760c33e1bae999aab14d796bf7e4c1050235fc80a748a34eeeabfa5847eb926ab030c298427e07be5ab2006fe7b3519dd5e3667861a8c6df17629a12ceacd4a
7
+ data.tar.gz: 1bf54414d7762e5ccb3bb3ef3f67406f7fb756d754e3187320613c3e4dacd87655f1a7a2af674d5ba221728f77832c0aca92c633cfde43a88615a61e28848bf8
@@ -70,7 +70,9 @@ module Kramdown
70
70
  end
71
71
 
72
72
  def convert_a(el)
73
- el.attr["href"]
73
+ content = inner(el)
74
+ return el.attr["href"] if content.nil? || content == ""
75
+ "<#{el.attr["href"]}|#{content}>"
74
76
  end
75
77
  alias :convert_html_a :convert_a
76
78
 
data/lib/slackdown.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require "slackdown/version"
2
2
  require "kramdown"
3
3
  require "kramdown/converter/slack"
4
+ require "kramdown-parser-gfm"
4
5
 
5
6
  module Slackdown
6
7
 
@@ -1,3 +1,3 @@
1
1
  module Slackdown
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
data/slackdown.gemspec CHANGED
@@ -19,9 +19,10 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_dependency "kramdown", "~> 1.13.2"
22
+ spec.add_dependency "kramdown", "~> 2.0.0"
23
+ spec.add_dependency "kramdown-parser-gfm", "~> 1.0.1"
23
24
 
24
- spec.add_development_dependency "bundler", "~> 1.11"
25
+ spec.add_development_dependency "bundler"
25
26
  spec.add_development_dependency "rake", "~> 10.0"
26
27
  spec.add_development_dependency "minitest", "~> 5.0"
27
28
  spec.add_development_dependency "minitest-reporters"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slackdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob Lail
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-08 00:00:00.000000000 Z
11
+ date: 2019-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kramdown
@@ -16,28 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.13.2
19
+ version: 2.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: 1.13.2
26
+ version: 2.0.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: bundler
28
+ name: kramdown-parser-gfm
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.11'
34
- type: :development
33
+ version: 1.0.1
34
+ type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.11'
40
+ version: 1.0.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rake
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -162,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
176
  version: '0'
163
177
  requirements: []
164
178
  rubyforge_project:
165
- rubygems_version: 2.5.1
179
+ rubygems_version: 2.7.6
166
180
  signing_key:
167
181
  specification_version: 4
168
182
  summary: Converts Markdown text to Slack's simplified markdown