human_power 0.0.1 → 0.0.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.
- checksums.yaml +4 -4
- data/README.md +5 -1
- data/config/routes.rb +2 -2
- data/lib/generators/human_power/install_generator.rb +5 -0
- data/lib/human_power/version.rb +1 -1
- data/test/dummy/config/routes.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 277dc00cb5eb662ee14dd8982e83e9c2eae68259
|
|
4
|
+
data.tar.gz: 4bf0e2eaf3b4f109be86812b141b788ad3185f8c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c0d3358d62276159e40f6bc18e7b40ad49d83e1aea7c4b4c88102c7d56ec57a1c3d220ec3f8113b77c11706f7d95e1fc0c68018053b18337889b4b40341c67c1
|
|
7
|
+
data.tar.gz: 5d0f9a11855094a673582851e7f244a4f605a4c592d92e103bb7d7f1c09cfa4b0305f4d6f9826d459d975fb35d35d139a6c491820a1fa41f09648a67cf360a58
|
data/README.md
CHANGED
|
@@ -20,7 +20,7 @@ Or install it yourself:
|
|
|
20
20
|
|
|
21
21
|
$ gem install human_power
|
|
22
22
|
|
|
23
|
-
If you are using Rails, you can add a sample *config/robots.rb* configuration file
|
|
23
|
+
If you are using Rails, you can add a sample *config/robots.rb* configuration file and route for `/robots.txt`:
|
|
24
24
|
|
|
25
25
|
$ rails g human_power:install
|
|
26
26
|
|
|
@@ -64,6 +64,10 @@ end
|
|
|
64
64
|
if request.subdomains.first == "api"
|
|
65
65
|
disallow :all
|
|
66
66
|
end
|
|
67
|
+
|
|
68
|
+
# Add one or more sitemaps
|
|
69
|
+
sitemap sitemap_url
|
|
70
|
+
sitemap one_url, two_url
|
|
67
71
|
```
|
|
68
72
|
|
|
69
73
|
## Caveats
|
data/config/routes.rb
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
Rails.
|
|
2
|
-
|
|
1
|
+
HumanPower::Rails::Engine.routes.draw do
|
|
2
|
+
root to: "human_power/rails/robots#robots", format: :text
|
|
3
3
|
end
|
data/lib/human_power/version.rb
CHANGED
data/test/dummy/config/routes.rb
CHANGED