guillotine 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/guillotine.gemspec CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  ## If your rubyforge_project name is different, then edit it and comment out
14
14
  ## the sub! line in the Rakefile
15
15
  s.name = 'guillotine'
16
- s.version = '1.0.3'
16
+ s.version = '1.0.4'
17
17
  s.date = '2011-11-10'
18
18
  s.rubyforge_project = 'guillotine'
19
19
 
@@ -27,7 +27,7 @@ module Guillotine
27
27
  def add(url, code = nil)
28
28
  sha = url_key url
29
29
  url_obj = @url_bucket.get_or_new sha, :r => 1
30
- if url_obj.data
30
+ if url_obj.raw_data
31
31
  fix_url_object(url_obj)
32
32
  code = url_obj.data
33
33
  end
@@ -6,7 +6,6 @@ module Guillotine
6
6
 
7
7
  get "/:code" do
8
8
  code = params[:code]
9
- puts code.inspect
10
9
  if url = settings.db.find(Addressable::URI.escape(code))
11
10
  redirect settings.db.parse_url(url).to_s
12
11
  else
data/lib/guillotine.rb CHANGED
@@ -3,7 +3,7 @@ require 'digest/md5'
3
3
  require 'addressable/uri'
4
4
 
5
5
  module Guillotine
6
- VERSION = "1.0.3"
6
+ VERSION = "1.0.4"
7
7
 
8
8
  dir = File.expand_path '../guillotine', __FILE__
9
9
  autoload :App, "#{dir}/app"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guillotine
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-11-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sinatra
16
- requirement: &70136291836120 !ruby/object:Gem::Requirement
16
+ requirement: &70359911480240 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.2.6
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70136291836120
24
+ version_requirements: *70359911480240
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: addressable
27
- requirement: &70136291835380 !ruby/object:Gem::Requirement
27
+ requirement: &70359911479040 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.2.6
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70136291835380
35
+ version_requirements: *70359911479040
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rack-test
38
- requirement: &70136291834680 !ruby/object:Gem::Requirement
38
+ requirement: &70359911478640 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70136291834680
46
+ version_requirements: *70359911478640
47
47
  description: Adaptable private URL shortener
48
48
  email: technoweenie@gmail.com
49
49
  executables: []