neography 0.0.25 → 0.0.26

Sign up to get free protection for your applications and to get access to all the features.
data/.project CHANGED
@@ -5,11 +5,6 @@
5
5
  <projects>
6
6
  </projects>
7
7
  <buildSpec>
8
- <buildCommand>
9
- <name>com.aptana.ide.core.unifiedBuilder</name>
10
- <arguments>
11
- </arguments>
12
- </buildCommand>
13
8
  </buildSpec>
14
9
  <natures>
15
10
  <nature>com.aptana.ruby.core.rubynature</nature>
@@ -41,9 +41,13 @@ module Neography
41
41
  end
42
42
 
43
43
 
44
- def self.method_missing(method_sym, *arguments, &block)
45
- if (method_sym.to_s =~ /$=/) != nil
44
+ def method_missing(method_sym, *arguments, &block)
45
+ if (method_sym.to_s =~ /=$/) != nil
46
46
  new_ostruct_member(method_sym.to_s.chomp("="))
47
+
48
+ # We just defined the getter/setter above, but we haven't actually
49
+ # applied them yet.
50
+ self.send(method_sym, *arguments)
47
51
  else
48
52
  super
49
53
  end
@@ -4,7 +4,7 @@ require 'os'
4
4
  namespace :neo4j do
5
5
  desc "Install Neo4j"
6
6
  task :install, :edition, :version do |t, args|
7
- args.with_defaults(:edition => "community", :version => "1.7.M02")
7
+ args.with_defaults(:edition => "community", :version => "1.7")
8
8
  puts "Installing Neo4j-#{args[:edition]}-#{args[:version]}"
9
9
 
10
10
  if OS::Underlying.windows?
@@ -1,3 +1,3 @@
1
1
  module Neography
2
- VERSION = "0.0.25"
2
+ VERSION = "0.0.26"
3
3
  end
@@ -136,7 +136,7 @@ describe Neography::Node do
136
136
  existing_node.eyes.should == "brown"
137
137
  end
138
138
 
139
- it "can change a node's properties that does not already exist" do
139
+ it "can change a node's properties that does not already exist using []=" do
140
140
  new_node = Neography::Node.create("weight" => 150, "eyes" => "green")
141
141
 
142
142
  new_node.weight = 200
@@ -149,6 +149,15 @@ describe Neography::Node do
149
149
  existing_node.hair.should == "black"
150
150
  end
151
151
 
152
+ it "can change a node's properties that does not already exist" do
153
+ new_node = Neography::Node.create
154
+
155
+ new_node.hair = "black"
156
+
157
+ existing_node = Neography::Node.load(new_node)
158
+ existing_node.hair.should == "black"
159
+ end
160
+
152
161
  it "can pass issue 18" do
153
162
  n = Neography::Node.create("name" => "Test")
154
163
  n.prop = 1
@@ -46,7 +46,7 @@ describe Neography::Rest do
46
46
  new_node["data"]["name"].should == "Max"
47
47
  new_node["data"]["age"].should == 31
48
48
  new_node_id = new_node["self"].split('/').last
49
- existing_node = @neo.create_unique_node(index_name, key, value, {"age" => 31, "name" => "Max"})
49
+ existing_node = @neo.create_unique_node(index_name, key, value, {"age" => 39, "name" => "Thomas"})
50
50
  existing_node["self"].split('/').last.should == new_node_id
51
51
  existing_node["data"]["name"].should == "Max"
52
52
  existing_node["data"]["age"].should == 31
metadata CHANGED
@@ -1,167 +1,122 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: neography
3
- version: !ruby/object:Gem::Version
4
- hash: 45
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.26
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 25
10
- version: 0.0.25
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Max De Marzi
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-04-04 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-04-19 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: rspec
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &83777960 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 0
31
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
32
22
  type: :development
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: net-http-spy
36
23
  prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *83777960
25
+ - !ruby/object:Gem::Dependency
26
+ name: net-http-spy
27
+ requirement: &83776860 !ruby/object:Gem::Requirement
38
28
  none: false
39
- requirements:
40
- - - "="
41
- - !ruby/object:Gem::Version
42
- hash: 21
43
- segments:
44
- - 0
45
- - 2
46
- - 1
29
+ requirements:
30
+ - - =
31
+ - !ruby/object:Gem::Version
47
32
  version: 0.2.1
48
33
  type: :development
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: rake
52
34
  prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *83776860
36
+ - !ruby/object:Gem::Dependency
37
+ name: rake
38
+ requirement: &83775270 !ruby/object:Gem::Requirement
54
39
  none: false
55
- requirements:
40
+ requirements:
56
41
  - - ~>
57
- - !ruby/object:Gem::Version
58
- hash: 49
59
- segments:
60
- - 0
61
- - 8
62
- - 7
42
+ - !ruby/object:Gem::Version
63
43
  version: 0.8.7
64
44
  type: :development
65
- version_requirements: *id003
66
- - !ruby/object:Gem::Dependency
67
- name: crack
68
45
  prerelease: false
69
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *83775270
47
+ - !ruby/object:Gem::Dependency
48
+ name: crack
49
+ requirement: &83773650 !ruby/object:Gem::Requirement
70
50
  none: false
71
- requirements:
72
- - - "="
73
- - !ruby/object:Gem::Version
74
- hash: 11
75
- segments:
76
- - 0
77
- - 1
78
- - 8
51
+ requirements:
52
+ - - =
53
+ - !ruby/object:Gem::Version
79
54
  version: 0.1.8
