xplanner 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module XPlanner
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
@@ -21,7 +21,11 @@ module XPlanner
21
21
  if h.class == Array
22
22
  results = h.collect { |thing| my_class.new( thing ) }
23
23
  elsif h.class == Hash
24
- results = my_class.new( h )
24
+ if h.has_key? :id
25
+ results = my_class.new( h )
26
+ else
27
+ results = nil
28
+ end
25
29
  end
26
30
  results
27
31
  end
data/test/tests.rb CHANGED
@@ -61,6 +61,9 @@ describe 'XPlanner+ SOAP interface' do
61
61
  this_iteration = XPlanner::Iteration.retrieve( @myIteration.id )
62
62
  this_iteration.should be_instance_of XPlanner::Iteration
63
63
  this_iteration.id.should eq( @myIteration.id )
64
+
65
+ bad_request = XPlanner::Iteration.retrieve( -1 )
66
+ bad_request.should be_nil
64
67
  end
65
68
 
66
69
  it 'Update' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xplanner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: savon
17
- requirement: &2168985100 !ruby/object:Gem::Requirement
17
+ requirement: &2157635000 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 1.2.0
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2168985100
25
+ version_requirements: *2157635000
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: nokogiri
28
- requirement: &2168984600 !ruby/object:Gem::Requirement
28
+ requirement: &2157634500 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 1.5.0
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *2168984600
36
+ version_requirements: *2157634500
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: activesupport
39
- requirement: &2168984140 !ruby/object:Gem::Requirement
39
+ requirement: &2157634040 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: 3.2.0
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *2168984140
47
+ version_requirements: *2157634040
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: rspec
50
- requirement: &2168983760 !ruby/object:Gem::Requirement
50
+ requirement: &2157633660 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,7 +55,7 @@ dependencies:
55
55
  version: '0'
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *2168983760
58
+ version_requirements: *2157633660
59
59
  description: Ruby wrapper for XPlanner+ SOAP interface
60
60
  email:
61
61
  - whoojemaflip@gmail.com