guidestar 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/guidestar.rb +1 -0
- data/lib/guidestar/client.rb +8 -7
- data/lib/guidestar/connection.rb +3 -3
- data/lib/guidestar/version.rb +1 -1
- metadata +8 -19
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 36c50b0d4ef5c4b98d1f5aa13b9035c5b25bc8cf
|
4
|
+
data.tar.gz: d26976812542483914c6b437fa553eb49b781098
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 994cfb8093e6d1a29302bfc10dac32e3b50e79ae57434ad95593443c2f75c9be5c338f3887ee0ff3ce99aba56e7744f00d5b8a01c4174af73f8626354a98d9d8
|
7
|
+
data.tar.gz: dac2a78c6aeb58e5b4c0b7cff8e409ca59ec425cb5252b55126ebe357f10f69ce0a211aaef47052ef66a413ac8f89bc8eae1ae257970d9216a27191bd522888b
|
data/lib/guidestar.rb
CHANGED
data/lib/guidestar/client.rb
CHANGED
@@ -20,13 +20,14 @@ module Guidestar
|
|
20
20
|
# Public: Sets up the core Client object that can be reused throughout
|
21
21
|
# the request.
|
22
22
|
def initialize(options={})
|
23
|
-
@api_url
|
24
|
-
@proxy
|
25
|
-
@username
|
26
|
-
@password
|
27
|
-
@
|
28
|
-
|
29
|
-
|
23
|
+
@api_url = options.delete(:endpoint) || Guidestar.default_endpoint
|
24
|
+
@proxy = options.delete(:proxy) || Guidestar.proxy
|
25
|
+
@username = options.delete(:username) || Guidestar.username
|
26
|
+
@password = options.delete(:password) || Guidestar.password
|
27
|
+
@ssl_options = options.delete(:ssl_options) || Guidestar.ssl_options
|
28
|
+
@options = options.reverse_merge!(:version => 1.0,
|
29
|
+
:page_size => 25,
|
30
|
+
:page => 1 )
|
30
31
|
end
|
31
32
|
|
32
33
|
# Internal: Provides the URL for accessing the API
|
data/lib/guidestar/connection.rb
CHANGED
@@ -5,12 +5,12 @@ module Guidestar
|
|
5
5
|
# @return [Faraday::Connection]
|
6
6
|
def connection
|
7
7
|
return @connection if @connection
|
8
|
-
|
9
|
-
|
8
|
+
opts = { :url => api_url, :params => {}, :headers => default_headers }
|
9
|
+
opts[:ssl] = @ssl_options if @ssl_options.is_a?(Hash)
|
10
|
+
@connection = Faraday.new(opts) do |conn|
|
10
11
|
conn.response :mashify
|
11
12
|
conn.response :xml, :content_type => /\bxml$/
|
12
13
|
conn.response :raise_guidestar_error
|
13
|
-
|
14
14
|
conn.adapter Faraday.default_adapter
|
15
15
|
end
|
16
16
|
@connection.proxy(self.proxy) if self.proxy
|
data/lib/guidestar/version.rb
CHANGED
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guidestar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
5
|
-
prerelease:
|
4
|
+
version: 0.2.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Kelly Martin
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-11-22 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: faraday
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
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
|
@@ -30,7 +27,6 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: faraday_middleware
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ~>
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,7 +34,6 @@ dependencies:
|
|
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
|
@@ -46,7 +41,6 @@ dependencies:
|
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rash
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ~>
|
52
46
|
- !ruby/object:Gem::Version
|
@@ -54,7 +48,6 @@ dependencies:
|
|
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
|
@@ -62,7 +55,6 @@ dependencies:
|
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: multi_xml
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
59
|
- - ~>
|
68
60
|
- !ruby/object:Gem::Version
|
@@ -70,7 +62,6 @@ dependencies:
|
|
70
62
|
type: :runtime
|
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
|
@@ -78,7 +69,6 @@ dependencies:
|
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: nokogiri
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
73
|
- - ~>
|
84
74
|
- !ruby/object:Gem::Version
|
@@ -86,7 +76,6 @@ dependencies:
|
|
86
76
|
type: :runtime
|
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
|
@@ -115,26 +104,26 @@ files:
|
|
115
104
|
- lib/guidestar/version.rb
|
116
105
|
homepage: http://github.com/kellym/guidestar
|
117
106
|
licenses: []
|
107
|
+
metadata: {}
|
118
108
|
post_install_message:
|
119
109
|
rdoc_options: []
|
120
110
|
require_paths:
|
121
111
|
- lib
|
122
112
|
required_ruby_version: !ruby/object:Gem::Requirement
|
123
|
-
none: false
|
124
113
|
requirements:
|
125
|
-
- -
|
114
|
+
- - '>='
|
126
115
|
- !ruby/object:Gem::Version
|
127
116
|
version: '0'
|
128
117
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
118
|
requirements:
|
131
|
-
- -
|
119
|
+
- - '>='
|
132
120
|
- !ruby/object:Gem::Version
|
133
121
|
version: '0'
|
134
122
|
requirements: []
|
135
123
|
rubyforge_project:
|
136
|
-
rubygems_version:
|
124
|
+
rubygems_version: 2.0.2
|
137
125
|
signing_key:
|
138
|
-
specification_version:
|
126
|
+
specification_version: 4
|
139
127
|
summary: Use this gem to access the Guidestar API
|
140
128
|
test_files: []
|
129
|
+
has_rdoc:
|