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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4777ac4484bcf69c0c5b3f87241422a324ecf21695e14564b9c59b864b31d805
4
- data.tar.gz: '08dd421b5247b994ca16fcb27793ea145f6f992076ea9a28ae18be3e46abc481'
3
+ metadata.gz: 52e2c72fc6ae3973475f32e6e20fb778571810c7706bd9a062b52cd14a862b57
4
+ data.tar.gz: 283084f5cbf9bbe0134a69de945a80e7d68ad5ee542d466f4cb836d8ba12eb77
5
5
  SHA512:
6
- metadata.gz: 65e63749336e2ec8e5785047a46a7352494101c6e42f4db44db577283e32d8cc1197650a7e4a4d0bd48497648506df69abdec8f4497057772995c8a92e44100a
7
- data.tar.gz: 3dc617ae4ca3d76316041b2dd18f569d49e9549f21d5ce42e943bbafb2f48062225f7b8921380e91d8e5d75b989090ded1dd777b9ae23a5a280bb9da1d8d37d4
6
+ metadata.gz: 64a52895dcc9297f82c03b2e11a45c616b2f2e737abd3ed294f0870f43b4298269260339540fe69b3350d4f06422727f6e41fd543bcb1ec60b57994b29586aed
7
+ data.tar.gz: cd359f058ac40b07517302c2f48ec8a65cb0eec0e9579edbbe517112e2b08277458785f9781bff3a463d275f222a23e880f2fa3b4867e6c01d96a7ffc5caa392
@@ -1,5 +1,5 @@
1
1
  require 'rouge'
2
- require 'fssm'
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
- EM.defer do
71
- FSSM.monitor("data/#{name}", %w(slide.md script.md)) do
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
@@ -1,3 +1,3 @@
1
1
  module Gibier
2
- VERSION = "0.8.16"
2
+ VERSION = "0.8.17"
3
3
  end
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.16
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-20 00:00:00.000000000 Z
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: fssm
168
+ name: listen
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - ">="
171
+ - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: '0'
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: '0'
180
+ version: '3.1'
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: eventmachine
183
183
  requirement: !ruby/object:Gem::Requirement