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

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,13 +1,23 @@
1
1
  require "bundler/gem_tasks"
2
2
 
3
+ def download_folder
4
+ abort "Please create a #{File.expand_path('tmp')} folder and copy the neo4j advanced 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
+
3
14
  def source_file
4
- gz_file = Dir.new('tmp').entries.find { |x| x =~ /gz$/ }
5
- File.expand_path("./tmp/#{gz_file}")
15
+ File.expand_path("./tmp/#{tar_file}")
6
16
  end
7
17
 
8
18
  def unpack_lib_dir
9
- gz_file = Dir.new('tmp').entries.find { |x| x =~ /gz$/ }
10
- dir = gz_file.gsub('-unix.tar.gz', '')
19
+ dir = tar_file.gsub('-unix.tar.gz', '')
20
+ dir = dir.gsub('-unix.tar', '')
11
21
  File.expand_path("./tmp/#{dir}/lib")
12
22
  end
13
23
 
@@ -18,9 +28,10 @@ end
18
28
  desc "Delete old Jar files"
19
29
  task :delete_old_jar do
20
30
  root = File.expand_path("./lib/neo4j-advanced/jars")
31
+ system "mkdir -p #{root}" unless File.exist?(root)
21
32
  files = Dir.new(root).entries.find_all{|f| f =~ /\.jar/}
22
33
  files.each do |file|
23
- system "rm #{root}/#{file}"
34
+ system "git rm #{root}/#{file}"
24
35
  end
25
36
  end
26
37
 
@@ -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-advanced/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 Advanced
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-advanced
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 Java Jar files for the Neo4j Advanced edition, adding advanced monitoring \xE2\x80\x93 licensed under the AGPL, see http://neo4j.org/licensing-guide/ "
@@ -30,7 +30,7 @@ files:
30
30
  - README.md
31
31
  - Rakefile
32
32
  - lib/neo4j-advanced.rb
33
- - lib/neo4j-advanced/jars/neo4j-management-1.8.M06.jar
33
+ - lib/neo4j-advanced/jars/neo4j-management-1.8.M07.jar
34
34
  - lib/neo4j-advanced/version.rb
35
35
  - neo4j-advanced.gemspec
36
36
  - spec/neo4j_spec.rb
@@ -48,9 +48,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
48
48
  requirements:
49
49
  - - ">="
50
50
  - !ruby/object:Gem::Version
51
- hash: 2
52
- segments:
53
- - 0
54
51
  version: "0"
55
52
  required_rubygems_version: !ruby/object:Gem::Requirement
56
53
  none: false
@@ -64,7 +61,7 @@ rubyforge_project: neo4j-advanced
64
61
  rubygems_version: 1.8.15
65
62
  signing_key:
66
63
  specification_version: 3
67
- summary: The neo4j Advanced edition v1.8.M06 JAR files
64
+ summary: The neo4j Advanced edition v1.8.M07 JAR files
68
65
  test_files:
69
66
  - spec/neo4j_spec.rb
70
67
  - spec/spec_helper.rb