padrino-helpers 0.10.3 → 0.10.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -63,8 +63,8 @@ are three major functions for this category: <tt>tag</tt>, <tt>content_tag</tt>
63
63
  The tag and content_tag are for building arbitrary html tags with a name and specified options. If
64
64
  the tag contains 'content' within then <tt>content_tag</tt> is used. For example:
65
65
 
66
- tag(:br, :style => clear:both) => <br style="clear:both" />
67
- content_tag(:p, "demo", :class => light) => <p class="light">demo</p>
66
+ tag(:br, :style => 'clear:both') => <br style="clear:both" />
67
+ content_tag(:p, "demo", :class => 'light') => <p class="light">demo</p>
68
68
 
69
69
  The input_tag is used to build tags that are related to accepting input from the user:
70
70
 
@@ -1,5 +1,8 @@
1
1
  module Padrino
2
2
  module Helpers
3
+ ###
4
+ # Helpers related to producing assets (images,stylesheets,js,etc) within templates.
5
+ #
3
6
  module AssetTagHelpers
4
7
  ##
5
8
  # Creates a div to display the flash of given type if it exists
@@ -1,5 +1,8 @@
1
1
  module Padrino
2
2
  module Helpers
3
+ ##
4
+ # Helpers related to producing form related tags and inputs into templates.
5
+ #
3
6
  module FormHelpers
4
7
  ##
5
8
  # Constructs a form for object using given or default form_builder
@@ -1,5 +1,8 @@
1
1
  module Padrino
2
2
  module Helpers
3
+ ###
4
+ # Helpers related to formatting or manipulating text within templates.
5
+ #
3
6
  module FormatHelpers
4
7
  ##
5
8
  # Returns escaped text to protect against malicious content
@@ -206,7 +209,7 @@ module Padrino
206
209
  # The words to be highlighted in the +text+.
207
210
  # @param [Hash] options
208
211
  # Formatting options for the highlight.
209
- # @option options [String] :highlighter (’<strong class="highlight">\1</strong>’)
212
+ # @option options [String] :highlighter ('<strong class="highlight">\1</strong>')
210
213
  # The html pattern for wrapping the highlighted words.
211
214
  #
212
215
  # @return [String] The text with the words specified wrapped with highlighted spans.
@@ -204,6 +204,7 @@ module Padrino
204
204
  end
205
205
  end
206
206
 
207
+ # The units available for storage formatting.
207
208
  STORAGE_UNITS = [:byte, :kb, :mb, :gb, :tb].freeze
208
209
 
209
210
  ##
@@ -1,5 +1,8 @@
1
1
  module Padrino
2
2
  module Helpers
3
+ ###
4
+ # Helpers related to buffer output for various template engines.
5
+ #
3
6
  module OutputHelpers
4
7
 
5
8
  def self.included(base) # @private
@@ -1,6 +1,9 @@
1
1
  module Padrino
2
2
  module Helpers
3
3
  module OutputHelpers
4
+ ##
5
+ # Handler for reading and writing from an erb template.
6
+ #
4
7
  class ErbHandler < AbstractHandler
5
8
  attr_reader :output_buffer
6
9
 
@@ -1,6 +1,9 @@
1
1
  module Padrino
2
2
  module Helpers
3
3
  module OutputHelpers
4
+ ##
5
+ # Handler for reading and writing from a haml template.
6
+ #
4
7
  class HamlHandler < AbstractHandler
5
8
  ##
6
9
  # Returns true if the current template type is same as this handlers; false otherwise.
@@ -4,6 +4,9 @@ Slim::Engine.set_default_options(:buffer => '@_out_buf', :generator => Temple::G
4
4
  module Padrino
5
5
  module Helpers
6
6
  module OutputHelpers
7
+ ##
8
+ # Handler for reading and writing from a slim template.
9
+ #
7
10
  class SlimHandler < AbstractHandler
8
11
  attr_reader :output_buffer
9
12
 
@@ -1,5 +1,8 @@
1
1
  module Padrino
2
2
  module Helpers
3
+ ##
4
+ # Helpers related to rendering within templates (i.e partials).
5
+ #
3
6
  module RenderHelpers
4
7
  ##
5
8
  # Render a partials with collections support
@@ -1,5 +1,8 @@
1
1
  module Padrino
2
2
  module Helpers
3
+ ##
4
+ # Helpers related to producing html tags within templates.
5
+ #
3
6
  module TagHelpers
4
7
  ##
5
8
  # Tag values escaped to html entities
@@ -1,5 +1,8 @@
1
1
  module Padrino
2
2
  module Helpers
3
+ ##
4
+ # Helpers related to locale1 i18n translation within templates.
5
+ #
3
6
  module TranslationHelpers
4
7
  ##
5
8
  # Delegates to I18n.translate with no additional functionality.
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padrino-helpers
3
3
  version: !ruby/object:Gem::Version
4
- hash: 49
5
4
  prerelease:
6
- segments:
7
- - 0
8
- - 10
9
- - 3
10
- version: 0.10.3
5
+ version: 0.10.4
11
6
  platform: ruby
12
7
  authors:
13
8
  - Padrino Team
@@ -18,8 +13,7 @@ autorequire:
18
13
  bindir: bin
19
14
  cert_chain: []
20
15
 
21
- date: 2011-10-03 00:00:00 -07:00
22
- default_executable:
16
+ date: 2011-10-12 00:00:00 Z
23
17
  dependencies:
24
18
  - !ruby/object:Gem::Dependency
25
19
  name: padrino-core
@@ -29,12 +23,7 @@ dependencies:
29
23
  requirements:
30
24
  - - "="
31
25
  - !ruby/object:Gem::Version
32
- hash: 49
33
- segments:
34
- - 0
35
- - 10
36
- - 3
37
- version: 0.10.3
26
+ version: 0.10.4
38
27
  type: :runtime
39
28
  version_requirements: *id001
40
29
  - !ruby/object:Gem::Dependency
@@ -45,10 +34,6 @@ dependencies:
45
34
  requirements:
46
35
  - - ~>
47
36
  - !ruby/object:Gem::Version
48
- hash: 7
49
- segments:
50
- - 0
51
- - 6
52
37
  version: "0.6"
53
38
  type: :runtime
54
39
  version_requirements: *id002
@@ -160,7 +145,6 @@ files:
160
145
  - test/test_output_helpers.rb
161
146
  - test/test_render_helpers.rb
162
147
  - test/test_tag_helpers.rb
163
- has_rdoc: true
164
148
  homepage: http://www.padrinorb.com
165
149
  licenses: []
166
150
 
@@ -174,25 +158,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
174
158
  requirements:
175
159
  - - ">="
176
160
  - !ruby/object:Gem::Version
177
- hash: 3
178
- segments:
179
- - 0
180
161
  version: "0"
181
162
  required_rubygems_version: !ruby/object:Gem::Requirement
182
163
  none: false
183
164
  requirements:
184
165
  - - ">="
185
166
  - !ruby/object:Gem::Version
186
- hash: 23
187
- segments:
188
- - 1
189
- - 3
190
- - 6
191
167
  version: 1.3.6
192
168
  requirements: []
193
169
 
194
170
  rubyforge_project: padrino-helpers
195
- rubygems_version: 1.6.2
171
+ rubygems_version: 1.8.10
196
172
  signing_key:
197
173
  specification_version: 3
198
174
  summary: Helpers for padrino