lc-api 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
data/lib/lc-api/api.rb CHANGED
@@ -5,9 +5,9 @@ module LcApi
5
5
  class << self
6
6
  def get(uri, options)
7
7
  uri = LcApi.base_uri + uri
8
- appends = ""
9
- options.each { |k,v| appends << "&#{k}=#{(v.is_a?(Array) ? v.join(",") : v)}" }
10
- HTTParty.get("#{uri}?key=#{LcApi.key}#{appends}")
8
+ opts = ""
9
+ options.each { |k,v| opts << "&#{k}=#{(v.is_a?(Array) ? v.join(",") : v)}" }
10
+ HTTParty.get("#{uri}?key=#{LcApi.key}#{opts}")
11
11
  end
12
12
  end
13
13
 
@@ -1,5 +1,6 @@
1
1
  module ErrorCodes
2
2
 
3
+ # http status codes (of the error variety)
3
4
  def error_code_check(response)
4
5
  case response.code.to_i
5
6
  when 400
@@ -37,7 +37,7 @@ module LcApi
37
37
  end
38
38
 
39
39
  def member_name
40
- name.split('::').last.downcase.pluralize # pluralize from active_support/inflector
40
+ name.split('::').last.downcase.pluralize
41
41
  end
42
42
 
43
43
  def define_attribute_methods(attributes)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lc-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: