n4j 0.0.1.2 → 0.0.1.3
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/lib/n4j/version.rb +1 -1
- data/lib/tasks/n4j.rake +8 -9
- metadata +7 -7
data/lib/n4j/version.rb
CHANGED
data/lib/tasks/n4j.rake
CHANGED
@@ -56,10 +56,12 @@ namespace :n4j do
|
|
56
56
|
libdir = "#{libexec}/lib"
|
57
57
|
syslib = "#{libexec}/system/lib"
|
58
58
|
plugin_dir = "#{libexec}/plugins"
|
59
|
-
n4j_plugins = 'neo4j_plugins'
|
59
|
+
n4j_plugins = File.expand_path(File.dirname(__FILE__) + '../../../neo4j_plugins')
|
60
60
|
neo4j_home = "tmp/n4j/#{@environment}"
|
61
61
|
pid_file = "tmp/pids/n4j_#{@environment}_pid"
|
62
|
-
|
62
|
+
|
63
|
+
gem_templates = File.expand_path(File.dirname(__FILE__) + '../../../templates')
|
64
|
+
|
63
65
|
FileUtils.mkdir_p neo4j_home
|
64
66
|
FileUtils.mkdir_p "#{neo4j_home}/data/log"
|
65
67
|
FileUtils.mkdir_p 'tmp/pids'
|
@@ -69,16 +71,16 @@ namespace :n4j do
|
|
69
71
|
|
70
72
|
# system "cp lib/n4j/templates/neo4j.properties tmp/n4j/#{@environment}/"
|
71
73
|
# system "cp lib/n4j/templates/logging.properties tmp/n4j/#{@environment}/"
|
72
|
-
FileUtils.cp
|
73
|
-
FileUtils.cp
|
74
|
+
FileUtils.cp "#{gem_templates}/neo4j.properties", "tmp/n4j/#{@environment}/neo4j.properties"
|
75
|
+
FileUtils.cp "#{gem_templates}/logging.properties", "tmp/n4j/#{@environment}/logging.properties"
|
74
76
|
|
75
77
|
FileUtils.touch "#{neo4j_home}/data/log/console.log"
|
76
78
|
|
77
|
-
neo4j_server_properties = ERB.new(IO.read("
|
79
|
+
neo4j_server_properties = ERB.new(IO.read("#{gem_templates}/neo4j-server-#{@server_version}.properties")).result
|
78
80
|
neo4j_server_properties_path = "#{neo4j_home}/neo4j-server.properties"
|
79
81
|
File.open(neo4j_server_properties_path, 'w') {|f| f.write(neo4j_server_properties) }
|
80
82
|
|
81
|
-
neo4j_wrapper_conf = ERB.new(IO.read(
|
83
|
+
neo4j_wrapper_conf = ERB.new(IO.read("#{gem_templates}/neo4j-wrapper.conf")).result
|
82
84
|
neo4j_wrapper_conf_path = "#{neo4j_home}/neo4j-wrapper.conf"
|
83
85
|
File.open(neo4j_wrapper_conf_path, 'w') {|f| f.write(neo4j_wrapper_conf) }
|
84
86
|
|
@@ -120,7 +122,4 @@ namespace :n4j do
|
|
120
122
|
end
|
121
123
|
end
|
122
124
|
end
|
123
|
-
|
124
|
-
|
125
|
-
|
126
125
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: n4j
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.
|
4
|
+
version: 0.0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,7 +14,7 @@ default_executable:
|
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rest-client
|
17
|
-
requirement: &
|
17
|
+
requirement: &2157300980 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *2157300980
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: activesupport
|
28
|
-
requirement: &
|
28
|
+
requirement: &2157300560 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *2157300560
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: activemodel
|
39
|
-
requirement: &
|
39
|
+
requirement: &2157300140 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
version: '0'
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *2157300140
|
48
48
|
description: A little spiked out thing.
|
49
49
|
email:
|
50
50
|
- samsm@samsm.com
|