googl 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd775bcf591d39709171b85ac2d63bf97fc2d2b1
4
- data.tar.gz: 6ec26939a7009c3e8be6361f4803c5c035d61cc6
3
+ metadata.gz: 72592e0c37b0520ca729aa7f1f502843c216a12a
4
+ data.tar.gz: d199990289fd89f102d33bdc318663446be99bfc
5
5
  SHA512:
6
- metadata.gz: d99253182986d9a24c544ecb29c1e2c90d893f735048f9a3b47201817eb795d12890b03f6ec5a8dcd8a585589d40ab40630856602afc4d3e5978c7a3234ed573
7
- data.tar.gz: b822ffe4e5ae1a14cd96f156e65d7298036fd95d5f5e2a1e68f1c90c4a4cdf198dd9698ff028f15b4f5feac010858fc6966e99379cdee26c1db418dab8432595
6
+ metadata.gz: 5c752b8d82cec058e5986c408c291119e4c014f926316e126e8a5d3fb8efd8b23fa383259e29e8067cd2d844017579b0173e806ac11494df2c4441660b2b36b8
7
+ data.tar.gz: 6a037e95b0ff89a81101bea88d771d8c05685d4f42dc1a7a3190eed03d3c34ca7ca9dc3eb04d9a5be7bb95becb56d9c43fb3eb7a7f7277c3db714341b94e0e2c
@@ -14,7 +14,7 @@ Google URL Shortener API in Ruby
14
14
  ``` ruby
15
15
  url = Googl.shorten('http://www.zigotto.com')
16
16
 
17
- // Optional - provide a user_ip and your google api_key to bypass Google's request rate limits
17
+ # Optional - provide a user_ip and your google api_key to bypass Google's request rate limits
18
18
  url = Googl.shorten('http://www.zigotto.com', "213.57.23.49", "google_api_key")
19
19
 
20
20
  url.short_url
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.0
1
+ 0.7.1
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: googl 0.7.0 ruby lib
5
+ # stub: googl 0.7.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "googl"
9
- s.version = "0.7.0"
9
+ s.version = "0.7.1"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Jesus Lopes"]
14
- s.date = "2015-02-06"
14
+ s.date = "2015-05-21"
15
15
  s.description = "Small library for Google URL Shortener API"
16
16
  s.email = "jlopes@zigotto.com.br"
17
17
  s.extra_rdoc_files = [
@@ -28,6 +28,7 @@ Gem::Specification.new do |s|
28
28
  "lib/googl.rb",
29
29
  "lib/googl/base.rb",
30
30
  "lib/googl/client_login.rb",
31
+ "lib/googl/error.rb",
31
32
  "lib/googl/expand.rb",
32
33
  "lib/googl/oauth2/native.rb",
33
34
  "lib/googl/oauth2/server.rb",
@@ -2,6 +2,7 @@ require 'httparty'
2
2
  require 'ostruct'
3
3
  require 'json'
4
4
 
5
+ require 'googl/error'
5
6
  require 'googl/utils'
6
7
  require 'googl/base'
7
8
  require 'googl/request'
@@ -0,0 +1,4 @@
1
+ module Googl
2
+ class Error < StandardError
3
+ end
4
+ end
@@ -22,7 +22,7 @@ module Googl
22
22
  end
23
23
 
24
24
  def exception(msg)
25
- Exception.new(msg)
25
+ Googl::Error.new(msg)
26
26
  end
27
27
 
28
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: googl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jesus Lopes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-06 00:00:00.000000000 Z
11
+ date: 2015-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -111,6 +111,7 @@ files:
111
111
  - lib/googl.rb
112
112
  - lib/googl/base.rb
113
113
  - lib/googl/client_login.rb
114
+ - lib/googl/error.rb
114
115
  - lib/googl/expand.rb
115
116
  - lib/googl/oauth2/native.rb
116
117
  - lib/googl/oauth2/server.rb