stokesdrift 0.1.4
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 +7 -0
- data/bin/stokesdrift +43 -0
- data/lib/c3p0-0.9.1.1.jar +0 -0
- data/lib/cdi-api-1.2.jar +0 -0
- data/lib/groovy-all-2.1.8.jar +0 -0
- data/lib/guava-13.0.1.jar +0 -0
- data/lib/javax.el-api-3.0.0.jar +0 -0
- data/lib/javax.inject-1.jar +0 -0
- data/lib/javax.interceptor-api-1.2.jar +0 -0
- data/lib/jboss-annotations-api_1.2_spec-1.0.0.Final.jar +0 -0
- data/lib/jboss-classfilewriter-1.0.4.Final.jar +0 -0
- data/lib/jboss-el-api_3.0_spec-1.0.0.Alpha1.jar +0 -0
- data/lib/jboss-interceptors-api_1.2_spec-1.0.0.Alpha3.jar +0 -0
- data/lib/jboss-logging-3.1.4.GA.jar +0 -0
- data/lib/jboss-servlet-api_3.1_spec-1.0.0.Final.jar +0 -0
- data/lib/jruby-complete-1.7.13.jar +0 -0
- data/lib/jruby-rack-1.1.17.jar +0 -0
- data/lib/quartz-2.2.1.jar +0 -0
- data/lib/slf4j-api-1.6.6.jar +0 -0
- data/lib/snakeyaml-1.14.jar +0 -0
- data/lib/stokesdrift/registry.rb +35 -0
- data/lib/stokesdrift/server.rb +19 -0
- data/lib/stokesdrift-0.1.4-SNAPSHOT-javadoc.jar +0 -0
- data/lib/stokesdrift-0.1.4-SNAPSHOT-javadoc.jar.asc +11 -0
- data/lib/stokesdrift-0.1.4-SNAPSHOT-sources.jar +0 -0
- data/lib/stokesdrift-0.1.4-SNAPSHOT-sources.jar.asc +11 -0
- data/lib/stokesdrift-0.1.4-SNAPSHOT.jar +0 -0
- data/lib/stokesdrift-0.1.4-SNAPSHOT.jar.asc +11 -0
- data/lib/stokesdrift.rb +9 -0
- data/lib/undertow-core-1.0.1.Final.jar +0 -0
- data/lib/undertow-servlet-1.0.1.Final.jar +0 -0
- data/lib/weld-api-2.2.SP3.jar +0 -0
- data/lib/weld-core-impl-2.2.4.Final.jar +0 -0
- data/lib/weld-se-core-2.2.4.Final.jar +0 -0
- data/lib/weld-spi-2.2.SP3.jar +0 -0
- data/lib/xnio-api-3.2.0.Final.jar +0 -0
- data/lib/xnio-nio-3.2.0.Final.jar +0 -0
- data/scripts/server_startup.sh +60 -0
- metadata +138 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 24a4f26072cee9f1aa39d8f443fc58609e5b7216
|
4
|
+
data.tar.gz: c18e751302ed5473f91b36bb67cfae6ecb45056d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b80b655e93f156277650f159794b2cd2134461f75b39a31e9292c2f0bed1150ec8aff732f4463b8f32cbd9869ecf58315ba3934ae63f3a468c6c5ee0c5ab16a5
|
7
|
+
data.tar.gz: 3dd4ed8784f296233582ed6eba729b943342034cff07d21a2bdba1cf69237b83f79a6bb87a4e706a77f30cc068ed26a26e62b291ed0790e2fd2e9b14238ee0ca
|
data/bin/stokesdrift
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
#!/usr/bin/env jruby
|
2
|
+
|
3
|
+
require 'java'
|
4
|
+
|
5
|
+
STOKESDRIFT_DIR = File.join(File.expand_path(File.dirname(__FILE__)), '..')
|
6
|
+
STOKESDRIFT_LIB_DIR = File.join(STOKESDRIFT_DIR, 'lib')
|
7
|
+
|
8
|
+
|
9
|
+
module JRubyProcess
|
10
|
+
require 'ffi'
|
11
|
+
extend FFI::Library
|
12
|
+
ffi_lib FFI::Library::LIBC
|
13
|
+
attach_function :fork, [], :int
|
14
|
+
end
|
15
|
+
|
16
|
+
# options = "#{options} -Dfile.encoding=UTF-8" if java.lang.System.getProperty('file.encoding') == 'MacRoman'
|
17
|
+
# ENV['JAVA_OPTS'] ||= "-Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true"
|
18
|
+
# ENV['JAVA_OPTS'] = "#{ENV['JAVA_OPTS']} #{options}"
|
19
|
+
|
20
|
+
|
21
|
+
ENV['STOKESDRIFT_LIB_DIR'] = STOKESDRIFT_LIB_DIR
|
22
|
+
ENV['STOKESDRIFT_DIR'] = STOKESDRIFT_DIR
|
23
|
+
|
24
|
+
# java::lang::System.setProperty("STOKESDRIFT_LIB_DIR", STOKESDRIFT_LIB_DIR)
|
25
|
+
|
26
|
+
# $:.unshift(STOKESDRIFT_LIB_DIR)
|
27
|
+
|
28
|
+
# jar_lib_dir = Dir[File.join(STOKESDRIFT_LIB_DIR, '*.jar')]
|
29
|
+
|
30
|
+
# jar_lib_dir.each do |f|
|
31
|
+
# next if f =~ /jruby-complete.+/ || f =~ /.+sources.jar/
|
32
|
+
# require f
|
33
|
+
# end
|
34
|
+
|
35
|
+
|
36
|
+
def run_server
|
37
|
+
exec "#{STOKESDRIFT_DIR}/scripts/server_startup.sh"
|
38
|
+
end
|
39
|
+
|
40
|
+
# pid = JRubyProcess.fork do
|
41
|
+
run_server
|
42
|
+
|
43
|
+
# end
|
Binary file
|
data/lib/cdi-api-1.2.jar
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'java'
|
2
|
+
|
3
|
+
module Stokesdrift
|
4
|
+
class Registry
|
5
|
+
|
6
|
+
def initialize
|
7
|
+
@registry = org::stokesdrift::registry::Registry.new
|
8
|
+
end
|
9
|
+
|
10
|
+
def put(name, value)
|
11
|
+
if value
|
12
|
+
config_type = org::stokesdrift::config::RuntimeType::RUBY
|
13
|
+
value = org::stokesdrift::registry::RegistryObject.new(config_type, value)
|
14
|
+
end
|
15
|
+
@registry.put(name, value)
|
16
|
+
end
|
17
|
+
|
18
|
+
def get(name)
|
19
|
+
if (registry_object = @registry.get(name))
|
20
|
+
registry_object.object
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def remove(name)
|
25
|
+
@registry.remove(name)
|
26
|
+
end
|
27
|
+
|
28
|
+
def self.find
|
29
|
+
@@_registry ||= Registry.new
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
|
34
|
+
|
35
|
+
end
|
Binary file
|
@@ -0,0 +1,11 @@
|
|
1
|
+
-----BEGIN PGP SIGNATURE-----
|
2
|
+
Version: BCPG v1.46
|
3
|
+
|
4
|
+
iQEcBAABAgAGBQJVARRUAAoJEM424HY7XiHpaAkIAL0fh7MG3QM61mtXys0SUPpz
|
5
|
+
/CzfvbCPMarI7gIbJ4tpfCRAh3s9Gho+FPwmVlFMe1QBMGE6JVMyuLfLZqDHMyMN
|
6
|
+
L7I84Yp+WKwytOA5bVr+cHAAUGfU5AJTyQJ9AXf4+paMRvktgPUGwL0MTq+w05EF
|
7
|
+
jasHG0wuLumL7vFA8dgD3pGY8zTBDHzySCbVSjLuStWbmZGWq3uIF8PEGM6FNCgY
|
8
|
+
GpT8LgNTxxJ/YEa6dLPextZLbrjAUTU56yzQmTwAxU1Oe5KqqUlHZvkVteuCZ8JA
|
9
|
+
EoBvcCOs8KQf29tAd6c9H7RJZKy6jMp1SdsEhD9Qwud7CKf7s+AkV0PWuCewYzE=
|
10
|
+
=XEC6
|
11
|
+
-----END PGP SIGNATURE-----
|
Binary file
|
@@ -0,0 +1,11 @@
|
|
1
|
+
-----BEGIN PGP SIGNATURE-----
|
2
|
+
Version: BCPG v1.46
|
3
|
+
|
4
|
+
iQEcBAABAgAGBQJVARRUAAoJEM424HY7XiHpDs8H/3ahtwDTSxO+65tLKfGkYJsi
|
5
|
+
C0xsbri1ZBqEbS8jojovA993+UhCXdPhn3yg5UYi/GNC0uS3c9TFNZOwafMFF5f8
|
6
|
+
qJwYLYWmyIIfdZFR6KdcebqUHV8rvepKdj4O34x/Ky58Z8Krq4k+/5pBBt9u5FFk
|
7
|
+
TP8FNTIeDYU4mj6XdD872MXiR3/97ZYZgK8b6y5cVkHnZm91HZ6+wIibXp+DPuIL
|
8
|
+
7wAmA5satl7vzzLYOBpjavLvatdO0uFXWRyDz9T+VZSyGZVJXpgq+Z3B/s8a5+n8
|
9
|
+
zlDRcOkzAKdq9nown/fGuNfzsgeH1jbVpvlbYi9oXNh6T82dGLduUJdZZULLGpc=
|
10
|
+
=KfGF
|
11
|
+
-----END PGP SIGNATURE-----
|
Binary file
|
@@ -0,0 +1,11 @@
|
|
1
|
+
-----BEGIN PGP SIGNATURE-----
|
2
|
+
Version: BCPG v1.46
|
3
|
+
|
4
|
+
iQEcBAABAgAGBQJVARRUAAoJEM424HY7XiHpoIQH/1+v/nW8WvFT9g8hFydMtatx
|
5
|
+
Clod1kKzdJ+lf6qT5qbM8I8WM5cUGTSiEkjmk1ps9VIGAggLgoHGYYgbIptYfN3r
|
6
|
+
aWdvufZVW6xX/kd7WY/5wVgNcQrrX/W0RMpnjO6S9YbJIi0oCo3qDwabZ1oJCPar
|
7
|
+
PLCfoY0/FQiYtFXVK0TxPObPnKpvu9xoi279edms1z9V/+3ldtij52h+F7FEL1s3
|
8
|
+
m+/A1dn1Ql+H1zE+8MFCwK9gAK64UHDZ8bofUpfGrYSh84o3Fw4L6exTGlXcXM5T
|
9
|
+
zrLQupDmBTLqxp4Sq9t9tMquzfoIj7awCXvOKX1uEFV/LOuX5zrpRvBVdM0iJOY=
|
10
|
+
=aMHt
|
11
|
+
-----END PGP SIGNATURE-----
|
data/lib/stokesdrift.rb
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,60 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
|
3
|
+
if [ -z "$JRUBY_HOME" ]; then
|
4
|
+
echo "NO JRUBY_HOME SET"
|
5
|
+
exit 0
|
6
|
+
fi
|
7
|
+
|
8
|
+
if [ -z "$APP_ROOT"]; then
|
9
|
+
echo "NO APP_ROOT SET"
|
10
|
+
exit 0
|
11
|
+
fi
|
12
|
+
|
13
|
+
export PATH=$JRUBY_HOME/bin:$PATH
|
14
|
+
|
15
|
+
# TODO configurable stuff
|
16
|
+
if [ -z "$JAVA_OPTS" ]; then
|
17
|
+
export JAVA_OPTS="-XX:ReservedCodeCacheSize=256m -Xmx2048m -Xms512m -XX:+UseG1GC"
|
18
|
+
fi
|
19
|
+
|
20
|
+
export JAVA_OPTS="${JAVA_OPTS} -XX:+TieredCompilation"
|
21
|
+
export JAVA_OPTS="${JAVA_OPTS} -XX:+UseCodeCacheFlushing"
|
22
|
+
# export JAVA_OPTS="${JAVA_OPTS} -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintClassHistogram -XX:+PrintTenuringDistribution -XX:+PrintGCApplicationStoppedTime"
|
23
|
+
export JAVA_OPTS="${JAVA_OPTS} -Djruby.thread.pooling=true"
|
24
|
+
export JAVA_OPTS="${JAVA_OPTS} -Djruby.compile.positionless=true"
|
25
|
+
export JAVA_OPTS="${JAVA_OPTS} -Djruby.compile.mode=FORCE"
|
26
|
+
export JAVA_OPTS="${JAVA_OPTS} -Djruby.native.enabled=false"
|
27
|
+
export JAVA_OPTS="${JAVA_OPTS} -Djruby.thread.pool.min=10"
|
28
|
+
export JAVA_OPTS="${JAVA_OPTS} -XX:CompileCommand=dontinline,org.jruby.runtime.invokedynamic.InvokeDynamicSupport::invocationFallback"
|
29
|
+
export JAVA_OPTS="${JAVA_OPTS} -Djruby.management.enabled=false"
|
30
|
+
export JAVA_OPTS="${JAVA_OPTS} -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true"
|
31
|
+
export JAVA_OPTS="${JAVA_OPTS} -Dfile.encoding=UTF-8"
|
32
|
+
|
33
|
+
SCRIPT_DIR=$( dirname "${BASH_SOURCE[0]}" )
|
34
|
+
echo "Running Stokesdrift from: ${SCRIPT_DIR}/../"
|
35
|
+
echo "Stokes drift home: ${STOKESDRIFT_DIR}"
|
36
|
+
echo "Stokes drift lib: ${STOKESDRIFT_LIB_DIR}"
|
37
|
+
|
38
|
+
if [ -z "$STOKESDRIFT_DIR" ]; then
|
39
|
+
export STOKESDRIFT_DIR=$( cd "${SCRIPT_DIR}/../" && pwd )
|
40
|
+
fi
|
41
|
+
|
42
|
+
if [ -z "$STOKESDRIFT_LIB_DIR" ]; then
|
43
|
+
export STOKESDRIFT_LIB_DIR="${STOKESDRIFT_DIR}/lib"
|
44
|
+
fi
|
45
|
+
|
46
|
+
for i in $STOKESDRIFT_LIB_DIR/*.jar; do
|
47
|
+
CLASSPATH=$CLASSPATH:$i
|
48
|
+
done
|
49
|
+
export CLASSPATH=`echo $CLASSPATH | cut -c2-`
|
50
|
+
|
51
|
+
if [ -z "$JAVA_OPTS" ]; then
|
52
|
+
JAVA_OPTS=""
|
53
|
+
fi
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
java $JAVA_OPTS org.stokesdrift.Server -r $APP_ROOT
|
58
|
+
|
59
|
+
# ROOT_PATH(new String[]{ "-r","-root_path" }, null),
|
60
|
+
# CONFIG_FILE(new String[]{ "-c","-config_file" }, "drift_config.yml"),
|
metadata
ADDED
@@ -0,0 +1,138 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: stokesdrift
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.4
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Daniel Marchant
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-03-12 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rack
|
15
|
+
version_requirements: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
requirement: !ruby/object:Gem::Requirement
|
21
|
+
requirements:
|
22
|
+
- - '>='
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: '0'
|
25
|
+
prerelease: false
|
26
|
+
type: :runtime
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.6'
|
34
|
+
requirement: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - ~>
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '1.6'
|
39
|
+
prerelease: false
|
40
|
+
type: :development
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
version_requirements: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - '>='
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0'
|
53
|
+
prerelease: false
|
54
|
+
type: :development
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.14.1
|
62
|
+
requirement: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - ~>
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 2.14.1
|
67
|
+
prerelease: false
|
68
|
+
type: :development
|
69
|
+
description: Provides a micro service container for the modern world
|
70
|
+
email:
|
71
|
+
- dan@driedtoast.com
|
72
|
+
executables:
|
73
|
+
- stokesdrift
|
74
|
+
extensions: []
|
75
|
+
extra_rdoc_files: []
|
76
|
+
files:
|
77
|
+
- bin/stokesdrift
|
78
|
+
- lib/c3p0-0.9.1.1.jar
|
79
|
+
- lib/cdi-api-1.2.jar
|
80
|
+
- lib/groovy-all-2.1.8.jar
|
81
|
+
- lib/guava-13.0.1.jar
|
82
|
+
- lib/javax.el-api-3.0.0.jar
|
83
|
+
- lib/javax.inject-1.jar
|
84
|
+
- lib/javax.interceptor-api-1.2.jar
|
85
|
+
- lib/jboss-annotations-api_1.2_spec-1.0.0.Final.jar
|
86
|
+
- lib/jboss-classfilewriter-1.0.4.Final.jar
|
87
|
+
- lib/jboss-el-api_3.0_spec-1.0.0.Alpha1.jar
|
88
|
+
- lib/jboss-interceptors-api_1.2_spec-1.0.0.Alpha3.jar
|
89
|
+
- lib/jboss-logging-3.1.4.GA.jar
|
90
|
+
- lib/jboss-servlet-api_3.1_spec-1.0.0.Final.jar
|
91
|
+
- lib/jruby-complete-1.7.13.jar
|
92
|
+
- lib/jruby-rack-1.1.17.jar
|
93
|
+
- lib/quartz-2.2.1.jar
|
94
|
+
- lib/slf4j-api-1.6.6.jar
|
95
|
+
- lib/snakeyaml-1.14.jar
|
96
|
+
- lib/stokesdrift-0.1.4-SNAPSHOT-javadoc.jar
|
97
|
+
- lib/stokesdrift-0.1.4-SNAPSHOT-javadoc.jar.asc
|
98
|
+
- lib/stokesdrift-0.1.4-SNAPSHOT-sources.jar
|
99
|
+
- lib/stokesdrift-0.1.4-SNAPSHOT-sources.jar.asc
|
100
|
+
- lib/stokesdrift-0.1.4-SNAPSHOT.jar
|
101
|
+
- lib/stokesdrift-0.1.4-SNAPSHOT.jar.asc
|
102
|
+
- lib/stokesdrift.rb
|
103
|
+
- lib/stokesdrift/registry.rb
|
104
|
+
- lib/stokesdrift/server.rb
|
105
|
+
- lib/undertow-core-1.0.1.Final.jar
|
106
|
+
- lib/undertow-servlet-1.0.1.Final.jar
|
107
|
+
- lib/weld-api-2.2.SP3.jar
|
108
|
+
- lib/weld-core-impl-2.2.4.Final.jar
|
109
|
+
- lib/weld-se-core-2.2.4.Final.jar
|
110
|
+
- lib/weld-spi-2.2.SP3.jar
|
111
|
+
- lib/xnio-api-3.2.0.Final.jar
|
112
|
+
- lib/xnio-nio-3.2.0.Final.jar
|
113
|
+
- scripts/server_startup.sh
|
114
|
+
homepage: https://github.com/stokesdrift/stokesdrift
|
115
|
+
licenses:
|
116
|
+
- MIT
|
117
|
+
metadata: {}
|
118
|
+
post_install_message:
|
119
|
+
rdoc_options: []
|
120
|
+
require_paths:
|
121
|
+
- lib
|
122
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - '>='
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '0'
|
127
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
requirements: []
|
133
|
+
rubyforge_project:
|
134
|
+
rubygems_version: 2.4.5
|
135
|
+
signing_key:
|
136
|
+
specification_version: 4
|
137
|
+
summary: Stokes Drift
|
138
|
+
test_files: []
|