dsander-reve 0.0.138 → 0.0.139

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/reve/classes.rb +2 -2
  2. data/test/test_reve.rb +2 -2
  3. metadata +3 -5
data/lib/reve/classes.rb CHANGED
@@ -1578,8 +1578,8 @@ module Reve #:nodoc:
1578
1578
  @corporation_id = (elem/'corporationID').inner_html.to_i
1579
1579
  @corporation_name = (elem/'corporation').inner_html
1580
1580
  @corporation_date = Time.parse((elem/'corporationDate').inner_html)
1581
- @alliance_id = (elem/'allianceID').inner_html.to_i
1582
- @alliance_name = (elem/'alliance').inner_html
1581
+ @alliance_id = (elem/'allianceID').inner_html == "" ? nil : (elem/'allianceID').inner_html.to_i
1582
+ @alliance_name = (elem/'alliance').inner_html == "" ? nil : (elem/'alliance').inner_html
1583
1583
  @alliance_date = Time.parse((elem/'alliancenDate').inner_html) rescue nil
1584
1584
  @security_status = (elem/'securityStatus').inner_html.to_f
1585
1585
  @skillpoints = (elem/'skillPoints').inner_html == "" ? nil : (elem/'skillPoints').inner_html.to_i
data/test/test_reve.rb CHANGED
@@ -1268,8 +1268,8 @@ class TestReve < Test::Unit::TestCase
1268
1268
  assert_equal 553239300, info.corporation_id
1269
1269
  assert_equal 'Centre Of Attention', info.corporation_name
1270
1270
  assert_equal Time.parse('2009-02-03 13:06:00'), info.corporation_date
1271
- assert_equal 1923227030, info.alliance_id
1272
- assert_equal 'Middle of Nowhere', info.alliance_name
1271
+ assert_equal nil, info.alliance_id
1272
+ assert_equal nil, info.alliance_name
1273
1273
  assert_equal Time.parse('2009-02-03 13:06:00'), info.alliance_date
1274
1274
  assert_equal 0.0, info.security_status
1275
1275
  # limited
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: dsander-reve
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.138
5
+ version: 0.0.139
6
6
  platform: ruby
7
7
  authors:
8
8
  - Lisa Seelye
@@ -10,8 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2010-09-07 00:00:00 +00:00
14
- default_executable:
13
+ date: 2011-05-13 00:00:00 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: hpricot
@@ -164,7 +163,6 @@ files:
164
163
  - test/xml/corp_membersecurity.xml
165
164
  - test/xml/conqurable_stations.xml
166
165
  - test/xml/corporate_market_orders.xml
167
- has_rdoc: true
168
166
  homepage: http://github.com/lisa/reve
169
167
  licenses: []
170
168
 
@@ -188,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
188
186
  requirements: []
189
187
 
190
188
  rubyforge_project: reve
191
- rubygems_version: 1.5.2
189
+ rubygems_version: 1.8.2
192
190
  signing_key:
193
191
  specification_version: 3
194
192
  summary: Reve is a Ruby library to interface with the Eve Online API