80
55
  type: :runtime
81
- version_requirements: *id004
82
- - !ruby/object:Gem::Dependency
83
- name: httparty
84
56
  prerelease: false
85
- requirement: &id005 !ruby/object:Gem::Requirement
57
+ version_requirements: *83773650
58
+ - !ruby/object:Gem::Dependency
59
+ name: httparty
60
+ requirement: &83772560 !ruby/object:Gem::Requirement
86
61
  none: false
87
- requirements:
88
- - - "="
89
- - !ruby/object:Gem::Version
90
- hash: 61
91
- segments:
92
- - 0
93
- - 8
94
- - 1
62
+ requirements:
63
+ - - =
64
+ - !ruby/object:Gem::Version
95
65
  version: 0.8.1
96
66
  type: :runtime
97
- version_requirements: *id005
98
- - !ruby/object:Gem::Dependency
99
- name: rake
100
67
  prerelease: false
101
- requirement: &id006 !ruby/object:Gem::Requirement
68
+ version_requirements: *83772560
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: &83771310 !ruby/object:Gem::Requirement
102
72
  none: false
103
- requirements:
104
- - - ">="
105
- - !ruby/object:Gem::Version
106
- hash: 49
107
- segments:
108
- - 0
109
- - 8
110
- - 7
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
111
76
  version: 0.8.7
112
77
  type: :runtime
113
- version_requirements: *id006
114
- - !ruby/object:Gem::Dependency
115
- name: json
116
78
  prerelease: false
117
- requirement: &id007 !ruby/object:Gem::Requirement
79
+ version_requirements: *83771310
80
+ - !ruby/object:Gem::Dependency
81
+ name: json
82
+ requirement: &83712670 !ruby/object:Gem::Requirement
118
83
  none: false
119
- requirements:
120
- - - ">="
121
- - !ruby/object:Gem::Version
122
- hash: 3
123
- segments:
124
- - 0
125
- version: "0"
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
126
88
  type: :runtime
127
- version_requirements: *id007
128
- - !ruby/object:Gem::Dependency
129
- name: os
130
89
  prerelease: false
131
- requirement: &id008 !ruby/object:Gem::Requirement
90
+ version_requirements: *83712670
91
+ - !ruby/object:Gem::Dependency
92
+ name: os
93
+ requirement: &83711580 !ruby/object:Gem::Requirement
132
94
  none: false
133
- requirements:
134
- - - ">="
135
- - !ruby/object:Gem::Version
136
- hash: 3
137
- segments:
138
- - 0
139
- version: "0"
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
140
99
  type: :runtime
141
- version_requirements: *id008
142
- - !ruby/object:Gem::Dependency
143
- name: rubyzip
144
100
  prerelease: false
145
- requirement: &id009 !ruby/object:Gem::Requirement
101
+ version_requirements: *83711580
102
+ - !ruby/object:Gem::Dependency
103
+ name: rubyzip
104
+ requirement: &83710400 !ruby/object:Gem::Requirement
146
105
  none: false
147
- requirements:
148
- - - ">="
149
- - !ruby/object:Gem::Version
150
- hash: 3
151
- segments:
152
- - 0
153
- version: "0"
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
154
110
  type: :runtime
155
- version_requirements: *id009
156
- description: A Ruby wrapper to the Neo4j Rest API see http://components.neo4j.org/neo4j-rest/ for more details.
111
+ prerelease: false
112
+ version_requirements: *83710400
113
+ description: A Ruby wrapper to the Neo4j Rest API see http://components.neo4j.org/neo4j-rest/
114
+ for more details.
157
115
  email: maxdemarzi@gmail.com
158
116
  executables: []
159
-
160
117
  extensions: []
161
-
162
118
  extra_rdoc_files: []
163
-
164
- files:
119
+ files:
165
120
  - .gitignore
166
121
  - .project
167
122
  - .travis.yml
@@ -218,36 +173,26 @@ files:
218
173
  - spec/spec_helper.rb
219
174
  homepage: http://rubygems.org/gems/neography
220
175
  licenses: []
221
-
222
176
  post_install_message:
223
177
  rdoc_options: []
224
-
225
- require_paths:
178
+ require_paths:
226
179
  - lib
227
- required_ruby_version: !ruby/object:Gem::Requirement
180
+ required_ruby_version: !ruby/object:Gem::Requirement
228
181
  none: false
229
- requirements:
230
- - - ">="
231
- - !ruby/object:Gem::Version
232
- hash: 3
233
- segments:
234
- - 0
235
- version: "0"
236
- required_rubygems_version: !ruby/object:Gem::Requirement
182
+ requirements:
183
+ - - ! '>='
184
+ - !ruby/object:Gem::Version
185
+ version: '0'
186
+ required_rubygems_version: !ruby/object:Gem::Requirement
237
187
  none: false
238
- requirements:
239
- - - ">="
240
- - !ruby/object:Gem::Version
241
- hash: 3
242
- segments:
243
- - 0
244
- version: "0"
188
+ requirements:
189
+ - - ! '>='
190
+ - !ruby/object:Gem::Version
191
+ version: '0'
245
192
  requirements: []
246
-
247
193
  rubyforge_project: neography
248
- rubygems_version: 1.8.17
194
+ rubygems_version: 1.8.10
249
195
  signing_key:
250
196
  specification_version: 3
251
197
  summary: ruby wrapper to Neo4j Rest API
252
198
  test_files: []
253
-