devise-activegraph 3.0.0.alpha.1 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/devise-activegraph.gemspec +1 -1
- data/lib/devise/active_graph/version.rb +1 -1
- data/test/generators/active_graph/devise_generator_test.rb +8 -8
- data/test/orm/active_graph.rb +3 -25
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39293f1ef3fdbb2a493aaea2b2a7c9a3e26b50ef3a72b61e0dd9b5883c7bcb60
|
4
|
+
data.tar.gz: 1c1098ff5499482cf9663fb795b5ffb169def9901f22adfe6eaf3ff259ea0f54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 119e672c8d6d4cbf2132d413778b33a1975a518becf32622d6c0b53e3a866907e3a7c785bccf6084dea3e595c8b84b56c7a5904b7e4ba2ce03e9ccfa94182b67
|
7
|
+
data.tar.gz: ce761276e65f850db67b84ad2397b949b65aeb9d990631bf084938721e0dc41197e07af377c52c729522a9a97577d7413d68732fb7ef2386396cfbae3d2637cb
|
data/Rakefile
CHANGED
@@ -26,7 +26,7 @@ Rake::TestTask.new(:test) do |test|
|
|
26
26
|
else
|
27
27
|
test.test_files = FileList["#{ENV['DEVISE_PATH']}/test/**/*_test.rb"] + FileList['test/**/*_test.rb']
|
28
28
|
end
|
29
|
-
#test.test_files = ['test/generators/
|
29
|
+
#test.test_files = ['test/generators/active_graph/devise_generator_test.rb']
|
30
30
|
#test.test_files = ['test/overrides/authenticatable_test.rb']
|
31
31
|
#test.verbose = true
|
32
32
|
test.warning = false
|
data/devise-activegraph.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.add_dependency("orm_adapter", "~> 0.5.0")
|
22
22
|
s.add_dependency("bcrypt", ">= 3.0")
|
23
23
|
s.add_dependency("railties", ">= 4.2")
|
24
|
-
s.add_dependency("activegraph", ">= 10.0.0
|
24
|
+
s.add_dependency("activegraph", ">= 10.0.0")
|
25
25
|
s.add_dependency("devise", ">= 3.5.2")
|
26
26
|
s.add_dependency("zeitwerk")
|
27
27
|
end
|
@@ -13,13 +13,13 @@ class ActiveGraph::Generators::ModelGeneratorTest < Rails::Generators::TestCase
|
|
13
13
|
yield $2.strip if block_given?
|
14
14
|
end
|
15
15
|
|
16
|
-
|
17
|
-
|
16
|
+
test "invoke with model name" do
|
17
|
+
content = run_generator %w(Player)
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
19
|
+
assert_file "app/models/player.rb" do |player|
|
20
|
+
assert_class "Player", player do |klass|
|
21
|
+
assert_match /ActiveGraph::Node/, klass
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
25
|
end
|
data/test/orm/active_graph.rb
CHANGED
@@ -1,31 +1,9 @@
|
|
1
1
|
require 'fileutils'
|
2
|
-
require 'active_graph/core/driver'
|
3
|
-
require 'active_graph/core'
|
4
|
-
# mostly copied from neo4j/spec/spec_helper
|
5
|
-
class TestDriver < ActiveGraph::Core::Driver
|
6
|
-
cattr_reader :cache, default: {}
|
7
|
-
|
8
|
-
at_exit do
|
9
|
-
close_all
|
10
|
-
end
|
11
|
-
|
12
|
-
class << self
|
13
|
-
def new_instance(url, auth_token, options = {})
|
14
|
-
cache[url] ||= super(url, auth_token, options.merge(encryption: false))
|
15
|
-
end
|
16
|
-
|
17
|
-
def close_all
|
18
|
-
cache.values.each(&:close)
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
def close; end
|
23
|
-
end
|
24
|
-
|
25
2
|
|
26
3
|
def create_driver
|
27
|
-
|
28
|
-
ActiveGraph::Base.driver =
|
4
|
+
server_url = ENV['NEO4J_URL'] || 'bolt://localhost:7687'
|
5
|
+
ActiveGraph::Base.driver =
|
6
|
+
Neo4j::Driver::GraphDatabase.driver(server_url, Neo4j::Driver::AuthTokens.none, encryption: false)
|
29
7
|
end
|
30
8
|
|
31
9
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise-activegraph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.0
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Jackson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-07-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,7 +72,7 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 10.0.0
|
75
|
+
version: 10.0.0
|
76
76
|
name: activegraph
|
77
77
|
prerelease: false
|
78
78
|
type: :runtime
|
@@ -80,7 +80,7 @@ dependencies:
|
|
80
80
|
requirements:
|
81
81
|
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: 10.0.0
|
83
|
+
version: 10.0.0
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
@@ -185,9 +185,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
185
185
|
version: '0'
|
186
186
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
187
187
|
requirements:
|
188
|
-
- - "
|
188
|
+
- - ">="
|
189
189
|
- !ruby/object:Gem::Version
|
190
|
-
version:
|
190
|
+
version: '0'
|
191
191
|
requirements: []
|
192
192
|
rubyforge_project:
|
193
193
|
rubygems_version: 2.7.10
|