radius-spec 0.4.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +28 -0
- data/.github/workflows/reviewdog.yml +21 -0
- data/.rubocop.yml +9 -5
- data/.yardopts +1 -0
- data/CHANGELOG.md +111 -1
- data/Gemfile +3 -4
- data/README.md +335 -37
- data/benchmarks/bm_setup.rb +1 -0
- data/benchmarks/call_vs_yield.rb +33 -2
- data/benchmarks/casecmp_vs_downcase.rb +488 -0
- data/benchmarks/cover_vs_include.rb +2 -2
- data/benchmarks/format_string.rb +3 -3
- data/benchmarks/hash_each.rb +305 -0
- data/benchmarks/hash_merge.rb +1 -1
- data/benchmarks/hash_transform.rb +455 -0
- data/benchmarks/unfreeze_string.rb +0 -2
- data/bin/ci +1 -1
- data/common_rubocop.yml +168 -41
- data/common_rubocop_rails.yml +107 -21
- data/lib/radius/spec/model_factory.rb +35 -24
- data/lib/radius/spec/rails.rb +1 -1
- data/lib/radius/spec/rspec/negated_matchers.rb +19 -0
- data/lib/radius/spec/rspec.rb +20 -0
- data/lib/radius/spec/tempfile.rb +162 -0
- data/lib/radius/spec/vcr.rb +98 -0
- data/lib/radius/spec/version.rb +1 -1
- data/radius-spec.gemspec +8 -7
- metadata +44 -20
- data/.travis.yml +0 -17
- data/bin/ci-code-review +0 -28
- data/bin/travis +0 -29
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radius-spec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Radius Networks
|
8
8
|
- Aaron Kromer
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-08-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -31,42 +31,62 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 0.
|
34
|
+
version: 0.82.0
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 0.
|
41
|
+
version: 0.82.0
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
|
-
name:
|
43
|
+
name: rubocop-rails
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version:
|
49
|
-
type: :
|
48
|
+
version: 2.5.2
|
49
|
+
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
55
|
+
version: 2.5.2
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: bundler
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 2.2.10
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 2.2.10
|
56
70
|
- !ruby/object:Gem::Dependency
|
57
71
|
name: rake
|
58
72
|
requirement: !ruby/object:Gem::Requirement
|
59
73
|
requirements:
|
60
|
-
- - "
|
74
|
+
- - ">="
|
61
75
|
- !ruby/object:Gem::Version
|
62
76
|
version: '12.0'
|
77
|
+
- - "<"
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '14.0'
|
63
80
|
type: :development
|
64
81
|
prerelease: false
|
65
82
|
version_requirements: !ruby/object:Gem::Requirement
|
66
83
|
requirements:
|
67
|
-
- - "
|
84
|
+
- - ">="
|
68
85
|
- !ruby/object:Gem::Version
|
69
86
|
version: '12.0'
|
87
|
+
- - "<"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '14.0'
|
70
90
|
description: Standard RSpec setup and a collection of plug-ins to help improve specs.
|
71
91
|
email:
|
72
92
|
- support@radiusnetworks.com
|
@@ -74,10 +94,11 @@ executables: []
|
|
74
94
|
extensions: []
|
75
95
|
extra_rdoc_files: []
|
76
96
|
files:
|
97
|
+
- ".github/workflows/ci.yml"
|
98
|
+
- ".github/workflows/reviewdog.yml"
|
77
99
|
- ".gitignore"
|
78
100
|
- ".rspec"
|
79
101
|
- ".rubocop.yml"
|
80
|
-
- ".travis.yml"
|
81
102
|
- ".yardopts"
|
82
103
|
- CHANGELOG.md
|
83
104
|
- CODE_OF_CONDUCT.md
|
@@ -88,6 +109,7 @@ files:
|
|
88
109
|
- benchmarks/bm_setup.rb
|
89
110
|
- benchmarks/call_vs_yield.rb
|
90
111
|
- benchmarks/case_equality_vs_class_check.rb
|
112
|
+
- benchmarks/casecmp_vs_downcase.rb
|
91
113
|
- benchmarks/cover_vs_include.rb
|
92
114
|
- benchmarks/delete_vs_tr.rb
|
93
115
|
- benchmarks/double_negation.rb
|
@@ -95,21 +117,21 @@ files:
|
|
95
117
|
- benchmarks/format_string.rb
|
96
118
|
- benchmarks/format_string_token.rb
|
97
119
|
- benchmarks/gsub_vs_tr.rb
|
120
|
+
- benchmarks/hash_each.rb
|
98
121
|
- benchmarks/hash_merge.rb
|
122
|
+
- benchmarks/hash_transform.rb
|
99
123
|
- benchmarks/kwargs.rb
|
100
124
|
- benchmarks/max_ternary.rb
|
101
125
|
- benchmarks/max_ternary_micro.rb
|
102
126
|
- benchmarks/unfreeze_string.rb
|
103
127
|
- benchmarks/unpack_first.rb
|
104
128
|
- bin/ci
|
105
|
-
- bin/ci-code-review
|
106
129
|
- bin/console
|
107
130
|
- bin/pry
|
108
131
|
- bin/rake
|
109
132
|
- bin/rspec
|
110
133
|
- bin/rubocop
|
111
134
|
- bin/setup
|
112
|
-
- bin/travis
|
113
135
|
- bin/yard
|
114
136
|
- common_rubocop.yml
|
115
137
|
- common_rubocop_rails.yml
|
@@ -117,6 +139,9 @@ files:
|
|
117
139
|
- lib/radius/spec/model_factory.rb
|
118
140
|
- lib/radius/spec/rails.rb
|
119
141
|
- lib/radius/spec/rspec.rb
|
142
|
+
- lib/radius/spec/rspec/negated_matchers.rb
|
143
|
+
- lib/radius/spec/tempfile.rb
|
144
|
+
- lib/radius/spec/vcr.rb
|
120
145
|
- lib/radius/spec/version.rb
|
121
146
|
- radius-spec.gemspec
|
122
147
|
homepage: https://github.com/RadiusNetworks/radius-spec
|
@@ -124,9 +149,9 @@ licenses:
|
|
124
149
|
- Apache-2.0
|
125
150
|
metadata:
|
126
151
|
bug_tracker_uri: https://github.com/RadiusNetworks/radius-spec/issues
|
127
|
-
changelog_uri: https://github.com/RadiusNetworks/radius-spec/blob/v0.
|
128
|
-
source_code_uri: https://github.com/RadiusNetworks/radius-spec/tree/v0.
|
129
|
-
post_install_message:
|
152
|
+
changelog_uri: https://github.com/RadiusNetworks/radius-spec/blob/v0.8.0/CHANGELOG.md
|
153
|
+
source_code_uri: https://github.com/RadiusNetworks/radius-spec/tree/v0.8.0
|
154
|
+
post_install_message:
|
130
155
|
rdoc_options: []
|
131
156
|
require_paths:
|
132
157
|
- lib
|
@@ -141,9 +166,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
166
|
- !ruby/object:Gem::Version
|
142
167
|
version: '0'
|
143
168
|
requirements: []
|
144
|
-
|
145
|
-
|
146
|
-
signing_key:
|
169
|
+
rubygems_version: 3.1.6
|
170
|
+
signing_key:
|
147
171
|
specification_version: 4
|
148
172
|
summary: Radius Networks RSpec setup and plug-ins
|
149
173
|
test_files: []
|
data/.travis.yml
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
language: ruby
|
3
|
-
cache: bundler
|
4
|
-
before_install:
|
5
|
-
- gem update --system
|
6
|
-
- gem install bundler
|
7
|
-
bundler_args: --jobs=3 --retry=3 --without documentation debug
|
8
|
-
before_script:
|
9
|
-
- "bin/ci-code-review"
|
10
|
-
script: bin/ci
|
11
|
-
rvm:
|
12
|
-
- 2.5
|
13
|
-
- ruby-head
|
14
|
-
matrix:
|
15
|
-
allow_failures:
|
16
|
-
- rvm: ruby-head
|
17
|
-
fast_finish: true
|
data/bin/ci-code-review
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
|
3
|
-
# See:
|
4
|
-
# - https://docs.travis-ci.com/user/environment-variables/#Convenience-Variables
|
5
|
-
# - https://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables
|
6
|
-
# - https://docs.travis-ci.com/user/pull-requests/#Pull-Requests-and-Security-Restrictions
|
7
|
-
if [[ "$TRAVIS_PULL_REQUEST" = "false" ]] || [[ "$TRAVIS_BRANCH" = "production" ]]; then
|
8
|
-
exit
|
9
|
-
fi
|
10
|
-
|
11
|
-
set -e
|
12
|
-
cd "$(dirname "$0")/.."
|
13
|
-
|
14
|
-
REVIEWDOG_VERSION="0.9.9"
|
15
|
-
|
16
|
-
if ! [ "$(./bin/reviewdog -version)" = "$REVIEWDOG_VERSION" ]; then
|
17
|
-
echo "Installing reviewdog version ${REVIEWDOG_VERSION}..."
|
18
|
-
curl -fsSL https://github.com/haya14busa/reviewdog/releases/download/$REVIEWDOG_VERSION/reviewdog_linux_amd64 \
|
19
|
-
-o ./bin/reviewdog
|
20
|
-
chmod +x ./bin/reviewdog
|
21
|
-
fi
|
22
|
-
|
23
|
-
echo Rubocop Version: $(./bin/rubocop --version)
|
24
|
-
echo Review Dog Version: $(./bin/reviewdog -version)
|
25
|
-
|
26
|
-
# Add `-diff="git diff master"` to reviewdog args when running locally
|
27
|
-
./bin/rubocop --config .rubocop.yml --extra-details --display-style-guide --rails | \
|
28
|
-
./bin/reviewdog -f=rubocop -reporter=github-pr-check
|
data/bin/travis
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
#
|
5
|
-
# This file was generated by Bundler.
|
6
|
-
#
|
7
|
-
# The application 'travis' is installed as part of a gem, and
|
8
|
-
# this file is here to facilitate running it.
|
9
|
-
#
|
10
|
-
|
11
|
-
require "pathname"
|
12
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
13
|
-
Pathname.new(__FILE__).realpath)
|
14
|
-
|
15
|
-
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
16
|
-
|
17
|
-
if File.file?(bundle_binstub)
|
18
|
-
if File.read(bundle_binstub, 150) =~ /This file was generated by Bundler/
|
19
|
-
load(bundle_binstub)
|
20
|
-
else
|
21
|
-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
22
|
-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
require "rubygems"
|
27
|
-
require "bundler/setup"
|
28
|
-
|
29
|
-
load Gem.bin_path("travis", "travis")
|