jsonapi-resources-matchers 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/CHANGELOG.md +3 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +7 -0
- data/LICENSE.txt +21 -0
- data/MIT-LICENSE +20 -0
- data/README.md +67 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/jsonapi-resources-matchers.gemspec +36 -0
- data/lib/jsonapi-resources-matchers.rb +1 -0
- data/lib/jsonapi/resources/matchers.rb +36 -0
- data/lib/jsonapi/resources/matchers/filter.rb +30 -0
- data/lib/jsonapi/resources/matchers/have_attribute.rb +37 -0
- data/lib/jsonapi/resources/matchers/have_many.rb +55 -0
- data/lib/jsonapi/resources/matchers/have_model_name.rb +29 -0
- data/lib/jsonapi/resources/matchers/have_primary_key.rb +30 -0
- data/lib/jsonapi/resources/matchers/integrations/rspec.rb +5 -0
- data/lib/jsonapi/resources/matchers/version.rb +7 -0
- metadata +139 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ae0027f2286732ef5034d98b32beb53e5b4f37a1
|
4
|
+
data.tar.gz: 4b8cc9ec1fcbebadeaf8f9acfc6df620f754dd17
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0596c7a23b1f10d4c088b00744fde0fd5c4dd56918b22fd9b779a35dd472eb54c3deb7968f6501e4d3c2fc454131fdf4031f1a5fb7f22d58f6e6bad712e61af0
|
7
|
+
data.tar.gz: c6c7a07b2aa71a12d01aea8e3d224dd0c9fcf8892edd692419696e1dfb380a77c285a68e657d6a093150c03cc5813e1cc58035fe4e87e184271e0ec4ff4950e1
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CHANGELOG.md
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
4
|
+
|
5
|
+
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
|
6
|
+
|
7
|
+
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
|
8
|
+
|
9
|
+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
|
10
|
+
|
11
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
|
12
|
+
|
13
|
+
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Ramon Tayag
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all 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
|
21
|
+
THE SOFTWARE.
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright 2015 G5
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
# JSONAPI::Resources::Matchers
|
2
|
+
|
3
|
+
Spec matchers for [jsonapi-resources](https://github.com/cerebris/jsonapi-resources).
|
4
|
+
|
5
|
+
Currently, only RSpec matchers exist.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile (in a `test` group):
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'jsonapi-resources-matchers'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install jsonapi-resources-matchers
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
Anything with a `type` of `resource` will have the matchers automatically included.
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
class Book < ActiveResource::Base
|
29
|
+
end
|
30
|
+
|
31
|
+
class Api::V1::BookResource < JSONAPI::Resource
|
32
|
+
primary_key :isbn
|
33
|
+
attributes :title
|
34
|
+
has_many :readers, class_name: "Person"
|
35
|
+
filters :author_id
|
36
|
+
end
|
37
|
+
|
38
|
+
RSpec.describe Api::V1::BookResource, type: :resource do
|
39
|
+
let(:book) { Book.new }
|
40
|
+
subject { described_class.new(book) }
|
41
|
+
|
42
|
+
it { is_expected.to use_primary_key :isbn }
|
43
|
+
it { is_expected.to have_attribute :title }
|
44
|
+
it { is_expected.to have_many(:readers).with_class_name("Person") }
|
45
|
+
it { is_expected.to filter(:author_id) }
|
46
|
+
end
|
47
|
+
```
|
48
|
+
|
49
|
+
## Development
|
50
|
+
|
51
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
52
|
+
|
53
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
54
|
+
|
55
|
+
## Contributing
|
56
|
+
|
57
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/g5/jsonapi-resources-matchers. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
|
58
|
+
|
59
|
+
## MIT License
|
60
|
+
|
61
|
+
Copyright 2015 G5
|
62
|
+
|
63
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
64
|
+
|
65
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
66
|
+
|
67
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "jsonapi/resources/matchers"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'jsonapi/resources/matchers/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "jsonapi-resources-matchers"
|
8
|
+
spec.version = JSONAPI::Resources::Matchers::VERSION
|
9
|
+
spec.authors = ["G5", "Ramon Tayag"]
|
10
|
+
spec.email = ["lateam@getg5.com","ramon.tayag@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Spec matchers for jsonapi-resources}
|
13
|
+
spec.description = %q{Spec matchers for jsonapi-resources}
|
14
|
+
spec.homepage = "https://github.com/G5/jsonapi-resources-matchers"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
18
|
+
# delete this section to allow pushing this gem to any host.
|
19
|
+
if spec.respond_to?(:metadata)
|
20
|
+
spec.metadata['allowed_push_host'] = "https://rubygems.org"
|
21
|
+
else
|
22
|
+
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
23
|
+
end
|
24
|
+
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
|
+
spec.bindir = "exe"
|
27
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
+
spec.require_paths = ["lib"]
|
29
|
+
|
30
|
+
spec.add_dependency "jsonapi-resources", ">= 0.5.0"
|
31
|
+
|
32
|
+
spec.add_development_dependency "bundler", "~> 1.10"
|
33
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
34
|
+
spec.add_development_dependency "rspec"
|
35
|
+
spec.add_development_dependency "rails"
|
36
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'jsonapi/resources/matchers'
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require "jsonapi/resources/matchers/version"
|
2
|
+
require "jsonapi/resources/matchers/have_attribute"
|
3
|
+
require "jsonapi/resources/matchers/filter"
|
4
|
+
require "jsonapi/resources/matchers/have_many"
|
5
|
+
require "jsonapi/resources/matchers/have_model_name"
|
6
|
+
require "jsonapi/resources/matchers/have_primary_key"
|
7
|
+
|
8
|
+
module JSONAPI
|
9
|
+
module Resources
|
10
|
+
module Matchers
|
11
|
+
|
12
|
+
def have_attribute(name)
|
13
|
+
HaveAttribute.new(name)
|
14
|
+
end
|
15
|
+
|
16
|
+
def filter(name)
|
17
|
+
Filter.new(name)
|
18
|
+
end
|
19
|
+
|
20
|
+
def have_many(name)
|
21
|
+
HaveMany.new(name)
|
22
|
+
end
|
23
|
+
|
24
|
+
def have_model_name(name)
|
25
|
+
HaveModelName.new(name)
|
26
|
+
end
|
27
|
+
|
28
|
+
def have_primary_key(name)
|
29
|
+
HavePrimaryKey.new(name)
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
require "jsonapi/resources/matchers/integrations/rspec"
|
@@ -0,0 +1,30 @@
|
|
1
|
+
module JSONAPI
|
2
|
+
module Resources
|
3
|
+
module Matchers
|
4
|
+
class Filter
|
5
|
+
|
6
|
+
attr_accessor :expected_filter_name, :resource
|
7
|
+
|
8
|
+
def initialize(name)
|
9
|
+
self.expected_filter_name = name
|
10
|
+
end
|
11
|
+
|
12
|
+
def matches?(resource)
|
13
|
+
self.resource = resource
|
14
|
+
self.resource.class._allowed_filters.keys.
|
15
|
+
include?(self.expected_filter_name)
|
16
|
+
end
|
17
|
+
|
18
|
+
def description
|
19
|
+
"be able to filter by `#{expected_filter_name}`"
|
20
|
+
end
|
21
|
+
|
22
|
+
def failure_message
|
23
|
+
resource_name = resource.class.name.demodulize
|
24
|
+
%Q(expected #{resource_name} to be able to filter #{expected_filter_name})
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
module JSONAPI
|
2
|
+
module Resources
|
3
|
+
module Matchers
|
4
|
+
class HaveAttribute
|
5
|
+
|
6
|
+
attr_accessor :name, :resource
|
7
|
+
|
8
|
+
def initialize(name)
|
9
|
+
self.name = name
|
10
|
+
end
|
11
|
+
|
12
|
+
def matches?(resource)
|
13
|
+
self.resource = resource
|
14
|
+
|
15
|
+
resource_class = resource.class
|
16
|
+
|
17
|
+
serialized_hash = JSONAPI::ResourceSerializer.new(resource_class).
|
18
|
+
serialize_to_hash(resource).with_indifferent_access
|
19
|
+
expected_key = name.to_s.dasherize
|
20
|
+
attributes = serialized_hash["data"]["attributes"]
|
21
|
+
return false if attributes.nil?
|
22
|
+
attributes.has_key?(expected_key)
|
23
|
+
end
|
24
|
+
|
25
|
+
def failure_message
|
26
|
+
resource_name = resource.class.name.demodulize
|
27
|
+
%Q(expected #{resource_name} to have attribute #{name})
|
28
|
+
end
|
29
|
+
|
30
|
+
def description
|
31
|
+
"have attribute #{name}"
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
module JSONAPI
|
2
|
+
module Resources
|
3
|
+
module Matchers
|
4
|
+
class HaveMany
|
5
|
+
|
6
|
+
attr_accessor :name, :resource, :expected_class_name
|
7
|
+
|
8
|
+
def initialize(name)
|
9
|
+
self.name = name
|
10
|
+
end
|
11
|
+
|
12
|
+
def description
|
13
|
+
"have many `#{name}`"
|
14
|
+
end
|
15
|
+
|
16
|
+
def matches?(resource)
|
17
|
+
self.resource = resource
|
18
|
+
|
19
|
+
has_key_in_relationships? && matches_class_name?
|
20
|
+
end
|
21
|
+
|
22
|
+
def has_key_in_relationships?
|
23
|
+
serialized_hash = JSONAPI::ResourceSerializer.new(resource.class).
|
24
|
+
serialize_to_hash(resource).with_indifferent_access
|
25
|
+
expected_key = name.to_s.dasherize
|
26
|
+
relationships = serialized_hash["data"]["relationships"]
|
27
|
+
return false if relationships.nil?
|
28
|
+
relationships.has_key?(expected_key)
|
29
|
+
end
|
30
|
+
|
31
|
+
def with_class_name(name)
|
32
|
+
self.expected_class_name = name
|
33
|
+
self
|
34
|
+
end
|
35
|
+
|
36
|
+
def failure_message
|
37
|
+
resource_name = resource.class.name.demodulize
|
38
|
+
message = ["expected `#{resource_name}` to have many `#{name}`"]
|
39
|
+
if self.expected_class_name
|
40
|
+
message << "with class name `#{self.expected_class_name}`"
|
41
|
+
end
|
42
|
+
message.join(" ")
|
43
|
+
end
|
44
|
+
|
45
|
+
def matches_class_name?
|
46
|
+
return true if self.expected_class_name.nil?
|
47
|
+
association = resource.class._relationships[name]
|
48
|
+
actual_class_name = association.class_name
|
49
|
+
self.expected_class_name == actual_class_name
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module JSONAPI
|
2
|
+
module Resources
|
3
|
+
module Matchers
|
4
|
+
class HaveModelName
|
5
|
+
|
6
|
+
attr_accessor :expected_model_name, :resource
|
7
|
+
|
8
|
+
def initialize(name)
|
9
|
+
self.expected_model_name = name
|
10
|
+
end
|
11
|
+
|
12
|
+
def matches?(resource)
|
13
|
+
self.resource = resource
|
14
|
+
self.resource.class._model_name.to_s == self.expected_model_name.to_s
|
15
|
+
end
|
16
|
+
|
17
|
+
def description
|
18
|
+
%Q(have model name `#{expected_model_name}`)
|
19
|
+
end
|
20
|
+
|
21
|
+
def failure_message
|
22
|
+
resource_name = resource.class.name.demodulize
|
23
|
+
%Q(expected `#{resource_name}` to have the model name `#{expected_model_name}`)
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
module JSONAPI
|
2
|
+
module Resources
|
3
|
+
module Matchers
|
4
|
+
class HavePrimaryKey
|
5
|
+
|
6
|
+
attr_accessor :expected_primary_key, :resource
|
7
|
+
|
8
|
+
def initialize(name)
|
9
|
+
self.expected_primary_key = name
|
10
|
+
end
|
11
|
+
|
12
|
+
def description
|
13
|
+
"have primary key `#{self.expected_primary_key}`"
|
14
|
+
end
|
15
|
+
|
16
|
+
def matches?(resource)
|
17
|
+
self.resource = resource
|
18
|
+
self.resource.class._primary_key.to_s ==
|
19
|
+
self.expected_primary_key.to_s
|
20
|
+
end
|
21
|
+
|
22
|
+
def failure_message
|
23
|
+
resource_name = resource.class.name.demodulize
|
24
|
+
%Q(expected `#{resource_name}` to use primary key `#{self.expected_primary_key}`)
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
metadata
ADDED
@@ -0,0 +1,139 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jsonapi-resources-matchers
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- G5
|
8
|
+
- Ramon Tayag
|
9
|
+
autorequire:
|
10
|
+
bindir: exe
|
11
|
+
cert_chain: []
|
12
|
+
date: 2015-07-20 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: jsonapi-resources
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ">="
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: 0.5.0
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: 0.5.0
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: bundler
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - "~>"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '1.10'
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "~>"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '1.10'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: rake
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - "~>"
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '10.0'
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - "~>"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '10.0'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: rspec
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: rails
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
84
|
+
description: Spec matchers for jsonapi-resources
|
85
|
+
email:
|
86
|
+
- lateam@getg5.com
|
87
|
+
- ramon.tayag@gmail.com
|
88
|
+
executables: []
|
89
|
+
extensions: []
|
90
|
+
extra_rdoc_files: []
|
91
|
+
files:
|
92
|
+
- ".gitignore"
|
93
|
+
- ".rspec"
|
94
|
+
- ".travis.yml"
|
95
|
+
- CHANGELOG.md
|
96
|
+
- CODE_OF_CONDUCT.md
|
97
|
+
- Gemfile
|
98
|
+
- LICENSE.txt
|
99
|
+
- MIT-LICENSE
|
100
|
+
- README.md
|
101
|
+
- Rakefile
|
102
|
+
- bin/console
|
103
|
+
- bin/setup
|
104
|
+
- jsonapi-resources-matchers.gemspec
|
105
|
+
- lib/jsonapi-resources-matchers.rb
|
106
|
+
- lib/jsonapi/resources/matchers.rb
|
107
|
+
- lib/jsonapi/resources/matchers/filter.rb
|
108
|
+
- lib/jsonapi/resources/matchers/have_attribute.rb
|
109
|
+
- lib/jsonapi/resources/matchers/have_many.rb
|
110
|
+
- lib/jsonapi/resources/matchers/have_model_name.rb
|
111
|
+
- lib/jsonapi/resources/matchers/have_primary_key.rb
|
112
|
+
- lib/jsonapi/resources/matchers/integrations/rspec.rb
|
113
|
+
- lib/jsonapi/resources/matchers/version.rb
|
114
|
+
homepage: https://github.com/G5/jsonapi-resources-matchers
|
115
|
+
licenses:
|
116
|
+
- MIT
|
117
|
+
metadata:
|
118
|
+
allowed_push_host: https://rubygems.org
|
119
|
+
post_install_message:
|
120
|
+
rdoc_options: []
|
121
|
+
require_paths:
|
122
|
+
- lib
|
123
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
124
|
+
requirements:
|
125
|
+
- - ">="
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
version: '0'
|
128
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '0'
|
133
|
+
requirements: []
|
134
|
+
rubyforge_project:
|
135
|
+
rubygems_version: 2.4.5
|
136
|
+
signing_key:
|
137
|
+
specification_version: 4
|
138
|
+
summary: Spec matchers for jsonapi-resources
|
139
|
+
test_files: []
|