canonical-rails 0.0.9 → 0.0.10
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a750f78877be589c8ea66826b355b5cdfc5c98e2
|
|
4
|
+
data.tar.gz: c9ccc995319671eeaa2bea01c3cd22d7f5f910a7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a2d2d4134cc0fc49939347f2eb47e7e38b3940f1ce2fa6c6078712b9478229ad053a94d1dfe625189f2175fca2a21e86b36801f56b41203b9f625d3d8bf9fc59
|
|
7
|
+
data.tar.gz: e84748c6fb5f7cd5fd1b34deb8e0e66f6335d10da24881c2f7eda3f5341f6c839154cdce12bad86012bf4f5e8e61f87a206f817fda45dade8cf6ba86ea91ef6e
|
data/README.md
CHANGED
|
@@ -26,7 +26,13 @@ First, generate the config
|
|
|
26
26
|
|
|
27
27
|
Then find it in config/initializers/ as canonical_rails.rb
|
|
28
28
|
|
|
29
|
-
Finally, include the canonical_tag helper
|
|
29
|
+
Finally, include the canonical_tag helper inside the `head` portion of
|
|
30
|
+
your HTML views:
|
|
30
31
|
```ruby
|
|
31
32
|
<%= canonical_tag -%>
|
|
32
33
|
```
|
|
34
|
+
|
|
35
|
+
## Cred
|
|
36
|
+
|
|
37
|
+
A project by [Downshift Labs](http://downshiftlabs.com), Ruby on Rails,
|
|
38
|
+
Performance tuning and Spree Commerce projects.
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
# Do yourself a favor and set these up right when you install the engine.
|
|
2
2
|
|
|
3
3
|
CanonicalRails.setup do |config|
|
|
4
|
+
|
|
5
|
+
# Force the protocol. If you do not specify, the protocol will be based on the incoming request's protocol.
|
|
6
|
+
|
|
7
|
+
config.protocol#= 'https://'
|
|
4
8
|
|
|
5
9
|
# This is the main host, not just the TLD, omit slashes and protocol. If you have more than one, pick the one you want to rank in search results.
|
|
6
10
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: canonical-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Denis Ivanov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-08-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|