mbleigh-canonical-url 0.1.1 → 0.1.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.
Files changed (4) hide show
  1. data/LICENSE +20 -0
  2. data/README.markdown +2 -2
  3. data/rails/init.rb +4 -0
  4. metadata +3 -1
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2009 Michael Bleigh and Intridea, Inc.
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
@@ -10,7 +10,7 @@ Installation
10
10
 
11
11
  Canonical URL is available both as a gem and as a standard Rails plugin. To install as a gem, add this to your `environment.rb`:
12
12
 
13
- config.gem 'mbleigh-canonical-url', :source => 'http://gems.github.com'
13
+ config.gem 'mbleigh-canonical-url', :lib => 'canonical_url', :source => 'http://gems.github.com'
14
14
 
15
15
  To install as a traditional plugin:
16
16
 
@@ -41,4 +41,4 @@ This will automatically insert a canonical URL tag into every page of your site,
41
41
 
42
42
  Now no matter what the routing is that takes you to the post, the canonical URL will remain the same.
43
43
 
44
- Copyright (c) 2009 [Michael Bleigh](http://www.mbleigh.com/) and [Intridea, Inc.](http://www.intridea.com/). See LICENSE for details.
44
+ Copyright (c) 2009 [Michael Bleigh](http://www.mbleigh.com/) and [Intridea, Inc.](http://www.intridea.com/). See LICENSE for details.
data/rails/init.rb ADDED
@@ -0,0 +1,4 @@
1
+ require 'canonical_url'
2
+
3
+ ActionController::Base.send :include, CanonicalURL::ControllerExtensions
4
+ ActionView::Base.send :include, CanonicalURL::Helpers
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mbleigh-canonical-url
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bleigh
@@ -25,6 +25,8 @@ files:
25
25
  - README.markdown
26
26
  - VERSION.yml
27
27
  - lib/canonical_url.rb
28
+ - rails/init.rb
29
+ - LICENSE
28
30
  has_rdoc: true
29
31
  homepage: http://github.com/mbleigh/canonical-url
30
32
  post_install_message: