carrierwave-neo4j 2.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,10 +1,18 @@
1
1
  require "rubygems"
2
2
  require "bundler/setup"
3
+ require "rake"
3
4
  require "rspec"
5
+ require "rspec/its"
6
+ require "webmock/rspec"
7
+
8
+ require "neo4j"
9
+ require "neo4j/core/cypher_session/adaptors/bolt"
10
+ require "helpers/database_cleaner"
11
+ require "helpers/filesystem_cleaner"
12
+ require "helpers/fake_migrations"
4
13
 
5
14
  require "carrierwave"
6
15
  require "carrierwave/neo4j"
7
- require "database_cleaner"
8
16
 
9
17
  def file_path(*paths)
10
18
  File.expand_path(File.join(File.dirname(__FILE__), "fixtures", *paths))
@@ -14,16 +22,26 @@ def public_path(*paths)
14
22
  File.expand_path(File.join(File.dirname(__FILE__), "public", *paths))
15
23
  end
16
24
 
25
+ def tmp_path( *paths )
26
+ File.expand_path(File.join(File.dirname(__FILE__), 'public/uploads/tmp', *paths))
27
+ end
28
+
17
29
  CarrierWave.root = public_path
18
- DatabaseCleaner[:neo4j, connection: {type: :server_db, path: 'http://localhost:7475'}].strategy = :transaction
30
+ # DatabaseCleaner[:neo4j, connection: {type: :bolt, path: 'bolt://localhost:7006'}].strategy = :transaction
31
+
32
+ neo4j_adaptor = Neo4j::Core::CypherSession::Adaptors::Bolt.new('bolt://localhost:7472', {ssl: false})
33
+ Neo4j::ActiveBase.on_establish_session { Neo4j::Core::CypherSession.new(neo4j_adaptor) }
19
34
 
20
35
  RSpec.configure do |config|
21
36
  config.before(:each) do
22
- DatabaseCleaner.start
37
+ DatabaseCleaner.avoid_validation do
38
+ DatabaseCleaner.clean
39
+ FilesystemCleaner.clean
40
+ FakeMigrations.migrate(:up)
41
+ end
23
42
  end
24
43
 
25
44
  config.after(:each) do
26
- DatabaseCleaner.clean
45
+ DatabaseCleaner.avoid_validation { DatabaseCleaner.clean }
27
46
  end
28
47
  end
29
-
metadata CHANGED
@@ -1,71 +1,127 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carrierwave-neo4j
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Navarro
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-20 00:00:00.000000000 Z
11
+ date: 2020-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: activesupport
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: '3.0'
20
- type: :runtime
18
+ version: '6.0'
19
+ name: activesupport
21
20
  prerelease: false
21
+ type: :runtime
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '3.0'
26
+ version: '6.0'
27
27
  - !ruby/object:Gem::Dependency
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - "~>"
31
+ - !ruby/object:Gem::Version
32
+ version: 9.6.0
28
33
  name: neo4j
34
+ prerelease: false
35
+ type: :runtime
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 9.6.0
41
+ - !ruby/object:Gem::Dependency
29
42
  requirement: !ruby/object:Gem::Requirement
30
43
  requirements:
31
44
  - - ">="
32
45
  - !ruby/object:Gem::Version
33
- version: '1.1'
34
- type: :runtime
46
+ version: '2.1'
47
+ name: carrierwave
35
48
  prerelease: false
49
+ type: :runtime
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
52
  - - ">="
39
53
  - !ruby/object:Gem::Version
40
- version: '1.1'
54
+ version: '2.1'
41
55
  - !ruby/object:Gem::Dependency
42
- name: carrierwave
43
56
  requirement: !ruby/object:Gem::Requirement
44
57
  requirements:
45
58
  - - "~>"
46
59
  - !ruby/object:Gem::Version
47
- version: '0.5'
48
- type: :runtime
60
+ version: '3.0'
61
+ name: rspec
49
62
  prerelease: false
63
+ type: :development
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
66
  - - "~>"
53
67
  - !ruby/object:Gem::Version
54
- version: '0.5'
68
+ version: '3.0'
55
69
  - !ruby/object:Gem::Dependency
56
- name: rspec
57
70
  requirement: !ruby/object:Gem::Requirement
58
71
  requirements:
59
- - - "~>"
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ name: rspec-its
76
+ prerelease: false
77
+ type: :development
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ requirement: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ name: webmock
90
+ prerelease: false
91
+ type: :development
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ requirement: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
60
101
  - !ruby/object:Gem::Version
61
- version: '2.0'
102
+ version: '0'
103
+ name: neo4j-rake_tasks
104
+ prerelease: false
62
105
  type: :development
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ requirement: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ name: rake
63
118
  prerelease: false
119
+ type: :development
64
120
  version_requirements: !ruby/object:Gem::Requirement
65
121
  requirements:
66
- - - "~>"
122
+ - - ">="
67
123
  - !ruby/object:Gem::Version
68
- version: '2.0'
124
+ version: '0'
69
125
  description: Neo4j support for Carrierwave
70
126
  email:
71
127
  - navarro@manapot.com.br
@@ -76,6 +132,7 @@ files:
76
132
  - ".gitignore"
77
133
  - ".rspec"
78
134
  - ".ruby-gemset"
135
+ - CHANGELOG.md
79
136
  - Gemfile
80
137
  - README.md
81
138
  - README.rdoc
@@ -84,13 +141,22 @@ files:
84
141
  - lib/carrierwave/neo4j.rb
85
142
  - lib/carrierwave/neo4j/uploader_converter.rb
86
143
  - lib/carrierwave/neo4j/version.rb
87
- - spec/fixtures/tarja.jpg
144
+ - spec/fixtures/neo4j.png
145
+ - spec/fixtures/ong.jpg
146
+ - spec/helpers/database_cleaner.rb
147
+ - spec/helpers/fake_book_migration.rb
148
+ - spec/helpers/fake_migrations.rb
149
+ - spec/helpers/fake_schema_migration.rb
150
+ - spec/helpers/fake_user_migration.rb
151
+ - spec/helpers/filesystem_cleaner.rb
152
+ - spec/neo4j_realistic_spec.rb
153
+ - spec/neo4j_sanity_spec.rb
88
154
  - spec/neo4j_spec.rb
89
155
  - spec/spec_helper.rb
90
- homepage: https://github.com/reu/carrierwave-neo4j
156
+ homepage: https://github.com/neo4jrb/carrierwave-neo4j
91
157
  licenses: []
92
158
  metadata: {}
93
- post_install_message:
159
+ post_install_message:
94
160
  rdoc_options: []
95
161
  require_paths:
96
162
  - lib
@@ -105,10 +171,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
171
  - !ruby/object:Gem::Version
106
172
  version: '0'
107
173
  requirements: []
108
- rubyforge_project: carrierwave_neo4j
109
- rubygems_version: 2.4.3
110
- signing_key:
174
+ rubyforge_project:
175
+ rubygems_version: 2.7.10
176
+ signing_key:
111
177
  specification_version: 4
112
178
  summary: Neo4j support for Carrierwave
113
179
  test_files: []
114
- has_rdoc:
Binary file