human_power 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/human_power/generator.rb +1 -1
- data/lib/human_power/version.rb +1 -1
- data/test/generator_test.rb +20 -0
- data/test/rails/integration_test.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d90d62d2553046a86e4548fadcec0a055c5956f
|
4
|
+
data.tar.gz: 3114fde3618db41e9f2f78eb5be1c53b47049d13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 107fcde74d0cace16683d8bb892a81facb094ad6cc635cfa9258c143997afa342af46e5b4b26617c8f61751aab62da16bf070996195e5198fbf3e9d1e02d8398
|
7
|
+
data.tar.gz: 1fac4d961a5f28246df45b37f87df8ef66bff8ee34aee3a11f043182d6ae171c3c2974e525cb9d72dcfc72aecb4aefe5147d27d701c6d1d08ff17fd1a2a7c325
|
data/lib/human_power/version.rb
CHANGED
data/test/generator_test.rb
CHANGED
@@ -17,6 +17,26 @@ class GeneratorTest < ActionView::TestCase
|
|
17
17
|
generator.render
|
18
18
|
end
|
19
19
|
|
20
|
+
test "disallow all" do
|
21
|
+
generator = HumanPower::Generator.new(self) do
|
22
|
+
disallow :all
|
23
|
+
end
|
24
|
+
|
25
|
+
assert_equal "User-agent: *\n"\
|
26
|
+
"Disallow: /",
|
27
|
+
generator.render
|
28
|
+
end
|
29
|
+
|
30
|
+
test "disallow none" do
|
31
|
+
generator = HumanPower::Generator.new(self) do
|
32
|
+
disallow :none
|
33
|
+
end
|
34
|
+
|
35
|
+
assert_equal "User-agent: *\n"\
|
36
|
+
"Disallow: ",
|
37
|
+
generator.render
|
38
|
+
end
|
39
|
+
|
20
40
|
test "user agent helper" do
|
21
41
|
generator = HumanPower::Generator.new(self) do
|
22
42
|
disallow_tree admin_path
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: human_power
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lasse Bunk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
154
|
version: '0'
|
155
155
|
requirements: []
|
156
156
|
rubyforge_project:
|
157
|
-
rubygems_version: 2.
|
157
|
+
rubygems_version: 2.1.11
|
158
158
|
signing_key:
|
159
159
|
specification_version: 4
|
160
160
|
summary: Easy generation of robots.txt. Force the robots into submission!
|