middleman-robots 1.3.5 → 1.3.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bb2ad78f094b46f2d5c0a19e03471eff2285e443039d4872532d44a91764d557
4
- data.tar.gz: 3b12a61174e1bebdc5f398c67fb1bfa102bdeb2fc0b7eae7b25378c1d4be98fb
3
+ metadata.gz: 525009b32d148d32e07a4373e7532a46126e2b271ffef6221ad4d750d5a9b4a9
4
+ data.tar.gz: 45366b77e1e3ca26d889d4cead667c3826387063c48a5ae97dd12cde7f470d79
5
5
  SHA512:
6
- metadata.gz: b333b535edd07872e4711106d6c40c0013844078f447500f6ae63a14364010ca746a9d2e37b4a8bee17d8cd28c0d2f5fe7945630765f07abc97ae5cf92fb98ea
7
- data.tar.gz: 3aecf7a784a98210286eddb24be8ca8cac9892a5476cad6b92059c00d15953845cfd5c8d3fbbeaca5f7ff392b91ebd9da0f6b6a71140e63890617b6f26c0d1be
6
+ metadata.gz: a9826c1a46025521f1fb884a8c17581e9d3aa9b3226fe2e37487ba1b33fd70c978c52a9b0d05164ee288e4d3d2c30597671c4c0a6809be94c72cea5f9821c31b
7
+ data.tar.gz: f152418cb899e8874ef4fbe52a79b785bb3cb9c3b7d08adb37c444f035f2e8c87319a977aa0e095b0b4683d909da6d9031fc1a46835c4c9601f49930634089d3
@@ -0,0 +1,25 @@
1
+ on: [push]
2
+ name: CI
3
+ jobs:
4
+ test:
5
+ strategy:
6
+ matrix:
7
+ ruby-version: [2.6, 2.7, 3.0]
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: actions/checkout@v2
11
+ - uses: ruby/setup-ruby@v1
12
+ with:
13
+ ruby-version: ${{ matrix.ruby-version }}
14
+ bundler-cache: true
15
+ - run: bundle exec rake test
16
+
17
+ rubocop:
18
+ runs-on: ubuntu-latest
19
+ steps:
20
+ - uses: actions/checkout@v2
21
+ - uses: ruby/setup-ruby@v1
22
+ with:
23
+ ruby-version: 3.0
24
+ bundler-cache: true
25
+ - run: bundle exec rubocop
data/.rubocop.yml CHANGED
@@ -1,9 +1,10 @@
1
1
  AllCops:
2
+ NewCops: enable
2
3
  Exclude:
3
4
  - 'pkg/*'
4
5
  - 'tmp/**/*'
5
6
  - 'vendor/**/*'
6
- TargetRubyVersion: 2.4
7
+ TargetRubyVersion: 2.6
7
8
  DisplayCopNames: true
8
9
 
9
10
  Style/ClassAndModuleChildren:
@@ -16,7 +17,7 @@ Metrics/BlockLength:
16
17
  Exclude:
17
18
  - 'spec/**/*_spec.rb'
18
19
 
19
- Metrics/LineLength:
20
+ Layout/LineLength:
20
21
  Max: 100
21
22
  Exclude:
22
23
  - '*.gemspec'
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Middleman::Robots
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/middleman-robots.svg)](http://badge.fury.io/rb/middleman-robots)
4
- [![Build Status](https://travis-ci.org/yterajima/middleman-robots.svg?branch=master)](https://travis-ci.org/yterajima/middleman-robots)
4
+ [![GitHub Actions CI](https://github.com/yterajima/middleman-robots/actions/workflows/ci.yml/badge.svg)](https://github.com/yterajima/middleman-robots/actions/workflows/ci.yml)
5
5
 
6
6
  `middleman-robots` is an extension of [Middleman](https://middlemanapp.com/). This can create `robots.txt`.
7
7
 
data/cucumber.yml ADDED
@@ -0,0 +1 @@
1
+ default: --publish-quiet
@@ -9,7 +9,6 @@ Feature: Middleman-Robots on build
9
9
  And a successfully built app at "basic-app"
10
10
  When I cd to "build"
11
11
  Then a file named "robots.txt" should exist
12
- And the output should contain "== middleman-robots: robots.txt added to resources =="
13
12
  And the file "robots.txt" should contain exactly:
14
13
  """
15
14
  """
@@ -12,14 +12,11 @@ module Middleman
12
12
 
13
13
  def manipulate_resource_list(resources)
14
14
  write_robots(options)
15
- robots = Middleman::Sitemap::Resource.new(
15
+ resources << Middleman::Sitemap::Resource.new(
16
16
  app.sitemap,
17
17
  'robots.txt',
18
18
  tmp_path
19
19
  )
20
-
21
- logger.info '== middleman-robots: robots.txt added to resources =='
22
- resources << robots
23
20
  end
24
21
 
25
22
  def write_robots(options)
@@ -3,6 +3,6 @@
3
3
  module Middleman
4
4
  # Middleman robots module
5
5
  module Robots
6
- VERSION = '1.3.5'
6
+ VERSION = '1.3.6'
7
7
  end
8
8
  end
@@ -18,10 +18,10 @@ Gem::Specification.new do |spec|
18
18
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
19
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
20
  spec.require_paths = ['lib']
21
- spec.required_ruby_version = '>= 2.4.0'
21
+ spec.required_ruby_version = '>= 2.6.0'
22
22
 
23
- spec.add_runtime_dependency 'middleman-cli', '>= 4.0'
24
- spec.add_runtime_dependency 'middleman-core', '>= 4.0'
23
+ spec.add_runtime_dependency 'middleman-cli', '>= 4.0', '<= 4.4'
24
+ spec.add_runtime_dependency 'middleman-core', '>= 4.0', '<= 4.4'
25
25
 
26
26
  spec.add_development_dependency 'aruba', '>= 0.14.3'
27
27
  spec.add_development_dependency 'bundler', '>= 1.16'
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.5
4
+ version: 1.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuya Matsushima
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-17 00:00:00.000000000 Z
11
+ date: 2021-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleman-cli
@@ -17,6 +17,9 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '4.0'
20
+ - - "<="
21
+ - !ruby/object:Gem::Version
22
+ version: '4.4'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -24,6 +27,9 @@ dependencies:
24
27
  - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '4.0'
30
+ - - "<="
31
+ - !ruby/object:Gem::Version
32
+ version: '4.4'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: middleman-core
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -31,6 +37,9 @@ dependencies:
31
37
  - - ">="
32
38
  - !ruby/object:Gem::Version
33
39
  version: '4.0'
40
+ - - "<="
41
+ - !ruby/object:Gem::Version
42
+ version: '4.4'
34
43
  type: :runtime
35
44
  prerelease: false
36
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -38,6 +47,9 @@ dependencies:
38
47
  - - ">="
39
48
  - !ruby/object:Gem::Version
40
49
  version: '4.0'
50
+ - - "<="
51
+ - !ruby/object:Gem::Version
52
+ version: '4.4'
41
53
  - !ruby/object:Gem::Dependency
42
54
  name: aruba
43
55
  requirement: !ruby/object:Gem::Requirement
@@ -144,6 +156,7 @@ executables: []
144
156
  extensions: []
145
157
  extra_rdoc_files: []
146
158
  files:
159
+ - ".github/workflows/ci.yml"
147
160
  - ".gitignore"
148
161
  - ".rspec"
149
162
  - ".rubocop.yml"
@@ -153,6 +166,7 @@ files:
153
166
  - README.jp.md
154
167
  - README.md
155
168
  - Rakefile
169
+ - cucumber.yml
156
170
  - features/build.feature
157
171
  - features/server.feature
158
172
  - features/support/env.rb
@@ -180,7 +194,7 @@ homepage: https://github.com/yterajima/middleman-robots
180
194
  licenses:
181
195
  - MIT
182
196
  metadata: {}
183
- post_install_message:
197
+ post_install_message:
184
198
  rdoc_options: []
185
199
  require_paths:
186
200
  - lib
@@ -188,15 +202,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
188
202
  requirements:
189
203
  - - ">="
190
204
  - !ruby/object:Gem::Version
191
- version: 2.4.0
205
+ version: 2.6.0
192
206
  required_rubygems_version: !ruby/object:Gem::Requirement
193
207
  requirements:
194
208
  - - ">="
195
209
  - !ruby/object:Gem::Version
196
210
  version: '0'
197
211
  requirements: []
198
- rubygems_version: 3.0.3
199
- signing_key:
212
+ rubygems_version: 3.2.22
213
+ signing_key:
200
214
  specification_version: 4
201
215
  summary: Generate robots.txt by config.rb.
202
216
  test_files: