rgviz-rails 0.45 → 0.46

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rgviz_rails/view_helper.rb +13 -1
  2. metadata +42 -57
@@ -9,7 +9,19 @@ module Rgviz
9
9
 
10
10
  @s << ',' if i > 0
11
11
  @s << "\"#{key}\":"
12
- if special_keys.include?(key) || !value.kind_of?(String)
12
+ if value.kind_of? Array
13
+ @s << '['
14
+ value.each_with_index do |val, i|
15
+ @s << ',' if i > 0
16
+ if val.kind_of? String
17
+ val = val.gsub('"', '\"')
18
+ @s << "\"#{val}\""
19
+ else
20
+ @s << val.to_s
21
+ end
22
+ end
23
+ @s << ']'
24
+ elsif special_keys.include?(key) || !value.kind_of?(String)
13
25
  @s << value.to_s
14
26
  else
15
27
  value = value.gsub('"', '\"')
metadata CHANGED
@@ -1,36 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rgviz-rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 81
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 45
9
- version: "0.45"
4
+ version: "0.46"
10
5
  platform: ruby
11
6
  authors:
12
- - Ary Borenszweig
7
+ - Ary Borenszweig
13
8
  autorequire:
14
9
  bindir: bin
15
10
  cert_chain: []
16
11
 
17
- date: 2010-12-16 00:00:00 -03:00
12
+ date: 2010-12-30 00:00:00 -02:00
18
13
  default_executable:
19
14
  dependencies:
20
- - !ruby/object:Gem::Dependency
21
- name: rgviz
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 0
31
- version: "0"
32
- type: :runtime
33
- version_requirements: *id001
15
+ - !ruby/object:Gem::Dependency
16
+ name: rgviz
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
24
+ version:
34
25
  description:
35
26
  email: aborenszweig@manas.com.ar
36
27
  executables: []
@@ -38,26 +29,26 @@ executables: []
38
29
  extensions: []
39
30
 
40
31
  extra_rdoc_files:
41
- - README.rdoc
32
+ - README.rdoc
42
33
  files:
43
- - lib/rgviz_rails.rb
44
- - lib/rgviz_rails/executor.rb
45
- - lib/rgviz_rails/js_renderer.rb
46
- - lib/rgviz_rails/tqx.rb
47
- - lib/rgviz_rails/view_helper.rb
48
- - lib/rgviz_rails/adapters/mysql_adapter.rb
49
- - lib/rgviz_rails/adapters/postgresql_adapter.rb
50
- - lib/rgviz_rails/adapters/sqlite_adapter.rb
51
- - lib/rgviz_rails/init.rb
52
- - rails/init.rb
53
- - spec/blueprints.rb
54
- - spec/spec.opts
55
- - spec/spec_helper.rb
56
- - spec/models/city.rb
57
- - spec/models/country.rb
58
- - spec/models/person.rb
59
- - spec/rgviz/executor_spec.rb
60
- - README.rdoc
34
+ - lib/rgviz_rails.rb
35
+ - lib/rgviz_rails/executor.rb
36
+ - lib/rgviz_rails/js_renderer.rb
37
+ - lib/rgviz_rails/tqx.rb
38
+ - lib/rgviz_rails/view_helper.rb
39
+ - lib/rgviz_rails/adapters/mysql_adapter.rb
40
+ - lib/rgviz_rails/adapters/postgresql_adapter.rb
41
+ - lib/rgviz_rails/adapters/sqlite_adapter.rb
42
+ - lib/rgviz_rails/init.rb
43
+ - rails/init.rb
44
+ - spec/blueprints.rb
45
+ - spec/spec.opts
46
+ - spec/spec_helper.rb
47
+ - spec/models/city.rb
48
+ - spec/models/country.rb
49
+ - spec/models/person.rb
50
+ - spec/rgviz/executor_spec.rb
51
+ - README.rdoc
61
52
  has_rdoc: true
62
53
  homepage: http://code.google.com/p/rgviz-rails
63
54
  licenses: []
@@ -66,29 +57,23 @@ post_install_message:
66
57
  rdoc_options: []
67
58
 
68
59
  require_paths:
69
- - lib
60
+ - lib
70
61
  required_ruby_version: !ruby/object:Gem::Requirement
71
- none: false
72
62
  requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- hash: 3
76
- segments:
77
- - 0
78
- version: "0"
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: "0"
66
+ version:
79
67
  required_rubygems_version: !ruby/object:Gem::Requirement
80
- none: false
81
68
  requirements:
82
- - - ">="
83
- - !ruby/object:Gem::Version
84
- hash: 3
85
- segments:
86
- - 0
87
- version: "0"
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: "0"
72
+ version:
88
73
  requirements: []
89
74
 
90
75
  rubyforge_project:
91
- rubygems_version: 1.3.7
76
+ rubygems_version: 1.3.5
92
77
  signing_key:
93
78
  specification_version: 3
94
79
  summary: rgviz for rails