args-handler 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/args-handler.gemspec +66 -0
- data/lib/args-handler.rb +3 -3
- data/spec/args-handler_spec.rb +1 -1
- metadata +3 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.1
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "args-handler"
|
8
|
+
s.version = "0.0.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["kaspernj"]
|
12
|
+
s.date = "2013-04-24"
|
13
|
+
s.description = "A small library to generate HTML for wished arguments form hashes."
|
14
|
+
s.email = "k@spernj.org"
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".rspec",
|
22
|
+
"Gemfile",
|
23
|
+
"Gemfile.lock",
|
24
|
+
"LICENSE.txt",
|
25
|
+
"README.rdoc",
|
26
|
+
"Rakefile",
|
27
|
+
"VERSION",
|
28
|
+
"args-handler.gemspec",
|
29
|
+
"lib/args-handler.rb",
|
30
|
+
"spec/args-handler_spec.rb",
|
31
|
+
"spec/spec_helper.rb"
|
32
|
+
]
|
33
|
+
s.homepage = "http://github.com/kaspernj/args-handler"
|
34
|
+
s.licenses = ["MIT"]
|
35
|
+
s.require_paths = ["lib"]
|
36
|
+
s.rubygems_version = "1.8.23"
|
37
|
+
s.summary = "A small library to generate HTML for wished arguments form hashes."
|
38
|
+
|
39
|
+
if s.respond_to? :specification_version then
|
40
|
+
s.specification_version = 3
|
41
|
+
|
42
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
43
|
+
s.add_runtime_dependency(%q<knjrbfw>, [">= 0"])
|
44
|
+
s.add_runtime_dependency(%q<php4r>, [">= 0"])
|
45
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.8.0"])
|
46
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
47
|
+
s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
|
48
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
|
49
|
+
else
|
50
|
+
s.add_dependency(%q<knjrbfw>, [">= 0"])
|
51
|
+
s.add_dependency(%q<php4r>, [">= 0"])
|
52
|
+
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
53
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
54
|
+
s.add_dependency(%q<bundler>, [">= 1.0.0"])
|
55
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
56
|
+
end
|
57
|
+
else
|
58
|
+
s.add_dependency(%q<knjrbfw>, [">= 0"])
|
59
|
+
s.add_dependency(%q<php4r>, [">= 0"])
|
60
|
+
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
61
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
62
|
+
s.add_dependency(%q<bundler>, [">= 1.0.0"])
|
63
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
data/lib/args-handler.rb
CHANGED
@@ -187,9 +187,9 @@ class ArgsHandler
|
|
187
187
|
html << "<tr#{classes_tr_html}><td colspan=\"2\"> </td></tr>"
|
188
188
|
else
|
189
189
|
html << "<tr#{classes_tr_html}#{attr_html(tr_attrs)}>"
|
190
|
-
html << "<td class=\"tdt\" id=\"#{html_escape("#{args[:id]}_label")}\"><div>"
|
190
|
+
html << "<td class=\"tdt\" id=\"#{html_escape("#{args[:id]}_label")}\"><div><label>"
|
191
191
|
html << title_html
|
192
|
-
html << "</div></td>"
|
192
|
+
html << "</label></div></td>"
|
193
193
|
html << "<td#{self.style_html(css)}#{attr_html(td_attrs)}><div>"
|
194
194
|
|
195
195
|
if args[:type] == :textarea
|
@@ -352,7 +352,7 @@ class ArgsHandler
|
|
352
352
|
str = str.to_s
|
353
353
|
|
354
354
|
if Kernel.const_defined?("CGI")
|
355
|
-
return CGI.
|
355
|
+
return CGI.escape_html(str)
|
356
356
|
elsif Kernel.const_defined?("Knj")
|
357
357
|
return Knj::Web.html(str)
|
358
358
|
else
|
data/spec/args-handler_spec.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: args-handler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- kaspernj
|
@@ -123,6 +123,7 @@ files:
|
|
123
123
|
- README.rdoc
|
124
124
|
- Rakefile
|
125
125
|
- VERSION
|
126
|
+
- args-handler.gemspec
|
126
127
|
- lib/args-handler.rb
|
127
128
|
- spec/args-handler_spec.rb
|
128
129
|
- spec/spec_helper.rb
|
@@ -140,7 +141,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
140
141
|
- !ruby/object:Gem::Version
|
141
142
|
segments:
|
142
143
|
- 0
|
143
|
-
hash:
|
144
|
+
hash: -111140155802987176
|
144
145
|
version: '0'
|
145
146
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
146
147
|
none: false
|