firefly 1.5.1 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.gitignore CHANGED
@@ -5,3 +5,5 @@ config.ru
5
5
  pkg
6
6
  .rvmrc
7
7
  *.swp
8
+ _site
9
+ _site/*
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- firefly (1.5.0)
4
+ firefly (1.5.1)
5
5
  dm-aggregates (~> 1.0.2)
6
6
  dm-core (~> 1.0.2)
7
7
  dm-migrations (~> 1.0.2)
data/HISTORY CHANGED
@@ -1,3 +1,7 @@
1
+ = 1.5.2 - 2011-05-02
2
+
3
+ * 2011-05-02 Fixed issue with sharing a link without a title (issue #26) [ariejan]
4
+
1
5
  = 1.5.1 - 2011-04-22
2
6
 
3
7
  * 2011-04-22 Truncate long URLs in the backend to preserve layout (issue #25) [ariejan]
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
- # FireFly
1
+ # FireFly [![Build Status](http://travis-ci.org/ariejan/firefly.png)](http://travis-ci.org/ariejan/firefly)
2
+
2
3
 
3
4
  FireFly is a simple URL shortener for personal (or not so personal) use.
4
5
 
@@ -204,6 +204,7 @@ module Firefly
204
204
  @code, @result = generate_short_url(@url, nil)
205
205
  invalid = @code.nil?
206
206
 
207
+ params[:title] ||= ""
207
208
  title = URI.unescape(params[:title])
208
209
 
209
210
  case (params[:target].downcase.to_sym)
@@ -1,4 +1,4 @@
1
1
  # encoding: UTF-8
2
2
  module Firefly
3
- VERSION = "1.5.1"
3
+ VERSION = "1.5.2"
4
4
  end
@@ -12,8 +12,7 @@ describe "Sharing" do
12
12
  @params = {
13
13
  :url => 'http://example.com/test',
14
14
  :key => 'asdfasdf',
15
- :target => 'facebook',
16
- :title => 'Test post'
15
+ :target => 'facebook'
17
16
  }
18
17
  end
19
18
 
@@ -61,7 +60,6 @@ describe "Sharing" do
61
60
  self.send verb, '/api/share', @params.merge(:target => 'twitterbook')
62
61
  }.should_not change(Firefly::Url, :count)
63
62
  end
64
-
65
63
  end
66
64
  end
67
65
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: firefly
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 5
9
- - 1
10
- version: 1.5.1
9
+ - 2
10
+ version: 1.5.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ariejan de Vroom
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-22 00:00:00 +02:00
18
+ date: 2011-05-02 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency