ultimate-base 0.3.2 → 0.3.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ultimate-base (0.3.2)
4
+ ultimate-base (0.3.2.1)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -35,7 +35,7 @@ __string_encode = (str) -> _.map(str, (char) -> "&##{char.charCodeAt(0)};" ).joi
35
35
  if block
36
36
  Ultimate.Helpers.Tag.content_tag('a', html_options, null, false, block)
37
37
  else
38
- Ultimate.Helpers.Tag.content_tag('a', name or url, html_options, false)
38
+ Ultimate.Helpers.Tag.content_tag('a', name ? url, html_options, false)
39
39
 
40
40
  link_to_js: (name = null, html_options = null, block = null) ->
41
41
  [options, name] = [name, null] if block = _.outcasts.blockGiven(arguments)
@@ -1,5 +1,5 @@
1
1
  module Ultimate
2
2
  module Base
3
- VERSION = "0.3.2"
3
+ VERSION = "0.3.2.1"
4
4
  end
5
5
  end
@@ -29,6 +29,10 @@ test "link_to", ->
29
29
  '<a class="red" data-confirm="You cant possibly be sure,\n can you?" href="http://www.example.com">Hello</a>'
30
30
  equal link_to(null, -> 'caption'), '<a href="javascript:;">caption</a>'
31
31
  equal link_to(-> 'caption'), '<a href="javascript:;">caption</a>'
32
+ equal link_to('0', 'http://www.example.com'), '<a href="http://www.example.com">0</a>'
33
+ equal link_to(0, 'http://www.example.com'), '<a href="http://www.example.com">0</a>'
34
+ equal link_to(false, 'http://www.example.com'), '<a href="http://www.example.com">false</a>'
35
+ equal link_to('', 'http://www.example.com'), '<a href="http://www.example.com"></a>'
32
36
 
33
37
  test "link_to_js", ->
34
38
  equal link_to_js('caption'), '<a href="javascript:;">caption</a>'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultimate-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: