padrino-helpers 0.9.14 → 0.9.15
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +1 -1
- data/lib/padrino-helpers/asset_tag_helpers.rb +1 -1
- data/lib/padrino-helpers/form_builder/abstract_form_builder.rb +1 -5
- data/lib/padrino-helpers/form_helpers.rb +2 -2
- data/lib/padrino-helpers/locale/cz.yml +13 -13
- data/lib/padrino-helpers/locale/nl.yml +78 -0
- data/lib/padrino-helpers/locale/pl.yml +95 -0
- data/padrino-helpers.gemspec +9 -11
- data/test/test_asset_tag_helpers.rb +3 -3
- data/test/test_form_builder.rb +14 -4
- data/test/test_form_helpers.rb +17 -4
- data/test/test_format_helpers.rb +1 -1
- data/test/test_output_helpers.rb +1 -1
- data/test/test_render_helpers.rb +1 -2
- data/test/test_tag_helpers.rb +1 -1
- metadata +14 -108
data/LICENSE
CHANGED
@@ -17,4 +17,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
17
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
18
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
19
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -123,11 +123,7 @@ module Padrino
|
|
123
123
|
# Add a :invalid css class to the field if it contain an error
|
124
124
|
def field_error(field, options)
|
125
125
|
error = @object.errors[field] rescue nil
|
126
|
-
|
127
|
-
[options[:class], :invalid].flatten.compact.join(" ")
|
128
|
-
else
|
129
|
-
options[:class]
|
130
|
-
end
|
126
|
+
error.blank? ? options[:class] : [options[:class], :invalid].flatten.compact.join(" ")
|
131
127
|
end
|
132
128
|
|
133
129
|
# Returns the name for the given field
|
@@ -193,7 +193,7 @@ module Padrino
|
|
193
193
|
def label_tag(name, options={}, &block)
|
194
194
|
options.reverse_merge!(:caption => "#{name.to_s.humanize}: ", :for => name)
|
195
195
|
caption_text = options.delete(:caption)
|
196
|
-
caption_text << "
|
196
|
+
caption_text << "<span class='required'>*</span> " if options.delete(:required)
|
197
197
|
if block_given? # label with inner content
|
198
198
|
label_content = caption_text + capture_html(&block)
|
199
199
|
concat_content(content_tag(:label, label_content, options))
|
@@ -357,7 +357,7 @@ module Padrino
|
|
357
357
|
return '' if option_items.blank?
|
358
358
|
option_items.collect do |caption, value|
|
359
359
|
value ||= caption
|
360
|
-
content_tag(:option, caption, :value => value, :selected => selected_value.to_s =~
|
360
|
+
content_tag(:option, caption, :value => value, :selected => selected_value.to_s =~ /^(#{value}|#{caption})$/)
|
361
361
|
end
|
362
362
|
end
|
363
363
|
|
@@ -63,41 +63,41 @@ cz:
|
|
63
63
|
half_a_minute: "půl minutou"
|
64
64
|
less_than_x_seconds:
|
65
65
|
one: "asi před sekundou"
|
66
|
-
other: "asi před {
|
66
|
+
other: "asi před %{count} sekundami"
|
67
67
|
x_seconds:
|
68
68
|
one: "sekundou"
|
69
|
-
other: "{
|
69
|
+
other: "%{count} sekundami"
|
70
70
|
less_than_x_minutes:
|
71
71
|
one: "před necelou minutou"
|
72
|
-
other: "před ani ne {
|
72
|
+
other: "před ani ne %{count} minutami"
|
73
73
|
x_minutes:
|
74
74
|
one: "minutou"
|
75
|
-
other: "{
|
75
|
+
other: "%{count} minutami"
|
76
76
|
about_x_hours:
|
77
77
|
one: "asi hodinou"
|
78
|
-
other: "asi {
|
78
|
+
other: "asi %{count} hodinami"
|
79
79
|
x_days:
|
80
80
|
one: "24 hodinami"
|
81
|
-
other: "{
|
81
|
+
other: "%{count} dny"
|
82
82
|
about_x_months:
|
83
83
|
one: "asi měsícem"
|
84
|
-
other: "asi {
|
84
|
+
other: "asi %{count} měsíci"
|
85
85
|
x_months:
|
86
86
|
one: "měsícem"
|
87
|
-
other: "{
|
87
|
+
other: "%{count} měsíci"
|
88
88
|
about_x_years:
|
89
89
|
one: "asi rokem"
|
90
|
-
other: "asi {
|
90
|
+
other: "asi %{count} roky"
|
91
91
|
over_x_years:
|
92
92
|
one: "více než před rokem"
|
93
|
-
other: "více než {
|
93
|
+
other: "více než %{count} roky"
|
94
94
|
almost_x_years:
|
95
95
|
one: "skoro rokem"
|
96
|
-
other: "almost {
|
96
|
+
other: "almost %{count} roků"
|
97
97
|
models:
|
98
98
|
errors:
|
99
99
|
template:
|
100
100
|
header:
|
101
|
-
one: "Při ukládání {
|
102
|
-
other: "Při ukládání {
|
101
|
+
one: "Při ukládání %{model} došlo k chybě a nebylo jej možné uložit"
|
102
|
+
other: "Při ukládání %{model} došlo ke %{count} chybám a nebylo možné jej uložit"
|
103
103
|
body: "Následující pole obsahují chybně vyplněné údaje:"
|
@@ -0,0 +1,78 @@
|
|
1
|
+
nl:
|
2
|
+
number:
|
3
|
+
format:
|
4
|
+
precision: 2
|
5
|
+
separator: ','
|
6
|
+
delimiter: '.'
|
7
|
+
currency:
|
8
|
+
format:
|
9
|
+
unit: '€'
|
10
|
+
format: '%u %n'
|
11
|
+
separator:
|
12
|
+
delimiter:
|
13
|
+
precision:
|
14
|
+
percentage:
|
15
|
+
format:
|
16
|
+
delimiter: ""
|
17
|
+
precision:
|
18
|
+
format:
|
19
|
+
delimiter: ""
|
20
|
+
human:
|
21
|
+
format:
|
22
|
+
delimiter: ""
|
23
|
+
precision: 1
|
24
|
+
storage_units:
|
25
|
+
# Storage units output formatting.
|
26
|
+
# %u is the storage unit, %n is the number (default: 2 MB)
|
27
|
+
format: "%n %u"
|
28
|
+
units:
|
29
|
+
byte:
|
30
|
+
one: "byte"
|
31
|
+
other: "bytes"
|
32
|
+
kb: "KB"
|
33
|
+
mb: "MB"
|
34
|
+
gb: "GB"
|
35
|
+
tb: "TB"
|
36
|
+
|
37
|
+
datetime:
|
38
|
+
distance_in_words:
|
39
|
+
half_a_minute: 'een halve minuut'
|
40
|
+
less_than_x_seconds:
|
41
|
+
zero: 'minder dan 1 seconde'
|
42
|
+
one: 'minder dan 1 seconde'
|
43
|
+
other: 'minder dan %{count} seconden'
|
44
|
+
x_seconds:
|
45
|
+
one: '1 seconde'
|
46
|
+
other: '%{count} seconden'
|
47
|
+
less_than_x_minutes:
|
48
|
+
zero: 'minder dan 1 minuut'
|
49
|
+
one: 'minder dan 1 minuut'
|
50
|
+
other: 'minder dan %{count} minuten'
|
51
|
+
x_minutes:
|
52
|
+
one: '1 minuut'
|
53
|
+
other: '%{count} minuten'
|
54
|
+
about_x_hours:
|
55
|
+
one: 'ongeveer 1 uur'
|
56
|
+
other: 'ongeveer %{count} uur'
|
57
|
+
x_days:
|
58
|
+
one: '1 dag'
|
59
|
+
other: '%{count} dagen'
|
60
|
+
about_x_months:
|
61
|
+
one: 'ongeveer 1 dag'
|
62
|
+
other: 'ongeveer %{count} dagen'
|
63
|
+
x_months:
|
64
|
+
one: '1 maand'
|
65
|
+
other: '%{count} maanden'
|
66
|
+
about_x_years:
|
67
|
+
one: 'ongeveer 1 jaar'
|
68
|
+
other: 'ongeveer %{count} jaar'
|
69
|
+
over_x_years:
|
70
|
+
one: 'meer dan 1 jaar'
|
71
|
+
other: 'meer dan %{count} jaar'
|
72
|
+
models:
|
73
|
+
errors:
|
74
|
+
template:
|
75
|
+
header:
|
76
|
+
one: "1 fout verhindert het opslaan van dit %{model} object"
|
77
|
+
other: "%{count} fouten verhinderen het opslaan van dit %{model} object"
|
78
|
+
body: "Controleer alstublieft de volgende velden:"
|
@@ -0,0 +1,95 @@
|
|
1
|
+
pl:
|
2
|
+
number:
|
3
|
+
# Used in number_with_delimiter()
|
4
|
+
# These are also the defaults for 'currency', 'percentage', 'precision', and 'human'
|
5
|
+
format:
|
6
|
+
separator: ","
|
7
|
+
delimiter: " "
|
8
|
+
precision: 2
|
9
|
+
|
10
|
+
# Used in number_to_currency()
|
11
|
+
currency:
|
12
|
+
format:
|
13
|
+
format: "%n %u"
|
14
|
+
unit: "PLN"
|
15
|
+
separator: ","
|
16
|
+
delimiter: " "
|
17
|
+
precision: 2
|
18
|
+
|
19
|
+
# Used in number_to_percentage()
|
20
|
+
percentage:
|
21
|
+
format:
|
22
|
+
delimiter: ""
|
23
|
+
|
24
|
+
# Used in number_to_precision()
|
25
|
+
precision:
|
26
|
+
format:
|
27
|
+
delimiter: ""
|
28
|
+
|
29
|
+
# Used in number_to_human_size()
|
30
|
+
human:
|
31
|
+
format:
|
32
|
+
delimiter: ""
|
33
|
+
precision: 1
|
34
|
+
storage_units:
|
35
|
+
format: "%n %u"
|
36
|
+
units:
|
37
|
+
byte:
|
38
|
+
one: "bajt"
|
39
|
+
other: "bajty"
|
40
|
+
kb: "KB"
|
41
|
+
mb: "MB"
|
42
|
+
gb: "GB"
|
43
|
+
tb: "TB"
|
44
|
+
|
45
|
+
# Used in distance_of_time_in_words(), distance_of_time_in_words_to_now(), time_ago_in_words()
|
46
|
+
datetime:
|
47
|
+
distance_in_words:
|
48
|
+
half_a_minute: "pół minuty"
|
49
|
+
less_than_x_seconds:
|
50
|
+
one: "mniej niż sekundę"
|
51
|
+
few: "mniej niż %{count} sekundy"
|
52
|
+
other: "mniej niż %{count} sekund"
|
53
|
+
x_seconds:
|
54
|
+
one: "sekundę"
|
55
|
+
few: "%{count} sekundy"
|
56
|
+
other: "%{count} sekund"
|
57
|
+
less_than_x_minutes:
|
58
|
+
one: "mniej niż minutę"
|
59
|
+
few: "mniej niż %{count} minuty"
|
60
|
+
other: "mniej niż %{count} minut"
|
61
|
+
x_minutes:
|
62
|
+
one: "minutę"
|
63
|
+
few: "%{count} minuty"
|
64
|
+
other: "%{count} minut"
|
65
|
+
about_x_hours:
|
66
|
+
one: "około godziny"
|
67
|
+
other: "około %{count} godzin"
|
68
|
+
x_days:
|
69
|
+
one: "1 dzień"
|
70
|
+
other: "%{count} dni"
|
71
|
+
about_x_months:
|
72
|
+
one: "około miesiąca"
|
73
|
+
other: "około %{count} miesięcy"
|
74
|
+
x_months:
|
75
|
+
one: "1 miesiąc"
|
76
|
+
few: "%{count} miesiące"
|
77
|
+
other: "%{count} miesięcy"
|
78
|
+
about_x_years:
|
79
|
+
one: "około roku"
|
80
|
+
other: "około %{count} lat"
|
81
|
+
almost_x_years:
|
82
|
+
one: "prawie rok"
|
83
|
+
few: "prawie %{count} lata"
|
84
|
+
other: "prawie %{count} lat"
|
85
|
+
over_x_years:
|
86
|
+
one: "ponad rok"
|
87
|
+
few: "ponad %{count} lata"
|
88
|
+
other: "ponad %{count} lat"
|
89
|
+
models:
|
90
|
+
errors:
|
91
|
+
template:
|
92
|
+
header:
|
93
|
+
one: "%{model} nie został zachowany z powodu jednego błędu"
|
94
|
+
other: "%{model} nie został zachowany z powodu %{count} błędów"
|
95
|
+
body: "Błędy dotyczą następujących pól:"
|
data/padrino-helpers.gemspec
CHANGED
@@ -1,22 +1,20 @@
|
|
1
1
|
require File.expand_path("../../padrino-core/lib/padrino-core/version.rb", __FILE__)
|
2
|
-
require 'rubygems'
|
3
|
-
require 'bundler'
|
4
2
|
|
5
3
|
Gem::Specification.new do |s|
|
6
|
-
s.name =
|
7
|
-
s.rubyforge_project =
|
4
|
+
s.name = "padrino-helpers"
|
5
|
+
s.rubyforge_project = "padrino-helpers"
|
8
6
|
s.authors = ["Padrino Team", "Nathan Esquenazi", "Davide D'Agostino", "Arthur Chiu"]
|
9
|
-
s.email =
|
10
|
-
s.summary =
|
11
|
-
s.homepage =
|
12
|
-
s.description =
|
7
|
+
s.email = "padrinorb@gmail.com"
|
8
|
+
s.summary = "Helpers for padrino"
|
9
|
+
s.homepage = "http://www.padrinorb.com"
|
10
|
+
s.description = "Tag helpers, asset helpers, form helpers, form builders and many more helpers for padrino"
|
13
11
|
s.required_rubygems_version = ">= 1.3.6"
|
14
12
|
s.version = Padrino.version
|
15
13
|
s.date = Time.now.strftime("%Y-%m-%d")
|
16
14
|
s.extra_rdoc_files = Dir["*.rdoc"]
|
17
15
|
s.files = %w(.document .gitignore LICENSE README.rdoc Rakefile padrino-helpers.gemspec) + Dir.glob("{bin,lib,test}/**/*")
|
18
16
|
s.rdoc_options = ["--charset=UTF-8"]
|
19
|
-
s.require_path =
|
20
|
-
s.
|
21
|
-
s.
|
17
|
+
s.require_path = "lib"
|
18
|
+
s.add_dependency("padrino-core", Padrino.version)
|
19
|
+
s.add_dependency("i18n", ">=0.4.1")
|
22
20
|
end
|
@@ -131,7 +131,7 @@ class TestAssetTagHelpers < Test::Unit::TestCase
|
|
131
131
|
end
|
132
132
|
should "display image tag relative link with options" do
|
133
133
|
time = stop_time_for_test
|
134
|
-
assert_has_tag('img.photo', :src => "/images/relative/pic.gif?#{time.to_i}") {
|
134
|
+
assert_has_tag('img.photo', :src => "/images/relative/pic.gif?#{time.to_i}") {
|
135
135
|
image_tag('relative/pic.gif', :class => 'photo') }
|
136
136
|
end
|
137
137
|
should "display image tag uri link with options" do
|
@@ -140,7 +140,7 @@ class TestAssetTagHelpers < Test::Unit::TestCase
|
|
140
140
|
end
|
141
141
|
should "display image tag relative link with incorrect spacing" do
|
142
142
|
time = stop_time_for_test
|
143
|
-
assert_has_tag('img.photo', :src => "/images/relative/pic.gif?#{time.to_i}") {
|
143
|
+
assert_has_tag('img.photo', :src => "/images/relative/pic.gif?#{time.to_i}") {
|
144
144
|
image_tag(' relative/ pic.gif ', :class => 'photo') }
|
145
145
|
end
|
146
146
|
should "not use a timestamp if stamp setting is false" do
|
@@ -265,4 +265,4 @@ class TestAssetTagHelpers < Test::Unit::TestCase
|
|
265
265
|
assert_has_tag('link', :type => 'my-type', :rel => 'my-rel', :href => "/blog/post.rss", :title => 'my-title') { feed_tag :rss, "/blog/post.rss", :type => "my-type", :rel => "my-rel", :title => "my-title" }
|
266
266
|
end
|
267
267
|
end
|
268
|
-
end
|
268
|
+
end
|
data/test/test_form_builder.rb
CHANGED
@@ -10,7 +10,7 @@ class TestFormBuilder < Test::Unit::TestCase
|
|
10
10
|
|
11
11
|
def setup
|
12
12
|
role_types = [stub(:name => 'Admin', :id => 1), stub(:name => 'Moderate', :id => 2), stub(:name => 'Limited', :id => 3)]
|
13
|
-
@user = stub(:errors => {:a => "must be present", :b => "must be valid"}, :class => 'User', :first_name => "Joe", :session_id => 54)
|
13
|
+
@user = stub(:errors => {:a => "must be present", :b => "must be valid", :email => "Must be valid", :first_name => []}, :class => 'User', :first_name => "Joe", :email => '', :session_id => 54)
|
14
14
|
@user.stubs(:role_types => role_types, :role => "1")
|
15
15
|
@user_none = stub(:errors => {}, :class => 'User')
|
16
16
|
end
|
@@ -38,12 +38,12 @@ class TestFormBuilder < Test::Unit::TestCase
|
|
38
38
|
assert_has_tag('form', :action => '/register', :method => 'post') { actual_html }
|
39
39
|
assert_has_tag('form input', :type => 'text', :name => 'outer-user_account[username]') { actual_html }
|
40
40
|
end
|
41
|
-
|
41
|
+
|
42
42
|
should "display correct form html with remote option" do
|
43
43
|
actual_html = form_for(@user, '/update', :remote => true) { "Demo" }
|
44
44
|
assert_has_tag('form', :action => '/update', :method => 'post', "data-remote" => 'true') { actual_html }
|
45
45
|
end
|
46
|
-
|
46
|
+
|
47
47
|
should "display correct form html with remote option and method put" do
|
48
48
|
actual_html = form_for(@user, '/update', :remote => true, :method => 'put') { "Demo" }
|
49
49
|
assert_has_tag('form', :method => 'post', "data-method" => 'put', "data-remote" => 'true') { actual_html }
|
@@ -94,6 +94,16 @@ class TestFormBuilder < Test::Unit::TestCase
|
|
94
94
|
assert_have_selector :form, :action => '/another_demo', :id => 'demo2', :method => 'get'
|
95
95
|
assert_have_selector :form, :action => '/third_demo', :id => 'demo3', :method => 'get'
|
96
96
|
end
|
97
|
+
|
98
|
+
should "have a class of 'invalid' for fields with errors" do
|
99
|
+
actual_html = form_for(@user, '/register') {|f| f.text_field(:email) }
|
100
|
+
assert_has_tag(:input, :type => 'text', :name => 'user[email]', :id => 'user_email', :class => 'invalid') {actual_html }
|
101
|
+
end
|
102
|
+
|
103
|
+
should "not have a class of 'invalid' for fields with no errors" do
|
104
|
+
actual_html = form_for(@user, '/register') {|f| f.text_field(:first_name) }
|
105
|
+
assert_has_no_tag(:input, :type => 'text', :name => 'user[first_name]', :id => 'user_first_name', :class => 'invalid') {actual_html }
|
106
|
+
end
|
97
107
|
end
|
98
108
|
|
99
109
|
context 'for #fields_for method' do
|
@@ -655,4 +665,4 @@ class TestFormBuilder < Test::Unit::TestCase
|
|
655
665
|
assert_have_selector '#demo2 p input', :type => 'image', :class => 'image', :src => "/images/buttons/ok.png?#{@stamp}"
|
656
666
|
end
|
657
667
|
end
|
658
|
-
end
|
668
|
+
end
|
data/test/test_form_helpers.rb
CHANGED
@@ -19,13 +19,13 @@ class TestFormHelpers < Test::Unit::TestCase
|
|
19
19
|
actual_html = form_tag('/register', :class => 'test') { text_field_tag(:username) }
|
20
20
|
assert_has_tag('form input', :type => 'text', :name => "username") { actual_html }
|
21
21
|
end
|
22
|
-
|
22
|
+
|
23
23
|
should "display correct form with remote" do
|
24
24
|
actual_html = form_tag('/update', :class => 'put-form', :remote => true) { "Demo" }
|
25
25
|
assert_has_tag(:form, :class => "put-form", "data-remote" => 'true') { actual_html }
|
26
26
|
assert_has_no_tag(:form, "data-method" => 'post') { actual_html }
|
27
27
|
end
|
28
|
-
|
28
|
+
|
29
29
|
should "display correct form with remote and method is put" do
|
30
30
|
actual_html = form_tag('/update', :method => 'put', :remote => true) { "Demo" }
|
31
31
|
assert_has_tag(:form, "data-remote" => 'true', "data-method" => 'put') { actual_html }
|
@@ -132,6 +132,12 @@ class TestFormHelpers < Test::Unit::TestCase
|
|
132
132
|
assert_has_tag(:label, :for => 'username', :class => 'long-label', :content => "Nickname") { actual_html }
|
133
133
|
end
|
134
134
|
|
135
|
+
should "display label tag in ruby with required" do
|
136
|
+
actual_html = label_tag(:username, :caption => "Nickname", :required => true)
|
137
|
+
assert_has_tag(:label, :for => 'username', :content => 'Nickname') { actual_html }
|
138
|
+
assert_has_tag('label[for=username] span.required', :content => "*") { actual_html }
|
139
|
+
end
|
140
|
+
|
135
141
|
should "display label tag in erb for simple form" do
|
136
142
|
visit '/erb/form_tag'
|
137
143
|
assert_have_selector 'form.simple-form label', :count => 4
|
@@ -346,6 +352,14 @@ class TestFormHelpers < Test::Unit::TestCase
|
|
346
352
|
assert_has_tag('select option', :content => 'Black', :value => 'black1') { actual_html }
|
347
353
|
end
|
348
354
|
|
355
|
+
should "display options selected only for exact match" do
|
356
|
+
options = [['One', '1'], ['1', '10'], ['Two', "-1"]]
|
357
|
+
actual_html = select_tag(:range, :options => options, :selected => '-1')
|
358
|
+
assert_has_tag(:select, :name => 'range') { actual_html }
|
359
|
+
assert_has_tag('select option', :selected => 'selected', :count => 1) { actual_html }
|
360
|
+
assert_has_tag('select option', :content => 'Two', :value => '-1', :selected => 'selected') { actual_html }
|
361
|
+
end
|
362
|
+
|
349
363
|
should "display select tag in erb" do
|
350
364
|
visit '/erb/form_tag'
|
351
365
|
assert_have_selector 'form.simple-form select', :count => 1, :name => 'color'
|
@@ -432,5 +446,4 @@ class TestFormHelpers < Test::Unit::TestCase
|
|
432
446
|
assert_have_selector 'form.advanced-form input[type=image]', :count => 1, :src => "/images/buttons/submit.png?#{@stamp}"
|
433
447
|
end
|
434
448
|
end
|
435
|
-
|
436
|
-
end
|
449
|
+
end
|
data/test/test_format_helpers.rb
CHANGED
data/test/test_output_helpers.rb
CHANGED
data/test/test_render_helpers.rb
CHANGED
data/test/test_tag_helpers.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: padrino-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 37
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 15
|
10
|
+
version: 0.9.15
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Padrino Team
|
@@ -18,26 +18,28 @@ autorequire:
|
|
18
18
|
bindir: bin
|
19
19
|
cert_chain: []
|
20
20
|
|
21
|
-
date: 2010-
|
21
|
+
date: 2010-08-28 00:00:00 +02:00
|
22
22
|
default_executable:
|
23
23
|
dependencies:
|
24
24
|
- !ruby/object:Gem::Dependency
|
25
|
+
name: padrino-core
|
26
|
+
prerelease: false
|
25
27
|
requirement: &id001 !ruby/object:Gem::Requirement
|
26
28
|
none: false
|
27
29
|
requirements:
|
28
30
|
- - "="
|
29
31
|
- !ruby/object:Gem::Version
|
30
|
-
hash:
|
32
|
+
hash: 37
|
31
33
|
segments:
|
32
34
|
- 0
|
33
35
|
- 9
|
34
|
-
-
|
35
|
-
version: 0.9.
|
36
|
+
- 15
|
37
|
+
version: 0.9.15
|
36
38
|
type: :runtime
|
37
|
-
name: padrino-core
|
38
|
-
prerelease: false
|
39
39
|
version_requirements: *id001
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
|
+
name: i18n
|
42
|
+
prerelease: false
|
41
43
|
requirement: &id002 !ruby/object:Gem::Requirement
|
42
44
|
none: false
|
43
45
|
requirements:
|
@@ -50,105 +52,7 @@ dependencies:
|
|
50
52
|
- 1
|
51
53
|
version: 0.4.1
|
52
54
|
type: :runtime
|
53
|
-
name: i18n
|
54
|
-
prerelease: false
|
55
55
|
version_requirements: *id002
|
56
|
-
- !ruby/object:Gem::Dependency
|
57
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
58
|
-
none: false
|
59
|
-
requirements:
|
60
|
-
- - ">="
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
hash: 49
|
63
|
-
segments:
|
64
|
-
- 0
|
65
|
-
- 8
|
66
|
-
- 7
|
67
|
-
version: 0.8.7
|
68
|
-
type: :development
|
69
|
-
name: rake
|
70
|
-
prerelease: false
|
71
|
-
version_requirements: *id003
|
72
|
-
- !ruby/object:Gem::Dependency
|
73
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
74
|
-
none: false
|
75
|
-
requirements:
|
76
|
-
- - ">="
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
hash: 43
|
79
|
-
segments:
|
80
|
-
- 0
|
81
|
-
- 9
|
82
|
-
- 8
|
83
|
-
version: 0.9.8
|
84
|
-
type: :development
|
85
|
-
name: mocha
|
86
|
-
prerelease: false
|
87
|
-
version_requirements: *id004
|
88
|
-
- !ruby/object:Gem::Dependency
|
89
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
90
|
-
none: false
|
91
|
-
requirements:
|
92
|
-
- - ">="
|
93
|
-
- !ruby/object:Gem::Version
|
94
|
-
hash: 11
|
95
|
-
segments:
|
96
|
-
- 0
|
97
|
-
- 5
|
98
|
-
- 0
|
99
|
-
version: 0.5.0
|
100
|
-
type: :development
|
101
|
-
name: rack-test
|
102
|
-
prerelease: false
|
103
|
-
version_requirements: *id005
|
104
|
-
- !ruby/object:Gem::Dependency
|
105
|
-
requirement: &id006 !ruby/object:Gem::Requirement
|
106
|
-
none: false
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
hash: 9
|
111
|
-
segments:
|
112
|
-
- 0
|
113
|
-
- 5
|
114
|
-
- 1
|
115
|
-
version: 0.5.1
|
116
|
-
type: :development
|
117
|
-
name: webrat
|
118
|
-
prerelease: false
|
119
|
-
version_requirements: *id006
|
120
|
-
- !ruby/object:Gem::Dependency
|
121
|
-
requirement: &id007 !ruby/object:Gem::Requirement
|
122
|
-
none: false
|
123
|
-
requirements:
|
124
|
-
- - ">="
|
125
|
-
- !ruby/object:Gem::Version
|
126
|
-
hash: 43
|
127
|
-
segments:
|
128
|
-
- 2
|
129
|
-
- 2
|
130
|
-
- 22
|
131
|
-
version: 2.2.22
|
132
|
-
type: :development
|
133
|
-
name: haml
|
134
|
-
prerelease: false
|
135
|
-
version_requirements: *id007
|
136
|
-
- !ruby/object:Gem::Dependency
|
137
|
-
requirement: &id008 !ruby/object:Gem::Requirement
|
138
|
-
none: false
|
139
|
-
requirements:
|
140
|
-
- - ">="
|
141
|
-
- !ruby/object:Gem::Version
|
142
|
-
hash: 33
|
143
|
-
segments:
|
144
|
-
- 2
|
145
|
-
- 10
|
146
|
-
- 3
|
147
|
-
version: 2.10.3
|
148
|
-
type: :development
|
149
|
-
name: shoulda
|
150
|
-
prerelease: false
|
151
|
-
version_requirements: *id008
|
152
56
|
description: Tag helpers, asset helpers, form helpers, form builders and many more helpers for padrino
|
153
57
|
email: padrinorb@gmail.com
|
154
58
|
executables: []
|
@@ -176,6 +80,8 @@ files:
|
|
176
80
|
- lib/padrino-helpers/locale/es.yml
|
177
81
|
- lib/padrino-helpers/locale/fr.yml
|
178
82
|
- lib/padrino-helpers/locale/it.yml
|
83
|
+
- lib/padrino-helpers/locale/nl.yml
|
84
|
+
- lib/padrino-helpers/locale/pl.yml
|
179
85
|
- lib/padrino-helpers/locale/pt_br.yml
|
180
86
|
- lib/padrino-helpers/locale/ru.yml
|
181
87
|
- lib/padrino-helpers/locale/tr.yml
|
@@ -221,7 +127,7 @@ files:
|
|
221
127
|
- test/test_render_helpers.rb
|
222
128
|
- test/test_tag_helpers.rb
|
223
129
|
has_rdoc: true
|
224
|
-
homepage: http://
|
130
|
+
homepage: http://www.padrinorb.com
|
225
131
|
licenses: []
|
226
132
|
|
227
133
|
post_install_message:
|