neo4j-rspec 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c5c894999b6ba8f7fcc4e7b22b06d634d985deb8
4
- data.tar.gz: 73369c8c52ed122844c13af580cba671cf282d6b
3
+ metadata.gz: 4893dab54d2dc8943867d8ef2a12092a5ca0dfbb
4
+ data.tar.gz: 5ac43c2a3e98282f9d30c660d6663bde3fb4df30
5
5
  SHA512:
6
- metadata.gz: 7f34194b8200c9318e88a95444db50068abd1d55703a538354fd86841ef277734fae913cbfef90b47edd0f283b70ea3b62cac2a933b3bc84b7d2677048741eac
7
- data.tar.gz: 6704e438e836c1574d748e36c4d5f7b73729132ec427af31b0bc9e03fa502eec0acf780e57ade2202e8494f1184ce2efbb790e8ba2b854a0bfc744772c90efd1
6
+ metadata.gz: 119a470f9d0304468cbc7fc14f01dcc8c01ab0ce9ba7e8120e3622169460b8d083b6299a3543aec1844783ee2fbbc05272a584850ecbe874d1fe1cf1f1f1ff52
7
+ data.tar.gz: d4ee02238b469c6e9a4cc8c49ce4462e301dbd8aca38f812066b5c83647d08521c83b9b48af2d68bcb6cc0979eea5466d59fae3599420d76e8a38f5b6ceac475
data/.rubocop.yml ADDED
@@ -0,0 +1,4 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+ Style/SignalException:
4
+ EnforcedStyle: semantic
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
- script: "bundle exec rake neo4j:install[community-2.3.0] neo4j:start default --trace"
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.2.0
7
- - 2.3.0
8
- gemfile: travis.gemfile
11
+ - 2.3
12
+ - 2.4
13
+ - 2.5
9
14
  env:
10
15
  global:
11
16
  - TRAVISCI=1
12
17
  matrix:
13
- - NEO4J_VERSION=6.0.9
14
- - NEO4J_VERSION=7.0.11
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 "https://rubygems.org"
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 "rspec"
7
- gem "pry"
12
+ gem 'rspec', '~> 3.4'
8
13
  end
data/README.md CHANGED
@@ -43,6 +43,7 @@ end
43
43
  it { is_expected.to define_constraint :name, :unique }
44
44
  - Indexes
45
45
 
46
+ # DEPRECATED! Newer version of the `neo4j` gem no longer support defining indexes on the model
46
47
  it { is_expected.to define_index(:index_name) }
47
48
  - Tracking
48
49
 
data/Rakefile CHANGED
@@ -1,11 +1,10 @@
1
1
  require 'rake'
2
2
  require 'bundler/gem_tasks'
3
3
  require 'neo4j-core'
4
- require 'neo4j/rake_tasks'
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 = "./spec/**/*_spec.rb"
9
+ spec.pattern = './spec/**/*_spec.rb'
11
10
  end
data/lib/neo4j/rspec.rb CHANGED
@@ -1,5 +1,5 @@
1
- require "neo4j/rspec/matchers"
2
- require "neo4j/rspec/version"
1
+ require 'neo4j/rspec/matchers'
2
+ require 'neo4j/rspec/version'
3
3
 
4
4
  module Neo4j
5
5
  module RSpec
@@ -1,7 +1,7 @@
1
- require "neo4j/rspec/matchers/has_n"
2
- require "neo4j/rspec/matchers/properties"
3
- require "neo4j/rspec/matchers/relations"
4
- require "neo4j/rspec/compat"
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
- "without type"
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 |model|
144
- with_messages = matchers.map(&:description).join(" ")
145
- macro.description(association_name) + " " + with_messages
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) + " " + with_messages
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
@@ -89,4 +89,3 @@ module Neo4j
89
89
  end
90
90
  end
91
91
  end
92
-
@@ -52,7 +52,7 @@ module Neo4j
52
52
  end
53
53
 
54
54
  description do
55
- msg = "use CREATE UNIQUE"
55
+ msg = 'use CREATE UNIQUE'
56
56
  msg += " with option #{arg}" if arg
57
57
  msg
58
58
  end
@@ -83,4 +83,3 @@ module Neo4j
83
83
  end
84
84
  end
85
85
  end
86
-
@@ -1,5 +1,5 @@
1
1
  module Neo4j
2
2
  module RSpec
3
- VERSION = "0.2.4"
3
+ VERSION = '0.2.5'.freeze
4
4
  end
5
5
  end
data/neo4j-rspec.gemspec CHANGED
@@ -1,21 +1,21 @@
1
- lib = File.expand_path("../lib", __FILE__)
1
+ lib = File.expand_path('lib', __dir__)
2
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
- require "neo4j/rspec/version"
3
+ require 'neo4j/rspec/version'
4
4
 
5
5
  Gem::Specification.new do |spec|
6
- spec.name = "neo4j-rspec"
6
+ spec.name = 'neo4j-rspec'
7
7
  spec.version = Neo4j::RSpec::VERSION
8
- spec.authors = ["Denis Tataurov"]
9
- spec.email = ["sineedus@mail.ru"]
8
+ spec.authors = ['Denis Tataurov']
9
+ spec.email = ['sineedus@mail.ru']
10
10
 
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"
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 = ["lib"]
17
+ spec.require_paths = ['lib']
18
18
 
19
- spec.add_dependency "neo4j", ">= 6.0.0"
20
- spec.add_dependency "rspec", ">= 3.0"
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
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: 2016-08-17 00:00:00.000000000 Z
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.4.6
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
@@ -1,4 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem "neo4j", ENV["NEO4J_VERSION"]
4
- gem "rspec", "~> 3.4"