link_shrink 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. data/.rspec +1 -1
  2. data/.travis.yml +2 -0
  3. data/Changelog.md +13 -0
  4. data/README.md +45 -0
  5. data/lib/link_shrink/cli.rb +15 -3
  6. data/lib/link_shrink/config.rb +24 -0
  7. data/lib/link_shrink/request.rb +5 -3
  8. data/lib/link_shrink/shrinkers/base.rb +41 -6
  9. data/lib/link_shrink/shrinkers/google.rb +18 -6
  10. data/lib/link_shrink/shrinkers/tinyurl.rb +31 -0
  11. data/lib/link_shrink/version.rb +1 -1
  12. data/lib/link_shrink.rb +14 -3
  13. data/link_shrink.gemspec +4 -4
  14. data/spec/link_shrink/config_spec.rb +29 -0
  15. data/spec/link_shrink/google_spec.rb +2 -1
  16. data/spec/link_shrink/link_shrink_spec.rb +31 -2
  17. data/spec/link_shrink/request_spec.rb +3 -6
  18. data/spec/link_shrink/shrinker_base_spec.rb +69 -8
  19. data/spec/link_shrink/tiny_url_spec.rb +43 -0
  20. data/spec/spec_helper.rb +24 -1
  21. data/spec/vcr_cassettes/LinkShrink/_shrink_url/creates_a_short_url.yml +134 -0
  22. data/spec/vcr_cassettes/LinkShrink/_shrink_url/when_called_with_additional_options/json_option/returns_JSON_when_set_to_true.yml +91 -0
  23. data/spec/vcr_cassettes/LinkShrink/_shrink_url/when_called_with_additional_options/json_option/returns_default_response_when_set_to_false.yml +91 -0
  24. data/spec/vcr_cassettes/LinkShrink/_shrink_url/when_called_with_additional_options/qr_code_option/returns_QR_code_when_set_to_true.yml +91 -0
  25. data/spec/vcr_cassettes/LinkShrink/_shrink_url/when_called_with_additional_options/qr_code_option/returns_default_response_when_set_to_false.yml +91 -0
  26. data/spec/vcr_cassettes/LinkShrink/_shrink_url/when_called_with_additional_options/returns_default_response_when_called_with_empty_hash.yml +91 -0
  27. data/spec/vcr_cassettes/LinkShrink/_shrink_url/when_called_with_image_size_200x200/returns_QR_code_link_with_custom_size.yml +91 -0
  28. data/spec/vcr_cassettes/LinkShrink/_shrink_url/when_called_with_json_and_qr_code_options/returns_qr_code_in_JSON.yml +91 -0
  29. data/spec/vcr_cassettes/LinkShrink/_shrink_url/when_called_with_json_qr_code_and_image_size_300x300/returns_QR_code_in_JSON_with_custom_size.yml +91 -0
  30. data/spec/vcr_cassettes/LinkShrink/_shrink_url/when_called_with_no_qr_code_and_image_size_200x200/returns_QR_code_link_with_custom_size.yml +95 -0
  31. metadata +44 -18
