api-client 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.rvmrc +1 -1
- data/Gemfile +1 -1
- data/{api_client.gemspec → api-client.gemspec} +1 -1
- data/lib/{api_client.rb → api-client.rb} +2 -2
- data/lib/api-client/exceptions.rb +9 -0
- data/lib/{api_client → api-client}/exceptions/bad_gateway.rb +0 -0
- data/lib/{api_client → api-client}/exceptions/forbidden.rb +0 -0
- data/lib/{api_client → api-client}/exceptions/generic.rb +0 -0
- data/lib/{api_client → api-client}/exceptions/internal_server_error.rb +0 -0
- data/lib/{api_client → api-client}/exceptions/not_found.rb +0 -0
- data/lib/{api_client → api-client}/exceptions/service_unavailable.rb +0 -0
- data/lib/{api_client → api-client}/exceptions/unauthorized.rb +0 -0
- data/lib/api-client/version.rb +3 -0
- data/spec/spec_helper.rb +1 -1
- metadata +14 -14
- data/lib/api_client/exceptions.rb +0 -9
- data/lib/api_client/version.rb +0 -3
data/.rvmrc
CHANGED
@@ -1 +1 @@
|
|
1
|
-
rvm use 1.9.3@
|
1
|
+
rvm use 1.9.3@api-client
|
data/Gemfile
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
require "
|
1
|
+
require "api-client/version"
|
2
2
|
require "net/http"
|
3
3
|
|
4
4
|
module ApiClient
|
5
|
-
autoload :Exceptions, '
|
5
|
+
autoload :Exceptions, 'api-client/exceptions'
|
6
6
|
|
7
7
|
def self.get(url = '')
|
8
8
|
response = Net::HTTP.get_response(URI.parse(url))
|
@@ -0,0 +1,9 @@
|
|
1
|
+
module ApiClient::Exceptions
|
2
|
+
autoload :Generic, 'api-client/exceptions/generic'
|
3
|
+
autoload :NotFound, 'api-client/exceptions/not_found'
|
4
|
+
autoload :Unauthorized, 'api-client/exceptions/unauthorized'
|
5
|
+
autoload :Forbidden, 'api-client/exceptions/forbidden'
|
6
|
+
autoload :InternalServerError, 'api-client/exceptions/internal_server_error'
|
7
|
+
autoload :BadGateway, 'api-client/exceptions/bad_gateway'
|
8
|
+
autoload :ServiceUnavailable, 'api-client/exceptions/service_unavailable'
|
9
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -73,17 +73,17 @@ files:
|
|
73
73
|
- LICENSE
|
74
74
|
- README.md
|
75
75
|
- Rakefile
|
76
|
-
-
|
77
|
-
- lib/
|
78
|
-
- lib/
|
79
|
-
- lib/
|
80
|
-
- lib/
|
81
|
-
- lib/
|
82
|
-
- lib/
|
83
|
-
- lib/
|
84
|
-
- lib/
|
85
|
-
- lib/
|
86
|
-
- lib/
|
76
|
+
- api-client.gemspec
|
77
|
+
- lib/api-client.rb
|
78
|
+
- lib/api-client/exceptions.rb
|
79
|
+
- lib/api-client/exceptions/bad_gateway.rb
|
80
|
+
- lib/api-client/exceptions/forbidden.rb
|
81
|
+
- lib/api-client/exceptions/generic.rb
|
82
|
+
- lib/api-client/exceptions/internal_server_error.rb
|
83
|
+
- lib/api-client/exceptions/not_found.rb
|
84
|
+
- lib/api-client/exceptions/service_unavailable.rb
|
85
|
+
- lib/api-client/exceptions/unauthorized.rb
|
86
|
+
- lib/api-client/version.rb
|
87
87
|
- spec/api_client_spec.rb
|
88
88
|
- spec/spec_helper.rb
|
89
89
|
homepage: ''
|
@@ -100,7 +100,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
100
100
|
version: '0'
|
101
101
|
segments:
|
102
102
|
- 0
|
103
|
-
hash: -
|
103
|
+
hash: -3754382529348412598
|
104
104
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
109
|
version: '0'
|
110
110
|
segments:
|
111
111
|
- 0
|
112
|
-
hash: -
|
112
|
+
hash: -3754382529348412598
|
113
113
|
requirements: []
|
114
114
|
rubyforge_project:
|
115
115
|
rubygems_version: 1.8.24
|
@@ -1,9 +0,0 @@
|
|
1
|
-
module ApiClient::Exceptions
|
2
|
-
autoload :Generic, 'api_client/exceptions/generic'
|
3
|
-
autoload :NotFound, 'api_client/exceptions/not_found'
|
4
|
-
autoload :Unauthorized, 'api_client/exceptions/unauthorized'
|
5
|
-
autoload :Forbidden, 'api_client/exceptions/forbidden'
|
6
|
-
autoload :InternalServerError, 'api_client/exceptions/internal_server_error'
|
7
|
-
autoload :BadGateway, 'api_client/exceptions/bad_gateway'
|
8
|
-
autoload :ServiceUnavailable, 'api_client/exceptions/service_unavailable'
|
9
|
-
end
|
data/lib/api_client/version.rb
DELETED