bitly 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. data/README.md +4 -4
  2. data/Rakefile +5 -1
  3. data/bitly.gemspec +12 -13
  4. data/lib/bitly/version.rb +1 -1
  5. metadata +47 -78
data/README.md CHANGED
@@ -46,10 +46,10 @@ All four functions return a ``Bitly::Url`` object (or an array of ``Bitly::Url``
46
46
 
47
47
  u = bitly.shorten('http://www.google.com') #=> Bitly::Url
48
48
 
49
- u.long_url #=> "http://www.google.com"
50
- u.short_url #=> "http://bit.ly/Ywd1"
51
- u.bitly_url #=> "http://bit.ly/Ywd1"
52
- u.jmp_url #=> "http://j.mp/Ywd1"
49
+ u.long_url #=> "http://www.google.com"
50
+ u.short_url #=> "http://bit.ly/Ywd1"
51
+ u.bitly_url #=> "http://bit.ly/Ywd1"
52
+ u.jmp_url #=> "http://j.mp/Ywd1"
53
53
  u.user_hash #=> "Ywd1"
54
54
  u.hash #=> "2V6CFi"
55
55
  u.info #=> a ruby hash of the JSON returned from the API
data/Rakefile CHANGED
@@ -8,6 +8,10 @@ Echoe.new('bitly', Bitly::VERSION) do |p|
8
8
  p.url = "http://github.com/philnash/bitly"
9
9
  p.author = "Phil Nash"
10
10
  p.email = "philnash@gmail.com"
11
- p.extra_deps = [['crack', '>= 0.1.4'], ['httparty', '>= 0.7.6'], ['oauth2', '~> 0.5.0']]
11
+ p.extra_deps = [
12
+ ['crack', '>= 0.1.4'],
13
+ ['httparty', '>= 0.7.6'],
14
+ ['oauth2', '>= 0.5.0', '< 0.9']
15
+ ]
12
16
  p.development_dependencies = []
13
17
  end
@@ -1,40 +1,39 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  Gem::Specification.new do |s|
4
- s.name = %q{bitly}
5
- s.version = "0.7.0"
4
+ s.name = "bitly"
5
+ s.version = "0.8.0"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Phil Nash"]
9
- s.date = %q{2012-01-08}
10
- s.description = %q{Use the bit.ly API to shorten or expand URLs}
11
- s.email = %q{philnash@gmail.com}
9
+ s.date = "2012-08-13"
10
+ s.description = "Use the bit.ly API to shorten or expand URLs"
11
+ s.email = "philnash@gmail.com"
12
12
  s.extra_rdoc_files = ["README.md", "lib/bitly.rb", "lib/bitly/client.rb", "lib/bitly/url.rb", "lib/bitly/utils.rb", "lib/bitly/v3.rb", "lib/bitly/v3/bitly.rb", "lib/bitly/v3/client.rb", "lib/bitly/v3/country.rb", "lib/bitly/v3/day.rb", "lib/bitly/v3/missing_url.rb", "lib/bitly/v3/oauth.rb", "lib/bitly/v3/realtime_link.rb", "lib/bitly/v3/referrer.rb", "lib/bitly/v3/url.rb", "lib/bitly/v3/user.rb", "lib/bitly/version.rb"]
13
13
  s.files = ["History.txt", "Manifest", "README.md", "Rakefile", "bitly.gemspec", "lib/bitly.rb", "lib/bitly/client.rb", "lib/bitly/url.rb", "lib/bitly/utils.rb", "lib/bitly/v3.rb", "lib/bitly/v3/bitly.rb", "lib/bitly/v3/client.rb", "lib/bitly/v3/country.rb", "lib/bitly/v3/day.rb", "lib/bitly/v3/missing_url.rb", "lib/bitly/v3/oauth.rb", "lib/bitly/v3/realtime_link.rb", "lib/bitly/v3/referrer.rb", "lib/bitly/v3/url.rb", "lib/bitly/v3/user.rb", "lib/bitly/version.rb", "test/bitly/test_client.rb", "test/bitly/test_url.rb", "test/bitly/test_utils.rb", "test/fixtures/cnn.json", "test/fixtures/cnn_and_google.json", "test/fixtures/expand_cnn.json", "test/fixtures/expand_cnn_and_google.json", "test/fixtures/google_and_cnn_info.json", "test/fixtures/google_info.json", "test/fixtures/google_stats.json", "test/fixtures/shorten_error.json", "test/test_helper.rb"]
14
- s.homepage = %q{http://github.com/philnash/bitly}
14
+ s.homepage = "http://github.com/philnash/bitly"
15
15
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Bitly", "--main", "README.md"]
16
16
  s.require_paths = ["lib"]
17
- s.rubyforge_project = %q{bitly}
18
- s.rubygems_version = %q{1.3.7}
19
- s.summary = %q{Use the bit.ly API to shorten or expand URLs}
17
+ s.rubyforge_project = "bitly"
18
+ s.rubygems_version = "1.8.11"
19
+ s.summary = "Use the bit.ly API to shorten or expand URLs"
20
20
  s.test_files = ["test/bitly/test_client.rb", "test/bitly/test_url.rb", "test/bitly/test_utils.rb", "test/test_helper.rb"]
21
21
 
22
22
  if s.respond_to? :specification_version then
23
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
24
23
  s.specification_version = 3
25
24
 
26
25
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
27
26
  s.add_runtime_dependency(%q<crack>, [">= 0.1.4"])
28
27
  s.add_runtime_dependency(%q<httparty>, [">= 0.7.6"])
29
- s.add_runtime_dependency(%q<oauth2>, ["~> 0.5.0"])
28
+ s.add_runtime_dependency(%q<oauth2>, ["< 0.9", ">= 0.5.0"])
30
29
  else
31
30
  s.add_dependency(%q<crack>, [">= 0.1.4"])
32
31
  s.add_dependency(%q<httparty>, [">= 0.7.6"])
33
- s.add_dependency(%q<oauth2>, ["~> 0.5.0"])
32
+ s.add_dependency(%q<oauth2>, ["< 0.9", ">= 0.5.0"])
34
33
  end
35
34
  else
36
35
  s.add_dependency(%q<crack>, [">= 0.1.4"])
37
36
  s.add_dependency(%q<httparty>, [">= 0.7.6"])
38
- s.add_dependency(%q<oauth2>, ["~> 0.5.0"])
37
+ s.add_dependency(%q<oauth2>, ["< 0.9", ">= 0.5.0"])
39
38
  end
40
39
  end
@@ -1,3 +1,3 @@
1
1
  module Bitly
2
- VERSION = '0.7.0'
2
+ VERSION = '0.8.0'
3
3
  end
metadata CHANGED
@@ -1,78 +1,57 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: bitly
3
- version: !ruby/object:Gem::Version
4
- hash: 3
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 7
9
- - 0
10
- version: 0.7.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.8.0
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Phil Nash
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-01-08 00:00:00 +00:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2012-08-13 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: crack
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70236894842680 !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 19
30
- segments:
31
- - 0
32
- - 1
33
- - 4
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
34
21
  version: 0.1.4
35
22
  type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: httparty
39
23
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *70236894842680
25
+ - !ruby/object:Gem::Dependency
26
+ name: httparty
27
+ requirement: &70236894842160 !ruby/object:Gem::Requirement
41
28
  none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- hash: 15
46
- segments:
47
- - 0
48
- - 7
49
- - 6
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
50
32
  version: 0.7.6
51
33
  type: :runtime
52
- version_requirements: *id002
53
- - !ruby/object:Gem::Dependency
54
- name: oauth2
55
34
  prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *70236894842160
36
+ - !ruby/object:Gem::Dependency
37
+ name: oauth2
38
+ requirement: &70236894841300 !ruby/object:Gem::Requirement
57
39
  none: false
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- hash: 11
62
- segments:
63
- - 0
64
- - 5
65
- - 0
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
66
43
  version: 0.5.0
44
+ - - <
45
+ - !ruby/object:Gem::Version
46
+ version: '0.9'
67
47
  type: :runtime
68
- version_requirements: *id003
48
+ prerelease: false
49
+ version_requirements: *70236894841300
69
50
  description: Use the bit.ly API to shorten or expand URLs
70
51
  email: philnash@gmail.com
71
52
  executables: []
72
-
73
53
  extensions: []
74
-
75
- extra_rdoc_files:
54
+ extra_rdoc_files:
76
55
  - README.md
77
56
  - lib/bitly.rb
78
57
  - lib/bitly/client.rb
@@ -90,7 +69,7 @@ extra_rdoc_files:
90
69
  - lib/bitly/v3/url.rb
91
70
  - lib/bitly/v3/user.rb
92
71
  - lib/bitly/version.rb
93
- files:
72
+ files:
94
73
  - History.txt
95
74
  - Manifest
96
75
  - README.md
@@ -124,47 +103,37 @@ files:
124
103
  - test/fixtures/google_stats.json
125
104
  - test/fixtures/shorten_error.json
126
105
  - test/test_helper.rb
127
- has_rdoc: true
128
106
  homepage: http://github.com/philnash/bitly
129
107
  licenses: []
130
-
131
108
  post_install_message:
132
- rdoc_options:
109
+ rdoc_options:
133
110
  - --line-numbers
134
111
  - --inline-source
135
112
  - --title
136
113
  - Bitly
137
114
  - --main
138
115
  - README.md
139
- require_paths:
116
+ require_paths:
140
117
  - lib
141
- required_ruby_version: !ruby/object:Gem::Requirement
118
+ required_ruby_version: !ruby/object:Gem::Requirement
142
119
  none: false
143
- requirements:
144
- - - ">="
145
- - !ruby/object:Gem::Version
146
- hash: 3
147
- segments:
148
- - 0
149
- version: "0"
150
- required_rubygems_version: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ! '>='
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
124
+ required_rubygems_version: !ruby/object:Gem::Requirement
151
125
  none: false
152
- requirements:
153
- - - ">="
154
- - !ruby/object:Gem::Version
155
- hash: 11
156
- segments:
157
- - 1
158
- - 2
159
- version: "1.2"
126
+ requirements:
127
+ - - ! '>='
128
+ - !ruby/object:Gem::Version
129
+ version: '1.2'
160
130
  requirements: []
161
-
162
131
  rubyforge_project: bitly
163
- rubygems_version: 1.3.7
132
+ rubygems_version: 1.8.11
164
133
  signing_key:
165
134
  specification_version: 3
166
135
  summary: Use the bit.ly API to shorten or expand URLs
167
- test_files:
136
+ test_files:
168
137
  - test/bitly/test_client.rb
169
138
  - test/bitly/test_url.rb
170
139
  - test/bitly/test_utils.rb