asciidoctor-plantuml 0.0.13 → 0.0.14

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: de8d640d579d7d3c4171db4f02210fbe508868d8c70de10d4ce1a622bc8b14b1
4
- data.tar.gz: a86d4afa322bf30c3f074c7c53e38dab0dcabf52df340ba685bae463143aa41f
3
+ metadata.gz: '0758c3c21b6b684c8d1659332edbb2dd21e2733973cf59e8c4317754f1697505'
4
+ data.tar.gz: 5ea7379ddaf79330b11930a719b03b97df72580da00a2b291121378b5a785503
5
5
  SHA512:
6
- metadata.gz: 5e81d9655d877bc2d53492d954f08e7176e5c8da48eb0ac82d693368092684781fb173ae8b36baacab5f71f974d12596036c9dd6fccd3c3752a7ebcfcafe1384
7
- data.tar.gz: 69eba0374e2621ca0abbb100154fd8f4627e09bbd5192d09feea79315f16a7486309deb60c76042b174068b61de29ae6294d1ac001582391b8d03907dfea4422
6
+ metadata.gz: 647dfb74a0015698ffb4b85c72f35c7c299a52ac7bdff85fe2d4252d891cceadd636f0008089420d91e144d39e74c88dc080234d273f81b6f3175a586156ba56
7
+ data.tar.gz: cc9da76d59762c3dd34570a77d0b9c4ddb826af087798b34068d14bcbb8f5caf19f5cc075b1057b143cb419b88dc1e19117abef886ebaaa782984622e68272b6
@@ -3,7 +3,6 @@
3
3
  require 'uri'
4
4
  require 'open-uri'
5
5
  require 'zlib'
6
- require 'open-uri'
7
6
  require 'net/http'
8
7
 
9
8
  module Asciidoctor
@@ -93,9 +92,7 @@ module Asciidoctor
93
92
 
94
93
  return plantuml_disabled_content(code, attrs) unless enabled?
95
94
 
96
- unless valid_uri?(server_url)
97
- return plantuml_server_unavailable_content(server_url, attrs)
98
- end
95
+ return plantuml_server_unavailable_content(server_url, attrs) unless valid_uri?(server_url)
99
96
 
100
97
  plantuml_content_format(code, format, attrs)
101
98
  end
@@ -251,9 +248,7 @@ module Asciidoctor
251
248
  def expand_path(path, current, last, separator)
252
249
  path = path[1..-1] if path.start_with?(separator) && current.zero?
253
250
 
254
- unless path.end_with?(separator) || current == last
255
- path = [path, separator]
256
- end
251
+ path = [path, separator] unless path.end_with?(separator) || current == last
257
252
 
258
253
  path
259
254
  end
@@ -270,9 +265,7 @@ module Asciidoctor
270
265
  def process(parent, target, attrs)
271
266
  lines = target.lines
272
267
 
273
- unless target.lines[0] =~ /@startuml/
274
- lines = ['@startuml'] + target.lines
275
- end
268
+ lines = ['@startuml'] + target.lines unless target.lines[0] =~ /@startuml/
276
269
 
277
270
  lines += ['@enduml'] unless target.lines[-1] =~ /@enduml/
278
271
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Asciidoctor
4
4
  module PlantUML
5
- VERSION = '0.0.13'
5
+ VERSION = '0.0.14'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciidoctor-plantuml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Horacio Sanson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-09 00:00:00.000000000 Z
11
+ date: 2021-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.6'
33
+ version: '1.11'
34
34
  type: :development
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.6'
40
+ version: '1.11'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -123,7 +123,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
123
123
  requirements:
124
124
  - - ">="
125
125
  - !ruby/object:Gem::Version
126
- version: '2.3'
126
+ version: '2.5'
127
127
  required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - ">="