@@ -0,0 +1,91 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyAygf2bk2L1QTGfOdQKQqnOzvlcFX4dmjY
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"longUrl":"http://www.google.com"}'
9
+ headers:
10
+ User-Agent:
11
+ - Typhoeus - https://github.com/typhoeus/typhoeus
12
+ Content-Type:
13
+ - application/json
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ Cache-Control:
20
+ - no-cache, no-store, max-age=0, must-revalidate
21
+ Pragma:
22
+ - no-cache
23
+ Expires:
24
+ - Fri, 01 Jan 1990 00:00:00 GMT
25
+ Date:
26
+ - Sun, 18 Aug 2013 09:43:47 GMT
27
+ Etag:
28
+ - ! '"7QRh0l_StuZTJyavuy4-STROp7U/sJMG8iMchFaYf0TcrMJfiz7WfsI"'
29
+ Content-Type:
30
+ - application/json; charset=UTF-8
31
+ X-Content-Type-Options:
32
+ - nosniff
33
+ X-Frame-Options:
34
+ - SAMEORIGIN
35
+ X-Xss-Protection:
36
+ - 1; mode=block
37
+ Server:
38
+ - GSE
39
+ Transfer-Encoding:
40
+ - chunked
41
+ body:
42
+ encoding: US-ASCII
43
+ string: ! "{\n \"kind\": \"urlshortener#url\",\n \"id\": \"http://goo.gl/fbsS\",\n
44
+ \"longUrl\": \"http://www.google.com/\"\n}\n"
45
+ http_version:
46
+ recorded_at: Sun, 18 Aug 2013 09:43:37 GMT
47
+ - request:
48
+ method: post
49
+ uri: https://www.googleapis.com/urlshortener/v1/url
50
+ body:
51
+ encoding: UTF-8
52
+ string: ! '{"longUrl":"http://www.google.com"}'
53
+ headers:
54
+ User-Agent:
55
+ - Typhoeus - https://github.com/typhoeus/typhoeus
56
+ Content-Type:
57
+ - application/json
58
+ response:
59
+ status:
60
+ code: 200
61
+ message: OK
62
+ headers:
63
+ Cache-Control:
64
+ - no-cache, no-store, max-age=0, must-revalidate
65
+ Pragma:
66
+ - no-cache
67
+ Expires:
68
+ - Fri, 01 Jan 1990 00:00:00 GMT
69
+ Date:
70
+ - Wed, 28 Aug 2013 05:11:08 GMT
71
+ Etag:
72
+ - ! '"xNgc-b3neWtxg-SZficvM7330kM/sJMG8iMchFaYf0TcrMJfiz7WfsI"'
73
+ Content-Type:
74
+ - application/json; charset=UTF-8
75
+ X-Content-Type-Options:
76
+ - nosniff
77
+ X-Frame-Options:
78
+ - SAMEORIGIN
79
+ X-Xss-Protection:
80
+ - 1; mode=block
81
+ Server:
82
+ - GSE
83
+ Transfer-Encoding:
84
+ - chunked
85
+ body:
86
+ encoding: US-ASCII
87
+ string: ! "{\n \"kind\": \"urlshortener#url\",\n \"id\": \"http://goo.gl/fbsS\",\n
88
+ \"longUrl\": \"http://www.google.com/\"\n}\n"
89
+ http_version:
90
+ recorded_at: Wed, 28 Aug 2013 05:11:04 GMT
91
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,91 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyAygf2bk2L1QTGfOdQKQqnOzvlcFX4dmjY
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"longUrl":"http://www.google.com"}'
9
+ headers:
10
+ User-Agent:
11
+ - Typhoeus - https://github.com/typhoeus/typhoeus
12
+ Content-Type:
13
+ - application/json
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ Cache-Control:
20
+ - no-cache, no-store, max-age=0, must-revalidate
21
+ Pragma:
22
+ - no-cache
23
+ Expires:
24
+ - Fri, 01 Jan 1990 00:00:00 GMT
25
+ Date:
26
+ - Sun, 18 Aug 2013 09:43:47 GMT
27
+ Etag:
28
+ - ! '"7QRh0l_StuZTJyavuy4-STROp7U/sJMG8iMchFaYf0TcrMJfiz7WfsI"'
29
+ Content-Type:
30
+ - application/json; charset=UTF-8
31
+ X-Content-Type-Options:
32
+ - nosniff
33
+ X-Frame-Options:
34
+ - SAMEORIGIN
35
+ X-Xss-Protection:
36
+ - 1; mode=block
37
+ Server:
38
+ - GSE
39
+ Transfer-Encoding:
40
+ - chunked
41
+ body:
42
+ encoding: US-ASCII
43
+ string: ! "{\n \"kind\": \"urlshortener#url\",\n \"id\": \"http://goo.gl/fbsS\",\n
44
+ \"longUrl\": \"http://www.google.com/\"\n}\n"
45
+ http_version:
46
+ recorded_at: Sun, 18 Aug 2013 09:43:36 GMT
47
+ - request:
48
+ method: post
49
+ uri: https://www.googleapis.com/urlshortener/v1/url
50
+ body:
51
+ encoding: UTF-8
52
+ string: ! '{"longUrl":"http://www.google.com"}'
53
+ headers:
54
+ User-Agent:
55
+ - Typhoeus - https://github.com/typhoeus/typhoeus
56
+ Content-Type:
57
+ - application/json
58
+ response:
59
+ status:
60
+ code: 200
61
+ message: OK
62
+ headers:
63
+ Cache-Control:
64
+ - no-cache, no-store, max-age=0, must-revalidate
65
+ Pragma:
66
+ - no-cache
67
+ Expires:
68
+ - Fri, 01 Jan 1990 00:00:00 GMT
69
+ Date:
70
+ - Wed, 28 Aug 2013 05:11:08 GMT
71
+ Etag:
72
+ - ! '"xNgc-b3neWtxg-SZficvM7330kM/sJMG8iMchFaYf0TcrMJfiz7WfsI"'
73
+ Content-Type:
74
+ - application/json; charset=UTF-8
75
+ X-Content-Type-Options:
76
+ - nosniff
77
+ X-Frame-Options:
78
+ - SAMEORIGIN
79
+ X-Xss-Protection:
80
+ - 1; mode=block
81
+ Server:
82
+ - GSE
83
+ Transfer-Encoding:
84
+ - chunked
85
+ body:
86
+ encoding: US-ASCII
87
+ string: ! "{\n \"kind\": \"urlshortener#url\",\n \"id\": \"http://goo.gl/fbsS\",\n
88
+ \"longUrl\": \"http://www.google.com/\"\n}\n"
89
+ http_version:
90
+ recorded_at: Wed, 28 Aug 2013 05:11:04 GMT
91
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,91 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyAygf2bk2L1QTGfOdQKQqnOzvlcFX4dmjY
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"longUrl":"http://www.google.com"}'
9
+ headers:
10
+ User-Agent:
11
+ - Typhoeus - https://github.com/typhoeus/typhoeus
12
+ Content-Type:
13
+ - application/json
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ Cache-Control:
20
+ - no-cache, no-store, max-age=0, must-revalidate
21
+ Pragma:
22
+ - no-cache
23
+ Expires:
24
+ - Fri, 01 Jan 1990 00:00:00 GMT
25
+ Date:
26
+ - Sun, 18 Aug 2013 09:43:45 GMT
27
+ Etag:
28
+ - ! '"7QRh0l_StuZTJyavuy4-STROp7U/sJMG8iMchFaYf0TcrMJfiz7WfsI"'
29
+ Content-Type:
30
+ - application/json; charset=UTF-8
31
+ X-Content-Type-Options:
32
+ - nosniff
33
+ X-Frame-Options:
34
+ - SAMEORIGIN
35
+ X-Xss-Protection:
36
+ - 1; mode=block
37
+ Server:
38
+ - GSE
39
+ Transfer-Encoding:
40
+ - chunked
41
+ body:
42
+ encoding: US-ASCII
43
+ string: ! "{\n \"kind\": \"urlshortener#url\",\n \"id\": \"http://goo.gl/fbsS\",\n
44
+ \"longUrl\": \"http://www.google.com/\"\n}\n"
45
+ http_version:
46
+ recorded_at: Sun, 18 Aug 2013 09:43:34 GMT
47
+ - request:
48
+ method: post
49
+ uri: https://www.googleapis.com/urlshortener/v1/url
50
+ body:
51
+ encoding: UTF-8
52
+ string: ! '{"longUrl":"http://www.google.com"}'
53
+ headers:
54
+ User-Agent:
55
+ - Typhoeus - https://github.com/typhoeus/typhoeus
56
+ Content-Type:
57
+ - application/json
58
+ response:
59
+ status:
60
+ code: 200
61
+ message: OK
62
+ headers:
63
+ Cache-Control:
64
+ - no-cache, no-store, max-age=0, must-revalidate
65
+ Pragma:
66
+ - no-cache
67
+ Expires:
68
+ - Fri, 01 Jan 1990 00:00:00 GMT
69
+ Date:
70
+ - Wed, 28 Aug 2013 05:11:09 GMT
71
+ Etag:
72
+ - ! '"xNgc-b3neWtxg-SZficvM7330kM/sJMG8iMchFaYf0TcrMJfiz7WfsI"'
73
+ Content-Type:
74
+ - application/json; charset=UTF-8
75
+ X-Content-Type-Options:
76
+ - nosniff
77
+ X-Frame-Options:
78
+ - SAMEORIGIN
79
+ X-Xss-Protection:
80
+ - 1; mode=block
81
+ Server:
82
+ - GSE
83
+ Transfer-Encoding:
84
+ - chunked
85
+ body:
86
+ encoding: US-ASCII
87
+ string: ! "{\n \"kind\": \"urlshortener#url\",\n \"id\": \"http://goo.gl/fbsS\",\n
88
+ \"longUrl\": \"http://www.google.com/\"\n}\n"
89
+ http_version:
90
+ recorded_at: Wed, 28 Aug 2013 05:11:04 GMT
91
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,95 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyAygf2bk2L1QTGfOdQKQqnOzvlcFX4dmjY
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"longUrl":"http://www.google.com"}'
9
+ headers:
10
+ User-Agent:
11
+ - Typhoeus - https://github.com/typhoeus/typhoeus
12
+ Content-Type:
13
+ - application/json
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ Cache-Control:
20
+ - no-cache, no-store, max-age=0, must-revalidate
21
+ Pragma:
22
+ - no-cache
23
+ Expires:
24
+ - Fri, 01 Jan 1990 00:00:00 GMT
25
+ Date:
26
+ - Fri, 06 Sep 2013 05:05:06 GMT
27
+ Etag:
28
+ - ! '"xNgc-b3neWtxg-SZficvM7330kM/sJMG8iMchFaYf0TcrMJfiz7WfsI"'
29
+ Content-Type:
30
+ - application/json; charset=UTF-8
31
+ X-Content-Type-Options:
32
+ - nosniff
33
+ X-Frame-Options:
34
+ - SAMEORIGIN
35
+ X-Xss-Protection:
36
+ - 1; mode=block
37
+ Server:
38
+ - GSE
39
+ Alternate-Protocol:
40
+ - 443:quic
41
+ Transfer-Encoding:
42
+ - chunked
43
+ body:
44
+ encoding: US-ASCII
45
+ string: ! "{\n \"kind\": \"urlshortener#url\",\n \"id\": \"http://goo.gl/fbsS\",\n
46
+ \"longUrl\": \"http://www.google.com/\"\n}\n"
47
+ http_version:
48
+ recorded_at: Fri, 06 Sep 2013 05:05:06 GMT
49
+ - request:
50
+ method: post
51
+ uri: https://www.googleapis.com/urlshortener/v1/url
52
+ body:
53
+ encoding: UTF-8
54
+ string: ! '{"longUrl":"http://www.google.com"}'
55
+ headers:
56
+ User-Agent:
57
+ - Typhoeus - https://github.com/typhoeus/typhoeus
58
+ Content-Type:
59
+ - application/json
60
+ response:
61
+ status:
62
+ code: 200
63
+ message: OK
64
+ headers:
65
+ Cache-Control:
66
+ - no-cache, no-store, max-age=0, must-revalidate
67
+ Pragma:
68
+ - no-cache
69
+ Expires:
70
+ - Fri, 01 Jan 1990 00:00:00 GMT
71
+ Date:
72
+ - Fri, 06 Sep 2013 05:45:43 GMT
73
+ Etag:
74
+ - ! '"xNgc-b3neWtxg-SZficvM7330kM/sJMG8iMchFaYf0TcrMJfiz7WfsI"'
75
+ Content-Type:
76
+ - application/json; charset=UTF-8
77
+ X-Content-Type-Options:
78
+ - nosniff
79
+ X-Frame-Options:
80
+ - SAMEORIGIN
81
+ X-Xss-Protection:
82
+ - 1; mode=block
83
+ Server:
84
+ - GSE
85
+ Alternate-Protocol:
86
+ - 443:quic
87
+ Transfer-Encoding:
88
+ - chunked
89
+ body:
90
+ encoding: US-ASCII
91
+ string: ! "{\n \"kind\": \"urlshortener#url\",\n \"id\": \"http://goo.gl/fbsS\",\n
92
+ \"longUrl\": \"http://www.google.com/\"\n}\n"
93
+ http_version:
94
+ recorded_at: Fri, 06 Sep 2013 05:45:44 GMT
95
+ recorded_with: VCR 2.5.0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: link_shrink
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-16 00:00:00.000000000 Z
12
+ date: 2013-09-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: typhoeus
@@ -76,13 +76,13 @@ dependencies:
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  - !ruby/object:Gem::Dependency
79
- name: autotest-standalone
79
+ name: simplecov
80
80
  requirement: !ruby/object:Gem::Requirement
