howzit 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +7 -1
- data/CHANGELOG.md +8 -0
- data/howzit.gemspec +1 -1
- data/lib/howzit/topic.rb +3 -2
- data/lib/howzit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5758dea871a182fc419de237ba35828396000307710b1680841bb774ea6994a2
|
4
|
+
data.tar.gz: bdf200a5a60c0acd268e37adcfae6b187807a14766e8199970fbd1d3ac1e4e3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6ec5058df211c32bdf02a33f99626822221317ee95eb16161d17e4ede96ae31b744a16aee328cead7c4e3bab5ca393f0911227234709622fea27f4026a6504f
|
7
|
+
data.tar.gz: 7ce5c34e121fa6a3fa6fea662d21b3ccc60beba0e0fee8f0b87b0f8653e3d0e64c66f61cfdc978e0a4b1d425cb757fcf191ba4026262c1ce26225dad8b87897d
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/howzit.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.test_files = spec.files.grep(%r{^(features|spec|test)/})
|
18
18
|
spec.require_paths = ['lib']
|
19
19
|
|
20
|
-
spec.required_ruby_version = '>= 2.0
|
20
|
+
spec.required_ruby_version = '>= 2.6.0'
|
21
21
|
|
22
22
|
spec.add_development_dependency 'bundler', '~> 2.2'
|
23
23
|
spec.add_development_dependency 'rake', '~> 11.2'
|
data/lib/howzit/topic.rb
CHANGED
@@ -153,10 +153,11 @@ module Howzit
|
|
153
153
|
Howzit.inclusions.push(matches[0])
|
154
154
|
end
|
155
155
|
|
156
|
-
when /@(run|copy|open|url|include)\((.*?)\)
|
156
|
+
when /@(run|copy|open|url|include)\((.*?)\)(.*?)$/
|
157
157
|
m = Regexp.last_match
|
158
158
|
cmd = m[1]
|
159
159
|
obj = m[2]
|
160
|
+
title = m[3].nil? ? obj : m[3]
|
160
161
|
icon = case cmd
|
161
162
|
when 'run'
|
162
163
|
"\u{25B6}"
|
@@ -166,7 +167,7 @@ module Howzit
|
|
166
167
|
"\u{279A}"
|
167
168
|
end
|
168
169
|
|
169
|
-
output.push(Color.template("{bmK}#{icon} {bwK}#{
|
170
|
+
output.push(Color.template("{bmK}#{icon} {bwK}#{title.gsub(/\\n/, '\n')}{x}"))
|
170
171
|
when /(`{3,})run *(.*?)$/i
|
171
172
|
m = Regexp.last_match
|
172
173
|
desc = m[2].length.positive? ? "Block: #{m[2]}" : 'Code Block'
|
data/lib/howzit/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: howzit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brett Terpstra
|
@@ -295,7 +295,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
295
295
|
requirements:
|
296
296
|
- - ">="
|
297
297
|
- !ruby/object:Gem::Version
|
298
|
-
version: 2.0
|
298
|
+
version: 2.6.0
|
299
299
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
300
300
|
requirements:
|
301
301
|
- - ">="
|