googl 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/.travis.yml +4 -0
  2. data/VERSION +1 -1
  3. data/googl.gemspec +9 -8
  4. data/lib/googl.rb +1 -1
  5. metadata +27 -28
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ branches:
3
+ only:
4
+ - master
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.0
1
+ 0.6.0
@@ -4,18 +4,19 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{googl}
8
- s.version = "0.5.0"
7
+ s.name = "googl"
8
+ s.version = "0.6.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jesus Lopes"]
12
- s.date = %q{2011-05-01}
13
- s.description = %q{Small library for Google URL Shortener API}
14
- s.email = %q{jlopes@zigotto.com.br}
12
+ s.date = "2012-05-05"
13
+ s.description = "Small library for Google URL Shortener API"
14
+ s.email = "jlopes@zigotto.com.br"
15
15
  s.extra_rdoc_files = [
16
16
  "README.rdoc"
17
17
  ]
18
18
  s.files = [
19
+ ".travis.yml",
19
20
  "Gemfile",
20
21
  "Gemfile.lock",
21
22
  "MIT-LICENSE",
@@ -62,11 +63,11 @@ Gem::Specification.new do |s|
62
63
  "spec/shared_examples.rb",
63
64
  "spec/spec_helper.rb"
64
65
  ]
65
- s.homepage = %q{http://github.com/zigotto/googl}
66
+ s.homepage = "http://github.com/zigotto/googl"
66
67
  s.licenses = ["MIT"]
67
68
  s.require_paths = ["lib"]
68
- s.rubygems_version = %q{1.4.2}
69
- s.summary = %q{Wrapper for Google URL Shortener API}
69
+ s.rubygems_version = "1.8.21"
70
+ s.summary = "Wrapper for Google URL Shortener API"
70
71
  s.test_files = [
71
72
  "spec/googl/client_spec.rb",
72
73
  "spec/googl/expand_spec.rb",
@@ -24,7 +24,7 @@ module Googl
24
24
  # => "http://goo.gl/ump4S"
25
25
  #
26
26
  def shorten(url=nil)
27
- raise ArgumentError.new("URL to shorten is required") if url.blank?
27
+ raise ArgumentError.new("URL to shorten is required") if url.nil? || url.strip.empty?
28
28
  Googl::Shorten.new(url)
29
29
  end
30
30
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: googl
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 5
8
+ - 6
9
9
  - 0
10
- version: 0.5.0
10
+ version: 0.6.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jesus Lopes
@@ -15,13 +15,9 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-01 00:00:00 -03:00
19
- default_executable:
18
+ date: 2012-05-05 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
- prerelease: false
23
- name: httparty
24
- type: :runtime
25
21
  version_requirements: &id001 !ruby/object:Gem::Requirement
26
22
  none: false
27
23
  requirements:
@@ -33,11 +29,11 @@ dependencies:
33
29
  - 6
34
30
  - 1
35
31
  version: 0.6.1
32
+ name: httparty
33
+ type: :runtime
34
+ prerelease: false
36
35
  requirement: *id001
37
36
  - !ruby/object:Gem::Dependency
38
- prerelease: false
39
- name: json
40
- type: :runtime
41
37
  version_requirements: &id002 !ruby/object:Gem::Requirement
42
38
  none: false
43
39
  requirements:
@@ -49,11 +45,11 @@ dependencies:
49
45
  - 4
50
46
  - 6
51
47
  version: 1.4.6
48
+ name: json
49
+ type: :runtime
50
+ prerelease: false
52
51
  requirement: *id002
53
52
  - !ruby/object:Gem::Dependency
54
- prerelease: false
55
- name: rspec
56
- type: :development
57
53
  version_requirements: &id003 !ruby/object:Gem::Requirement
58
54
  none: false
59
55
  requirements:
@@ -65,11 +61,11 @@ dependencies:
65
61
  - 3
66
62
  - 0
67
63
  version: 2.3.0
64
+ name: rspec
65
+ type: :development
66
+ prerelease: false
68
67
  requirement: *id003
69
68
  - !ruby/object:Gem::Dependency
70
- prerelease: false
71
- name: bundler
72
- type: :development
73
69
  version_requirements: &id004 !ruby/object:Gem::Requirement
74
70
  none: false
75
71
  requirements:
@@ -81,11 +77,11 @@ dependencies:
81
77
  - 0
82
78
  - 0
83
79
  version: 1.0.0
80
+ name: bundler
81
+ type: :development
82
+ prerelease: false
84
83
  requirement: *id004
85
84
  - !ruby/object:Gem::Dependency
86
- prerelease: false
87
- name: jeweler
88
- type: :development
89
85
  version_requirements: &id005 !ruby/object:Gem::Requirement
90
86
  none: false
91
87
  requirements:
@@ -97,11 +93,11 @@ dependencies:
97
93
  - 5
98
94
  - 2
99
95
  version: 1.5.2
96
+ name: jeweler
97
+ type: :development
98
+ prerelease: false
100
99
  requirement: *id005
101
100
  - !ruby/object:Gem::Dependency
102
- prerelease: false
103
- name: rcov
104
- type: :development
105
101
  version_requirements: &id006 !ruby/object:Gem::Requirement
106
102
  none: false
107
103
  requirements:
@@ -111,11 +107,11 @@ dependencies:
111
107
  segments:
112
108
  - 0
113
109
  version: "0"
110
+ name: rcov
111
+ type: :development
112
+ prerelease: false
114
113
  requirement: *id006
115
114
  - !ruby/object:Gem::Dependency
116
- prerelease: false
117
- name: webmock
118
- type: :development
119
115
  version_requirements: &id007 !ruby/object:Gem::Requirement
120
116
  none: false
121
117
  requirements:
@@ -127,6 +123,9 @@ dependencies:
127
123
  - 6
128
124
  - 2
129
125
  version: 1.6.2
126
+ name: webmock
127
+ type: :development
128
+ prerelease: false
130
129
  requirement: *id007
131
130
  description: Small library for Google URL Shortener API
132
131
  email: jlopes@zigotto.com.br
@@ -137,6 +136,7 @@ extensions: []
137
136
  extra_rdoc_files:
138
137
  - README.rdoc
139
138
  files:
139
+ - .travis.yml
140
140
  - Gemfile
141
141
  - Gemfile.lock
142
142
  - MIT-LICENSE
@@ -182,7 +182,6 @@ files:
182
182
  - spec/googl/shorten_spec.rb
183
183
  - spec/shared_examples.rb
184
184
  - spec/spec_helper.rb
185
- has_rdoc: true
186
185
  homepage: http://github.com/zigotto/googl
187
186
  licenses:
188
187
  - MIT
@@ -212,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
212
211
  requirements: []
213
212
 
214
213
  rubyforge_project:
215
- rubygems_version: 1.4.2
214
+ rubygems_version: 1.8.21
216
215
  signing_key:
217
216
  specification_version: 3
218
217
  summary: Wrapper for Google URL Shortener API