neo4j-enterprise 1.6.0.alpha-java → 1.6.1.alpha.1-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. data/Rakefile +39 -0
  2. data/lib/neo4j-enterprise.rb +4 -2
  3. data/lib/neo4j-enterprise/jars/log4j-1.2.16.jar +0 -0
  4. data/lib/neo4j-enterprise/jars/{neo4j-backup-1.6.M02.jar → neo4j-backup-1.6.1.jar} +0 -0
  5. data/lib/neo4j-enterprise/jars/neo4j-com-1.6.1.jar +0 -0
  6. data/lib/neo4j-enterprise/jars/{neo4j-enterprise-1.6.M02.jar → neo4j-enterprise-1.6.1.jar} +0 -0
  7. data/lib/neo4j-enterprise/jars/neo4j-ha-1.6.1.jar +0 -0
  8. data/lib/neo4j-enterprise/version.rb +2 -2
  9. data/neo4j-enterprise.gemspec +3 -1
  10. metadata +33 -26
  11. data/lib/neo4j-enterprise/jars/geronimo-jta_1.1_spec-1.1.1.jar +0 -0
  12. data/lib/neo4j-enterprise/jars/lucene-core-3.1.0.jar +0 -0
  13. data/lib/neo4j-enterprise/jars/neo4j-advanced-1.6.M02.jar +0 -0
  14. data/lib/neo4j-enterprise/jars/neo4j-com-1.6.M02.jar +0 -0
  15. data/lib/neo4j-enterprise/jars/neo4j-cypher-1.6.M02.jar +0 -0
  16. data/lib/neo4j-enterprise/jars/neo4j-graph-algo-1.6.M02.jar +0 -0
  17. data/lib/neo4j-enterprise/jars/neo4j-graph-matching-1.6.M02.jar +0 -0
  18. data/lib/neo4j-enterprise/jars/neo4j-ha-1.6.M02.jar +0 -0
  19. data/lib/neo4j-enterprise/jars/neo4j-jmx-1.6.M02.jar +0 -0
  20. data/lib/neo4j-enterprise/jars/neo4j-kernel-1.6.M02.jar +0 -0
  21. data/lib/neo4j-enterprise/jars/neo4j-lucene-index-1.6.M02.jar +0 -0
  22. data/lib/neo4j-enterprise/jars/neo4j-management-1.6.M02.jar +0 -0
  23. data/lib/neo4j-enterprise/jars/neo4j-shell-1.6.M02.jar +0 -0
  24. data/lib/neo4j-enterprise/jars/neo4j-udc-1.6.M02.jar +0 -0
  25. data/lib/neo4j-enterprise/jars/org.apache.servicemix.bundles.jline-0.9.94_1.jar +0 -0
  26. data/lib/neo4j-enterprise/jars/scala-library-2.9.0-1.jar +0 -0
  27. data/lib/neo4j-enterprise/jars/server-api-1.6.M02.jar +0 -0
  28. data/lib/neo4j-jars.rb +0 -2
data/Rakefile CHANGED
@@ -1 +1,40 @@
1
1
  require "bundler/gem_tasks"
