rack-server-pages 0.2.0 → 0.2.1

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.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +9 -0
  3. data/README.md +2 -3
  4. data/lib/rack/server_pages.rb +1 -2
  5. data/lib/rack-server-pages/version.rb +1 -1
  6. data/rack-server-pages.gemspec +3 -6
  7. metadata +6 -60
  8. data/.github/workflows/lint.yml +0 -15
  9. data/.github/workflows/test.yml +0 -37
  10. data/.gitignore +0 -11
  11. data/.rspec +0 -2
  12. data/.rubocop.yml +0 -10
  13. data/.rubocop_todo.yml +0 -372
  14. data/Gemfile +0 -46
  15. data/Guardfile +0 -16
  16. data/Rakefile +0 -12
  17. data/config.ru +0 -49
  18. data/public/CHANGES.erb +0 -3
  19. data/public/README.erb +0 -3
  20. data/public/_layout.html.erb +0 -9
  21. data/public/folder/sample.erb +0 -14
  22. data/public/folder/special-sub.folder-@/sample.erb +0 -14
  23. data/public/folder/subfolder/(sub-folder)/sample-in-sub-folder.extension.erb +0 -14
  24. data/public/folder/subfolder/sample.erb +0 -14
  25. data/public/folder//320/277/320/276-/321/200/321/203/321/201/321/201/320/272/320/270//320/277/321/200/320/270/320/274/320/265/321/200.erb +0 -14
  26. data/public/index.html +0 -23
  27. data/public/info.php +0 -89
  28. data/public/rack_logo.png +0 -0
  29. data/public/rack_logo@2x.png +0 -0
  30. data/public/sample.erb +0 -14
  31. data/public/style.css.sass +0 -99
  32. data/views/about.html.slim +0 -11
  33. data/views/article.html.md +0 -16
  34. data/views/betty.css.sass +0 -11
  35. data/views/contact.xml.builder +0 -5
  36. data/views/examples/_layout.html.erb +0 -14
  37. data/views/examples/_time.html.erb +0 -4
  38. data/views/examples/builder.xml.builder +0 -2
  39. data/views/examples/coffee.js.coffee +0 -0
  40. data/views/examples/erb.html.erb +0 -2
  41. data/views/examples/haml.html.haml +0 -6
  42. data/views/examples/html.html +0 -1
  43. data/views/examples/index.html.erb +0 -9
  44. data/views/examples/less.css.less +0 -0
  45. data/views/examples/liquid.html.liquid +0 -0
  46. data/views/examples/markaby.html.mab +0 -0
  47. data/views/examples/markdown.html.markdown +0 -6
  48. data/views/examples/nokogiri.xml.nokogiri +0 -1
  49. data/views/examples/radius.html.radius +0 -0
  50. data/views/examples/rdoc.html.rdoc +0 -0
  51. data/views/examples/robots.txt +0 -1
  52. data/views/examples/sass.css.sass +0 -11
  53. data/views/examples/scss.css.scss +0 -0
  54. data/views/examples/slim.html.slim +0 -2
  55. data/views/examples/source.html.slim +0 -9
  56. data/views/examples/textile.html.textile +0 -0
  57. data/views/examples/wiki.html.wiki +0 -0
  58. data/views/examples/yajl.json.yajl +0 -0
  59. data/views/script.js.coffee +0 -13
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: abd39cdf92e58b58b6b5fe1d8ad5a19e3f971d83877d05526c7c9c724f2a24e3
4
- data.tar.gz: 821cd0ad12aac479c687ae02b137a174919a463635422e74e996753c39045cc1
3
+ metadata.gz: b986555fd3422b75ae3b118c60d66db359f84298dd06cbc43fac84b036071fee
4
+ data.tar.gz: 8e2a767d6ab041393514115fc1bc106d9b97b881ae4f061d47e99cae5cb6cdd2
5
5
  SHA512:
