neo4j-enterprise 1.8.M06-java → 1.8.M07-java

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.
data/README.md CHANGED
@@ -3,20 +3,24 @@ JAR files for the neo4j Graph Database
3
3
 
4
4
  This gem provides a set of jar files of the Neo4j Graph Database.
5
5
 
6
- To use it: `require 'neo4j-jars'`
6
+ To use it: `require 'neo4j-enterprise'`
7
7
 
8
8
  It can be used directly but the intention is to use it with [neo4j.rb](https://github.com/andreasronge/neo4j).
9
9
 
10
- Versioning
10
+ How to Release
11
11
  ==================================================
12
12
 
13
- The major and minor versions of the gem correspond to the version of the database.
14
- The patch version is different.
15
-
16
- That means:
17
-
18
- - if you need `1.6`, use `~> 1.6.0` in the Gemfile. It will always update to the latest version of 1.6 of the database.
19
- - if you need `1.6.M02`, then you will need to find the appropriate gem version on the [RubyGems](http://rubygems.org) and lock it (using `= 1.6.25` for example). But it will always be `1.6.xxx`.
13
+ 1. cd neo4j-enterprise
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-enterprise-VERSION to tmp
19
+ 7. rake upgrade
20
+ 8. edit the lib/neo4j-enterprise/version file
21
+
22
+ There should now be a gem file available in the pkg folder.
23
+ gem install pkg/neo4j-enterprise-VERSION-java.gem
20
24
 
21
25
  License
22
26
  ==================================================
data/Rakefile CHANGED
@@ -1,13 +1,24 @@
1
1
  require "bundler/gem_tasks"
2
2
 
3
+
4
+ def download_folder
5
+ abort "Please create a #{File.expand_path('tmp')} folder and copy the neo4j enterprise gz/tar file downloaded from http://neo4j.org/download" unless File.directory?('tmp')
6
+ Dir.new('tmp')
7
+ end
8
+
9
+ def tar_file
10
+ download_folder.entries.find { |x| x =~ /gz$/ || x =~ /tar$/}.tap do |f|
11
+ abort "expected a neo4j .gz/.tar file in folder #{File.expand_path(download_folder.path)}" unless f
12
+ end
13
+ end
14
+
3
15
  def source_file
4
- gz_file = Dir.new('tmp').entries.find { |x| x =~ /gz$/ }
5
- File.expand_path("./tmp/#{gz_file}")
16
+ File.expand_path("./tmp/#{tar_file}")
6
17
  end
7
18
 
8
19
  def unpack_lib_dir
9
- gz_file = Dir.new('tmp').entries.find { |x| x =~ /gz$/ }
10
- dir = gz_file.gsub('-unix.tar.gz', '')
20
+ dir = tar_file.gsub('-unix.tar.gz', '')
21
+ dir = dir.gsub('-unix.tar', '')
11
22
  File.expand_path("./tmp/#{dir}/lib")
12
23
  end
13
24
 
@@ -36,5 +47,10 @@ desc "Upgrade using downloaded ...tar.gz file in ./tmp"
36
47
  task :upgrade => [:delete_old_jar] do
37
48
  system "cd tmp; tar xf #{source_file}"
38
49
  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)}
50
+ system "mkdir -p #{jars}"
51
+ jar_files_to_copy.each do |f|
52
+ next unless include_jar?(f)
53
+ system "cp #{unpack_lib_dir}/#{f} #{jars}/"
54
+ system "git add -f #{jars}/#{f}"
55
+ end
40
56
  end
@@ -1,6 +1,6 @@
1
1
  module Neo4j
2
2
  module Enterprise
3
- VERSION = "1.8.M06"
4
- NEO_VERSION = "1.8.M06"
3
+ VERSION = "1.8.M07"
4
+ NEO_VERSION = "1.8.M07"
5
5
  end
6
6
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: neo4j-enterprise
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: 4
5
- version: 1.8.M06
5
+ version: 1.8.M07
6
6
  platform: java
7
7
  authors:
8
8
  - Dmytrii Nagirniak
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2012-08-05 00:00:00 Z
14
+ date: 2012-08-13 00:00:00 Z
15
15
  dependencies: []
16
16
 
17
17
  description: "The Neo4j Enterprise Jar files, adding online backup and High Availability clustering \xE2\x80\x93 licensed under AGPL, see http://neo4j.org/licensing-guide/"
@@ -31,9 +31,9 @@ files:
31
31
  - Rakefile
32
32
  - lib/neo4j-enterprise.rb
33
33
  - lib/neo4j-enterprise/jars/log4j-1.2.16.jar
34
- - lib/neo4j-enterprise/jars/neo4j-backup-1.8.M06.jar
35
- - lib/neo4j-enterprise/jars/neo4j-com-1.8.M06.jar
36
- - lib/neo4j-enterprise/jars/neo4j-ha-1.8.M06.jar
34
+ - lib/neo4j-enterprise/jars/neo4j-backup-1.8.M07.jar
35
+ - lib/neo4j-enterprise/jars/neo4j-com-1.8.M07.jar
36
+ - lib/neo4j-enterprise/jars/neo4j-ha-1.8.M07.jar
37
37
  - lib/neo4j-enterprise/jars/org.apache.servicemix.bundles.netty-3.2.5.Final_1.jar
38
38
  - lib/neo4j-enterprise/jars/slf4j-api-1.6.2.jar
39
39
  - lib/neo4j-enterprise/jars/zookeeper-3.3.2.jar
@@ -65,6 +65,6 @@ rubyforge_project: neo4j-enterprise
65
65
  rubygems_version: 1.8.15
66
66
  signing_key:
67
67
  specification_version: 3
68
- summary: The neo4j Enterprise edition v1.8.M06 JAR files
68
+ summary: The neo4j Enterprise edition v1.8.M07 JAR files
69
69
  test_files: []
70
70