rack-link_headers 2.4.0 → 2.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rack/link_headers/version.rb +1 -1
  3. data/rack-link-headers.gemspec +2 -2
  4. data/vendor/bundle/ruby/3.3.0/bundler/gems/rubocop-config-943facea9d8f/LICENSE +21 -0
  5. data/vendor/bundle/ruby/3.3.0/bundler/gems/rubocop-config-943facea9d8f/README.md +23 -0
  6. data/vendor/bundle/ruby/3.3.0/bundler/gems/rubocop-config-943facea9d8f/rubocop-config.gemspec +31 -0
  7. data/vendor/bundle/ruby/3.3.0/gems/ast-2.4.2/LICENSE.MIT +20 -0
  8. data/vendor/bundle/ruby/3.3.0/gems/ast-2.4.2/README.YARD.md +12 -0
  9. data/vendor/bundle/ruby/3.3.0/gems/json-2.7.2/LICENSE +56 -0
  10. data/vendor/bundle/ruby/3.3.0/gems/json-2.7.2/README.md +416 -0
  11. data/vendor/bundle/ruby/3.3.0/gems/json-2.7.2/json.gemspec +68 -0
  12. data/vendor/bundle/ruby/3.3.0/gems/language_server-protocol-3.17.0.3/LICENSE.txt +21 -0
  13. data/vendor/bundle/ruby/3.3.0/gems/language_server-protocol-3.17.0.3/README.md +88 -0
  14. data/vendor/bundle/ruby/3.3.0/gems/minitest-5.25.1/README.rdoc +835 -0
  15. data/vendor/bundle/ruby/3.3.0/gems/parallel-1.26.3/MIT-LICENSE.txt +20 -0
  16. data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.5.0/LICENSE.txt +25 -0
  17. data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.5.0/parser.gemspec +43 -0
  18. data/vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/README.ja.rdoc +58 -0
  19. data/vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/README.rdoc +60 -0
  20. data/vendor/bundle/ruby/3.3.0/gems/rack-3.1.7/CHANGELOG.md +994 -0
  21. data/vendor/bundle/ruby/3.3.0/gems/rack-3.1.7/MIT-LICENSE +20 -0
  22. data/vendor/bundle/ruby/3.3.0/gems/rack-3.1.7/README.md +328 -0
  23. data/vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/LICENSE +20 -0
  24. data/vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/README.markdown +227 -0
  25. data/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/MIT-LICENSE +21 -0
  26. data/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/README.rdoc +155 -0
  27. data/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/rake.gemspec +101 -0
  28. data/vendor/bundle/ruby/3.3.0/gems/rake-release-1.3.0/LICENSE +21 -0
  29. data/vendor/bundle/ruby/3.3.0/gems/rake-release-1.3.0/README.md +107 -0
  30. data/vendor/bundle/ruby/3.3.0/gems/rake-release-1.3.0/rake-release.gemspec +23 -0
  31. data/vendor/bundle/ruby/3.3.0/gems/regexp_parser-2.9.2/LICENSE +22 -0
  32. data/vendor/bundle/ruby/3.3.0/gems/regexp_parser-2.9.2/regexp_parser.gemspec +34 -0
  33. data/vendor/bundle/ruby/3.3.0/gems/rexml-3.3.7/LICENSE.txt +22 -0
  34. data/vendor/bundle/ruby/3.3.0/gems/rexml-3.3.7/README.md +57 -0
  35. data/vendor/bundle/ruby/3.3.0/gems/rubocop-1.65.1/LICENSE.txt +20 -0
  36. data/vendor/bundle/ruby/3.3.0/gems/rubocop-1.65.1/README.md +251 -0
  37. data/vendor/bundle/ruby/3.3.0/gems/rubocop-ast-1.32.3/LICENSE.txt +20 -0
  38. data/vendor/bundle/ruby/3.3.0/gems/rubocop-ast-1.32.3/README.md +56 -0
  39. data/vendor/bundle/ruby/3.3.0/gems/rubocop-capybara-2.21.0/CHANGELOG.md +85 -0
  40. data/vendor/bundle/ruby/3.3.0/gems/rubocop-capybara-2.21.0/MIT-LICENSE.md +21 -0
  41. data/vendor/bundle/ruby/3.3.0/gems/rubocop-capybara-2.21.0/README.md +88 -0
  42. data/vendor/bundle/ruby/3.3.0/gems/rubocop-factory_bot-2.26.1/CHANGELOG.md +116 -0
  43. data/vendor/bundle/ruby/3.3.0/gems/rubocop-factory_bot-2.26.1/MIT-LICENSE.md +21 -0
  44. data/vendor/bundle/ruby/3.3.0/gems/rubocop-factory_bot-2.26.1/README.md +88 -0
  45. data/vendor/bundle/ruby/3.3.0/gems/rubocop-performance-1.21.1/LICENSE.txt +20 -0
  46. data/vendor/bundle/ruby/3.3.0/gems/rubocop-performance-1.21.1/README.md +97 -0
  47. data/vendor/bundle/ruby/3.3.0/gems/rubocop-rspec-3.0.5/CHANGELOG.md +1034 -0
  48. data/vendor/bundle/ruby/3.3.0/gems/rubocop-rspec-3.0.5/MIT-LICENSE.md +21 -0
  49. data/vendor/bundle/ruby/3.3.0/gems/rubocop-rspec-3.0.5/README.md +109 -0
  50. data/vendor/bundle/ruby/3.3.0/gems/rubocop-rspec_rails-2.30.0/CHANGELOG.md +84 -0
  51. data/vendor/bundle/ruby/3.3.0/gems/rubocop-rspec_rails-2.30.0/MIT-LICENSE.md +21 -0
  52. data/vendor/bundle/ruby/3.3.0/gems/rubocop-rspec_rails-2.30.0/README.md +90 -0
  53. data/vendor/bundle/ruby/3.3.0/gems/ruby-progressbar-1.13.0/LICENSE.txt +19 -0
  54. data/vendor/bundle/ruby/3.3.0/gems/ruby-progressbar-1.13.0/README.md +131 -0
  55. data/vendor/bundle/ruby/3.3.0/gems/unicode-display_width-2.6.0/CHANGELOG.md +200 -0
  56. data/vendor/bundle/ruby/3.3.0/gems/unicode-display_width-2.6.0/MIT-LICENSE.txt +22 -0
  57. data/vendor/bundle/ruby/3.3.0/gems/unicode-display_width-2.6.0/README.md +171 -0
  58. data/vendor/bundle/ruby/3.3.0/specifications/ast-2.4.2.gemspec +30 -0
  59. data/vendor/bundle/ruby/3.3.0/specifications/json-2.7.2.gemspec +0 -0
  60. data/vendor/bundle/ruby/3.3.0/specifications/language_server-protocol-3.17.0.3.gemspec +31 -0
  61. data/vendor/bundle/ruby/3.3.0/specifications/minitest-5.25.1.gemspec +31 -0
  62. data/vendor/bundle/ruby/3.3.0/specifications/parallel-1.26.3.gemspec +21 -0
  63. data/vendor/bundle/ruby/3.3.0/specifications/parser-3.3.5.0.gemspec +37 -0
  64. data/vendor/bundle/ruby/3.3.0/specifications/racc-1.8.1.gemspec +28 -0
  65. data/vendor/bundle/ruby/3.3.0/specifications/rack-3.1.7.gemspec +31 -0
  66. data/vendor/bundle/ruby/3.3.0/specifications/rainbow-3.1.1.gemspec +25 -0
  67. data/vendor/bundle/ruby/3.3.0/specifications/rake-13.2.1.gemspec +26 -0
  68. data/vendor/bundle/ruby/3.3.0/specifications/rake-release-1.3.0.gemspec +26 -0
  69. data/vendor/bundle/ruby/3.3.0/specifications/regexp_parser-2.9.2.gemspec +22 -0
  70. data/vendor/bundle/ruby/3.3.0/specifications/rexml-3.3.7.gemspec +25 -0
  71. data/vendor/bundle/ruby/3.3.0/specifications/rubocop-1.65.1.gemspec +39 -0
  72. data/vendor/bundle/ruby/3.3.0/specifications/rubocop-ast-1.32.3.gemspec +28 -0
  73. data/vendor/bundle/ruby/3.3.0/specifications/rubocop-capybara-2.21.0.gemspec +27 -0
  74. data/vendor/bundle/ruby/3.3.0/specifications/rubocop-factory_bot-2.26.1.gemspec +27 -0
  75. data/vendor/bundle/ruby/3.3.0/specifications/rubocop-performance-1.21.1.gemspec +29 -0
  76. data/vendor/bundle/ruby/3.3.0/specifications/rubocop-rspec-3.0.5.gemspec +28 -0
  77. data/vendor/bundle/ruby/3.3.0/specifications/rubocop-rspec_rails-2.30.0.gemspec +28 -0
  78. data/vendor/bundle/ruby/3.3.0/specifications/ruby-progressbar-1.13.0.gemspec +29 -0
  79. data/vendor/bundle/ruby/3.3.0/specifications/unicode-display_width-2.6.0.gemspec +29 -0
  80. metadata +80 -4