6
- metadata.gz: db9d93a3135dc78b280365dc0bc6a84f15db54ac5eb5dcb292235f0ee1280f4268e6372817c868559533af4ecd696a015524c4f0b7880407d7ef2404aa4ce98a
7
- data.tar.gz: 5698f4861e5dd6927df4b980f8a1bff9f5aa428b66b8136972f1ab739b45e424de74eb6a47e76738e8310720852448612c8826e6ec42ef2abd0b36690bb85a29
6
+ metadata.gz: 6e46b7346feca13de17285d305f54f2de30737eae130cf4e676e55349e63572340f6d30dd66fa0b18020926db5c91dece865b374e6dd165d605d78459924fbc4
7
+ data.tar.gz: 9971d0027f89f8f47960c7ac0725af41288ef5c38b923bda5cfe74510bd627b7d5703ad9d9adc3379b76a3d09d5e2bb2a367014fb80d87b3d266dc29fab6bea3
data/CHANGES.md CHANGED
@@ -1,6 +1,15 @@
1
1
  CHANGES
2
2
  =======
3
3
 
4
+ ### [v0.2.1](https://github.com/migrs/rack-server-pages/releases/tag/v0.2.1) / 2025-08-31
5
+
6
+ * [Changes](https://github.com/migrs/rack-server-pages/compare/v0.2.0...v0.2.1)
7
+
8
+ * Feature
9
+
10
+ * Misc
11
+ - Stop using `Rack::Logger`
12
+
4
13
  ### [v0.2.0](https://github.com/migrs/rack-server-pages/releases/tag/v0.2.0) / 2024-10-19
5
14
 
6
15
  * [Changes](https://github.com/migrs/rack-server-pages/compare/v0.1.0...v0.2.0)
data/README.md CHANGED
@@ -96,7 +96,6 @@ And same as above.
96
96
  - params
97
97
  - session
98
98
  - cookies
99
- - logger
100
99
 
101
100
  - [Rack::Response](http://rack.rubyforge.org/doc/Rack/Response.html)
102
101
  - response
@@ -221,7 +220,7 @@ use Rack::ServerPages do |config|
221
220
  end
222
221
 
223
222
  config.after do
224
- logger.debug 'xxxx'
223
+ Logger.new($stdout).debug('xxxx')
225
224
  end
226
225
  end
227
226
  ```
@@ -231,7 +230,7 @@ with procs
231
230
  ```ruby
232
231
  proc1 = proc { @name = 'Jonny' }
233
232
  proc2 = proc { @age = 24 }
234
- proc3 = proc { logger.debug 'xxxx' }
233
+ proc3 = proc { Logger.new($stdout).debug('xxxx') }
235
234
 
236
235
  use Rack::ServerPages do |config|
237
236
  config.before proc1, proc2
@@ -2,7 +2,6 @@
2
2
  require 'rack'
3
3
  require 'rack/utils'
4
4
  require 'rack/mime'
5
- require 'rack/logger'
6
5
  require 'time'
7
6
  require 'forwardable'
8
7
 
@@ -315,7 +314,7 @@ module Rack
315
314
 
316
315
  attr_reader :request, :response
317
316
 
318
- def_delegators :request, :env, :params, :session, :cookies, :logger
317
+ def_delegators :request, :env, :params, :session, :cookies
319
318
  def_delegators :response, :headers, :set_cookies, :delete_cookie
320
319
 
321
320
  class << self
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class ServerPages
3
- VERSION = '0.2.0'.freeze
3
+ VERSION = '0.2.1'.freeze
4
4
  end
5
5
  end
@@ -9,13 +9,10 @@ Gem::Specification.new do |s|
9
9
  s.email = ['m@igrs.jp']
10
10
  s.homepage = 'http://github.com/migrs/rack-server-pages'
11
11
  s.licenses = ['MIT']
12
- s.summary = 'Rack middleware and appilcation for serving dynamic pages in very simple way.'
13
- s.description = 'Rack middleware and appilcation for serving dynamic pages in very simple way.
14
- There are no controllers and no models, just only views like a asp, jsp and php!'
12
+ s.summary = 'Rack middleware and appilcation for serving dynamic pages.'
13
+ s.description = 'Rack middleware and appilcation for serving dynamic pages in very simple way, without controllers or models, only views similar to ASP, JSP and PHP.'
15
14
 
16
- s.files = `git ls-files -z`.split("\x0").reject do |f|
17
- f.match(%r{^(spec)/})
18
- end
15
+ s.files = Dir['lib/**/*', 'CHANGES.md', 'README.md', 'LICENSE.md', 'rack-server-pages.gemspec']
19
16
 
20
17
  s.require_paths = ['lib']
21
18
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-server-pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masato Igarashi
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-10-19 00:00:00.000000000 Z
12
+ date: 2025-08-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack
@@ -25,74 +25,21 @@ dependencies:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: '0'
28
- description: |-
29
- Rack middleware and appilcation for serving dynamic pages in very simple way.
30
- There are no controllers and no models, just only views like a asp, jsp and php!
28
+ description: Rack middleware and appilcation for serving dynamic pages in very simple
29
+ way, without controllers or models, only views similar to ASP, JSP and PHP.
31
30
  email:
32
31
  - m@igrs.jp
33
32
  executables: []
34
33
  extensions: []
35
34
  extra_rdoc_files: []
36
35
  files:
37
- - ".github/workflows/lint.yml"
38
- - ".github/workflows/test.yml"
39
- - ".gitignore"
40
- - ".rspec"
41
- - ".rubocop.yml"
42
- - ".rubocop_todo.yml"
43
36
  - CHANGES.md
44
- - Gemfile
45
- - Guardfile
46
37
  - LICENSE.md
47
38
  - README.md
48
- - Rakefile
49
- - config.ru
50
39
  - lib/rack-server-pages.rb
51
40
  - lib/rack-server-pages/version.rb
52
41
  - lib/rack/server_pages.rb
53
- - public/CHANGES.erb
54
- - public/README.erb
55
- - public/_layout.html.erb
56
- - public/folder/sample.erb
57
- - public/folder/special-sub.folder-@/sample.erb
58
- - public/folder/subfolder/(sub-folder)/sample-in-sub-folder.extension.erb
59
- - public/folder/subfolder/sample.erb
60
- - public/folder/по-русски/пример.erb
61
- - public/index.html
62
- - public/info.php
63
- - public/rack_logo.png
64
- - public/rack_logo@2x.png
65
- - public/sample.erb
66
- - public/style.css.sass
67
42
  - rack-server-pages.gemspec
68
- - views/about.html.slim
69
- - views/article.html.md
70
- - views/betty.css.sass
71
- - views/contact.xml.builder
72
- - views/examples/_layout.html.erb
73
- - views/examples/_time.html.erb
74
- - views/examples/builder.xml.builder
75
- - views/examples/coffee.js.coffee
76
- - views/examples/erb.html.erb
77
- - views/examples/haml.html.haml
78
- - views/examples/html.html
79
- - views/examples/index.html.erb
80
- - views/examples/less.css.less
81
- - views/examples/liquid.html.liquid
82
- - views/examples/markaby.html.mab
83
- - views/examples/markdown.html.markdown
84
- - views/examples/nokogiri.xml.nokogiri
85
- - views/examples/radius.html.radius
86
- - views/examples/rdoc.html.rdoc
87
- - views/examples/robots.txt
88
- - views/examples/sass.css.sass
89
- - views/examples/scss.css.scss
90
- - views/examples/slim.html.slim
91
- - views/examples/source.html.slim
92
- - views/examples/textile.html.textile
93
- - views/examples/wiki.html.wiki
94
- - views/examples/yajl.json.yajl
95
- - views/script.js.coffee
96
43
  homepage: http://github.com/migrs/rack-server-pages
97
44
  licenses:
98
45
  - MIT
@@ -112,9 +59,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
59
  - !ruby/object:Gem::Version
113
60
  version: '0'
114
61
  requirements: []
115
- rubygems_version: 3.3.7
62
+ rubygems_version: 3.5.16
116
63
  signing_key:
117
64
  specification_version: 4
118
- summary: Rack middleware and appilcation for serving dynamic pages in very simple
119
- way.
65
+ summary: Rack middleware and appilcation for serving dynamic pages.
120
66
  test_files: []
@@ -1,15 +0,0 @@
1
- name: lint
2
- on: [push, pull_request]
3
- jobs:
4
- rubocop:
5
- name: RuboCop
6
- runs-on: ubuntu-latest
7
- steps:
8
- - name: Checkout
9
- uses: actions/checkout@v3
10
- - name: Set up Ruby
11
- uses: ruby/setup-ruby@v1
12
- with:
13
- ruby-version: "3.2"
14
- bundler-cache: true
15
- - run: bundle exec rubocop
@@ -1,37 +0,0 @@
1
- ---
2
- name: test
3
- on: [push, pull_request]
4
- jobs:
5
- test:
6
- runs-on: ubuntu-latest
7
- name: test (ruby=${{ matrix.ruby-version }}, rack=${{ matrix.rack-version }})
8
- strategy:
9
- fail-fast: false
10
- matrix:
11
- rack-version:
12
- - "~> 2"
13
- - "~> 3"
14
- ruby-version:
15
- - "3.3"
16
- - "3.2"
17
- - "3.1"
18
- - "3.0"
19
- env:
20
- RACK_VERSION: ${{ matrix.rack-version }}
21
- steps:
22
- - uses: actions/checkout@v4
23
- - uses: ruby/setup-ruby@v1
24
- with:
25
- ruby-version: ${{ matrix.ruby-version }}
26
- bundler-cache: true
27
- - run: bundle show | grep rack
28
- - uses: browser-actions/setup-firefox@latest
29
- with:
30
- firefox-version: "108.0"
31
- - uses: browser-actions/setup-geckodriver@latest
32
- with:
33
- geckodriver-version: "0.34.0"
34
- - uses: GabrielBB/xvfb-action@v1
35
- with:
36
- run: |
37
- bundle exec rake spec
data/.gitignore DELETED
@@ -1,11 +0,0 @@
1
- *.gem
2
- .bundle
3
- Gemfile.lock
4
- pkg/*
5
- .DS_Store
6
- *.swp
7
- tmp/*
8
- .sass-cache
9
- coverage/
10
- .rbenv-version
11
- .rvmrc
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --format=documentation
2
- --color
data/.rubocop.yml DELETED
@@ -1,10 +0,0 @@
1
- AllCops:
2
- NewCops: enable
3
- TargetRubyVersion: 3.0
4
-
5
- inherit_from: .rubocop_todo.yml
6
-
7
- require:
8
- - rubocop-capybara
9
- - rubocop-rake
10
- - rubocop-rspec
data/.rubocop_todo.yml DELETED
@@ -1,372 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2024-10-19 14:31:39 UTC using RuboCop version 1.67.0.
4
- # The point is for the user to remove these configuration records
5
- # one by one as the offenses are removed from the code base.
6
- # Note that changes in the inspected code, or installation of new
7
- # versions of RuboCop, may require this file to be generated again.
8
-
9
- # Offense count: 5
10
- # This cop supports safe autocorrection (--autocorrect).
11
- # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
12
- # Include: **/*.gemfile, **/Gemfile, **/gems.rb
13
- Bundler/OrderedGems:
14
- Exclude:
15
- - 'Gemfile'
16
-
17
- # Offense count: 9
18
- # Configuration parameters: EnforcedStyle.
19
- # SupportedStyles: link_or_button, strict
20
- Capybara/ClickLinkOrButtonStyle:
21
- Exclude:
22
- - 'spec/integration_spec.rb'
23
-
24
- # Offense count: 1
25
- # This cop supports safe autocorrection (--autocorrect).
26
- # Configuration parameters: Severity, Include.
27
- # Include: **/*.gemspec
28
- Gemspec/DeprecatedAttributeAssignment:
29
- Exclude:
30
- - 'rack-server-pages.gemspec'
31
-
32
- # Offense count: 1
33
- # This cop supports safe autocorrection (--autocorrect).
34
- # Configuration parameters: Severity, Include.
35
- # Include: **/*.gemspec
36
- Gemspec/RequireMFA:
37
- Exclude:
38
- - 'rack-server-pages.gemspec'
39
-
40
- # Offense count: 1
41
- # Configuration parameters: Severity, Include.
42
- # Include: **/*.gemspec
43
- Gemspec/RequiredRubyVersion:
44
- Exclude:
45
- - 'rack-server-pages.gemspec'
46
-
47
- # Offense count: 1
48
- # This cop supports safe autocorrection (--autocorrect).
49
- Layout/EmptyLineAfterGuardClause:
50
- Exclude:
51
- - 'lib/rack/server_pages.rb'
52
-
53
- # Offense count: 4
54
- # This cop supports safe autocorrection (--autocorrect).
55
- Layout/EmptyLineAfterMagicComment:
56
- Exclude:
57
- - 'config.ru'
58
- - 'lib/rack/server_pages.rb'
59
- - 'rack-server-pages.gemspec'
60
- - 'spec/spec_helper.rb'
61
-
62
- # Offense count: 2
63
- # This cop supports safe autocorrection (--autocorrect).
64
- # Configuration parameters: AllowedMethods, AllowedPatterns.
65
- Lint/AmbiguousBlockAssociation:
66
- Exclude:
67
- - 'config.ru'
68
- - 'lib/rack/server_pages.rb'
69
-
70
- # Offense count: 1
71
- # This cop supports safe autocorrection (--autocorrect).
72
- Lint/AmbiguousRegexpLiteral:
73
- Exclude:
74
- - 'spec/spec_helper.rb'
75
-
76
- # Offense count: 1
77
- # This cop supports unsafe autocorrection (--autocorrect-all).
78
- # Configuration parameters: AllowSafeAssignment.
79
- Lint/AssignmentInCondition:
80
- Exclude:
81
- - 'lib/rack/server_pages.rb'
82
-
83
- # Offense count: 1
84
- # Configuration parameters: AllowComments, AllowNil.
85
- Lint/SuppressedException:
86
- Exclude:
87
- - 'spec/lib/rack/server_pages_spec.rb'
88
-
89
- # Offense count: 2
90
- # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
91
- Metrics/AbcSize:
92
- Max: 21
93
-
94
- # Offense count: 1
95
- # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
96
- # AllowedMethods: refine
97
- Metrics/BlockLength:
98
- Max: 35
99
-
100
- # Offense count: 3
101
- # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
102
- Metrics/MethodLength:
103
- Max: 85
104
-
105
- # Offense count: 1
106
- # Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
107
- # CheckDefinitionPathHierarchyRoots: lib, spec, test, src
108
- # AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
109
- Naming/FileName:
110
- Exclude:
111
- - 'Rakefile.rb'
112
- - 'lib/rack-server-pages.rb'
113
-
114
- # Offense count: 1
115
- # This cop supports unsafe autocorrection (--autocorrect-all).
116
- # Configuration parameters: EnforcedStyleForLeadingUnderscores.
117
- # SupportedStylesForLeadingUnderscores: disallowed, required, optional
118
- Naming/MemoizedInstanceVariableName:
119
- Exclude:
120
- - 'spec/spec_helper.rb'
121
-
122
- # Offense count: 12
123
- # Configuration parameters: Prefixes, AllowedPatterns.
124
- # Prefixes: when, with, without
125
- RSpec/ContextWording:
126
- Exclude:
127
- - 'spec/integration_spec.rb'
128
- - 'spec/lib/rack/server_pages_spec.rb'
129
- - 'spec/spec_helper.rb'
130
-
131
- # Offense count: 2
132
- # This cop supports unsafe autocorrection (--autocorrect-all).
133
- # Configuration parameters: AutoCorrect.
134
- RSpec/EmptyExampleGroup:
135
- Exclude:
136
- - 'spec/lib/rack/server_pages_spec.rb'
137
-
138
- # Offense count: 9
139
- # This cop supports safe autocorrection (--autocorrect).
140
- # Configuration parameters: AllowConsecutiveOneLiners.
141
- RSpec/EmptyLineAfterExample:
142
- Exclude:
143
- - 'spec/integration_spec.rb'
144
-
145
- # Offense count: 1
146
- # This cop supports safe autocorrection (--autocorrect).
147
- RSpec/EmptyLineAfterExampleGroup:
148
- Exclude:
149
- - 'spec/integration_spec.rb'
150
-
151
- # Offense count: 12
152
- # This cop supports safe autocorrection (--autocorrect).
153
- RSpec/EmptyLineAfterFinalLet:
154
- Exclude:
155
- - 'spec/lib/rack/server_pages_spec.rb'
156
- - 'spec/spec_helper.rb'
157
-
158
- # Offense count: 2
159
- # This cop supports safe autocorrection (--autocorrect).
160
- # Configuration parameters: AllowConsecutiveOneLiners.
161
- RSpec/EmptyLineAfterHook:
162
- Exclude:
163
- - 'spec/integration_spec.rb'
164
- - 'spec/lib/rack/server_pages_spec.rb'
165
-
166
- # Offense count: 1
167
- # This cop supports safe autocorrection (--autocorrect).
168
- RSpec/EmptyLineAfterSubject:
169
- Exclude:
170
- - 'spec/lib/rack/server_pages_spec.rb'
171
-
172
- # Offense count: 1
173
- # This cop supports safe autocorrection (--autocorrect).
174
- # Configuration parameters: EnforcedStyle.
175
- # SupportedStyles: is_expected, should
176
- RSpec/ImplicitExpect:
177
- Exclude:
178
- - 'spec/spec_helper.rb'
179
-
180
- # Offense count: 1
181
- # This cop supports safe autocorrection (--autocorrect).
182
- RSpec/LeadingSubject:
183
- Exclude:
184
- - 'spec/lib/rack/server_pages_spec.rb'
185
-
186
- # Offense count: 1
187
- # This cop supports safe autocorrection (--autocorrect).
188
- # Configuration parameters: EnforcedStyle.
189
- # SupportedStyles: hash, symbol
190
- RSpec/MetadataStyle:
191
- Exclude:
192
- - 'spec/integration_spec.rb'
193
-
194
- # Offense count: 1
195
- RSpec/MultipleExpectations:
196
- Max: 2
197
-
198
- # Offense count: 8
199
- # Configuration parameters: AllowedGroups.
200
- RSpec/NestedGroups:
201
- Max: 4
202
-
203
- # Offense count: 2
204
- # Configuration parameters: AllowedPatterns.
205
- # AllowedPatterns: ^expect_, ^assert_
206
- RSpec/NoExpectationExample:
207
- Exclude:
208
- - 'spec/integration_spec.rb'
209
- - 'spec/lib/rack/server_pages_spec.rb'
210
-
211
- # Offense count: 2
212
- # This cop supports unsafe autocorrection (--autocorrect-all).
213
- Security/IoMethods:
214
- Exclude:
215
- - 'lib/rack/server_pages.rb'
216
-
217
- # Offense count: 1
218
- # This cop supports unsafe autocorrection (--autocorrect-all).
219
- # Configuration parameters: EnforcedStyle.
220
- # SupportedStyles: nested, compact
221
- Style/ClassAndModuleChildren:
222
- Exclude:
223
- - 'lib/rack/server_pages/php_helper.rb'
224
-
225
- # Offense count: 11
226
- # Configuration parameters: AllowedConstants.
227
- Style/Documentation:
228
- Exclude:
229
- - 'spec/**/*'
230
- - 'test/**/*'
231
- - 'config.ru'
232
- - 'lib/rack/server_pages.rb'
233
- - 'lib/rack/server_pages/php_helper.rb'
234
-
235
- # Offense count: 1
236
- # This cop supports safe autocorrection (--autocorrect).
237
- # Configuration parameters: AutoCorrect, EnforcedStyle.
238
- # SupportedStyles: compact, expanded
239
- Style/EmptyMethod:
240
- Exclude:
241
- - 'config.ru'
242
-
243
- # Offense count: 4
244
- # This cop supports safe autocorrection (--autocorrect).
245
- Style/Encoding:
246
- Exclude:
247
- - 'config.ru'
248
- - 'lib/rack/server_pages.rb'
249
- - 'rack-server-pages.gemspec'
250
- - 'spec/spec_helper.rb'
251
-
252
- # Offense count: 2
253
- # This cop supports safe autocorrection (--autocorrect).
254
- Style/ExpandPathArguments:
255
- Exclude:
256
- - 'rack-server-pages.gemspec'
257
- - 'spec/integration_spec.rb'
258
-
259
- # Offense count: 14
260
- # This cop supports unsafe autocorrection (--autocorrect-all).
261
- # Configuration parameters: EnforcedStyle.
262
- # SupportedStyles: always, always_true, never
263
- Style/FrozenStringLiteralComment:
264
- Exclude:
265
- - 'Gemfile'
266
- - 'Guardfile'
267
- - 'Rakefile'
268
- - 'config.ru'
269
- - 'lib/rack-server-pages.rb'
270
- - 'lib/rack-server-pages/version.rb'
271
- - 'lib/rack/server_pages.rb'
272
- - 'lib/rack/server_pages/php_helper.rb'
273
- - 'rack-server-pages.gemspec'
274
- - 'spec/integration_spec.rb'
275
- - 'spec/lib/rack/server_pages_spec.rb'
276
- - 'spec/spec_helper.rb'
277
- - 'views/contact.xml.builder'
278
- - 'views/examples/builder.xml.builder'
279
-
280
- # Offense count: 2
281
- # This cop supports safe autocorrection (--autocorrect).
282
- # Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
283
- Style/GuardClause:
284
- Exclude:
285
- - 'lib/rack/server_pages.rb'
286
-
287
- # Offense count: 1
288
- # This cop supports unsafe autocorrection (--autocorrect-all).
289
- # Configuration parameters: AllowSplatArgument.
290
- Style/HashConversion:
291
- Exclude:
292
- - 'lib/rack/server_pages.rb'
293
-
294
- # Offense count: 1
295
- # This cop supports safe autocorrection (--autocorrect).
296
- Style/NegatedIfElseCondition:
297
- Exclude:
298
- - 'lib/rack/server_pages.rb'
299
-
300
- # Offense count: 1
301
- # Configuration parameters: AllowedMethods.
302
- # AllowedMethods: respond_to_missing?
303
- Style/OptionalBooleanParameter:
304
- Exclude:
305
- - 'lib/rack/server_pages.rb'
306
-
307
- # Offense count: 4
308
- # This cop supports safe autocorrection (--autocorrect).
309
- # Configuration parameters: PreferredDelimiters.
310
- Style/PercentLiteralDelimiters:
311
- Exclude:
312
- - 'lib/rack/server_pages.rb'
313
- - 'spec/lib/rack/server_pages_spec.rb'
314
-
315
- # Offense count: 1
316
- # This cop supports safe autocorrection (--autocorrect).
317
- Style/RedundantBegin:
318
- Exclude:
319
- - 'lib/rack/server_pages.rb'
320
-
321
- # Offense count: 1
322
- # This cop supports safe autocorrection (--autocorrect).
323
- Style/RedundantRegexpEscape:
324
- Exclude:
325
- - 'Guardfile'
326
-
327
- # Offense count: 1
328
- # This cop supports safe autocorrection (--autocorrect).
329
- # Configuration parameters: EnforcedStyle.
330
- # SupportedStyles: implicit, explicit
331
- Style/RescueStandardError:
332
- Exclude:
333
- - 'lib/rack/server_pages.rb'
334
-
335
- # Offense count: 1
336
- # This cop supports safe autocorrection (--autocorrect).
337
- # Configuration parameters: AllowAsExpressionSeparator.
338
- Style/Semicolon:
339
- Exclude:
340
- - 'spec/lib/rack/server_pages_spec.rb'
341
-
342
- # Offense count: 1
343
- # This cop supports unsafe autocorrection (--autocorrect-all).
344
- # Configuration parameters: RequireEnglish, EnforcedStyle.
345
- # SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names
346
- Style/SpecialGlobalVars:
347
- Exclude:
348
- - 'lib/rack/server_pages.rb'
349
-
350
- # Offense count: 3
351
- # This cop supports unsafe autocorrection (--autocorrect-all).
352
- # Configuration parameters: Mode.
353
- Style/StringConcatenation:
354
- Exclude:
355
- - 'config.ru'
356
- - 'lib/rack/server_pages.rb'
357
- - 'spec/lib/rack/server_pages_spec.rb'
358
-
359
- # Offense count: 2
360
- # This cop supports safe autocorrection (--autocorrect).
361
- # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
362
- # SupportedStyles: single_quotes, double_quotes
363
- Style/StringLiterals:
364
- Exclude:
365
- - 'views/contact.xml.builder'
366
-
367
- # Offense count: 2
368
- # This cop supports safe autocorrection (--autocorrect).
369
- # Configuration parameters: MinSize.
370
- # SupportedStyles: percent, brackets
371
- Style/SymbolArray:
372
- EnforcedStyle: brackets