liquid-ext 1.2.4 → 1.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/liquid/boot.rb +24 -24
- data/liquid-ext.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ecc82b203448d6af9bfd5f638a10b73ceaec609e
|
4
|
+
data.tar.gz: 504d3e33505909f85d4b755915dd04aad87d58de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b69b5dc6d899cdab28a33047bc1fef5637b72412865c5cb1334b91a45a5cbd6a600545ba80b7cd8c63bb14a8865447a327e5797286132e720a9573886e655325
|
7
|
+
data.tar.gz: 5395423b9ed464154ad065b34627ebc3bc76777a5f5337348fbd173e4f5278df18e8210e682e18564cea5fe001fbe8e27b2f514d8899d6b93cdbc99b89238c2e
|
data/lib/liquid/boot.rb
CHANGED
@@ -2,6 +2,30 @@
|
|
2
2
|
|
3
3
|
$:.unshift(ROOT) if defined?(ROOT)
|
4
4
|
|
5
|
+
# load java dependencies
|
6
|
+
if RUBY_PLATFORM == 'java'
|
7
|
+
begin
|
8
|
+
require 'jbundler'
|
9
|
+
rescue LoadError
|
10
|
+
# do nothing
|
11
|
+
end
|
12
|
+
|
13
|
+
begin
|
14
|
+
require 'lock_jar'
|
15
|
+
LockJar.load
|
16
|
+
rescue LoadError
|
17
|
+
# do nothing
|
18
|
+
end
|
19
|
+
|
20
|
+
# some java libraries cannot be found on maven central, so we load all bundled
|
21
|
+
# jar files here for convenience
|
22
|
+
if defined?(ROOT)
|
23
|
+
Dir[File.join(ROOT, 'jars', '*.jar')].each do |f|
|
24
|
+
require f
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
5
29
|
# load default configuration
|
6
30
|
require 'liquid-logging'
|
7
31
|
require 'liquid/configuration'
|
@@ -44,30 +68,6 @@ $conf.callback(&reload_logger)
|
|
44
68
|
|
45
69
|
$conf.reload!
|
46
70
|
|
47
|
-
# load java dependencies
|
48
|
-
if RUBY_PLATFORM == 'java'
|
49
|
-
begin
|
50
|
-
require 'jbundler'
|
51
|
-
rescue LoadError
|
52
|
-
# do nothing
|
53
|
-
end
|
54
|
-
|
55
|
-
begin
|
56
|
-
require 'lock_jar'
|
57
|
-
LockJar.load
|
58
|
-
rescue LoadError
|
59
|
-
# do nothing
|
60
|
-
end
|
61
|
-
|
62
|
-
# some java libraries cannot be found on maven central, so we load all bundled
|
63
|
-
# jar files here for convenience
|
64
|
-
if defined?(ROOT)
|
65
|
-
Dir[File.join(ROOT, 'jars', '*.jar')].each do |f|
|
66
|
-
require f
|
67
|
-
end
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
71
|
# load a bunch of common classes here, so we don't have to track and repeat it
|
72
72
|
# everywhere
|
73
73
|
require 'active_support/all'
|
data/liquid-ext.gemspec
CHANGED