pacer-neo4j 1.0.7.1-java → 1.1.1-java
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.
data/lib/pacer-neo4j/graph.rb
CHANGED
@@ -83,6 +83,33 @@ module Pacer
|
|
83
83
|
else
|
84
84
|
value
|
85
85
|
end
|
86
|
+
when true, false
|
87
|
+
value
|
88
|
+
when Array
|
89
|
+
if value.length == 0
|
90
|
+
value_type = Fixnum
|
91
|
+
else
|
92
|
+
value_type = value.first.class
|
93
|
+
value_type = TrueClass if value_type == FalseClass
|
94
|
+
value.each do |v|
|
95
|
+
if value_type != v.class or (value == true or value == false and value_type == TrueClass)
|
96
|
+
value_type = nil
|
97
|
+
break
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
case value_type
|
102
|
+
when Fixnum
|
103
|
+
value.to_java :long
|
104
|
+
when Float
|
105
|
+
value.to_java :double
|
106
|
+
when TrueClass
|
107
|
+
value.to_java :boolean
|
108
|
+
when String
|
109
|
+
value.to_java :string
|
110
|
+
else
|
111
|
+
value.to_yaml
|
112
|
+
end
|
86
113
|
else
|
87
114
|
value.to_yaml
|
88
115
|
end
|
@@ -92,6 +119,8 @@ module Pacer
|
|
92
119
|
def decode_property(value)
|
93
120
|
if value.is_a? String and value[0, 5] == '%YAML'
|
94
121
|
YAML.load(value)
|
122
|
+
elsif value.is_a? ArrayJavaProxy
|
123
|
+
value.to_a
|
95
124
|
else
|
96
125
|
value
|
97
126
|
end
|
@@ -100,6 +129,8 @@ module Pacer
|
|
100
129
|
def decode_property(value)
|
101
130
|
if value.is_a? String and value[0, 3] == '---'
|
102
131
|
YAML.load(value)
|
132
|
+
elsif value.is_a? ArrayJavaProxy
|
133
|
+
value.to_a
|
103
134
|
else
|
104
135
|
value
|
105
136
|
end
|
data/lib/pacer-neo4j/version.rb
CHANGED
Binary file
|
data/pacer-neo4j.gemspec
CHANGED
data/pom.xml
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
<artifactId>pacer-neo4j</artifactId>
|
8
8
|
<!-- NOTE: the following properties are automatically updated based on the values in lib/pacer-neo4j/version.rb -->
|
9
9
|
<properties>
|
10
|
-
<gem.version>1.
|
10
|
+
<gem.version>1.1.1</gem.version>
|
11
11
|
<blueprints.version>1.0</blueprints.version>
|
12
12
|
<pipes.version>0.8</pipes.version>
|
13
13
|
</properties>
|
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: pacer-neo4j
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.
|
5
|
+
version: 1.1.1
|
6
6
|
platform: java
|
7
7
|
authors:
|
8
8
|
- Darrick Wiebe
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-05-23 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: pacer
|
@@ -17,7 +17,7 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ! '>='
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 0.
|
20
|
+
version: 0.9.1.1
|
21
21
|
none: false
|
22
22
|
requirement: *2056
|
23
23
|
prerelease: false
|
@@ -43,7 +43,7 @@ files:
|
|
43
43
|
- pacer-neo4j.gemspec
|
44
44
|
- pom.xml
|
45
45
|
- pom/standalone.xml
|
46
|
-
- lib/pacer-neo4j-1.
|
46
|
+
- lib/pacer-neo4j-1.1.1-standalone.jar
|
47
47
|
homepage: http://neo4j.org
|
48
48
|
licenses: []
|
49
49
|
post_install_message:
|