RightScaleAPIHelper 0.5.7 → 0.5.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "RightScaleAPIHelper"
8
- s.version = "0.5.7"
8
+ s.version = "0.5.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Eric VanWieren"]
12
- s.date = "2013-09-04"
12
+ s.date = "2013-09-06"
13
13
  s.description = "Simple wrapper for connecting and using the RightScale API. Eases the use of connecting with a username and password, and then provides an object to do GET, PUT, POST, DELETE requests. Returns an HTTP response."
14
14
  s.email = "eric@codex.org"
15
15
  s.extra_rdoc_files = [
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.7
1
+ 0.5.8
@@ -107,16 +107,12 @@ module RightScaleAPIHelper
107
107
  end
108
108
 
109
109
  def api_request(submitted_query)
110
- if is_full_path?(submitted_query)
111
- return submitted_query
112
- else
113
- return "#{@full_api_call}#{submitted_query}"
114
- end
110
+ is_full_path?(submitted_query) ? submitted_query : "#{@full_api_call}#{submitted_query}"
115
111
  end
116
112
 
117
113
  # Function just to check if the path that is being passed is a full url or just the extension.
118
114
  def is_full_path?(queryString)
119
- (queryString =~ /^http/i) != nil
115
+ !!(queryString =~ /^http/i)
120
116
  end
121
117
  end
122
118
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: RightScaleAPIHelper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7
4
+ version: 0.5.8
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: 2013-09-04 00:00:00.000000000 Z
12
+ date: 2013-09-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: shoulda
@@ -112,7 +112,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  segments:
114
114
  - 0
115
- hash: 1901197611965626758
115
+ hash: -621161784816900637
116
116
  required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements: