middleman-robots 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -1
- data/lib/middleman-robots/extension.rb +5 -4
- data/lib/middleman-robots/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7fe8c7c18e4b99c7a53f13c46b307bbaa9ba9c2
|
4
|
+
data.tar.gz: 10db367365abdc793d320d016a813e38b0138374
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9abfe16e709d8011b319419a88cd4a269fa41c7dfd7818cc944abc1f212913ce83d2764a40719718da3d39309c70aac7502672e3b2e381aa72c99498c4c0a9fc
|
7
|
+
data.tar.gz: cb625f0c79cc12a438c10f3b8030bcb4effe242c39eb1e45f092d41c364f314ee5c0d85611a42dbd9efc1591a1989cee4f4876c7943cc6a22d29435d9443a1da
|
data/.gitignore
CHANGED
@@ -9,15 +9,16 @@ module Middleman
|
|
9
9
|
option :sitemap, false, 'URI of sitemap.xml'
|
10
10
|
|
11
11
|
def manipulate_resource_list(resources)
|
12
|
-
|
13
|
-
|
12
|
+
tmp_path = File.expand_path('../../../tmp/robots/robots.txt', __FILE__)
|
13
|
+
File.open(tmp_path, 'w+') do |f|
|
14
|
+
f.puts(Generator.new(options.rules, options.sitemap).process)
|
15
|
+
end
|
14
16
|
|
15
17
|
robots = Middleman::Sitemap::Resource.new(
|
16
18
|
app.sitemap,
|
17
19
|
'robots.txt',
|
18
|
-
|
20
|
+
tmp_path
|
19
21
|
)
|
20
|
-
tf.close
|
21
22
|
|
22
23
|
logger.info '== middleman-robots: robots.txt added to resources =='
|
23
24
|
resources << robots
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-robots
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuya Matsushima
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: middleman
|
@@ -125,6 +125,7 @@ files:
|
|
125
125
|
- middleman-robots.gemspec
|
126
126
|
- tests/test_generator.rb
|
127
127
|
- tests/test_group.rb
|
128
|
+
- tmp/robots/.gitkeep
|
128
129
|
homepage: https://github.com/yterajima/middleman-robots
|
129
130
|
licenses:
|
130
131
|
- MIT
|