bitly 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +4 -4
- data/Rakefile +5 -1
- data/bitly.gemspec +12 -13
- data/lib/bitly/version.rb +1 -1
- 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
|
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
|
data/bitly.gemspec
CHANGED
@@ -1,40 +1,39 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
|
-
s.name =
|
5
|
-
s.version = "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 =
|
10
|
-
s.description =
|
11
|
-
s.email =
|
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 =
|
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 =
|
18
|
-
s.rubygems_version =
|
19
|
-
s.summary =
|
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>, ["
|
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>, ["
|
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>, ["
|
37
|
+
s.add_dependency(%q<oauth2>, ["< 0.9", ">= 0.5.0"])
|
39
38
|
end
|
40
39
|
end
|
data/lib/bitly/version.rb
CHANGED
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
|
-
|
5
|
-
prerelease:
|
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
|
-
|
19
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
147
|
-
|
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
|
-
|
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.
|
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
|