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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 939b327fb9cca45455d386a9ae7dbdbd1fc308f4a09ed37ba59303763bd533f8
4
- data.tar.gz: 21b43d15c3c9a1454779353197a721d83f854e283cb0dcc41c5622ddcc39d531
3
+ metadata.gz: 39293f1ef3fdbb2a493aaea2b2a7c9a3e26b50ef3a72b61e0dd9b5883c7bcb60
4
+ data.tar.gz: 1c1098ff5499482cf9663fb795b5ffb169def9901f22adfe6eaf3ff259ea0f54
5
5
  SHA512:
6
- metadata.gz: 39bebd543bb7d2db1e77feebf4fdbc4ab0695bc4d2ca9267511c7779a78fd1b5ec6b6116b2c5f35098038a2140c8f4c4518dd61401342442dd63aab0b6f2e045
7
- data.tar.gz: 0e7f7f7db9d194c2528aab339b5d6a1ac3cb139a31df1c2f7ba8734064ee9e36e03b7b96efe3dfbe638949e262aa1168a224fb571f52220ac471d165c53c36b1
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/neo4j/devise_generator_test.rb']
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
@@ -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.pre.beta.2")
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
@@ -1,5 +1,5 @@
1
1
  module Devise
2
2
  module ActiveGraph
3
- VERSION = "3.0.0.alpha.1"
3
+ VERSION = "3.0.0"
4
4
  end
5
5
  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
- # test "invoke with model name" do
17
- # content = run_generator %w(Player)
16
+ test "invoke with model name" do
17
+ content = run_generator %w(Player)
18
18
 
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
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
@@ -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
- server_url = ENV['NEO4J_URL'] || 'bolt://localhost:7687'
28
- ActiveGraph::Base.driver = TestDriver.new(server_url)
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.alpha.1
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-04-06 00:00:00.000000000 Z
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.pre.beta.2
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.pre.beta.2
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: 1.3.1
190
+ version: '0'
191
191
  requirements: []
192
192
  rubyforge_project:
193
193
  rubygems_version: 2.7.10