trenni 1.3.0 → 1.4.0

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
  SHA1:
3
- metadata.gz: 5917823eba63297304f0339d680b595ed3dcb7f4
4
- data.tar.gz: 8a55538fa29a65c720d3d119001e28a77998a912
3
+ metadata.gz: 2cc57b1b547732e022575dfeb3e0c3d05c00c773
4
+ data.tar.gz: 66112c426e576576d952ada0de16c9b892d641b1
5
5
  SHA512:
6
- metadata.gz: 120b4e8119e886c2d0670e5a628eef6e2240f429cf9ab538454cb09a66764d4d9ec8c1600ca5836d99adaafec830e4fcfb9b50fce5610ae3f5801386e28bc66f
7
- data.tar.gz: 517bb05f624b2d053e518881dafc9aa2154d4ddd5f577800fd0569788e54b3d409367d4e74ebe38a467b13bed969ffa47ee0a1b85f1f3497faddb789674b6042
6
+ metadata.gz: 0e382b3c417d7108e59f8753d464485a4bb87720b7ed45cd5a8ab8a90b9c40971bd14ae33c314d3315899a093c3815f95dd7a3d1742ddfe1c9bdeda21fc63ee0
7
+ data.tar.gz: 3d0d25dc948dbca8af164a2a9021eb7ffe3b2e90a6ce71a77ec5ddad1d0472164bb850ab016c5d4816a39008f6342d471739d88ecb61b7380039c7e102664e4d
@@ -20,7 +20,3 @@
20
20
 
21
21
  require 'trenni/builder'
22
22
  require 'trenni/template'
23
-
24
- if RUBY_VERSION < "1.9.0"
25
- require 'trenni/extensions/symbol-1.8.7'
26
- end
@@ -102,7 +102,7 @@ module Trenni
102
102
 
103
103
  full_tag(name, attributes, @indent, false) do
104
104
  @indent = false
105
- yield
105
+ yield if block_given?
106
106
  @indent = indent
107
107
  end
108
108
  end
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Trenni
22
- VERSION = "1.3.0"
22
+ VERSION = "1.4.0"
23
23
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trenni
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-27 00:00:00.000000000 Z
11
+ date: 2014-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -69,7 +69,6 @@ files:
69
69
  - Rakefile
70
70
  - lib/trenni.rb
71
71
  - lib/trenni/builder.rb
72
- - lib/trenni/extensions/symbol-1.8.7.rb
73
72
  - lib/trenni/parser.rb
74
73
  - lib/trenni/strings.rb
75
74
  - lib/trenni/template.rb
@@ -1,27 +0,0 @@
1
- # Copyright, 2012, by Samuel G. D. Williams. <http://www.codeotaku.com>
2
- #
3
- # Permission is hereby granted, free of charge, to any person obtaining a copy
4
- # of this software and associated documentation files (the "Software"), to deal
5
- # in the Software without restriction, including without limitation the rights
6
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- # copies of the Software, and to permit persons to whom the Software is
8
- # furnished to do so, subject to the following conditions:
9
- #
10
- # The above copyright notice and this permission notice shall be included in
11
- # all copies or substantial portions of the Software.
12
- #
13
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
- # THE SOFTWARE.
20
-
21
- class Symbol
22
- def <=>(with)
23
- if with.is_a? Symbol
24
- to_s <=> with.to_s
25
- end
26
- end
27
- end