shortener 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -49,15 +49,15 @@ Then add to your routes:
49
49
 
50
50
  To generate a Shortened URL object for the URL "http://dealush.com" within your controller / models do the following:
51
51
 
52
- Shortener::ShortenedURL.generate("http://dealush.com")
52
+ Shortener::ShortenedUrl.generate("http://dealush.com")
53
53
 
54
54
  or
55
55
 
56
- Shortener::ShortenedURL.generate("dealush.com")
56
+ Shortener::ShortenedUrl.generate("dealush.com")
57
57
 
58
58
  To generate and display a shortened URL in your application use the helper method:
59
59
 
60
- shortened_url("dealush.com")
60
+ short_url("dealush.com")
61
61
 
62
62
  This will generate a shortened URL. store it to the db and return a string representing the shortened URL.
63
63
 
@@ -71,7 +71,7 @@ You can link shortened URLs to an owner, to scope them. To do so, add the follow
71
71
 
72
72
  This will allow you to pass the owner when generating URLs:
73
73
 
74
- Shortener::ShortenedURL.generate("dealush.com", user)
74
+ Shortener::ShortenedUrl.generate("dealush.com", user)
75
75
 
76
76
  And to access those URLs:
77
77
 
@@ -6,5 +6,6 @@ class Shortener::Railtie < ::Rails::Railtie #:nodoc:
6
6
  ActiveSupport.on_load :active_record do
7
7
  extend Shortener::ActiveRecordExtension
8
8
  end
9
+ ActionView::Base.send :include, Shortener::ShortenerHelper
9
10
  end
10
11
  end
@@ -1,3 +1,3 @@
1
1
  module Shortener
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shortener
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-02-21 00:00:00.000000000 Z
13
+ date: 2012-04-23 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
17
- requirement: &75940830 !ruby/object:Gem::Requirement
17
+ requirement: &17116840 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 3.0.7
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *75940830
25
+ version_requirements: *17116840
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: sqlite3
28
- requirement: &75940170 !ruby/object:Gem::Requirement
28
+ requirement: &17116300 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *75940170
36
+ version_requirements: *17116300
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: rspec-rails
39
- requirement: &75938860 !ruby/object:Gem::Requirement
39
+ requirement: &17115620 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: '0'
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *75938860
47
+ version_requirements: *17115620
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: shoulda-matchers
50
- requirement: &75938190 !ruby/object:Gem::Requirement
50
+ requirement: &17114280 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,7 +55,7 @@ dependencies:
55
55
  version: '0'
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *75938190
58
+ version_requirements: *17114280
59
59
  description: Shortener is a Rails Engine Gem that makes it easy to create and interpret
60
60
  shortened URLs on your own domain from within your Rails application. Once installed
61
61
  Shortener will generate, store URLS and "unshorten" shortened URLs for your applications
@@ -134,10 +134,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  version: 1.3.6
135
135
  requirements: []
136
136
  rubyforge_project: shortener
137
- rubygems_version: 1.8.16
137
+ rubygems_version: 1.8.10
138
138
  signing_key:
139
139
  specification_version: 3
140
140
  summary: Shortener is a Rails Engine that makes it easy to create shortened URLs for
141
141
  your rails application.
142
142
  test_files: []
143
- has_rdoc: