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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c765e26fa17336ee43c9695a14e86ac5a3a3f72c028e6264b17593d1c0b607e6
4
- data.tar.gz: f158ef7138d572cbfd94a08d56d50d221c6c04dc45477e437848d238055846b2
3
+ metadata.gz: 5758dea871a182fc419de237ba35828396000307710b1680841bb774ea6994a2
4
+ data.tar.gz: bdf200a5a60c0acd268e37adcfae6b187807a14766e8199970fbd1d3ac1e4e3d
5
5
  SHA512:
6
- metadata.gz: 636f61b3f6ad8cc161e7a5453a0bc3afafe96cef27df2f0a3542083c0302c7f581a0d6fdabaaa37d52c958145297dec4496bda9e8e68ed94a77c5a151ffb5bb8
7
- data.tar.gz: '095a73c3482d35f493c695e5d0a154b814bb7630fefe16212859527113e476c715856bf1d3394702f51f8954a12c83095e97a70c64090652c3d41601f02b6a03'
6
+ metadata.gz: c6ec5058df211c32bdf02a33f99626822221317ee95eb16161d17e4ede96ae31b744a16aee328cead7c4e3bab5ca393f0911227234709622fea27f4026a6504f
7
+ data.tar.gz: 7ce5c34e121fa6a3fa6fea662d21b3ccc60beba0e0fee8f0b87b0f8653e3d0e64c66f61cfdc978e0a4b1d425cb757fcf191ba4026262c1ce26225dad8b87897d
data/.travis.yml CHANGED
@@ -4,4 +4,10 @@ sudo: required
4
4
  dist: trusty
5
5
  cache: bundler
6
6
  rvm:
7
- - 2
7
+ - ruby-2.7.0
8
+ - ruby-3.0.1
9
+ install:
10
+ - gem uninstall bundler
11
+ - gem install bundler --version '2.2.29'
12
+ - bundle install
13
+ script: "rake"
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ### 2.0.2
2
+
3
+ 2022-08-03 18:26
4
+
5
+ #### IMPROVED
6
+
7
+ - If a title is provided after an @command, display it instead of the contents when viewing
8
+
1
9
  ### 2.0.1
2
10
 
3
11
  2022-08-03 12:46
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.1'
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}#{obj.gsub(/\\n/, '\​n')}{x}"))
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'
@@ -2,5 +2,5 @@
2
2
  # Primary module for this gem.
3
3
  module Howzit
4
4
  # Current Howzit version.
5
- VERSION = '2.0.1'.freeze
5
+ VERSION = '2.0.2'.freeze
6
6
  end
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.1
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.1
298
+ version: 2.6.0
299
299
  required_rubygems_version: !ruby/object:Gem::Requirement
300
300
  requirements:
301
301
  - - ">="