human_power 0.0.3 → 0.0.4

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: 85d862a0641b75ed9ca834a320e636899b0a707e
4
- data.tar.gz: 8526d1ddd6b2a51439f7efb4339f397c5f575b07
3
+ metadata.gz: 9d90d62d2553046a86e4548fadcec0a055c5956f
4
+ data.tar.gz: 3114fde3618db41e9f2f78eb5be1c53b47049d13
5
5
  SHA512:
6
- metadata.gz: ff9ebfe171ddc808a642e6bda45e3475d0da4ea07d1f063694ae7d92807ff4cfd9042dbd643d11dcf30c6449377f5437c4c84139cd2153149c8dff7adbb347fb
7
- data.tar.gz: becb2c0552d849252a8ee195cb5cb0e0dd9274ad093a3dc4ddf31dc6c64b92b6630b598d45ce8d605d54a74de7003801b03814c1b1d4ccbc61ef54b474e12b72
6
+ metadata.gz: 107fcde74d0cace16683d8bb892a81facb094ad6cc635cfa9258c143997afa342af46e5b4b26617c8f61751aab62da16bf070996195e5198fbf3e9d1e02d8398
7
+ data.tar.gz: 1fac4d961a5f28246df45b37f87df8ef66bff8ee34aee3a11f043182d6ae171c3c2974e525cb9d72dcfc72aecb4aefe5147d27d701c6d1d08ff17fd1a2a7c325
@@ -1,6 +1,6 @@
1
1
  module HumanPower
2
2
  class Generator
3
- DISALLOW_KEYS = { all: "*", none: "" }
3
+ DISALLOW_KEYS = { all: "/", none: "" }
4
4
 
5
5
  def initialize(context = nil, &block)
6
6
  @context = context
@@ -1,3 +1,3 @@
1
1
  module HumanPower
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -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
@@ -11,7 +11,7 @@ class IntegrationTest < ActionDispatch::IntegrationTest
11
11
  "Disallow: /admin/\n"\
12
12
  "\n"\
13
13
  "User-agent: Bingbot\n"\
14
- "Disallow: *\n"\
14
+ "Disallow: /\n"\
15
15
  "\n"\
16
16
  "User-agent: Googlebot\n"\
17
17
  "Disallow: /products/one",
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.3
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: 2013-12-09 00:00:00.000000000 Z
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.0.3
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!