81
81
  none: false
82
82
  requirements:
83
83
  - - ~>
84
84
  - !ruby/object:Gem::Version
85
- version: 4.5.11
85
+ version: 0.7.1
86
86
  type: :development
87
87
  prerelease: false
88
88
  version_requirements: !ruby/object:Gem::Requirement
@@ -90,15 +90,15 @@ dependencies:
90
90
  requirements:
91
91
  - - ~>
92
92
  - !ruby/object:Gem::Version
93
- version: 4.5.11
93
+ version: 0.7.1
94
94
  - !ruby/object:Gem::Dependency
95
- name: autotest-fsevent
95
+ name: simplecov-gem-adapter
96
96
  requirement: !ruby/object:Gem::Requirement
97
97
  none: false
98
98
  requirements:
99
99
  - - ~>
100
100
  - !ruby/object:Gem::Version
101
- version: 0.2.8
101
+ version: 1.0.1
102
102
  type: :development
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
@@ -106,15 +106,15 @@ dependencies:
106
106
  requirements:
107
107
  - - ~>
108
108
  - !ruby/object:Gem::Version
109
- version: 0.2.8
109
+ version: 1.0.1
110
110
  - !ruby/object:Gem::Dependency
111
- name: rspec-nc
111
+ name: coveralls
112
112
  requirement: !ruby/object:Gem::Requirement
