neo4j-rspec 0.2.4 → 0.2.5
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.
- checksums.yaml +4 -4
- data/.rubocop.yml +4 -0
- data/.rubocop_todo.yml +31 -0
- data/.travis.yml +11 -6
- data/CHANGELOG.md +12 -0
- data/Gemfile +8 -3
- data/README.md +1 -0
- data/Rakefile +2 -3
- data/lib/neo4j/rspec.rb +2 -2
- data/lib/neo4j/rspec/matchers.rb +4 -4
- data/lib/neo4j/rspec/matchers/has_n.rb +6 -6
- data/lib/neo4j/rspec/matchers/properties.rb +0 -1
- data/lib/neo4j/rspec/matchers/relations.rb +1 -2
- data/lib/neo4j/rspec/version.rb +1 -1
- data/neo4j-rspec.gemspec +12 -12
- metadata +6 -4
- data/travis.gemfile +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4893dab54d2dc8943867d8ef2a12092a5ca0dfbb
|
4
|
+
data.tar.gz: 5ac43c2a3e98282f9d30c660d6663bde3fb4df30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 119a470f9d0304468cbc7fc14f01dcc8c01ab0ce9ba7e8120e3622169460b8d083b6299a3543aec1844783ee2fbbc05272a584850ecbe874d1fe1cf1f1f1ff52
|
7
|
+
data.tar.gz: d4ee02238b469c6e9a4cc8c49ce4462e301dbd8aca38f812066b5c83647d08521c83b9b48af2d68bcb6cc0979eea5466d59fae3599420d76e8a38f5b6ceac475
|
data/.rubocop.yml
ADDED
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2018-05-03 08:53:12 -0400 using RuboCop version 0.55.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
|
+
# Configuration parameters: CountComments, ExcludedMethods.
|
11
|
+
Metrics/BlockLength:
|
12
|
+
Max: 35
|
13
|
+
|
14
|
+
# Offense count: 17
|
15
|
+
Style/Documentation:
|
16
|
+
Exclude:
|
17
|
+
- 'spec/**/*'
|
18
|
+
- 'test/**/*'
|
19
|
+
- 'lib/neo4j/rspec.rb'
|
20
|
+
- 'lib/neo4j/rspec/compat.rb'
|
21
|
+
- 'lib/neo4j/rspec/matchers.rb'
|
22
|
+
- 'lib/neo4j/rspec/matchers/has_n.rb'
|
23
|
+
- 'lib/neo4j/rspec/matchers/properties.rb'
|
24
|
+
- 'lib/neo4j/rspec/matchers/relations.rb'
|
25
|
+
|
26
|
+
|
27
|
+
# Offense count: 26
|
28
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
29
|
+
# URISchemes: http, https
|
30
|
+
Metrics/LineLength:
|
31
|
+
Max: 119
|
data/.travis.yml
CHANGED
@@ -1,14 +1,19 @@
|
|
1
|
-
|
1
|
+
before_install:
|
2
|
+
- "gem update --system"
|
3
|
+
- "gem install bundler"
|
4
|
+
script:
|
5
|
+
- "travis_retry bundle exec rake default --trace"
|
6
|
+
- "bundle exec rubocop -D"
|
2
7
|
language: ruby
|
3
8
|
cache: bundler
|
4
9
|
sudo: false
|
5
10
|
rvm:
|
6
|
-
- 2.
|
7
|
-
- 2.
|
8
|
-
|
11
|
+
- 2.3
|
12
|
+
- 2.4
|
13
|
+
- 2.5
|
9
14
|
env:
|
10
15
|
global:
|
11
16
|
- TRAVISCI=1
|
12
17
|
matrix:
|
13
|
-
|
14
|
-
|
18
|
+
- NEO4J_GEM_VERSION="~> 9.0"
|
19
|
+
- NEO4J_GEM_VERSION="~> 8.0"
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# Changelog
|
2
|
+
All notable changes to this project will be documented in this file.
|
3
|
+
|
4
|
+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
5
|
+
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
6
|
+
|
7
|
+
## [Unreleased]
|
8
|
+
|
9
|
+
## [0.2.5] - 2018-05-03
|
10
|
+
|
11
|
+
### Fixed
|
12
|
+
- Fixed issue with false positives for types in `define_property` helper (see #22 / thanks @vaughncm)
|
data/Gemfile
CHANGED
@@ -1,8 +1,13 @@
|
|
1
|
-
source
|
1
|
+
source 'https://rubygems.org'
|
2
2
|
|
3
3
|
gemspec
|
4
4
|
|
5
|
+
gem 'neo4j', ENV['NEO4J_GEM_VERSION']
|
6
|
+
|
7
|
+
gem 'pry'
|
8
|
+
gem 'rake', '~> 12.3.1'
|
9
|
+
gem 'rubocop', '~> 0.55.0'
|
10
|
+
|
5
11
|
group :test do
|
6
|
-
gem
|
7
|
-
gem "pry"
|
12
|
+
gem 'rspec', '~> 3.4'
|
8
13
|
end
|
data/README.md
CHANGED
data/Rakefile
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
require 'rake'
|
2
2
|
require 'bundler/gem_tasks'
|
3
3
|
require 'neo4j-core'
|
4
|
-
require '
|
5
|
-
require "rspec/core/rake_task"
|
4
|
+
require 'rspec/core/rake_task'
|
6
5
|
|
7
6
|
task default: :spec
|
8
7
|
|
9
8
|
RSpec::Core::RakeTask.new(:spec) do |spec|
|
10
|
-
spec.pattern =
|
9
|
+
spec.pattern = './spec/**/*_spec.rb'
|
11
10
|
end
|
data/lib/neo4j/rspec.rb
CHANGED
data/lib/neo4j/rspec/matchers.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
require
|
2
|
-
require
|
3
|
-
require
|
4
|
-
require
|
1
|
+
require 'neo4j/rspec/matchers/has_n'
|
2
|
+
require 'neo4j/rspec/matchers/properties'
|
3
|
+
require 'neo4j/rspec/matchers/relations'
|
4
|
+
require 'neo4j/rspec/compat'
|
5
5
|
|
6
6
|
module Neo4j
|
7
7
|
module RSpec
|
@@ -70,7 +70,7 @@ module Neo4j
|
|
70
70
|
end
|
71
71
|
|
72
72
|
def description
|
73
|
-
|
73
|
+
'without type'
|
74
74
|
end
|
75
75
|
end
|
76
76
|
end
|
@@ -140,14 +140,14 @@ module Neo4j
|
|
140
140
|
matchers.push Without::TypeMatcher.new
|
141
141
|
end
|
142
142
|
|
143
|
-
description do |
|
144
|
-
with_messages = matchers.map(&:description).join(
|
145
|
-
macro.description(association_name) +
|
143
|
+
description do |_model|
|
144
|
+
with_messages = matchers.map(&:description).join(' ')
|
145
|
+
macro.description(association_name) + ' ' + with_messages
|
146
146
|
end
|
147
147
|
|
148
148
|
failure_message do |model|
|
149
|
-
with_messages = matchers.map(&:description).join(
|
150
|
-
macro.failure_message(model.class.name) +
|
149
|
+
with_messages = matchers.map(&:description).join(' ')
|
150
|
+
macro.failure_message(model.class.name) + ' ' + with_messages
|
151
151
|
end
|
152
152
|
end
|
153
153
|
end
|
data/lib/neo4j/rspec/version.rb
CHANGED
data/neo4j-rspec.gemspec
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
lib = File.expand_path(
|
1
|
+
lib = File.expand_path('lib', __dir__)
|
2
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require
|
3
|
+
require 'neo4j/rspec/version'
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
|
-
spec.name =
|
6
|
+
spec.name = 'neo4j-rspec'
|
7
7
|
spec.version = Neo4j::RSpec::VERSION
|
8
|
-
spec.authors = [
|
9
|
-
spec.email = [
|
8
|
+
spec.authors = ['Denis Tataurov']
|
9
|
+
spec.email = ['sineedus@mail.ru']
|
10
10
|
|
11
|
-
spec.summary =
|
12
|
-
spec.description =
|
13
|
-
spec.homepage =
|
14
|
-
spec.license =
|
11
|
+
spec.summary = 'RSpec matchers for Neo4j.rb'
|
12
|
+
spec.description = 'RSpec matchers for Neo4j.rb'
|
13
|
+
spec.homepage = 'https://github.com/sineed/neo4j-rspec'
|
14
|
+
spec.license = 'MIT'
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
|
-
spec.require_paths = [
|
17
|
+
spec.require_paths = ['lib']
|
18
18
|
|
19
|
-
spec.add_dependency
|
20
|
-
spec.add_dependency
|
19
|
+
spec.add_dependency 'neo4j', '>= 6.0.0'
|
20
|
+
spec.add_dependency 'rspec', '>= 3.0'
|
21
21
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neo4j-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Denis Tataurov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: neo4j
|
@@ -47,7 +47,10 @@ extra_rdoc_files: []
|
|
47
47
|
files:
|
48
48
|
- ".gitignore"
|
49
49
|
- ".rspec"
|
50
|
+
- ".rubocop.yml"
|
51
|
+
- ".rubocop_todo.yml"
|
50
52
|
- ".travis.yml"
|
53
|
+
- CHANGELOG.md
|
51
54
|
- Gemfile
|
52
55
|
- LICENSE.txt
|
53
56
|
- README.md
|
@@ -60,7 +63,6 @@ files:
|
|
60
63
|
- lib/neo4j/rspec/matchers/relations.rb
|
61
64
|
- lib/neo4j/rspec/version.rb
|
62
65
|
- neo4j-rspec.gemspec
|
63
|
-
- travis.gemfile
|
64
66
|
homepage: https://github.com/sineed/neo4j-rspec
|
65
67
|
licenses:
|
66
68
|
- MIT
|
@@ -81,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
83
|
version: '0'
|
82
84
|
requirements: []
|
83
85
|
rubyforge_project:
|
84
|
-
rubygems_version: 2.
|
86
|
+
rubygems_version: 2.6.13
|
85
87
|
signing_key:
|
86
88
|
specification_version: 4
|
87
89
|
summary: RSpec matchers for Neo4j.rb
|
data/travis.gemfile
DELETED