shorty 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. data/.gitignore +3 -0
  2. data/LICENSE +7 -0
  3. data/README.rdoc +76 -0
  4. data/Rakefile +68 -0
  5. data/VERSION +1 -0
  6. data/features/bitly.feature +4 -0
  7. data/features/step_definitions/api.rb +18 -0
  8. data/features/step_definitions/common_steps.rb +163 -0
  9. data/features/support/common.rb +29 -0
  10. data/features/support/env.rb +14 -0
  11. data/features/support/matchers.rb +11 -0
  12. data/features/trim.feature +8 -0
  13. data/lib/shorty/bitly.rb +101 -0
  14. data/lib/shorty/cligs.rb +56 -0
  15. data/lib/shorty/isgd.rb +14 -0
  16. data/lib/shorty/supr.rb +100 -0
  17. data/lib/shorty/tinyurl.rb +14 -0
  18. data/lib/shorty/trim.rb +110 -0
  19. data/lib/shorty/twurl.rb +32 -0
  20. data/lib/shorty.rb +17 -0
  21. data/shorty.gemspec +95 -0
  22. data/test/bitly_test.rb +32 -0
  23. data/test/cligs_test.rb +18 -0
  24. data/test/fixtures/bitly-expand-cnn.json +10 -0
  25. data/test/fixtures/bitly-shorten-cnn.json +1 -0
  26. data/test/fixtures/bitly-stats-cnn.json +1 -0
  27. data/test/fixtures/cligs-shorten-google.txt +1 -0
  28. data/test/fixtures/isgd-shorten-google.txt +1 -0
  29. data/test/fixtures/supr-expand-cnn-error.json +1 -0
  30. data/test/fixtures/supr-expand-cnn.json +1 -0
  31. data/test/fixtures/supr-shorten-cnn.json +1 -0
  32. data/test/fixtures/tinyurl-shorten-google.txt +1 -0
  33. data/test/fixtures/trim-trim-simple.txt +1 -0
  34. data/test/fixtures/trim-trim-url.xml +7 -0
  35. data/test/fixtures/twurl-shorten-google.txt +1 -0
  36. data/test/isgd_test.rb +18 -0
  37. data/test/shory_test.rb +7 -0
  38. data/test/supr_test.rb +69 -0
  39. data/test/test_helper.rb +9 -0
  40. data/test/tinyurl_test.rb +18 -0
  41. data/test/trim_test.rb +24 -0
  42. data/test/twurl_test.rb +18 -0
  43. 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