113
113
  none: false
114
114
  requirements:
115
115
  - - ~>
116
116
  - !ruby/object:Gem::Version
117
- version: 0.0.6
117
+ version: 0.6.7
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
@@ -122,15 +122,15 @@ dependencies:
122
122
  requirements:
123
123
  - - ~>
124
124
  - !ruby/object:Gem::Version
125
- version: 0.0.6
125
+ version: 0.6.7
126
126
  - !ruby/object:Gem::Dependency
127
- name: simplecov
127
+ name: webmock
128
128
  requirement: !ruby/object:Gem::Requirement
129
129
  none: false
130
130
  requirements:
131
131
  - - ~>
132
132
  - !ruby/object:Gem::Version
133
- version: 0.7.1
133
+ version: 1.13.0
134
134
  type: :development
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
@@ -138,15 +138,15 @@ dependencies:
138
138
  requirements:
139
139
  - - ~>
140
140
  - !ruby/object:Gem::Version
141
- version: 0.7.1
141
+ version: 1.13.0
142
142
  - !ruby/object:Gem::Dependency
143
- name: simplecov-gem-adapter
143
+ name: vcr
144
144
  requirement: !ruby/object:Gem::Requirement
145
145
  none: false
146
146
  requirements:
147
147
  - - ~>
148
148
  - !ruby/object:Gem::Version
