neo4j-community 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 057617f30efb4b50d826c9bffcd79fb664bf523c
4
+ data.tar.gz: efb33864b4d5a74a24b3487170265c6838badaa1
5
+ SHA512:
6
+ metadata.gz: d7c6cc8ff4aa6e8c68b8570004ea28e88c2e80f773129c0800be69ea341afc1a81b1b11a7566ae7b32e6838e4b6277e03bdc42e98b76bca071edf7524cdb01c1
7
+ data.tar.gz: 3e19b959be539fd3db5cb50e88428da4f31c52135660e26b7e89228d8ac972113e00d9cfade8065631191da5ca121cd04309bcbaf35dc6d449be8dd55883df11
data/.gitignore ADDED
@@ -0,0 +1,6 @@
1
+ *.gem
2
+ *.swp
3
+ .bundle
4
+ Gemfile.lock
5
+ pkg/*
6
+ .DS_Store
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in neo4j-community.gemspec
4
+ gemspec
data/README.md ADDED
@@ -0,0 +1,33 @@
1
+ JAR files for the neo4j Graph Database
2
+ ==================================================
3
+
4
+ This gem provides a set of jar files of the Neo4j Graph Database.
5
+
6
+ To use it: `require 'neo4j-community'`
7
+
8
+ It does also include test jars (neo4j impermanent db) which are loaded by `Neo4j::Community.load_test_jars!`
9
+
10
+ How to Release
11
+ ==================================================
12
+
13
+ 1. cd neo4j-community
14
+ 2. git clean -df # make sure there are no local file
15
+ 3. rm -rf tmp # make sure old tar file is deleted
16
+ 4. mkdir tmp
17
+ 5. Download tar/gz file from http://neo4j.org/download
18
+ 6. cp ~/Download/neo4j-community-VERSION to tmp
19
+ 7. rake upgrade
20
+ 8. edit the lib/neo4j-community/version file
21
+ 9. rake build
22
+
23
+ There should now be a gem file available in the pkg folder.
24
+ gem install pkg/neo4j-community-VERSION-java.gem
25
+
26
+
27
+ License
28
+ ==================================================
29
+
30
+ This gem is MIT licensed.
31
+
32
+ However the jars included are licensed by [Neo4j](http://neo4j.org).
33
+
data/Rakefile ADDED
@@ -0,0 +1,96 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ def download_folder
4
+ abort "Please create a #{File.expand_path('tmp')} folder and copy the neo4j community gz/tar file downloaded from http://neo4j.org/download" unless File.directory?('tmp')
5
+ Dir.new('tmp')
6
+ end
7
+
8
+ def tar_file
9
+ download_folder.entries.find { |x| x =~ /gz$/ || x =~ /tar$/}.tap do |f|
10
+ abort "expected a neo4j .gz/.tar file in folder #{File.expand_path(download_folder.path)}" unless f
11
+ end
12
+ end
13
+
14
+ def source_file
15
+ File.expand_path("./tmp/#{tar_file}")
16
+ end
17
+
18
+ def unpack_lib_dir
19
+ dir = tar_file.gsub('-unix.tar.gz', '')
20
+ dir = dir.gsub('-unix.tar', '')
21
+ File.expand_path("./tmp/#{dir}/lib")
22
+ end
23
+
24
+ def jar_files_to_copy
25
+ Dir.new(unpack_lib_dir).entries.find_all {|x| x =~ /\.jar/ && x !~ /neo4j-shell(.*)jar/ && x !~ /jline(.*)jar/ }
26
+ end
27
+
28
+ def system_unpack_lib_dir
29
+ dir = tar_file.gsub('-unix.tar.gz', '')
30
+ dir = dir.gsub('-unix.tar', '')
31
+ File.expand_path("./tmp/#{dir}/system/lib")
32
+ end
33
+
34
+ def system_jars
35
+ Dir.new(system_unpack_lib_dir).entries.find_all {|x| x =~ /concurrentlinkedhashmap-lru/}
36
+ end
37
+
38
+ desc "List System Jars"
39
+ task :list do
40
+ puts system_jars.inspect
41
+ end
42
+
43
+
44
+ desc "Download Neo4j Distro"
45
+ task :download, :version do |_, params|
46
+ version = params[:version]
47
+ download_site = "http://www.neo4j.org/download_thanks?edition=community&release=#{version}&platform=unix&packaging=zip&architecture=x32"
48
+
49
+ # system "open #{download_site}"
50
+ filename = "neo4j-community-#{version}-unix.tar.gz"
51
+ system "mv ~/Downloads/#{filename} ./tmp"
52
+ end
53
+
54
+ desc "Delete old Jar files"
55
+ task :delete_old_jar do
56
+ root = File.expand_path("./lib/neo4j-community/jars")
57
+ files = Dir.new(root).entries.find_all{|f| f =~ /\.jar/}
58
+ files.each do |file|
59
+ system "git rm #{root}/#{file}"
60
+ end
61
+ end
62
+
63
+ def version
64
+ @version ||= tar_file.match(/\d.\d.([^-]*)/)[0]
65
+ end
66
+
67
+ def download_test_jar
68
+ file = "neo4j-kernel-#{version}-tests.jar"
69
+ #puts "DOWNLOAD TEST JAR #{file} from http://repo.typesafe.com"
70
+ # neo4j-kernel-2.1.0-M01-tests.jar
71
+ remote_file = "http://search.maven.org/remotecontent?filepath=org/neo4j/neo4j-kernel/#{version}/#{file}"
72
+
73
+ puts "Download #{remote_file} to #{unpack_lib_dir}"
74
+ system "wget #{remote_file} -O #{file}"
75
+ # system "wget http://repo.typesafe.com/typesafe/repo/org/neo4j/neo4j-kernel/#{version}/#{file}"
76
+ system "mv #{file} #{unpack_lib_dir}"
77
+ end
78
+
79
+ desc "Upgrade using downloaded ...tar.gz file in ./tmp"
80
+ task :upgrade => [:delete_old_jar, :prod_jars]
81
+
82
+ task :prod_jars do
83
+ system "cd tmp; tar xf #{source_file}"
84
+ jars = File.expand_path("./lib/neo4j-community/jars")
85
+ FileUtils.mkdir_p(jars)
86
+ test_jars = File.expand_path("./lib/neo4j-community/test-jars")
87
+
88
+ download_test_jar
89
+
90
+ jar_files_to_copy.each {|f| system "cp #{unpack_lib_dir}/#{f} #{jars}; git add #{jars}/#{f}" unless f =~ /tests/}
91
+ system_jars.each {|f| system "cp #{system_unpack_lib_dir}/#{f} #{jars}; git add #{jars}/#{f}" unless f =~ /tests/}
92
+
93
+ system "mkdir -p #{test_jars}"
94
+
95
+ jar_files_to_copy.each {|f| system "cp #{unpack_lib_dir}/#{f} #{test_jars}; git add #{test_jars}/#{f}" if f =~ /tests/}
96
+ end
@@ -0,0 +1,35 @@
1
+ require "neo4j-community/version"
2
+
3
+
4
+ module Neo4j
5
+ module Community
6
+
7
+ def self.jars_root
8
+ File.join("#{File.dirname(__FILE__)}", "neo4j-community", "jars")
9
+ end
10
+
11
+ def self.test_jars_root
12
+ File.join("#{File.dirname(__FILE__)}", "neo4j-community", "test-jars")
13
+ end
14
+
15
+ def self.load_jars!
16
+ require 'java'
17
+ Dir["#{jars_root}/*.jar"].each {|jar| require jar }
18
+ end
19
+
20
+ def self.load_test_jars!
21
+ require 'java'
22
+ Dir["#{test_jars_root}/*.jar"].each {|jar| require jar }
23
+ end
24
+
25
+ # This can be used by dependent gems to verify the Database versions have no mismatch.
26
+ def self.ensure_version!(other, edition)
27
+ return if ::Neo4j::Community::NEO_VERSION == other
28
+ raise "Mismatch of Neo4j JAR versions. Already loaded neo4j-community JAR files '#{::Neo4j::Community::NEO_VERSION}' but neo4j-#{edition}: '#{other}'."
29
+ end
30
+
31
+ end
32
+ end
33
+
34
+ Neo4j::Community.load_jars!
35
+
@@ -0,0 +1,6 @@
1
+ module Neo4j
2
+ module Community
3
+ VERSION = "2.0.1"
4
+ NEO_VERSION = "2.0.1"
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ module Neo4j
2
+ module Community
3
+ VERSION = "2.0.0"
4
+ NEO_VERSION = "2.0.0"
5
+ end
6
+ end
data/lib/neo4j-jars.rb ADDED
@@ -0,0 +1 @@
1
+ require "neo4j-community"
@@ -0,0 +1,27 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "neo4j-community/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "neo4j-community"
7
+ s.version = Neo4j::Community::VERSION
8
+ s.authors = ["Dmytrii Nagirniak", "Andreas Ronge"]
9
+ s.email = ["dnagir@gmail.com", "andreas.ronge@gmail.com"]
10
+ s.homepage = "https://github.com/dnagir/neo4j-community"
11
+ s.summary = "The neo4j Community edition v#{Neo4j::Community::NEO_VERSION} JAR files"
12
+ s.description = "The Java Jar files for the Neo4j Community, a high performance, fully ACID transactional graph database – licensed under the GPL, see license - http://neo4j.org/licensing-guide/ "
13
+
14
+ s.rubyforge_project = "neo4j-community"
15
+
16
+ s.files = `git ls-files`.split("\n")
17
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
+ s.require_paths = ["lib"]
20
+
21
+ # s.platform = 'java'
22
+
23
+ # specify any dependencies here; for example:
24
+ s.add_development_dependency "rake"
25
+ s.add_development_dependency "jeweler"
26
+ # s.add_runtime_dependency "rest-client"
27
+ end
metadata ADDED
@@ -0,0 +1,101 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: neo4j-community
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Dmytrii Nagirniak
8
+ - Andreas Ronge
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2014-04-13 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ version_requirements: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - '>='
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
21
+ requirement: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - '>='
24
+ - !ruby/object:Gem::Version
25
+ version: '0'
26
+ prerelease: false
27
+ type: :development
28
+ - !ruby/object:Gem::Dependency
29
+ name: jeweler
30
+ version_requirements: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - '>='
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - '>='
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ prerelease: false
41
+ type: :development
42
+ description: 'The Java Jar files for the Neo4j Community, a high performance, fully
43
+ ACID transactional graph database – licensed under the GPL, see license - http://neo4j.org/licensing-guide/ '
44
+ email:
45
+ - dnagir@gmail.com
46
+ - andreas.ronge@gmail.com
47
+ executables: []
48
+ extensions: []
49
+ extra_rdoc_files: []
50
+ files:
51
+ - .gitignore
52
+ - Gemfile
53
+ - README.md
54
+ - Rakefile
55
+ - lib/neo4j-community.rb
56
+ - lib/neo4j-community/jars/concurrentlinkedhashmap-lru-1.3.1.jar
57
+ - lib/neo4j-community/jars/geronimo-jta_1.1_spec-1.1.1.jar
58
+ - lib/neo4j-community/jars/lucene-core-3.6.2.jar
59
+ - lib/neo4j-community/jars/neo4j-cypher-2.0.1.jar
60
+ - lib/neo4j-community/jars/neo4j-cypher-commons-2.0.1.jar
61
+ - lib/neo4j-community/jars/neo4j-cypher-compiler-1.9-2.0.1.jar
62
+ - lib/neo4j-community/jars/neo4j-cypher-compiler-2.0-2.0.1.jar
63
+ - lib/neo4j-community/jars/neo4j-graph-algo-2.0.1.jar
64
+ - lib/neo4j-community/jars/neo4j-graph-matching-2.0.1.jar
65
+ - lib/neo4j-community/jars/neo4j-jmx-2.0.1.jar
66
+ - lib/neo4j-community/jars/neo4j-kernel-2.0.1.jar
67
+ - lib/neo4j-community/jars/neo4j-lucene-index-2.0.1.jar
68
+ - lib/neo4j-community/jars/neo4j-udc-2.0.1.jar
69
+ - lib/neo4j-community/jars/parboiled-core-1.1.6.jar
70
+ - lib/neo4j-community/jars/parboiled-scala_2.10-1.1.6.jar
71
+ - lib/neo4j-community/jars/scala-library-2.10.3.jar
72
+ - lib/neo4j-community/jars/server-api-2.0.1.jar
73
+ - lib/neo4j-community/test-jars/neo4j-kernel-2.0.1-tests.jar
74
+ - lib/neo4j-community/version.rb
75
+ - lib/neo4j-community/version.rb~
76
+ - lib/neo4j-jars.rb
77
+ - neo4j-community.gemspec
78
+ homepage: https://github.com/dnagir/neo4j-community
79
+ licenses: []
80
+ metadata: {}
81
+ post_install_message:
82
+ rdoc_options: []
83
+ require_paths:
84
+ - lib
85
+ required_ruby_version: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ required_rubygems_version: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - '>='
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
95
+ requirements: []
96
+ rubyforge_project: neo4j-community
97
+ rubygems_version: 2.2.2
98
+ signing_key:
99
+ specification_version: 4
100
+ summary: The neo4j Community edition v2.0.1 JAR files
101
+ test_files: []