eaal 0.1.12 → 0.1.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b79802b2a670c36b84cec166e900b1ae21bd0ecd
4
+ data.tar.gz: 7366019521762be06381586ef47f63647ca34e6b
5
+ SHA512:
6
+ metadata.gz: ae0a27d9406aaabd9eb312606d62b557074ad86f5dcd2eeac9443c8495c6a10b32710d82e956817b156ad698061cd15a8a92600d78806fa0214e235942e63f50
7
+ data.tar.gz: 178ceb672ff95fe5ed08a9f9064a0f4a9d8ba133a21d1cced93cc3e3370c37e8c9d01560f7654a5363bb99c1f569437dcfd7c60f3671d54892dcc50c83f0aa41
File without changes
data/Rakefile CHANGED
@@ -12,7 +12,6 @@ Hoe.plugin :gemspec
12
12
  $hoe = Hoe.spec 'eaal' do |p|
13
13
  p.developer('Peter Petermann', 'ppetermann80@googlemail.com')
14
14
  p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
15
- p.rubyforge_name = p.name
16
15
  p.extra_deps = [
17
16
  ['hpricot', '>= 0.6'],
18
17
  ['memcache-client','>= 1.7.1'],
@@ -25,8 +24,8 @@ $hoe = Hoe.spec 'eaal' do |p|
25
24
  ]
26
25
 
27
26
  p.clean_globs |= %w[**/.DS_Store tmp *.log]
28
- path = (p.rubyforge_name == p.name) ? p.rubyforge_name : "\#{p.rubyforge_name}/\#{p.name}"
29
- p.remote_rdoc_dir = File.join(path.gsub(/^#{p.rubyforge_name}\/?/,''), 'rdoc')
27
+ path = p.name
28
+ # p.remote_rdoc_dir = File.join(path.gsub(/^#{p.rubyforge_name}\/?/,''), 'rdoc')
30
29
  p.rsync_args = '-av --delete --ignore-errors'
31
30
  end
32
31
 
@@ -34,7 +34,7 @@ require 'eaal/result'
34
34
  require 'eaal/rowset'
35
35
 
36
36
  module EAAL
37
- VERSION = "0.1.12" # fix for Hoe.spec 2.x
37
+ VERSION = "0.1.13" # fix for Hoe.spec 2.x
38
38
  @@version_string = "EAAL" + VERSION # the version string, used as client name in http requests
39
39
 
40
40
  @@api_base = "https://api.eveonline.com" # the url used as basis for all requests, you might want to use gatecamper url or a personal proxy instead
@@ -60,7 +60,7 @@ class EAAL::API
60
60
  when 404
61
61
  raise EAAL::Exception::APINotFoundError.new("The requested API (#{scope} / #{name}) could not be found.")
62
62
  else
63
- raise EAAL::Exception::HTTPError.new("An HTTP Error occured, body: " + response.body)
63
+ raise EAAL::Exception::HTTPError.new(response.status), "An HTTP Error occurred, body: #{response.body}"
64
64
  end
65
65
 
66
66
  EAAL.cache.save(self.keyid, self.vcode, scope,name,opts, response.body)
@@ -27,6 +27,11 @@ module EAAL::Exception
27
27
 
28
28
  # Used when an http error is encountered
29
29
  class HTTPError < EAALError
30
+ attr_reader :status
31
+
32
+ def initialize(status)
33
+ @status = status
34
+ end
30
35
  end
31
36
 
32
37
  # Used when the Eve API returns a 404
metadata CHANGED
@@ -1,100 +1,88 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eaal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
5
- prerelease:
4
+ version: 0.1.13
6
5
  platform: ruby
7
6
  authors:
8
7
  - Peter Petermann
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-10-21 00:00:00.000000000 Z
11
+ date: 2015-04-01 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: hpricot
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0.6'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0.6'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: memcache-client
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: 1.7.1
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: 1.7.1
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: faraday
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: 0.8.4
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: 0.8.4
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: hoe
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - ">="
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - ">="
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: hoe-gemspec
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - ">="
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - ">="
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
- description: ! 'EAAL (Eve API Access Layer) is a ruby library for accessing data of
95
- the API of
96
-
97
- the game Eve Online'
83
+ description: |-
84
+ EAAL (Eve API Access Layer) is a ruby library for accessing data of the API of
85
+ the game Eve Online
98
86
  email:
99
87
  - ppetermann80@googlemail.com
100
88
  executables: []
@@ -105,6 +93,7 @@ extra_rdoc_files:
105
93
  - Manifest.txt
106
94
  - README.rdoc
107
95
  files:
96
+ - ".gemtest"
108
97
  - History.txt
109
98
  - LICENSE.txt
110
99
  - Manifest.txt
@@ -133,32 +122,30 @@ files:
133
122
  - test/test_eaal.rb
134
123
  - test/test_helper.rb
135
124
  homepage: http://eaal.rubyforge.org
136
- licenses: []
125
+ licenses:
126
+ - MIT
127
+ metadata: {}
137
128
  post_install_message:
138
129
  rdoc_options:
139
- - --main
130
+ - "--main"
140
131
  - README.rdoc
141
132
  require_paths:
142
133
  - lib
143
134
  required_ruby_version: !ruby/object:Gem::Requirement
144
- none: false
145
135
  requirements:
146
- - - ! '>='
136
+ - - ">="
147
137
  - !ruby/object:Gem::Version
148
138
  version: '0'
149
139
  required_rubygems_version: !ruby/object:Gem::Requirement
150
- none: false
151
140
  requirements:
152
- - - ! '>='
141
+ - - ">="
153
142
  - !ruby/object:Gem::Version
154
143
  version: '0'
155
144
  requirements: []
156
- rubyforge_project: eaal
157
- rubygems_version: 1.8.23
145
+ rubyforge_project:
146
+ rubygems_version: 2.2.2
158
147
  signing_key:
159
- specification_version: 3
148
+ specification_version: 4
160
149
  summary: EAAL (Eve API Access Layer) is a ruby library for accessing data of the API
161
150
  of the game Eve Online
162
- test_files:
163
- - test/test_eaal.rb
164
- - test/test_helper.rb
151
+ test_files: []