149
- version: 1.0.1
149
+ version: 2.5.0
150
150
  type: :development
151
151
  prerelease: false
152
152
  version_requirements: !ruby/object:Gem::Requirement
@@ -154,7 +154,7 @@ dependencies:
154
154
  requirements:
155
155
  - - ~>
156
156
  - !ruby/object:Gem::Version
157
- version: 1.0.1
157
+ version: 2.5.0
158
158
  description: Shrink those long and nasty links into a shorter URL
159
159
  email:
160
160
  - jonah@pixelhipsters.com
@@ -177,24 +177,38 @@ files:
177
177
  - bin/linkshrink
178
178
  - lib/link_shrink.rb
179
179
  - lib/link_shrink/cli.rb
180
+ - lib/link_shrink/config.rb
180
181
  - lib/link_shrink/json_parser.rb
181
182
  - lib/link_shrink/options.rb
182
183
  - lib/link_shrink/request.rb
183
184
  - lib/link_shrink/shrinkers/base.rb
184
185
  - lib/link_shrink/shrinkers/google.rb
186
+ - lib/link_shrink/shrinkers/tinyurl.rb
185
187
  - lib/link_shrink/version.rb
186
188
  - link_shrink.gemspec
187
189
  - spec/fixtures/response.json
188
190
  - spec/fixtures/response_qr_code.json
189
191
  - spec/fixtures/response_qr_code_custom.json
192
+ - spec/link_shrink/config_spec.rb
190
193
  - spec/link_shrink/google_spec.rb
191
194
  - spec/link_shrink/json_parser_spec.rb
192
195
  - spec/link_shrink/link_shrink_spec.rb
193
196
  - spec/link_shrink/options_spec.rb
194
197
  - spec/link_shrink/request_spec.rb
195
198
  - spec/link_shrink/shrinker_base_spec.rb
199
+ - spec/link_shrink/tiny_url_spec.rb
196
200
  - spec/shared_examples.rb
197
201
  - spec/spec_helper.rb