2
+
3
+ def source_file
4
+ gz_file = Dir.new('tmp').entries.find { |x| x =~ /gz$/ }
5
+ File.expand_path("./tmp/#{gz_file}")
6
+ end
7
+
8
+ def unpack_lib_dir
9
+ gz_file = Dir.new('tmp').entries.find { |x| x =~ /gz$/ }
10
+ dir = gz_file.gsub('-unix.tar.gz', '')
11
+ File.expand_path("./tmp/#{dir}/lib")
12
+ end
13
+
14
+ def jar_files_to_copy
15
+ Dir.new(unpack_lib_dir).entries.find_all {|x| x =~ /\.jar/}
16
+ end
17
+
18
+ desc "Delete old Jar files"
19
+ task :delete_old_jar do
20
+ root = File.expand_path("./lib/neo4j-enterprise/jars")
21
+ files = Dir.new(root).entries.find_all{|f| f =~ /\.jar/}
22
+ files.each do |file|
23
+ system "git rm #{root}/#{file}" unless file.start_with?('log4j')
24
+ end
25
+ end
26
+
27
+ def include_jar?(file)
28
+ include_only = %w[log4j neo4j-backup neo4j-com neo4j-enterprise neo4j-ha org.apache.servicemix.bundles.netty slf4j zookeeper]
29
+ include_only.each do |i|
30
+ return true if file.start_with?(i)
31
+ end
32
+ false
33
+ end
34
+
35
+ desc "Upgrade using downloaded ...tar.gz file in ./tmp"
36
+ task :upgrade => [:delete_old_jar] do
37
+ system "cd tmp; tar xf #{source_file}"
38
+ jars = File.expand_path("./lib/neo4j-enterprise/jars")
39
+ jar_files_to_copy.each {|f| system "cp #{unpack_lib_dir}/#{f} #{jars}" if include_jar?(f)}
40
+ end
@@ -4,12 +4,14 @@ module Neo4j
4
4
  module Enterprise
5
5
 
6
6
  def self.jars_root
7
- "#{File.dirname(__FILE__)}/neo4j-enterprise/jars"
7
+ File.join("#{File.dirname(__FILE__)}", "neo4j-enterprise", "jars")
8
8
  end
9
9
 
10
10
  def self.load_jars!
11
11
  require 'java'
12
- puts jars_root
12
+ require 'neo4j-community'
13
+ require 'neo4j-advanced'
14
+ ::Neo4j::Community.ensure_version!(Enterprise::NEO_VERSION, 'enterprise')
13
15
  Dir["#{jars_root}/*.jar"].each {|jar| require jar }
14
16
  end
15
17
 
@@ -1,6 +1,6 @@
1
1
  module Neo4j
2
2
  module Enterprise
3
- VERSION = "1.6.0.alpha"
4
- NEO_VERSION = "1.6.M02"
3
+ VERSION = "1.6.1.alpha.1"
4
+ NEO_VERSION = "1.6.1"
5
5
  end
6
6
  end
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
9
9
  s.email = ["dnagir@gmail.com", "andreas.ronge@gmail.com"]
10
10
  s.homepage = "https://github.com/dnagir/neo4j-enterprise"
11
11
  s.summary = "The neo4j Enterprise edition v#{Neo4j::Enterprise::NEO_VERSION} JAR files"
12
- s.description = s.summary
12
+ s.description = "The Neo4j Enterprise Jar files, adding online backup and High Availability clustering – licensed under AGPL, see http://neo4j.org/licensing-guide/"
13
13
 
14
14
  s.rubyforge_project = "neo4j-enterprise"
15
15
 
@@ -19,6 +19,8 @@ Gem::Specification.new do |s|
19
19
  s.require_paths = ["lib"]
20
20
 
21
21
  s.platform = 'java'
22
+ s.add_runtime_dependency "neo4j-advanced", "~> 1.6.0.alpha.9"
23
+ s.add_runtime_dependency "neo4j-community" # Just making it explicit
22
24
 
23
25
  # specify any dependencies here; for example:
24
26
  # s.add_development_dependency "rspec"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neo4j-enterprise
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0.alpha
4
+ version: 1.6.1.alpha.1
5
5
  prerelease: 6
6
6
  platform: java
7
7
  authors:
@@ -10,9 +10,32 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-01-10 00:00:00.000000000 Z
14
- dependencies: []
15
- description: The neo4j Enterprise edition v1.6.M02 JAR files
13
+ date: 2012-02-27 00:00:00.000000000Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: neo4j-advanced
17
+ requirement: &15439120 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ~>
21
+ - !ruby/object:Gem::Version
22
+ version: 1.6.0.alpha.9
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: *15439120
26
+ - !ruby/object:Gem::Dependency
27
+ name: neo4j-community
28
+ requirement: &15548420 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: *15548420
37
+ description: The Neo4j Enterprise Jar files, adding online backup and High Availability
38
+ clustering – licensed under AGPL, see http://neo4j.org/licensing-guide/
16
39
  email:
