shorty 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/LICENSE +7 -0
- data/README.rdoc +76 -0
- data/Rakefile +68 -0
- data/VERSION +1 -0
- data/features/bitly.feature +4 -0
- data/features/step_definitions/api.rb +18 -0
- data/features/step_definitions/common_steps.rb +163 -0
- data/features/support/common.rb +29 -0
- data/features/support/env.rb +14 -0
- data/features/support/matchers.rb +11 -0
- data/features/trim.feature +8 -0
- data/lib/shorty/bitly.rb +101 -0
- data/lib/shorty/cligs.rb +56 -0
- data/lib/shorty/isgd.rb +14 -0
- data/lib/shorty/supr.rb +100 -0
- data/lib/shorty/tinyurl.rb +14 -0
- data/lib/shorty/trim.rb +110 -0
- data/lib/shorty/twurl.rb +32 -0
- data/lib/shorty.rb +17 -0
- data/shorty.gemspec +95 -0
- data/test/bitly_test.rb +32 -0
- data/test/cligs_test.rb +18 -0
- data/test/fixtures/bitly-expand-cnn.json +10 -0
- data/test/fixtures/bitly-shorten-cnn.json +1 -0
- data/test/fixtures/bitly-stats-cnn.json +1 -0
- data/test/fixtures/cligs-shorten-google.txt +1 -0
- data/test/fixtures/isgd-shorten-google.txt +1 -0
- data/test/fixtures/supr-expand-cnn-error.json +1 -0
- data/test/fixtures/supr-expand-cnn.json +1 -0
- data/test/fixtures/supr-shorten-cnn.json +1 -0
- data/test/fixtures/tinyurl-shorten-google.txt +1 -0
- data/test/fixtures/trim-trim-simple.txt +1 -0
- data/test/fixtures/trim-trim-url.xml +7 -0
- data/test/fixtures/twurl-shorten-google.txt +1 -0
- data/test/isgd_test.rb +18 -0
- data/test/shory_test.rb +7 -0
- data/test/supr_test.rb +69 -0
- data/test/test_helper.rb +9 -0
- data/test/tinyurl_test.rb +18 -0
- data/test/trim_test.rb +24 -0
- data/test/twurl_test.rb +18 -0
- metadata +124 -0
metadata
ADDED
@@ -0,0 +1,124 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: shorty
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Alex Coomans
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-10-10 00:00:00 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: httparty
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.4.4
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: crack
|
27
|
+
type: :runtime
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.1.4
|
34
|
+
version:
|
35
|
+
description: Makes it easy to shorten URLs
|
36
|
+
email: alex@alexcoomans.com
|
37
|
+
executables: []
|
38
|
+
|
39
|
+
extensions: []
|
40
|
+
|
41
|
+
extra_rdoc_files:
|
42
|
+
- LICENSE
|
43
|
+
- README.rdoc
|
44
|
+
files:
|
45
|
+
- .gitignore
|
46
|
+
- LICENSE
|
47
|
+
- README.rdoc
|
48
|
+
- Rakefile
|
49
|
+
- VERSION
|
50
|
+
- features/bitly.feature
|
51
|
+
- features/step_definitions/api.rb
|
52
|
+
- features/step_definitions/common_steps.rb
|
53
|
+
- features/support/common.rb
|
54
|
+
- features/support/env.rb
|
55
|
+
- features/support/matchers.rb
|
56
|
+
- features/trim.feature
|
57
|
+
- lib/shorty.rb
|
58
|
+
- lib/shorty/bitly.rb
|
59
|
+
- lib/shorty/cligs.rb
|
60
|
+
- lib/shorty/isgd.rb
|
61
|
+
- lib/shorty/supr.rb
|
62
|
+
- lib/shorty/tinyurl.rb
|
63
|
+
- lib/shorty/trim.rb
|
64
|
+
- lib/shorty/twurl.rb
|
65
|
+
- shorty.gemspec
|
66
|
+
- test/bitly_test.rb
|
67
|
+
- test/cligs_test.rb
|
68
|
+
- test/fixtures/bitly-expand-cnn.json
|
69
|
+
- test/fixtures/bitly-shorten-cnn.json
|
70
|
+
- test/fixtures/bitly-stats-cnn.json
|
71
|
+
- test/fixtures/cligs-shorten-google.txt
|
72
|
+
- test/fixtures/isgd-shorten-google.txt
|
73
|
+
- test/fixtures/supr-expand-cnn-error.json
|
74
|
+
- test/fixtures/supr-expand-cnn.json
|
75
|
+
- test/fixtures/supr-shorten-cnn.json
|
76
|
+
- test/fixtures/tinyurl-shorten-google.txt
|
77
|
+
- test/fixtures/trim-trim-simple.txt
|
78
|
+
- test/fixtures/trim-trim-url.xml
|
79
|
+
- test/fixtures/twurl-shorten-google.txt
|
80
|
+
- test/isgd_test.rb
|
81
|
+
- test/shory_test.rb
|
82
|
+
- test/supr_test.rb
|
83
|
+
- test/test_helper.rb
|
84
|
+
- test/tinyurl_test.rb
|
85
|
+
- test/trim_test.rb
|
86
|
+
- test/twurl_test.rb
|
87
|
+
has_rdoc: true
|
88
|
+
homepage: http://github.com/drcapulet/shorty
|
89
|
+
licenses: []
|
90
|
+
|
91
|
+
post_install_message:
|
92
|
+
rdoc_options:
|
93
|
+
- --charset=UTF-8
|
94
|
+
require_paths:
|
95
|
+
- lib
|
96
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - ">="
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: "0"
|
101
|
+
version:
|
102
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
103
|
+
requirements:
|
104
|
+
- - ">="
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: "0"
|
107
|
+
version:
|
108
|
+
requirements: []
|
109
|
+
|
110
|
+
rubyforge_project:
|
111
|
+
rubygems_version: 1.3.5
|
112
|
+
signing_key:
|
113
|
+
specification_version: 3
|
114
|
+
summary: Gem that talks to APIs for shortening urls
|
115
|
+
test_files:
|
116
|
+
- test/bitly_test.rb
|
117
|
+
- test/cligs_test.rb
|
118
|
+
- test/isgd_test.rb
|
119
|
+
- test/shory_test.rb
|
120
|
+
- test/supr_test.rb
|
121
|
+
- test/test_helper.rb
|
122
|
+
- test/tinyurl_test.rb
|
123
|
+
- test/trim_test.rb
|
124
|
+
- test/twurl_test.rb
|