202
+ - spec/vcr_cassettes/LinkShrink/_shrink_url/creates_a_short_url.yml
203
+ - spec/vcr_cassettes/LinkShrink/_shrink_url/when_called_with_additional_options/json_option/returns_JSON_when_set_to_true.yml
204
+ - spec/vcr_cassettes/LinkShrink/_shrink_url/when_called_with_additional_options/json_option/returns_default_response_when_set_to_false.yml
205
+ - spec/vcr_cassettes/LinkShrink/_shrink_url/when_called_with_additional_options/qr_code_option/returns_QR_code_when_set_to_true.yml
206
+ - spec/vcr_cassettes/LinkShrink/_shrink_url/when_called_with_additional_options/qr_code_option/returns_default_response_when_set_to_false.yml
207
+ - spec/vcr_cassettes/LinkShrink/_shrink_url/when_called_with_additional_options/returns_default_response_when_called_with_empty_hash.yml
208
+ - spec/vcr_cassettes/LinkShrink/_shrink_url/when_called_with_image_size_200x200/returns_QR_code_link_with_custom_size.yml
209
+ - spec/vcr_cassettes/LinkShrink/_shrink_url/when_called_with_json_and_qr_code_options/returns_qr_code_in_JSON.yml
210
+ - spec/vcr_cassettes/LinkShrink/_shrink_url/when_called_with_json_qr_code_and_image_size_300x300/returns_QR_code_in_JSON_with_custom_size.yml
211
+ - spec/vcr_cassettes/LinkShrink/_shrink_url/when_called_with_no_qr_code_and_image_size_200x200/returns_QR_code_link_with_custom_size.yml
198
212
  homepage: https://github.com/jonahoffline/link_shrink
199
213
  licenses:
200
214
  - MIT
@@ -216,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
216
230
  version: '0'
217
231
  segments:
218
232
  - 0
219
- hash: 1699152346401212239
233
+ hash: -388181440517617826
220
234
  requirements: []
221
235
  rubyforge_project:
222
236
  rubygems_version: 1.8.25
@@ -227,11 +241,23 @@ test_files:
227
241
  - spec/fixtures/response.json
228
242
  - spec/fixtures/response_qr_code.json
229
243
  - spec/fixtures/response_qr_code_custom.json
244
+ - spec/link_shrink/config_spec.rb
230
245
  - spec/link_shrink/google_spec.rb
231
246
  - spec/link_shrink/json_parser_spec.rb
232
247
  - spec/link_shrink/link_shrink_spec.rb
233
248
  - spec/link_shrink/options_spec.rb
234
249
  - spec/link_shrink/request_spec.rb
235
250
  - spec/link_shrink/shrinker_base_spec.rb
251
+ - spec/link_shrink/tiny_url_spec.rb
236
252
  - spec/shared_examples.rb
237
253
  - spec/spec_helper.rb
254
+ - spec/vcr_cassettes/LinkShrink/_shrink_url/creates_a_short_url.yml
255
+ - spec/vcr_cassettes/LinkShrink/_shrink_url/when_called_with_additional_options/json_option/returns_JSON_when_set_to_true.yml
256
+ - spec/vcr_cassettes/LinkShrink/_shrink_url/when_called_with_additional_options/json_option/returns_default_response_when_set_to_false.yml
257
+ - spec/vcr_cassettes/LinkShrink/_shrink_url/when_called_with_additional_options/qr_code_option/returns_QR_code_when_set_to_true.yml
258
+ - spec/vcr_cassettes/LinkShrink/_shrink_url/when_called_with_additional_options/qr_code_option/returns_default_response_when_set_to_false.yml
259
+ - spec/vcr_cassettes/LinkShrink/_shrink_url/when_called_with_additional_options/returns_default_response_when_called_with_empty_hash.yml
260
+ - spec/vcr_cassettes/LinkShrink/_shrink_url/when_called_with_image_size_200x200/returns_QR_code_link_with_custom_size.yml
261
+ - spec/vcr_cassettes/LinkShrink/_shrink_url/when_called_with_json_and_qr_code_options/returns_qr_code_in_JSON.yml
262
+ - spec/vcr_cassettes/LinkShrink/_shrink_url/when_called_with_json_qr_code_and_image_size_300x300/returns_QR_code_in_JSON_with_custom_size.yml
263
+ - spec/vcr_cassettes/LinkShrink/_shrink_url/when_called_with_no_qr_code_and_image_size_200x200/returns_QR_code_link_with_custom_size.yml