sinatra-bells 0.0.3 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 53f2b23d0ae7f154e44a3e397757c6f7a2046db7
4
- data.tar.gz: 61e1dc3ca04412604688581b82a14e9a81309db1
3
+ metadata.gz: 57016c69fd1b998d1323cc40e5437050f5c8671e
4
+ data.tar.gz: 47519eea26151cc039ef97fb96204175051f3fe9
5
5
  SHA512:
6
- metadata.gz: 0f1c43831f29db9ebc8d591a1d375b79be25e1698be93fa127c47755eee98657b639d1ca90030b01fce0ec0b8b54fcd327f7006126ed04a8913b5480fab1b78c
7
- data.tar.gz: f4e93040f59afa2e9fb4aa863db1d7f88e4ba24ed642844b3f18aa891f372a13ad76092be52fe4635a5b0ea27c478dde0171171e90557dd73a1013c98e260b22
6
+ metadata.gz: 8e90aa46fbd00e900a62a91ab25eb3e39e0faa9fc3b72cd323a55a18346a4571afc66ba0b23f203b0d539bbe676df3f954458644d5d183483bdea726601918fe
7
+ data.tar.gz: cdd04af5f6571dcb581e9f2eb7fa61df1d468e294bcd8fd3e80c35c96178c151fd58950910f75125aec14f2513ec079202fa655847ce9165140e32b81bae68bb
data/ChangeLog CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  = Revision history for sinatra-bells
4
4
 
5
+ == 0.1.0 [2015-10-02]
6
+
7
+ * Changed Sinatra::Bells::Helpers::View method names from <tt>_<tag></tt> to
8
+ <tt><tag>_</tt>.
9
+
5
10
  == 0.0.3 [2015-02-11]
6
11
 
7
12
  * Renamed Sinatra::Bells::Helpers::HTML to Sinatra::Bells::Helpers::View.
data/README CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  == VERSION
4
4
 
5
- This documentation refers to sinatra-bells version 0.0.3
5
+ This documentation refers to sinatra-bells version 0.1.0
6
6
 
7
7
 
8
8
  == DESCRIPTION
@@ -66,14 +66,14 @@ class Sinatra::Bells
66
66
  href << '#' << CGI.escape(anchor.to_s)
67
67
  end
68
68
 
69
- _a(text, options.merge(href: href))
69
+ a_(text, options.merge(href: href))
70
70
  end
71
71
 
72
72
  def link_to_if(condition, text, *args)
73
73
  condition ? link_to(text, *args) : block_given? ? yield(text, *args) : text
74
74
  end
75
75
 
76
- def _tag(name, *args)
76
+ def tag_(name, *args)
77
77
  args.unshift('<', name, '>')
78
78
 
79
79
  if args.last.is_a?(Hash)
@@ -86,16 +86,16 @@ class Sinatra::Bells
86
86
  args.push('</', name, '>').join
87
87
  end
88
88
 
89
- def _a(*args)
90
- _tag(:a, *args)
89
+ def a_(*args)
90
+ tag_(:a, *args)
91
91
  end
92
92
 
93
- def _li(*args)
94
- _tag(:li, *args)
93
+ def li_(*args)
94
+ tag_(:li, *args)
95
95
  end
96
96
 
97
- def _ul(list, *args)
98
- _tag(:ul, *args) { |tag| list.each { |*item| tag << yield(*item) } }
97
+ def ul_(list, *args)
98
+ tag_(:ul, *args) { |tag| list.each { |*item| tag << yield(*item) } }
99
99
  end
100
100
 
101
101
  def active?(path)
@@ -5,8 +5,8 @@ module Sinatra
5
5
  module Version
6
6
 
7
7
  MAJOR = 0
8
- MINOR = 0
9
- TINY = 3
8
+ MINOR = 1
9
+ TINY = 0
10
10
 
11
11
  class << self
12
12
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-bells
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Wille
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-11 00:00:00.000000000 Z
11
+ date: 2015-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: '0.8'
34
34
  - - ">="
35
35
  - !ruby/object:Gem::Version
36
- version: 0.8.1
36
+ version: 0.8.3
37
37
  type: :development
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0.8'
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: 0.8.1
46
+ version: 0.8.3
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rake
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -83,16 +83,14 @@ licenses:
83
83
  metadata: {}
84
84
  post_install_message: |2+
85
85
 
86
- sinatra-bells-0.0.3 [2015-02-11]:
86
+ sinatra-bells-0.1.0 [2015-10-02]:
87
87
 
88
- * Renamed Sinatra::Bells::Helpers::HTML to Sinatra::Bells::Helpers::View.
89
- * Extended Sinatra::Bells::Helpers::View#link_to to accept an anchor.
90
- * Added Sinatra::Bells::Helpers::View#format_label.
91
- * Added Sinatra::Bells.set_hash.
88
+ * Changed Sinatra::Bells::Helpers::View method names from <tt>_<tag></tt> to
89
+ <tt><tag>_</tt>.
92
90
 
93
91
  rdoc_options:
94
92
  - "--title"
95
- - sinatra-bells Application documentation (v0.0.3)
93
+ - sinatra-bells Application documentation (v0.1.0)
96
94
  - "--charset"
97
95
  - UTF-8
98
96
  - "--line-numbers"
@@ -113,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
111
  version: '0'
114
112
  requirements: []
115
113
  rubyforge_project:
116
- rubygems_version: 2.4.5
114
+ rubygems_version: 2.4.8
117
115
  signing_key:
118
116
  specification_version: 4
119
117
  summary: Sinatra with some more bells and whistles.