luban-rack 0.2.18 → 0.2.19
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5bf88e7778d2933ee4ac2996c7170bc57070b794
|
|
4
|
+
data.tar.gz: a6d0e1cb49b714175249f8ab970c4549bdc4f044
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b091199d458f205a8165048c5febeff645926bdf9f0ea6cba7b21954cd24b3a392ee2441fa981ff4ee35241f920fb5cc253b8a761041f22e6e7ac83284bc379f
|
|
7
|
+
data.tar.gz: 2769899d5cfd267ffca02e997296be111f916c6daed979444e23d162c21a4a5979319f97aaf506e68aadc8ce2d8f3fa82cf2b9c570b59905ef323d7191d208c1
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Change log
|
|
2
2
|
|
|
3
|
+
## Version 0.2.19 (Nov 16 2016)
|
|
4
|
+
|
|
5
|
+
Bug fixes:
|
|
6
|
+
* Updated plugin 'luban' to be backward compatible with Ruby 1.8
|
|
7
|
+
* Monkey patched on class Puma::Plugin to ensure backward compatibility with Ruby 1.8
|
|
8
|
+
|
|
3
9
|
## Version 0.2.18 (Nov 14, 2016)
|
|
4
10
|
|
|
5
11
|
Minor enhancements:
|
|
@@ -9,10 +9,27 @@ unless Kernel.method_defined? :define_singleton_method
|
|
|
9
9
|
end
|
|
10
10
|
end
|
|
11
11
|
|
|
12
|
+
if RUBY_VERSION =~ /^1\.8/
|
|
13
|
+
# Monkey patched to ensure backward compatibility with Ruby 1.8
|
|
14
|
+
class Puma::Plugin
|
|
15
|
+
# Matches
|
|
16
|
+
# "C:/Ruby22/lib/ruby/gems/2.2.0/gems/puma-3.0.1/lib/puma/plugin/tmp_restart.rb:3:in `<top (required)>'"
|
|
17
|
+
# AS
|
|
18
|
+
# C:/Ruby22/lib/ruby/gems/2.2.0/gems/puma-3.0.1/lib/puma/plugin/tmp_restart.rb
|
|
19
|
+
CALLER_FILE = /
|
|
20
|
+
\A # start of string
|
|
21
|
+
.+ # file path (one or more characters)
|
|
22
|
+
(?= # stop previous match when
|
|
23
|
+
:\d+ # a colon is followed by one or more digits
|
|
24
|
+
)
|
|
25
|
+
/x
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
12
29
|
Puma::Plugin.create do
|
|
13
30
|
def start(launcher)
|
|
14
31
|
launcher.define_singleton_method(:phased_restart) do
|
|
15
|
-
init_options = { config_files
|
|
32
|
+
init_options = { :config_files => @options.all_of(:config_files) }
|
|
16
33
|
@options.instance_variable_set(:@cur, init_options)
|
|
17
34
|
@options.instance_variable_set(:@set, [init_options])
|
|
18
35
|
@config.load
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: luban-rack
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.19
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rubyist Chi
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-11-
|
|
11
|
+
date: 2016-11-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: luban
|