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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/liquid/boot.rb +24 -24
  3. data/liquid-ext.gemspec +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b8beca07cec7266234754555b0911f169f6eb48f
4
- data.tar.gz: e1f6bd1f5c418e30dcf2a652fe52b5958bebbf4d
3
+ metadata.gz: ecc82b203448d6af9bfd5f638a10b73ceaec609e
4
+ data.tar.gz: 504d3e33505909f85d4b755915dd04aad87d58de
5
5
  SHA512:
6
- metadata.gz: 22ee3714156a839af71b8293a1161c86c6e372cd3542b4cd9a0c76826ca26da5275b2ae7096c60a75b82a820b8d0cf98c5692609a079bbca5a40e121aef067de
7
- data.tar.gz: 1bf2a2f09f979628a667b9c95aaf0fa1085f03d0dfc97cb3e187cd17d98a4e60918716727ce1b4028c892b3ad2e5b2e58c4670ca23b78d62f34f76023fe0f779
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "liquid-ext"
5
- spec.version = "1.2.4"
5
+ spec.version = "1.2.5"
6
6
  spec.authors = ["LiquidM, Inc."]
7
7
  spec.email = ["opensource@liquidm.com"]
8
8
  spec.description = %q{Ruby core extensions and helper libraries}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liquid-ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 1.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - LiquidM, Inc.