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 CHANGED
@@ -1 +1 @@
1
- rvm use 1.9.3@api_client
1
+ rvm use 1.9.3@api-client
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in api_client.gemspec
3
+ # Specify your gem's dependencies in api-client.gemspec
4
4
  gemspec
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
- require File.expand_path('../lib/api_client/version', __FILE__)
2
+ require File.expand_path('../lib/api-client/version', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |gem|
5
5
  gem.name = "api-client"
@@ -1,8 +1,8 @@
1
- require "api_client/version"
1
+ require "api-client/version"
2
2
  require "net/http"
3
3
 
4
4
  module ApiClient
5
- autoload :Exceptions, 'api_client/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
@@ -0,0 +1,3 @@
1
+ module ApiClient
2
+ VERSION = "0.4.1"
3
+ end
data/spec/spec_helper.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  require "rspec"
2
2
  require "fakeweb"
3
3
 
4
- require File.dirname(__FILE__) + "/../lib/api_client"
4
+ require File.dirname(__FILE__) + "/../lib/api-client"
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.0
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
- - 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
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: -2990378140644206917
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: -2990378140644206917
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
@@ -1,3 +0,0 @@
1
- module ApiClient
2
- VERSION = "0.4.0"
3
- end