rspec-file_fixtures 0.1.5 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.ruby-version +1 -1
- data/Gemfile +8 -7
- data/Gemfile.lock +74 -49
- data/LICENSE.txt +1 -1
- data/Makefile +9 -0
- data/README.md +3 -54
- data/lib/rspec_file_fixtures/fixture.rb +12 -0
- data/lib/rspec_file_fixtures/version.rb +1 -1
- data/rspec-documentation/pages/000-Introduction.md +33 -0
- data/rspec-documentation/pages/010-Usage/010-JSON.md +21 -0
- data/rspec-documentation/pages/010-Usage/020-YAML.md +21 -0
- data/rspec-documentation/pages/010-Usage/030-XML.md +11 -0
- data/rspec-documentation/pages/010-Usage/040-Pathname.md +21 -0
- data/rspec-documentation/pages/010-Usage.md +21 -0
- data/rspec-documentation/pages/500-License.md +25 -0
- data/rspec-documentation/spec_helper.rb +3 -0
- data/rspec-file_fixtures.gemspec +4 -2
- metadata +15 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5194a0d2db316e9e13a780c7e33a1af9a6ea1869c0ab254ee3e462fceb446ecc
|
4
|
+
data.tar.gz: 734ed79bf2a160cd694cf3a5a8be8eef3278a08ae7c2aae2a00c6d12b263b4ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ef7bdc977c831a897242bc1e215865cd7b3c7246cf612e020f51fe1a90242f2e4ce6447eac47c0f0cb654558e44f9b86966166bd3495bf636225c6e441c5e72
|
7
|
+
data.tar.gz: d34793287afaf62c2a5e35c5337031b969ec034917f4a29761eac902325f594f81535d2380e01357c08e6aa2072c0603198a107f1b263783a474ce5c6655a7ed
|
data/.gitignore
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.7.8
|
data/Gemfile
CHANGED
@@ -5,12 +5,13 @@ source 'https://rubygems.org'
|
|
5
5
|
# Specify your gem's dependencies in rspec-file_fixtures.gemspec
|
6
6
|
gemspec
|
7
7
|
|
8
|
-
gem 'devpack', '~> 0.4.
|
9
|
-
gem 'nokogiri', '~> 1.
|
10
|
-
gem 'rake', '~>
|
11
|
-
gem 'rspec', '~> 3.
|
8
|
+
gem 'devpack', '~> 0.4.1'
|
9
|
+
gem 'nokogiri', '~> 1.15'
|
10
|
+
gem 'rake', '~> 13.0'
|
11
|
+
gem 'rspec', '~> 3.12'
|
12
|
+
gem 'rspec-documentation', '~> 0.0.5'
|
12
13
|
gem 'rspec-its', '~> 1.3'
|
13
|
-
gem 'rubocop', '~> 1.
|
14
|
-
gem 'rubocop-rake', '~> 0.
|
15
|
-
gem 'rubocop-rspec', '~> 2.
|
14
|
+
gem 'rubocop', '~> 1.52'
|
15
|
+
gem 'rubocop-rake', '~> 0.6.0'
|
16
|
+
gem 'rubocop-rspec', '~> 2.22'
|
16
17
|
gem 'strong_versions', '~> 0.4.5'
|
data/Gemfile.lock
CHANGED
@@ -1,83 +1,108 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rspec-file_fixtures (0.1.
|
5
|
-
rspec (~> 3.
|
4
|
+
rspec-file_fixtures (0.1.6)
|
5
|
+
rspec (~> 3.12)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
10
|
ast (2.4.2)
|
11
|
-
concurrent-ruby (1.
|
12
|
-
devpack (0.4.
|
13
|
-
diff-lcs (1.
|
14
|
-
|
11
|
+
concurrent-ruby (1.2.2)
|
12
|
+
devpack (0.4.1)
|
13
|
+
diff-lcs (1.5.0)
|
14
|
+
htmlbeautifier (1.4.2)
|
15
|
+
i18n (1.14.1)
|
15
16
|
concurrent-ruby (~> 1.0)
|
16
|
-
|
17
|
-
|
18
|
-
|
17
|
+
json (2.6.3)
|
18
|
+
kramdown (2.4.0)
|
19
|
+
rexml
|
20
|
+
kramdown-parser-gfm (1.1.0)
|
21
|
+
kramdown (~> 2.0)
|
22
|
+
mini_portile2 (2.8.2)
|
23
|
+
nokogiri (1.15.2)
|
24
|
+
mini_portile2 (~> 2.8.2)
|
19
25
|
racc (~> 1.4)
|
20
|
-
paint (2.
|
21
|
-
|
22
|
-
|
26
|
+
paint (2.3.0)
|
27
|
+
paintbrush (0.1.3)
|
28
|
+
parallel (1.23.0)
|
29
|
+
parser (3.2.2.1)
|
23
30
|
ast (~> 2.4.1)
|
24
|
-
racc (1.
|
25
|
-
rainbow (3.
|
26
|
-
rake (
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
rspec-
|
33
|
-
|
34
|
-
rspec-
|
35
|
-
rspec-
|
31
|
+
racc (1.6.2)
|
32
|
+
rainbow (3.1.1)
|
33
|
+
rake (13.0.6)
|
34
|
+
redcarpet (3.6.0)
|
35
|
+
regexp_parser (2.8.0)
|
36
|
+
rexml (3.2.5)
|
37
|
+
rouge (4.1.2)
|
38
|
+
rspec (3.12.0)
|
39
|
+
rspec-core (~> 3.12.0)
|
40
|
+
rspec-expectations (~> 3.12.0)
|
41
|
+
rspec-mocks (~> 3.12.0)
|
42
|
+
rspec-core (3.12.2)
|
43
|
+
rspec-support (~> 3.12.0)
|
44
|
+
rspec-documentation (0.0.5)
|
45
|
+
htmlbeautifier (~> 1.4)
|
46
|
+
kramdown (~> 2.4)
|
47
|
+
kramdown-parser-gfm (~> 1.1)
|
48
|
+
nokogiri (~> 1.15)
|
49
|
+
paintbrush (~> 0.1.3)
|
50
|
+
redcarpet (~> 3.6)
|
51
|
+
rouge (~> 4.1)
|
52
|
+
rspec (~> 3.12)
|
53
|
+
rspec-expectations (3.12.3)
|
36
54
|
diff-lcs (>= 1.2.0, < 2.0)
|
37
|
-
rspec-support (~> 3.
|
55
|
+
rspec-support (~> 3.12.0)
|
38
56
|
rspec-its (1.3.0)
|
39
57
|
rspec-core (>= 3.0.0)
|
40
58
|
rspec-expectations (>= 3.0.0)
|
41
|
-
rspec-mocks (3.
|
59
|
+
rspec-mocks (3.12.5)
|
42
60
|
diff-lcs (>= 1.2.0, < 2.0)
|
43
|
-
rspec-support (~> 3.
|
44
|
-
rspec-support (3.
|
45
|
-
rubocop (1.
|
61
|
+
rspec-support (~> 3.12.0)
|
62
|
+
rspec-support (3.12.0)
|
63
|
+
rubocop (1.52.0)
|
64
|
+
json (~> 2.3)
|
46
65
|
parallel (~> 1.10)
|
47
|
-
parser (>= 3.
|
66
|
+
parser (>= 3.2.0.0)
|
48
67
|
rainbow (>= 2.2.2, < 4.0)
|
49
68
|
regexp_parser (>= 1.8, < 3.0)
|
50
|
-
rexml
|
51
|
-
rubocop-ast (>= 1.
|
69
|
+
rexml (>= 3.2.5, < 4.0)
|
70
|
+
rubocop-ast (>= 1.28.0, < 2.0)
|
52
71
|
ruby-progressbar (~> 1.7)
|
53
|
-
unicode-display_width (>=
|
54
|
-
rubocop-ast (1.
|
55
|
-
parser (>= 2.
|
56
|
-
rubocop-
|
57
|
-
rubocop
|
58
|
-
rubocop-
|
72
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
73
|
+
rubocop-ast (1.29.0)
|
74
|
+
parser (>= 3.2.1.0)
|
75
|
+
rubocop-capybara (2.18.0)
|
76
|
+
rubocop (~> 1.41)
|
77
|
+
rubocop-factory_bot (2.23.1)
|
78
|
+
rubocop (~> 1.33)
|
79
|
+
rubocop-rake (0.6.0)
|
59
80
|
rubocop (~> 1.0)
|
60
|
-
|
61
|
-
|
81
|
+
rubocop-rspec (2.22.0)
|
82
|
+
rubocop (~> 1.33)
|
83
|
+
rubocop-capybara (~> 2.17)
|
84
|
+
rubocop-factory_bot (~> 2.22)
|
85
|
+
ruby-progressbar (1.13.0)
|
62
86
|
strong_versions (0.4.5)
|
63
87
|
i18n (>= 0.5)
|
64
88
|
paint (~> 2.0)
|
65
|
-
unicode-display_width (2.
|
89
|
+
unicode-display_width (2.4.2)
|
66
90
|
|
67
91
|
PLATFORMS
|
68
92
|
ruby
|
69
93
|
|
70
94
|
DEPENDENCIES
|
71
|
-
devpack (~> 0.4.
|
72
|
-
nokogiri (~> 1.
|
73
|
-
rake (~>
|
74
|
-
rspec (~> 3.
|
95
|
+
devpack (~> 0.4.1)
|
96
|
+
nokogiri (~> 1.15)
|
97
|
+
rake (~> 13.0)
|
98
|
+
rspec (~> 3.12)
|
99
|
+
rspec-documentation (~> 0.0.5)
|
75
100
|
rspec-file_fixtures!
|
76
101
|
rspec-its (~> 1.3)
|
77
|
-
rubocop (~> 1.
|
78
|
-
rubocop-rake (~> 0.
|
79
|
-
rubocop-rspec (~> 2.
|
102
|
+
rubocop (~> 1.52)
|
103
|
+
rubocop-rake (~> 0.6.0)
|
104
|
+
rubocop-rspec (~> 2.22)
|
80
105
|
strong_versions (~> 0.4.5)
|
81
106
|
|
82
107
|
BUNDLED WITH
|
83
|
-
2.
|
108
|
+
2.4.13
|
data/LICENSE.txt
CHANGED
data/Makefile
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
project=rspec-file_fixtures
|
2
|
+
|
1
3
|
.PHONY: all
|
2
4
|
all: test
|
3
5
|
|
@@ -6,3 +8,10 @@ test:
|
|
6
8
|
bundle exec rspec
|
7
9
|
bundle exec rubocop
|
8
10
|
bundle exec strong_versions
|
11
|
+
bundle exec rspec-documentation
|
12
|
+
|
13
|
+
.PHONY: publish
|
14
|
+
publish:
|
15
|
+
@RSPEC_DOCUMENTATION_URL_ROOT='/$(project)' bundle exec rspec-documentation
|
16
|
+
@rsync --delete -r rspec-documentation/bundle/ docs01.bob.frl:/mnt/docs/$(project)/
|
17
|
+
@echo 'Published.'
|
data/README.md
CHANGED
@@ -2,64 +2,13 @@
|
|
2
2
|
|
3
3
|
A simple and convenient file fixture loader for [_RSpec_](https://rspec.info/).
|
4
4
|
|
5
|
-
## Installation
|
6
|
-
|
7
|
-
Add this line to your application's Gemfile:
|
8
|
-
|
9
|
-
```ruby
|
10
|
-
gem 'rspec-file_fixtures', '~> 0.1.5'
|
11
|
-
```
|
12
|
-
|
13
|
-
And then execute:
|
14
|
-
|
15
|
-
$ bundle install
|
16
|
-
|
17
|
-
Or install it yourself as:
|
18
|
-
|
19
|
-
$ gem install rspec-file_fixtures
|
20
|
-
|
21
|
-
## Usage
|
22
|
-
|
23
|
-
Load the gem in your test environment (e.g. in `spec/spec_helper.rb`):
|
24
|
-
|
25
|
-
```ruby
|
26
|
-
require 'rspec/file_fixtures'
|
27
|
-
```
|
28
|
-
|
29
|
-
Use the `fixture` helper method to load a fixture from `spec/fixtures`:
|
30
|
-
|
31
|
-
```ruby
|
32
|
-
let(:my_fixture) { fixture('fixture.json') }
|
33
|
-
```
|
34
|
-
|
35
|
-
Use the returned `Fixture` object's various methods in your tests:
|
36
|
-
|
37
5
|
```ruby
|
38
|
-
|
39
|
-
expect(subject.load(my_fixture.read)).to eql my_fixture.from_json
|
40
|
-
end
|
6
|
+
let(:my_fixture) { fixture('my_fixture.json').read }
|
41
7
|
```
|
42
8
|
|
43
|
-
|
44
|
-
|
45
|
-
|Method|Definition|
|
46
|
-
|-|-|
|
47
|
-
|`#read`|Read the contents of the fixture file as a string|
|
48
|
-
|`#path`|The absolute path to the fixture file|
|
49
|
-
|`#from_json`|The parsed _JSON_ content from the file|
|
50
|
-
|`#from_yaml`|The parsed _YAML_ content from the file (aliased as `#from_yml`)|
|
51
|
-
|`#from_xml`|The parsed _XML_ content from the file (requires the [_Nokogiri_](https://nokogiri.org/) gem and returns a `Nokogiri::XML::Document`)|
|
52
|
-
|
53
|
-
### Symbolize Names
|
9
|
+
## Documentation
|
54
10
|
|
55
|
-
|
56
|
-
|
57
|
-
```ruby
|
58
|
-
expect(subject.load(my_fixture.from_yaml(symbolize_names: false))).to eql({ 'foo' => 'bar' })
|
59
|
-
expect(subject.load(my_fixture.from_json(symbolize_names: false))).to eql({ 'foo' => 'bar' })
|
60
|
-
expect(subject.load(my_fixture.from_yaml(false))).to eql({ 'foo' => 'bar' })
|
61
|
-
expect(subject.load(my_fixture.from_json(false))).to eql({ 'foo' => 'bar' })
|
62
|
-
```
|
11
|
+
Visit the [Documentation](https://docs.bob.frl/rspec-file_fixtures) for full setup and usage instructions.
|
63
12
|
|
64
13
|
## License
|
65
14
|
|
@@ -43,6 +43,18 @@ module RSpecFileFixtures
|
|
43
43
|
|
44
44
|
private
|
45
45
|
|
46
|
+
def method_missing(method_name, *args)
|
47
|
+
return pathname.public_send(method_name, *args) if respond_to_missing?(method_name)
|
48
|
+
|
49
|
+
super
|
50
|
+
end
|
51
|
+
|
52
|
+
def respond_to_missing?(method_name, _ = false)
|
53
|
+
return true if pathname.respond_to?(method_name)
|
54
|
+
|
55
|
+
super
|
56
|
+
end
|
57
|
+
|
46
58
|
def pathname
|
47
59
|
@pathname ||= base_path.join(@raw_path)
|
48
60
|
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Introduction
|
2
|
+
|
3
|
+
_RSpec::FileFixtures_ provides convenient and consistent access to fixture data in _RSpec_.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add the following to your `Gemfile` in your `:test` group:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'rspec-file_fixtures', '~> 0.1.6'
|
11
|
+
```
|
12
|
+
|
13
|
+
## Setup
|
14
|
+
|
15
|
+
Enable the _RSpec_ extension is your spec helper:
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
# spec/spec_helper.rb
|
19
|
+
|
20
|
+
require 'rspec/file_fixtures'
|
21
|
+
```
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
Use the provided `fixture` helper anywhere in your tests to load content from `spec/fixtures/`:
|
26
|
+
|
27
|
+
```rspec:json
|
28
|
+
subject { fixture('example.json').read }
|
29
|
+
|
30
|
+
it { is_expected.to include '{"key":"value"}' }
|
31
|
+
```
|
32
|
+
|
33
|
+
See the [Usage](usage.html) section for available extensions.
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# JSON
|
2
|
+
|
3
|
+
_JSON_ fixtures can be parsed into a _Ruby_ object using the `#from_json` method.
|
4
|
+
|
5
|
+
This is equivalent to `JSON.parse(..., symbolize_names: true)`.
|
6
|
+
|
7
|
+
```rspec
|
8
|
+
subject { fixture('example.json').from_json }
|
9
|
+
|
10
|
+
it { is_expected.to eql({ key: 'value' }) }
|
11
|
+
```
|
12
|
+
|
13
|
+
## Symbolized Names
|
14
|
+
|
15
|
+
Keys are symbolized by default. If you prefer to work with strings, pass `symbolize_names: false`:
|
16
|
+
|
17
|
+
```rspec
|
18
|
+
subject { fixture('example.json').from_json(symbolize_names: false) }
|
19
|
+
|
20
|
+
it { is_expected.to eql({ 'key' => 'value' }) }
|
21
|
+
```
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# YAML
|
2
|
+
|
3
|
+
_YAML_ fixtures can be parsed into a _Ruby_ object using the `#from_yaml` method.
|
4
|
+
|
5
|
+
This is equivalent to `YAML.safe_load(..., symbolize_names: true)`.
|
6
|
+
|
7
|
+
```rspec
|
8
|
+
subject { fixture('example.yaml').from_yaml }
|
9
|
+
|
10
|
+
it { is_expected.to eql({ key: 'value' }) }
|
11
|
+
```
|
12
|
+
|
13
|
+
## Symbolized Names
|
14
|
+
|
15
|
+
Keys are symbolized by default. If you prefer to work with strings, pass `symbolize_names: false`:
|
16
|
+
|
17
|
+
```rspec
|
18
|
+
subject { fixture('example.yaml').from_yaml(symbolize_names: false) }
|
19
|
+
|
20
|
+
it { is_expected.to eql({ 'key' => 'value' }) }
|
21
|
+
```
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# XML
|
2
|
+
|
3
|
+
_XML_ fixtures can be parsed into a _Ruby_ [Nokogiri::XML::Document](https://nokogiri.org/rdoc/Nokogiri/XML/Document) object using the `#from_yaml` method.
|
4
|
+
|
5
|
+
_Nokogiri_ is not a hard dependency of _Rspec::FileFixtures_ so you must install and require _Nokogiri_ yourself to use this feature.
|
6
|
+
|
7
|
+
```rspec
|
8
|
+
subject { fixture('example.xml').from_xml }
|
9
|
+
|
10
|
+
it { is_expected.to be_a Nokogiri::XML::Document }
|
11
|
+
```
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# Pathname
|
2
|
+
|
3
|
+
The object returned from each call to `fixture` delegates to its underlying [`Pathname`](https://docs.ruby-lang.org/en/3.2/Pathname.html) object, so you can call `#path`, `#read`, `#dirname` etc. just like a regular _Ruby_ `Pathname` object.
|
4
|
+
|
5
|
+
```rspec:xml
|
6
|
+
subject { fixture('example.xml').read }
|
7
|
+
|
8
|
+
it { is_expected.to include '<a type="integer">1</a>' }
|
9
|
+
```
|
10
|
+
|
11
|
+
```rspec
|
12
|
+
subject { fixture('example.json').dirname.to_s }
|
13
|
+
|
14
|
+
it { is_expected.to eql 'spec/fixtures' }
|
15
|
+
```
|
16
|
+
|
17
|
+
```rspec
|
18
|
+
subject { fixture('example.json').relative? }
|
19
|
+
|
20
|
+
it { is_expected.to be true }
|
21
|
+
```
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# Usage
|
2
|
+
|
3
|
+
_RSpec::FileFixtures_ provides a helper named `fixture` available in all specs. This method receives a filename as a string and the provided file is loaded from `spec/fixtures/`.
|
4
|
+
|
5
|
+
Fetch the fixture's path:
|
6
|
+
|
7
|
+
```rspec
|
8
|
+
subject { fixture('example.yaml').path }
|
9
|
+
|
10
|
+
it { is_expected.to end_with '/spec/fixtures/example.yaml' }
|
11
|
+
```
|
12
|
+
|
13
|
+
Read the fixture's content:
|
14
|
+
|
15
|
+
```rspec:yaml
|
16
|
+
subject { fixture('example.yaml').read }
|
17
|
+
|
18
|
+
it { is_expected.to include 'key: value' }
|
19
|
+
```
|
20
|
+
|
21
|
+
A number of extensions are provided to assist dealing with common data types. See each item in the Usage section for details.
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# License
|
2
|
+
|
3
|
+
## MIT
|
4
|
+
|
5
|
+
The MIT License (MIT)
|
6
|
+
|
7
|
+
Copyright (c) 2023 Robert Farrell
|
8
|
+
|
9
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
10
|
+
of this software and associated documentation files (the "Software"), to deal
|
11
|
+
in the Software without restriction, including without limitation the rights
|
12
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
13
|
+
copies of the Software, and to permit persons to whom the Software is
|
14
|
+
furnished to do so, subject to the following conditions:
|
15
|
+
|
16
|
+
The above copyright notice and this permission notice shall be included in
|
17
|
+
all copies or substantial portions of the Software.
|
18
|
+
|
19
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
20
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
21
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
22
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
23
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
24
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
25
|
+
THE SOFTWARE.
|
data/rspec-file_fixtures.gemspec
CHANGED
@@ -7,15 +7,17 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.version = RSpecFileFixtures::VERSION
|
8
8
|
spec.authors = ['Bob Farrell']
|
9
9
|
spec.email = ['git@bob.frl']
|
10
|
+
spec.licenses = ['MIT']
|
10
11
|
|
11
12
|
spec.summary = 'Simple file fixture loader for RSpec'
|
12
13
|
spec.description = 'Load files from test fixtures directory quickly and conveniently'
|
13
14
|
spec.homepage = 'https://github.com/bobf/rspec-file_fixtures'
|
14
15
|
spec.license = 'MIT'
|
15
|
-
spec.required_ruby_version = Gem::Requirement.new('>= 2.
|
16
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 2.7.0')
|
16
17
|
|
17
18
|
spec.metadata['homepage_uri'] = spec.homepage
|
18
19
|
spec.metadata['source_code_uri'] = spec.homepage
|
20
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
19
21
|
|
20
22
|
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
21
23
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
@@ -23,5 +25,5 @@ Gem::Specification.new do |spec|
|
|
23
25
|
spec.bindir = 'bin'
|
24
26
|
spec.executables = []
|
25
27
|
spec.require_paths = ['lib']
|
26
|
-
spec.
|
28
|
+
spec.add_runtime_dependency 'rspec', '~> 3.12'
|
27
29
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-file_fixtures
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Farrell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '3.
|
19
|
+
version: '3.12'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '3.
|
26
|
+
version: '3.12'
|
27
27
|
description: Load files from test fixtures directory quickly and conveniently
|
28
28
|
email:
|
29
29
|
- git@bob.frl
|
@@ -47,6 +47,14 @@ files:
|
|
47
47
|
- lib/rspec_file_fixtures.rb
|
48
48
|
- lib/rspec_file_fixtures/fixture.rb
|
49
49
|
- lib/rspec_file_fixtures/version.rb
|
50
|
+
- rspec-documentation/pages/000-Introduction.md
|
51
|
+
- rspec-documentation/pages/010-Usage.md
|
52
|
+
- rspec-documentation/pages/010-Usage/010-JSON.md
|
53
|
+
- rspec-documentation/pages/010-Usage/020-YAML.md
|
54
|
+
- rspec-documentation/pages/010-Usage/030-XML.md
|
55
|
+
- rspec-documentation/pages/010-Usage/040-Pathname.md
|
56
|
+
- rspec-documentation/pages/500-License.md
|
57
|
+
- rspec-documentation/spec_helper.rb
|
50
58
|
- rspec-file_fixtures.gemspec
|
51
59
|
homepage: https://github.com/bobf/rspec-file_fixtures
|
52
60
|
licenses:
|
@@ -54,6 +62,7 @@ licenses:
|
|
54
62
|
metadata:
|
55
63
|
homepage_uri: https://github.com/bobf/rspec-file_fixtures
|
56
64
|
source_code_uri: https://github.com/bobf/rspec-file_fixtures
|
65
|
+
rubygems_mfa_required: 'true'
|
57
66
|
post_install_message:
|
58
67
|
rdoc_options: []
|
59
68
|
require_paths:
|
@@ -62,15 +71,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
71
|
requirements:
|
63
72
|
- - ">="
|
64
73
|
- !ruby/object:Gem::Version
|
65
|
-
version: 2.
|
74
|
+
version: 2.7.0
|
66
75
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
76
|
requirements:
|
68
77
|
- - ">="
|
69
78
|
- !ruby/object:Gem::Version
|
70
79
|
version: '0'
|
71
80
|
requirements: []
|
72
|
-
|
73
|
-
rubygems_version: 2.7.6.2
|
81
|
+
rubygems_version: 3.1.6
|
74
82
|
signing_key:
|
75
83
|
specification_version: 4
|
76
84
|
summary: Simple file fixture loader for RSpec
|