shawty-server 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/LICENSE +20 -0
  2. data/README.markdown +12 -5
  3. data/shawty-server.gemspec +18 -15
  4. metadata +63 -19
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2011 Jack Danger Canty
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.markdown CHANGED
@@ -1,14 +1,15 @@
1
1
  # Shawty
2
2
 
3
3
 
4
- Shawty is the simplest Ruby url-shortening app ever. Run your own server that works like [tinyurl.com](tinyurl.com).
4
+ The Shawty gem is the simplest and fastest Ruby url-shortening app. Run your own server that works like [tinyurl.com](http://tinyurl.com) or [is.gd](http://is.gd).
5
5
 
6
6
 
7
- ## What you need to get this running
7
+ ## Instant installation and deploy
8
8
 
9
9
  * Clone this: `git clone git://github.com/JackDanger/shawty-server.git`
10
10
  * Signup for an account at Heroku ([better details here](http://github.com/sinatra/heroku-sinatra-app))
11
- * push this to Heroku.com: `git push heroku master`
11
+ * don't even bother configuring it
12
+ * push it to Heroku.com: `git push heroku master`
12
13
  * Revel.
13
14
 
14
15
 
@@ -24,9 +25,15 @@ Imagine trying to fit that in a text message. Instead, how about:
24
25
 
25
26
  http://url.myapp.com/a7D
26
27
 
27
- But that's so hard, right? Nope. (see shawty-client for details):
28
+ ## Is it so easy a child can use it?
28
29
 
29
- Shawty.new("http://url.myapp.com/").shrink("http://myapp.com/accounts/megacorp/invoices?single_access_token=5ASD32ADf89JKASF2346")
30
+ Yes. See the [shawty-client](http://github.com/JackDanger/shawty-client) gem for details:
31
+
32
+ Shawty.new(
33
+ "http://url.myapp.com/"
34
+ ).shrink(
35
+ "http://myapp.com/accounts/megacorp/invoices?single_access_token=5ASD32ADf89JKASF2346"
36
+ )
30
37
  # => http://url.myapp.com/a7D
31
38
  ## Saved on your url.myapp.com shawty server and usable immediately
32
39
 
@@ -1,51 +1,54 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{shawty-server}
8
- s.version = "1.1.1"
8
+ s.version = "1.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jack Danger Canty"]
12
- s.date = %q{2010-03-27}
12
+ s.date = %q{2011-05-04}
13
13
  s.description = %q{Run your own url shortener add your own web address for free on Heroku.com}
14
14
  s.email = %q{gitcommit@6brand.com}
15
15
  s.extra_rdoc_files = [
16
+ "LICENSE",
16
17
  "README.markdown"
17
18
  ]
18
19
  s.files = [
19
20
  ".gems",
20
- "README.markdown",
21
- "Rakefile",
22
- "VERSION",
23
- "config.ru",
24
- "config/database.yml",
25
- "shawty-server.gemspec",
26
- "shawty.rb",
27
- "test.rb"
21
+ "LICENSE",
22
+ "README.markdown",
23
+ "Rakefile",
24
+ "VERSION",
25
+ "config.ru",
26
+ "config/database.yml",
27
+ "shawty-server.gemspec",
28
+ "shawty.rb",
29
+ "test.rb"
28
30
  ]
29
31
  s.homepage = %q{http://github.com/JackDanger/shawty-server}
30
- s.rdoc_options = ["--charset=UTF-8"]
31
32
  s.require_paths = ["lib"]
32
- s.rubygems_version = %q{1.3.5}
33
+ s.rubygems_version = %q{1.4.2}
33
34
  s.summary = %q{Ultra-lightweight url shortening server for Heroku.com}
34
35
 
35
36
  if s.respond_to? :specification_version then
36
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
37
37
  s.specification_version = 3
38
38
 
39
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
39
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
40
+ s.add_runtime_dependency(%q<rack>, ["= 1.2.1"])
40
41
  s.add_runtime_dependency(%q<alphadecimal>, [">= 1.0.1"])
41
42
  s.add_development_dependency(%q<active_record>, [">= 0"])
42
43
  s.add_development_dependency(%q<shoulda>, [">= 0"])
43
44
  else
45
+ s.add_dependency(%q<rack>, ["= 1.2.1"])
44
46
  s.add_dependency(%q<alphadecimal>, [">= 1.0.1"])
45
47
  s.add_dependency(%q<active_record>, [">= 0"])
46
48
  s.add_dependency(%q<shoulda>, [">= 0"])
47
49
  end
48
50
  else
51
+ s.add_dependency(%q<rack>, ["= 1.2.1"])
49
52
  s.add_dependency(%q<alphadecimal>, [">= 1.0.1"])
50
53
  s.add_dependency(%q<active_record>, [">= 0"])
51
54
  s.add_dependency(%q<shoulda>, [">= 0"])
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shawty-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ hash: 23
5
+ prerelease:
6
+ segments:
7
+ - 1
8
+ - 1
9
+ - 2
10
+ version: 1.1.2
5
11
  platform: ruby
6
12
  authors:
7
13
  - Jack Danger Canty
@@ -9,39 +15,69 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2010-03-27 00:00:00 -07:00
18
+ date: 2011-05-04 00:00:00 -07:00
13
19
  default_executable:
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
- name: alphadecimal
17
22
  type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
23
+ version_requirements: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - "="
27
+ - !ruby/object:Gem::Version
28
+ hash: 29
29
+ segments:
30
+ - 1
31
+ - 2
32
+ - 1
33
+ version: 1.2.1
34
+ requirement: *id001
35
+ prerelease: false
36
+ name: rack
37
+ - !ruby/object:Gem::Dependency
38
+ type: :runtime
39
+ version_requirements: &id002 !ruby/object:Gem::Requirement
40
+ none: false
20
41
  requirements:
21
42
  - - ">="
22
43
  - !ruby/object:Gem::Version
44
+ hash: 21
45
+ segments:
46
+ - 1
47
+ - 0
48
+ - 1
23
49
  version: 1.0.1
24
- version:
50
+ requirement: *id002
51
+ prerelease: false
52
+ name: alphadecimal
25
53
  - !ruby/object:Gem::Dependency
26
- name: active_record
27
54
  type: :development
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
55
+ version_requirements: &id003 !ruby/object:Gem::Requirement
56
+ none: false
30
57
  requirements:
31
58
  - - ">="
32
59
  - !ruby/object:Gem::Version
60
+ hash: 3
61
+ segments:
62
+ - 0
33
63
  version: "0"
34
- version:
64
+ requirement: *id003
65
+ prerelease: false
66
+ name: active_record
35
67
  - !ruby/object:Gem::Dependency
36
- name: shoulda
37
68
  type: :development
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
69
+ version_requirements: &id004 !ruby/object:Gem::Requirement
70
+ none: false
40
71
  requirements:
41
72
  - - ">="
42
73
  - !ruby/object:Gem::Version
74
+ hash: 3
75
+ segments:
76
+ - 0
43
77
  version: "0"
44
- version:
78
+ requirement: *id004
79
+ prerelease: false
80
+ name: shoulda
45
81
  description: Run your own url shortener add your own web address for free on Heroku.com
46
82
  email: gitcommit@6brand.com
47
83
  executables: []
@@ -49,9 +85,11 @@ executables: []
49
85
  extensions: []
50
86
 
51
87
  extra_rdoc_files:
88
+ - LICENSE
52
89
  - README.markdown
53
90
  files:
54
91
  - .gems
92
+ - LICENSE
55
93
  - README.markdown
56
94
  - Rakefile
57
95
  - VERSION
@@ -65,26 +103,32 @@ homepage: http://github.com/JackDanger/shawty-server
65
103
  licenses: []
66
104
 
67
105
  post_install_message:
68
- rdoc_options:
69
- - --charset=UTF-8
106
+ rdoc_options: []
107
+
70
108
  require_paths:
71
109
  - lib
72
110
  required_ruby_version: !ruby/object:Gem::Requirement
111
+ none: false
73
112
  requirements:
74
113
  - - ">="
75
114
  - !ruby/object:Gem::Version
115
+ hash: 3
116
+ segments:
117
+ - 0
76
118
  version: "0"
77
- version:
78
119
  required_rubygems_version: !ruby/object:Gem::Requirement
120
+ none: false
79
121
  requirements:
80
122
  - - ">="
81
123
  - !ruby/object:Gem::Version
124
+ hash: 3
125
+ segments:
126
+ - 0
82
127
  version: "0"
83
- version:
84
128
  requirements: []
85
129
 
86
130
  rubyforge_project:
87
- rubygems_version: 1.3.5
131
+ rubygems_version: 1.4.2
88
132
  signing_key:
89
133
  specification_version: 3
90
134
  summary: Ultra-lightweight url shortening server for Heroku.com