17
40
  - dnagir@gmail.com
18
41
  - andreas.ronge@gmail.com
@@ -25,30 +48,15 @@ files:
25
48
  - README.md
26
49
  - Rakefile
27
50
  - lib/neo4j-enterprise.rb
28
- - lib/neo4j-enterprise/jars/geronimo-jta_1.1_spec-1.1.1.jar
29
- - lib/neo4j-enterprise/jars/lucene-core-3.1.0.jar
30
- - lib/neo4j-enterprise/jars/neo4j-advanced-1.6.M02.jar
31
- - lib/neo4j-enterprise/jars/neo4j-backup-1.6.M02.jar
32
- - lib/neo4j-enterprise/jars/neo4j-com-1.6.M02.jar
33
- - lib/neo4j-enterprise/jars/neo4j-cypher-1.6.M02.jar
34
- - lib/neo4j-enterprise/jars/neo4j-enterprise-1.6.M02.jar
35
- - lib/neo4j-enterprise/jars/neo4j-graph-algo-1.6.M02.jar
36
- - lib/neo4j-enterprise/jars/neo4j-graph-matching-1.6.M02.jar
37
- - lib/neo4j-enterprise/jars/neo4j-ha-1.6.M02.jar
38
- - lib/neo4j-enterprise/jars/neo4j-jmx-1.6.M02.jar
39
- - lib/neo4j-enterprise/jars/neo4j-kernel-1.6.M02.jar
40
- - lib/neo4j-enterprise/jars/neo4j-lucene-index-1.6.M02.jar
41
- - lib/neo4j-enterprise/jars/neo4j-management-1.6.M02.jar
42
- - lib/neo4j-enterprise/jars/neo4j-shell-1.6.M02.jar
43
- - lib/neo4j-enterprise/jars/neo4j-udc-1.6.M02.jar
44
- - lib/neo4j-enterprise/jars/org.apache.servicemix.bundles.jline-0.9.94_1.jar
51
+ - lib/neo4j-enterprise/jars/log4j-1.2.16.jar
52
+ - lib/neo4j-enterprise/jars/neo4j-backup-1.6.1.jar
53
+ - lib/neo4j-enterprise/jars/neo4j-com-1.6.1.jar
54
+ - lib/neo4j-enterprise/jars/neo4j-enterprise-1.6.1.jar
55
+ - lib/neo4j-enterprise/jars/neo4j-ha-1.6.1.jar
45
56
  - lib/neo4j-enterprise/jars/org.apache.servicemix.bundles.netty-3.2.5.Final_1.jar
46
- - lib/neo4j-enterprise/jars/scala-library-2.9.0-1.jar
47
- - lib/neo4j-enterprise/jars/server-api-1.6.M02.jar
48
57
  - lib/neo4j-enterprise/jars/slf4j-api-1.6.1.jar
49
58
  - lib/neo4j-enterprise/jars/zookeeper-3.3.2.jar
50
59
  - lib/neo4j-enterprise/version.rb
51
- - lib/neo4j-jars.rb
52
60
  - neo4j-enterprise.gemspec
53
61
  homepage: https://github.com/dnagir/neo4j-enterprise
54
62
  licenses: []
@@ -73,6 +81,5 @@ rubyforge_project: neo4j-enterprise
73
81
  rubygems_version: 1.8.10
74
82
  signing_key:
75
83
  specification_version: 3
76
- summary: The neo4j Enterprise edition v1.6.M02 JAR files
84
+ summary: The neo4j Enterprise edition v1.6.1 JAR files
77
85
  test_files: []
78
- has_rdoc:
@@ -1,2 +0,0 @@
1
- require 'neo4j-enterprise'
2
-