@@ -0,0 +1,21 @@
1
+ # The MIT License (MIT)
2
+
3
+ Copyright (c) 2014 Ian MacLeod <ian@nevir.net>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
9
+ of the Software, and to permit persons to whom the Software is furnished to do
10
+ so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,109 @@
1
+ # RuboCop RSpec
2
+
3
+ [![Join the chat at https://gitter.im/rubocop-rspec/Lobby](https://badges.gitter.im/rubocop-rspec/Lobby.svg)](https://gitter.im/rubocop-rspec/Lobby)
4
+ [![Gem Version](https://badge.fury.io/rb/rubocop-rspec.svg)](https://rubygems.org/gems/rubocop-rspec)
5
+ ![CI](https://github.com/rubocop/rubocop-rspec/workflows/CI/badge.svg)
6
+
7
+ [RSpec](https://rspec.info/)-specific analysis for your projects, as an extension to
8
+ [RuboCop](https://github.com/rubocop/rubocop).
9
+
10
+ - [Installation](#installation)
11
+ - [Upgrading to RuboCop RSpec v3.x](#upgrading-to-rubocop-rspec-v3x)
12
+ - [Upgrading to RuboCop RSpec v2.x](#upgrading-to-rubocop-rspec-v2x)
13
+ - [Usage](#usage)
14
+ - [Documentation](#documentation)
15
+ - [The Cops](#the-cops)
16
+ - [Contributing](#contributing)
17
+ - [License](#license)
18
+
19
+ ## Installation
20
+
21
+ Just install the `rubocop-rspec` gem
22
+
23
+ ```bash
24
+ gem install rubocop-rspec
25
+ ```
26
+
27
+ or if you use bundler put this in your `Gemfile`
28
+
29
+ ```ruby
30
+ gem 'rubocop-rspec', require: false
31
+ ```
32
+
33
+ ### Upgrading to RuboCop RSpec v3.x
34
+
35
+ Read all the details in our [Upgrade to Version 3.x](https://docs.rubocop.org/rubocop-rspec/3.0/upgrade_to_version_3.html) document.
36
+
37
+ ### Upgrading to RuboCop RSpec v2.x
38
+
39
+ Read all the details in our [Upgrade to Version 2.x](https://docs.rubocop.org/rubocop-rspec/2.0/upgrade_to_version_2.html) document.
40
+
41
+ ## Usage
42
+
43
+ You need to tell RuboCop to load the RSpec extension. There are three
44
+ ways to do this:
45
+
46
+ ### RuboCop configuration file
47
+
48
+ Put this into your `.rubocop.yml`.
49
+
50
+ ```yaml
51
+ require: rubocop-rspec
52
+ ```
53
+
54
+ Alternatively, use the following array notation when specifying multiple extensions.
55
+
56
+ ```yaml
57
+ require:
58
+ - rubocop-other-extension
59
+ - rubocop-rspec
60
+ ```
61
+
62
+ Now you can run `rubocop` and it will automatically load the RuboCop RSpec
63
+ cops together with the standard cops.
64
+
65
+ ### Command line
66
+
67
+ ```bash
68
+ rubocop --require rubocop-rspec
69
+ ```
70
+
71
+ ### Rake task
72
+
73
+ ```ruby
74
+ RuboCop::RakeTask.new do |task|
75
+ task.requires << 'rubocop-rspec'
76
+ end
77
+ ```
78
+
79
+ ### Code Climate
80
+
81
+ rubocop-rspec is available on Code Climate as part of the rubocop engine. [Learn More](https://marketing.codeclimate.com/changelog/55a433bbe30ba00852000fac/).
82
+
83
+ ## Documentation
84
+
85
+ You can read more about RuboCop RSpec in its [official manual](https://docs.rubocop.org/rubocop-rspec).
86
+
87
+ ## The Cops
88
+
89
+ All cops are located under
90
+ [`lib/rubocop/cop/rspec`](lib/rubocop/cop/rspec), and contain
91
+ examples/documentation.
92
+
93
+ In your `.rubocop.yml`, you may treat the RSpec cops just like any other
94
+ cop. For example:
95
+
96
+ ```yaml
97
+ RSpec/SpecFilePathFormat:
98
+ Exclude:
99
+ - spec/my_poorly_named_spec_file.rb
100
+ ```
101
+
102
+ ## Contributing
103
+
104
+ Checkout the [contribution guidelines](.github/CONTRIBUTING.md).
105
+
106
+ ## License
107
+
108
+ `rubocop-rspec` is MIT licensed. [See the accompanying file](MIT-LICENSE.md) for
109
+ the full text.
@@ -0,0 +1,84 @@
1
+ # Changelog
2
+
3
+ ## Master (Unreleased)
4
+
5
+ ## 2.30.0 (2024-06-12)
6
+
7
+ - Fix an runtime error for rubocop-rspec +3.0. ([@bquorning])
8
+
9
+ ## 2.29.1 (2024-06-12)
10
+
11
+ - Bump RuboCop requirement to +1.61. ([@ydah])
12
+
13
+ ## 2.29.0 (2024-06-08)
14
+
15
+ - Support `AutoCorrect: contextual` option for LSP. ([@ydah])
16
+
17
+ ## 2.28.3 (2024-04-11)
18
+
19
+ - Fix an error for Ambiguous cop name `RSpec/Rails/HttpStatus`. ([@ydah])
20
+
21
+ ## 2.28.2 (2024-03-31)
22
+
23
+ - Fix a `NameError` by Cross-Referencing. ([@ydah])
24
+ - Fix an error for `RSpecRails/HttpStatus` when no rack gem is loaded with rubocop-rspec. ([@ydah])
25
+ - Fix an error for unrecognized cop or department `RSpecRails/HttpStatus` when also using rubocop-rails. ([@ydah])
26
+
27
+ ## 2.28.1 (2024-03-29)
28
+
29
+ - Implicit dependency on RuboCop RSpec. Note that if you use rubocop-rspec_rails, you must also explicitly add rubocop-rspec to the Gemfile, because you are changing to an implicit dependency on RuboCop RSpec. ([@ydah])
30
+
31
+ ## 2.28.0 (2024-03-28)
32
+
33
+ - Extracted from `rubocop-rspec` into a separate repository. ([@ydah])
34
+
35
+ ## Previously (see [rubocop-rspec's changelist](https://github.com/rubocop/rubocop-rspec/blob/v2.27.1/CHANGELOG.md) for details)
36
+
37
+ - Add support for `assert_true`, `assert_false`, `assert_not_equal`, `assert_not_nil`, `*_empty`, `*_predicate`, `*_kind_of`, `*_in_delta`, `*_match`, `*_instance_of` and `*_includes` assertions in `RSpec/Rails/MinitestAssertions`. ([@ydah], [@G-Rath])
38
+ - Add configuration option `ResponseMethods` to `RSpec/Rails/HaveHttpStatus`. ([@ydah])
39
+ - Add support single quoted string and percent string and heredoc for `RSpec/Rails/HttpStatus`. ([@ydah])
40
+ - Add support `RSpec/Rails/HttpStatus` when `have_http_status` with string argument. ([@ydah])
41
+ - Mark to `Safe: false` for `RSpec/Rails/NegationBeValid` cop. ([@ydah])
42
+ - Add new `RSpec/Rails/NegationBeValid` cop. ([@ydah])
43
+ - Fix a false negative for `RSpec/ExcessiveDocstringSpacing` when finds description with em space. ([@ydah])
44
+ - Fix a false positive for `RSpec/EmptyExampleGroup` when example group with examples defined in `if` branch inside iterator. ([@ydah])
45
+ - Update the message output of `RSpec/ExpectActual` to include the word 'value'. ([@corydiamand])
46
+ - Fix a false negative for `RSpec/Pending` when `it` without body. ([@ydah])
47
+ - Add new `RSpec/ReceiveMessages` cop. ([@ydah])
48
+ - Change default.yml path to use `**/spec/*` instead of `spec/*`. ([@ydah])
49
+ - Add `AllowedIdentifiers` and `AllowedPatterns` configuration option to `RSpec/IndexedLet`. ([@ydah])
50
+ - Fix `RSpec/NamedSubject` when block has no body. ([@splattael])
51
+ - Fix `RSpec/LetBeforeExamples` autocorrect incompatible with `RSpec/ScatteredLet` autocorrect. ([@ydah])
52
+ - Update `RSpec/Focus` to support `shared_context` and `shared_examples`. ([@tmaier])
53
+ - Fix an error for `RSpec/Rails/HaveHttpStatus` with comparison with strings containing non-numeric characters. ([@ydah])
54
+ - Add support `be_status` style for `RSpec/Rails/HttpStatus`. ([@ydah])
55
+ - Fix order of expected and actual in correction for `RSpec/Rails/MinitestAssertions`. ([@mvz])
56
+ - Add `RSpec/Rails/TravelAround` cop. ([@r7kamura])
57
+ - Add new `RSpec/Rails/MinitestAssertions` cop. ([@ydah])
58
+ - Improved processing speed for `RSpec/Be`, `RSpec/ExpectActual`, `RSpec/ImplicitExpect`, `RSpec/MessageSpies`, `RSpec/PredicateMatcher` and `RSpec/Rails/HaveHttpStatus`. ([@ydah])
59
+ - Fix an error for `RSpec/Rails/InferredSpecType` with redundant type before other Hash metadata. ([@ydah])
60
+ - Add `RSpec/Rails/InferredSpecType` cop. ([@r7kamura])
61
+ - Add new `RSpec/Rails/HaveHttpStatus` cop. ([@akiomik])
62
+ - Exclude unrelated Rails directories from `RSpec/DescribeClass`. ([@MothOnMars])
63
+ - Add `RSpec/Rails/AvoidSetupHook` cop. ([@paydaylight])
64
+ - Change namespace of several cops (`Capybara/*` -> `RSpec/Capybara/*`, `FactoryBot/*` -> `RSpec/FactoryBot/*`, `Rails/*` -> `RSpec/Rails/*`). ([@pirj], [@bquorning])
65
+ - The `Rails/HttpStatus` cop is unavailable if the `rack` gem cannot be loaded. ([@bquorning])
66
+ - Fix `Rails/HttpStatus` not working with custom HTTP status codes. ([@bquorning])
67
+ - Add `RSpec/Rails/HttpStatus` cop to enforce consistent usage of the status format (numeric or symbolic). ([@anthony-robin], [@jojos003])
68
+
69
+ <!-- Contributors (alphabetically) -->
70
+
71
+ [@akiomik]: https://github.com/akiomik
72
+ [@anthony-robin]: https://github.com/anthony-robin
73
+ [@bquorning]: https://github.com/bquorning
74
+ [@corydiamand]: https://github.com/corydiamand
75
+ [@g-rath]: https://github.com/G-Rath
76
+ [@jojos003]: https://github.com/jojos003
77
+ [@mothonmars]: https://github.com/MothOnMars
78
+ [@mvz]: https://github.com/mvz
79
+ [@paydaylight]: https://github.com/paydaylight
80
+ [@pirj]: https://github.com/pirj
81
+ [@r7kamura]: https://github.com/r7kamura
82
+ [@splattael]: https://github.com/splattael
83
+ [@tmaier]: https://github.com/tmaier
84
+ [@ydah]: https://github.com/ydah
@@ -0,0 +1,21 @@
1
+ # The MIT License (MIT)
2
+
3
+ Copyright (c) 2014 Ian MacLeod <ian@nevir.net>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
9
+ of the Software, and to permit persons to whom the Software is furnished to do
10
+ so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,90 @@
1
+ # RuboCop RSpec Rails
2
+
3
+ [![Join the chat at https://gitter.im/rubocop-rspec/Lobby](https://badges.gitter.im/rubocop-rspec/Lobby.svg)](https://gitter.im/rubocop-rspec/Lobby)
4
+ [![Gem Version](https://badge.fury.io/rb/rubocop-rspec_rails.svg)](https://rubygems.org/gems/rubocop-rspec_rails)
5
+ ![CI](https://github.com/rubocop/rubocop-rspec_rails/workflows/CI/badge.svg)
6
+
7
+ [RSpec Rails](https://rspec.info/)-specific analysis for your projects, as an extension to
8
+ [RuboCop](https://github.com/rubocop/rubocop).
9
+
10
+ ## Installation
11
+
12
+ **This gem implicitly depends on the `rubocop-rspec` gem, so you should install it first.**
13
+ Just install the `rubocop-rspec` and `rubocop-rspec_rails` gem
14
+
15
+ ```bash
16
+ gem install rubocop-rspec rubocop-rspec_rails
17
+ ```
18
+
19
+ or if you use bundler put this in your `Gemfile`
20
+
21
+ ```ruby
22
+ gem 'rubocop-rspec', require: false
23
+ gem 'rubocop-rspec_rails', require: false
24
+ ```
25
+
26
+ ## Usage
27
+
28
+ You need to tell RuboCop to load the RSpec Rails extension. There are three
29
+ ways to do this:
30
+
31
+ ### RuboCop configuration file
32
+
33
+ Put this into your `.rubocop.yml`.
34
+
35
+ ```yaml
36
+ require: rubocop-rspec_rails
37
+ ```
38
+
39
+ Alternatively, use the following array notation when specifying multiple extensions.
40
+
41
+ ```yaml
42
+ require:
43
+ - rubocop-rspec
44
+ - rubocop-rspec_rails
45
+ ```
46
+
47
+ Now you can run `rubocop` and it will automatically load the RuboCop RSpec Rails
48
+ cops together with the standard cops.
49
+
50
+ ### Command line
51
+
52
+ ```bash
53
+ rubocop --require rubocop-rspec_rails
54
+ ```
55
+
56
+ ### Rake task
57
+
58
+ ```ruby
59
+ RuboCop::RakeTask.new do |task|
60
+ task.requires << 'rubocop-rspec_rails'
61
+ end
62
+ ```
63
+
64
+ ## Documentation
65
+
66
+ You can read more about RuboCop RSpec Rails in its [official manual](https://docs.rubocop.org/rubocop-rspec_rails).
67
+
68
+ ## The Cops
69
+
70
+ All cops are located under
71
+ [`lib/rubocop/cop/rspec_rails`](lib/rubocop/cop/rspec_rails), and contain
72
+ examples/documentation.
73
+
74
+ In your `.rubocop.yml`, you may treat the RSpec Rails cops just like any other
75
+ cop. For example:
76
+
77
+ ```yaml
78
+ RSpecRails/AvoidSetupHook:
79
+ Exclude:
80
+ - spec/my_poorly_named_spec_file.rb
81
+ ```
82
+
83
+ ## Contributing
84
+
85
+ Checkout the [contribution guidelines](.github/CONTRIBUTING.md).
86
+
87
+ ## License
88
+
89
+ `rubocop-rspec_rails` is MIT licensed. [See the accompanying file](MIT-LICENSE.md) for
90
+ the full text.
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2010-2019 The Kompanee, Ltd
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.
@@ -0,0 +1,131 @@
1
+ Ruby/ProgressBar
2
+ ================================================================================
3
+
4
+ <div align="center">
5
+ <a href="https://rubygems.org/gems/ruby-progressbar" alt="RubyGems Version">
6
+ <img src="https://img.shields.io/gem/v/ruby-progressbar.svg?style=flat-square&label=current-version" alt="RubyGems Version" />
7
+ </a>
8
+
9
+ <a href="https://rubygems.org/gems/ruby-progressbar" alt="RubyGems Rank Overall">
10
+ <img src="https://img.shields.io/gem/rt/ruby-progressbar.svg?style=flat-square&label=total-rank" alt="RubyGems Rank Overall" />
11
+ </a>
12
+
13
+ <a href="https://rubygems.org/gems/ruby-progressbar" alt="RubyGems Rank Daily">
14
+ <img src="https://img.shields.io/gem/rd/ruby-progressbar.svg?style=flat-square&label=daily-rank" alt="RubyGems Rank Daily" />
15
+ </a>
16
+
17
+ <a href="https://rubygems.org/gems/ruby-progressbar" alt="RubyGems Downloads">
18
+ <img src="https://img.shields.io/gem/dt/ruby-progressbar.svg?style=flat-square&label=total-downloads" alt="RubyGems Downloads" />
19
+ </a>
20
+
21
+ <a href="https://github.com/jfelchner/ruby-progressbar/actions?query=workflow%3ABuild" alt="Build Status">
22
+ <img src="https://img.shields.io/github/workflow/status/jfelchner/ruby-progressbar/Build?label=CI&style=flat-square&logo=github" alt="Build Status" />
23
+ </a>
24
+
25
+ <a href="#" alt="Maintainability">
26
+ <img src="https://img.shields.io/codeclimate/maintainability/jfelchner/ruby-progressbar?style=flat-square&label=grade" alt="Maintainability" />
27
+ </a>
28
+ </div>
29
+
30
+ <br>
31
+
32
+ <img src="https://kompanee-public-assets.s3.amazonaws.com/readmes/ruby-progressbar-cage.png" align="right" />
33
+
34
+ The **ultimate** text progress bar library for Ruby! It'll **SMASH YOU OVER THE
35
+ HEAD** with a **PURE RUSH** of progress bar excitement!
36
+
37
+ Don't miss out on what all the kids are talking about! If you want everyone to
38
+ know that your gem or app can survive _in the cage_ then YOU WANT
39
+ **RUBY-PROGRESSBAR**!
40
+
41
+ <br>
42
+
43
+ It's Better Than The Other 186,312 Progress Bar Libraries Because
44
+ --------------------------------------------------------------------------------
45
+
46
+ * It has [stood the test of time][history] (2008-today)
47
+
48
+ * Full test suite
49
+
50
+ * [_**ZERO**_ dependencies][gemspec]
51
+
52
+ * Used by [tons of other open source projects][dependencies] (which means we
53
+ find out about bugs quickly)
54
+
55
+ * It's pretty [freakin' sweet](https://www.youtube.com/watch?v=On3IoVhf_GM)
56
+
57
+ * And most importantly... our awesome [contributors][contributors]
58
+
59
+ Basic Usage
60
+ --------------------------------------------------------------------------------
61
+
62
+ ### Creation
63
+
64
+ It's simple to get started:
65
+
66
+ ```ruby
67
+ progressbar = ProgressBar.create
68
+ ```
69
+
70
+ Creates a basic progress bar beginning at `0`, a maximum capacity of `100` and
71
+ tells it to start.
72
+
73
+ ```text
74
+ Progress: | |
75
+ ```
76
+
77
+ ### Marking Progress
78
+
79
+ Every call to `#increment` will advance the bar by `1`. Therefore:
80
+
81
+ ```ruby
82
+ 50.times { progressbar.increment }
83
+ ```
84
+
85
+ Would output an advancing line which would end up here:
86
+
87
+ ```text
88
+ Progress: |=================================== |
89
+ ```
90
+
91
+ ### Animation
92
+
93
+ ![Basic Usage Marking Progress](http://kompanee-public-assets.s3.amazonaws.com/readmes/ruby-progressbar-basic-usage-marking-progress-2.gif)
94
+
95
+ Full Reference
96
+ --------------------------------------------------------------------------------
97
+
98
+ There's gotten to be too much awesome to pack into one page. Visit the
99
+ [wiki][wiki] for the full documentation.
100
+
101
+ Issues
102
+ --------------------------------------------------------------------------------
103
+
104
+ If you have problems, please create a [Github issue][issues].
105
+
106
+ Credits
107
+ --------------------------------------------------------------------------------
108
+
109
+ ![The Kompanee][kompanee-logo]
110
+
111
+ ruby-progressbar is maintained by [The Kompanee, Ltd.][kompanee-site]
112
+
113
+ The names and logos for The Kompanee are trademarks of The Kompanee, Ltd.
114
+
115
+ License
116
+ --------------------------------------------------------------------------------
117
+
118
+ ruby-progressbar 1.0 is Copyright &copy; 2011-2021 The Kompanee. It is free
119
+ software, and may be redistributed under the terms specified in the LICENSE
120
+ file.
121
+ ruby-progressbar 0.9.0 is Copyright &copy; 2008 [Satoru Takabayashi][satoru]
122
+
123
+ [contributors]: https://github.com/jfelchner/ruby-progressbar/graphs/contributors
124
+ [dependencies]: https://github.com/jfelchner/ruby-progressbar/network/dependents
125
+ [gemspec]: https://github.com/jfelchner/ruby-progressbar/blob/master/ruby-progressbar.gemspec
126
+ [history]: https://github.com/jfelchner/ruby-progressbar/wiki/History
127
+ [issues]: https://github.com/jfelchner/ruby-progressbar/issues
128
+ [kompanee-logo]: https://kompanee-public-assets.s3.amazonaws.com/readmes/kompanee-horizontal-black.png
129
+ [kompanee-site]: http://www.thekompanee.com
130
+ [satoru]: http://0xcc.net
131
+ [wiki]: https://github.com/jfelchner/ruby-progressbar/wiki
@@ -0,0 +1,200 @@
1
+ # CHANGELOG
2
+
3
+ ## 2.6.0
4
+
5
+ - Unicode 16
6
+
7
+ ## 2.5.0
8
+
9
+ - Unicode 15.1
10
+
11
+ ## 2.4.2
12
+
13
+ More performance improvements:
14
+
15
+ - Optimize lookup of first 4096 codepoints
16
+ - Avoid overwrite lookup if no overwrites are set
17
+
18
+ ## 2.4.1
19
+
20
+ - Improve general performance!
21
+ - Further improve performance for ASCII strings
22
+
23
+ *You should really upgrade - it's much faster now!*
24
+
25
+ ## 2.4.0
26
+ - Improve performance for ASCII-only strings, by @fatkodima
27
+ - Require Ruby 2.4
28
+
29
+ ## 2.3.0
30
+
31
+ - Unicode 15.0
32
+
33
+ ## 2.2.0
34
+
35
+ - Add *Hangul Jamo Extended-B* block to zero-width chars, thanks @ninjalj #22
36
+
37
+ ## 2.1.0
38
+
39
+ - Unicode 14.0
40
+
41
+ ## 2.0.0
42
+
43
+ - Release 2.0.0
44
+ - Supports Ruby 3.0
45
+
46
+ ## 2.0.0.pre2
47
+
48
+ - Update 2.0 branch to Unicode 13
49
+
50
+ ## 2.0.0.pre1
51
+
52
+ Will be published as non-pre version on rubygems.org when Ruby 3.0 is released (December 2020)
53
+
54
+ - Introduce new class-based API, which remembers your string-width configuration. See README for details.
55
+ - Remove auto-loading of string extension
56
+ - You can: `require "unicode/display_width/string_ext"` to continue to use the string extension
57
+ - The manual opt-out `require "unicode/display_width/no_string_ext"` is not needed anymore and will
58
+ issue a warning in the future
59
+ - Remove (already deprecated) String#display_size and String#display_width aliases
60
+
61
+ Refactorings / Internal Changes:
62
+
63
+ - Freeze string literals
64
+ - The Unicode::DisplayWidth now is class, instead of a module, this enables the new config-object API
65
+
66
+ ## 1.8.0
67
+
68
+ - Unicode 14.0 (last release of 1.x)
69
+
70
+ ## 1.7.0
71
+
72
+ - Unicode 13
73
+
74
+ ## 1.6.1
75
+
76
+ - Fix that ambiguous and overwrite options where ignored for emoji-measuring
77
+
78
+ ## 1.6.0
79
+
80
+ - Unicode 12.1
81
+
82
+ ## 1.5.0
83
+
84
+ - Unicode 12
85
+
86
+ ## 1.4.1
87
+
88
+ - Only bundle required lib/* and data/* files in actual rubygem, patch by @tas50
89
+
90
+ ## 1.4.0
91
+
92
+ - Unicode 11
93
+
94
+ ## 1.3.3
95
+
96
+ - Replace Gem::Util.gunzip with direct zlib implementation
97
+ This removes the dependency on rubygems, fixes #17
98
+
99
+ ## 1.3.2
100
+
101
+ - Explicitly load rubygems/util, fixes regression in 1.3.1 (autoload issue)
102
+
103
+ ## 1.3.1
104
+
105
+ - Use `Gem::Util` for `gunzip`, removes deprecation warning, patch by @Schwad
106
+
107
+ ## 1.3.0
108
+
109
+ - Unicode 10
110
+
111
+ ## 1.2.1
112
+
113
+ - Fix bug that `emoji: true` would fail for emoji without modifier
114
+
115
+ ## 1.2.0
116
+
117
+ - Add zero-width codepoint ranges: U+2060..U+206F, U+FFF0..U+FFF8, U+E0000..U+E0FFF
118
+ - Add full-witdh codepoint ranges: U+3400..U+4DBF, U+4E00..U+9FFF, U+F900..U+FAFF, U+20000..U+2FFFD, U+30000..U+3FFFD
119
+ - Experimental emoji support using the [unicode-emoji](https://github.com/janlelis/unicode-emoji) gem
120
+ - Fix minor bug in index compression scheme
121
+
122
+ ## 1.1.3
123
+
124
+ - Fix that non-UTF-8 encodings do not throw errors, patch by @windwiny
125
+
126
+ ## 1.1.2
127
+
128
+ - Reduce memory consumption and increase performance, patch by @rrosenblum
129
+
130
+ ## 1.1.1
131
+
132
+ - Always load index into memory, fixes #9
133
+
134
+ ## 1.1.0
135
+
136
+ - Support Unicode 9.0
137
+
138
+ ## 1.0.5
139
+
140
+ - Actually include new index from 1.0.4
141
+
142
+ ## 1.0.4
143
+
144
+ - New index format (much smaller) and internal API changes
145
+ - Move index generation to a builder plugin for the unicoder gem
146
+ - No public API changes
147
+
148
+ ## 1.0.3
149
+
150
+ - Avoid circular dependency warning
151
+
152
+ ## 1.0.2
153
+
154
+ - Fix error that gemspec might be invalid under some circumstances (see gh#6)
155
+
156
+ ## 1.0.1
157
+
158
+ - Inofficially allow Ruby 1.9
159
+
160
+ ## 1.0.0
161
+
162
+ - Faster than 0.3.1
163
+ - Advanced determination of character width
164
+ - This includes: Treat width of most chars of general categories (Mn, Me, Cf) as 0
165
+ - This includes: Introduce list of characters with special widths
166
+ - Allow custom overrides for specific codepoints
167
+ - Set required Ruby version to 2.0
168
+ - Add NO_STRING_EXT mode to disable monkey patching
169
+ - Internal API & index format changed drastically
170
+ - Remove require 'unicode/display_size' (use 'unicode/display_width' instead)
171
+
172
+ ## 0.3.1
173
+
174
+ - Faster than 0.3.0
175
+ - Deprecate usage of aliases: String#display_size and String#display_length
176
+ - Eliminate Ruby warnings (@amatsuda)
177
+
178
+ ## 0.3.0
179
+
180
+ - Update EastAsianWidth from 7.0 to 8.0
181
+ - Add rake task to update EastAsianWidth.txt
182
+ - Move code to generate index from library to Rakefile
183
+ - Update project's meta files
184
+ - Deprecate requiring 'unicode-display_size'
185
+
186
+ ## 0.2.0
187
+
188
+ - Update EastAsianWidth from 6.0 to 7.0
189
+ - Don't build index table automatically when not available
190
+ - Don't include EastAsianWidth.txt in gem (only index)
191
+
192
+
193
+ ## 0.1.0
194
+
195
+ - Fix github issue #1
196
+
197
+
198
+ ## 0.1.0
199
+
200
+ - Initial release