kielce 2.0.5 → 2.0.6

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: 2bdf0053d979e829a7ceb5ed7e4717d99dda0bf9dc4cff8780f8aa53bb6af1bc
4
- data.tar.gz: 8b6479263c06dbcefd01d3e85daf756cd157117cff1c14d5851f2fb91a7f4ac1
3
+ metadata.gz: f8c3f77d063506dc5a2cc9cf05cf4e1533e4285be392626d011d772f3cc72899
4
+ data.tar.gz: 23d1b29068daa91274bbabab558a7ec34c31a03c14c7927b9c8209ff84450689
5
5
  SHA512:
6
- metadata.gz: b7ab79d11727d58d1cfdb49330ce4373b94ff711ac882739045ec519004d055e8f8a65a066643f773c8361a33b9948c158de93f4dd40073b556194216ecbcc70
7
- data.tar.gz: 8b243be6a675ec55df4386ce659460c9df05ab679f21e82b887113b3383bc3bc513966f409cf182fcdf0ca61681534977a06ffb0c38a0a50eecf94973415c15f
6
+ metadata.gz: c8a4b799e7003ffa4981af5593e06c131f6c1cbe9ed777a8726e62dbde7dac09bfffcac775e7967a49a1f876aa017150ea409bc5a5de3fb4683de7875db28d48
7
+ data.tar.gz: 1d4dbf33350ad953b1552cc3efba048f88992e58cfff88e27e6b5b08a97c3717b307cb42ef533bbf00ac9f554974f0e6c5753e1030a8bf5b4c0c0dfc7a403580
data/lib/kielce/kielce.rb CHANGED
@@ -95,7 +95,7 @@ module Kielce
95
95
  # another erb template. In order for such nested calls to work
96
96
  # properly, each call must have a unique variable in which to
97
97
  # store its output. This parameter is called "eoutvar". (If you
98
- # don't specifiy eoutvar and make a nested call, the output
98
+ # don't specify eoutvar and make a nested call, the output
99
99
  # can get messed up.)
100
100
  @@render_count += 1
101
101
 
@@ -57,8 +57,9 @@ module KielcePlugins
57
57
  link = $d.course.notesTemplates.method_missing(method, param)
58
58
  else
59
59
  link = link_rule
60
- end
61
- "(<a target='_blank' href='#{link}'>#{text}</a>)"
60
+ end
61
+ # Suppress links if text begins with xx.
62
+ text =~ /^xx/ ? '': "(<a target='_blank' href='#{link}'>#{text}</a>)"
62
63
  end # end gsub
63
64
 
64
65
  end # end if value is string
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kielce
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zachary Kurmas