gibier 0.8.16 → 0.8.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gibier/slide_loader.rb +4 -7
- data/lib/gibier/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52e2c72fc6ae3973475f32e6e20fb778571810c7706bd9a062b52cd14a862b57
|
4
|
+
data.tar.gz: 283084f5cbf9bbe0134a69de945a80e7d68ad5ee542d466f4cb836d8ba12eb77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64a52895dcc9297f82c03b2e11a45c616b2f2e737abd3ed294f0870f43b4298269260339540fe69b3350d4f06422727f6e41fd543bcb1ec60b57994b29586aed
|
7
|
+
data.tar.gz: cd359f058ac40b07517302c2f48ec8a65cb0eec0e9579edbbe517112e2b08277458785f9781bff3a463d275f222a23e880f2fa3b4867e6c01d96a7ffc5caa392
|
data/lib/gibier/slide_loader.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'rouge'
|
2
|
-
require '
|
2
|
+
require 'listen'
|
3
3
|
require 'eventmachine'
|
4
4
|
require 'redcarpet'
|
5
5
|
|
@@ -67,13 +67,10 @@ module Gibier
|
|
67
67
|
def add_slide(name)
|
68
68
|
init_slide(name)
|
69
69
|
|
70
|
-
|
71
|
-
|
72
|
-
update {|base, relative| Gibier::SlideLoader.load_slide(name) }
|
73
|
-
delete {|base, relative|}
|
74
|
-
create {|base, relative|}
|
75
|
-
end
|
70
|
+
listener = Listen.to("data/#{name}") do |modified, added, removed|
|
71
|
+
Gibier::SlideLoader.load_slide(name)
|
76
72
|
end
|
73
|
+
listener.start
|
77
74
|
end
|
78
75
|
end
|
79
76
|
end
|
data/lib/gibier/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gibier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- youchan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|
@@ -165,19 +165,19 @@ dependencies:
|
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '1.10'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
|
-
name:
|
168
|
+
name: listen
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
|
-
- - "
|
171
|
+
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: '
|
173
|
+
version: '3.1'
|
174
174
|
type: :runtime
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
|
-
- - "
|
178
|
+
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: '
|
180
|
+
version: '3.1'
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: eventmachine
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|