neweden 0.1.3 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.5
data/lib/neweden.rb CHANGED
@@ -1,2 +1,19 @@
1
+ require 'typhoeus'
2
+ require 'nokogiri'
3
+ require 'awesome_print'
4
+
5
+ require File.join(File.dirname(__FILE__), 'string_extensions')
6
+ require File.join(File.dirname(__FILE__), 'hash_extensions')
7
+ require File.join(File.dirname(__FILE__), 'neweden', 'errors')
8
+ require File.join(File.dirname(__FILE__), 'neweden', 'account')
9
+ require File.join(File.dirname(__FILE__), 'neweden', 'api')
10
+ require File.join(File.dirname(__FILE__), 'neweden', 'character')
11
+ require File.join(File.dirname(__FILE__), 'neweden', 'corporation')
12
+ require File.join(File.dirname(__FILE__), 'neweden', 'eve')
13
+ require File.join(File.dirname(__FILE__), 'neweden', 'image')
14
+ require File.join(File.dirname(__FILE__), 'neweden', 'map')
15
+ require File.join(File.dirname(__FILE__), 'neweden', 'server')
16
+ require File.join(File.dirname(__FILE__), 'neweden', 'connection')
17
+
1
18
  module NewEden
2
19
  end
@@ -7,8 +7,8 @@ module NewEden
7
7
 
8
8
  CHARACTER_ENDPOINTS.each do |endpoint|
9
9
  module_eval <<-RUBY
10
- def #{endpoint.underscore}(character_id)
11
- character_request("/char/#{endpoint}.xml.aspx", character_id)
10
+ def #{endpoint.underscore}(character_id, options = {})
11
+ character_request("/char/#{endpoint}.xml.aspx", character_id, options)
12
12
  end
13
13
  RUBY
14
14
  end
@@ -43,8 +43,8 @@ module NewEden
43
43
 
44
44
  private
45
45
 
46
- def character_request(endpoint, character_id)
47
- request(endpoint, :post, :characterID => character_id)
46
+ def character_request(endpoint, character_id, options = {})
47
+ request(endpoint, :post, { :characterID => character_id }.merge(options))
48
48
  end
49
49
  end
50
50
  end
data/neweden.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "neweden"
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jason Adams"]
12
- s.date = "2012-05-14"
12
+ s.date = "2012-10-12"
13
13
  s.description = "Ruby library for accessing Eve Online API"
14
14
  s.email = "jasonmadams@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -24,7 +24,6 @@ Gem::Specification.new do |s|
24
24
  "README.md",
25
25
  "Rakefile",
26
26
  "VERSION",
27
- "init.rb",
28
27
  "lib/hash_extensions.rb",
29
28
  "lib/neweden.rb",
30
29
  "lib/neweden/account.rb",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neweden
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-14 00:00:00.000000000 Z
12
+ date: 2012-10-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: typhoeus
@@ -138,7 +138,6 @@ files:
138
138
  - README.md
139
139
  - Rakefile
140
140
  - VERSION
141
- - init.rb
142
141
  - lib/hash_extensions.rb
143
142
  - lib/neweden.rb
144
143
  - lib/neweden/account.rb
@@ -173,7 +172,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
173
172
  version: '0'
174
173
  segments:
175
174
  - 0
176
- hash: 2530693598291418128
175
+ hash: -4492255227359569142
177
176
  required_rubygems_version: !ruby/object:Gem::Requirement
178
177
  none: false
179
178
  requirements:
data/init.rb DELETED
@@ -1,17 +0,0 @@
1
- require 'typhoeus'
2
- require 'nokogiri'
3
- require 'awesome_print'
4
-
5
- require File.join(File.dirname(__FILE__), 'lib', 'string_extensions')
6
- require File.join(File.dirname(__FILE__), 'lib', 'hash_extensions')
7
- require File.join(File.dirname(__FILE__), 'lib', 'neweden', 'errors')
8
- require File.join(File.dirname(__FILE__), 'lib', 'neweden', 'account')
9
- require File.join(File.dirname(__FILE__), 'lib', 'neweden', 'api')
10
- require File.join(File.dirname(__FILE__), 'lib', 'neweden', 'character')
11
- require File.join(File.dirname(__FILE__), 'lib', 'neweden', 'corporation')
12
- require File.join(File.dirname(__FILE__), 'lib', 'neweden', 'eve')
13
- require File.join(File.dirname(__FILE__), 'lib', 'neweden', 'image')
14
- require File.join(File.dirname(__FILE__), 'lib', 'neweden', 'map')
15
- require File.join(File.dirname(__FILE__), 'lib', 'neweden', 'server')
16
- require File.join(File.dirname(__FILE__), 'lib', 'neweden', 'connection')
17
- require File.join(File.dirname(__FILE__), 'lib', 'neweden')