slide_hero 0.0.7 → 0.0.8

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
  SHA1:
3
- metadata.gz: 3bc414eace11c6b78b3edce68eacd6a5bf945810
4
- data.tar.gz: 2f7ebab968a1772c5ff9414a598e914cac9dc38b
3
+ metadata.gz: 8fbe0364422d336f4c91611d2b267d2ea6d89b27
4
+ data.tar.gz: c478d0204aa43515e71028b6f72486c40aae3ac3
5
5
  SHA512:
6
- metadata.gz: 172e12639c495f7d6f0e615b1d4fc0c8219a30a3e17fd083ec537b4a8a958c4656cff0f3d2687fed99ac5ef2a7933d693f0824547c4627807c8ddae277b7ad15
7
- data.tar.gz: 307d6e04ddf5d51090ab81a82a179eb13e091f41d9c02c9e22d34b1f8b84fc81508baac8fe2f81d276fae4e9d001437653c8a7429f646e7a8d6756d1995d232e
6
+ metadata.gz: 96d2cc3a9408050a21151c3069d940a7a5bf04321da849618628f55081c6b3b8c35bb6900f5102aecb2241be9e5a61627e9ba2acaa19cfa7a15e669669d0c886
7
+ data.tar.gz: c61ffa7947e51b68ce90deda47d8b8b01ae9af0f0496e8604f9de04531fee77ca378935d230af21f596135cc36eeb957b803768efc690b37475dabd83675dfe2
@@ -37,10 +37,10 @@ class PresentationGenerator < Thor
37
37
  compile(name, '.tmp')
38
38
  puts "Go checkout your awesome presentation at http://localhost:9292!"
39
39
 
40
- rackupPid = Process.spawn("rackup #{Gem.loaded_specs['slide_hero'].full_gem_path}/config.ru")
40
+ serverPid = Process.spawn("ruby -run -e httpd .tmp -p 9292")
41
41
 
42
42
  last_update = Time.now
43
- loop do
43
+ loop do
44
44
  if File.mtime(name) > last_update
45
45
  puts "File change noted!"
46
46
  puts "Recompiling"
@@ -52,7 +52,7 @@ class PresentationGenerator < Thor
52
52
 
53
53
  rescue Exception => e
54
54
  puts e
55
- Process.kill(9, rackupPid) rescue Errno::ESRCH
55
+ Process.kill(9, serverPid) rescue Errno::ESRCH
56
56
  remove_dir '.tmp'
57
57
  puts "GOING DOWN!"
58
58
  exit 0
@@ -1,3 +1,3 @@
1
1
  module SlideHero
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -20,7 +20,6 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_dependency "tilt", "~> 1.4"
22
22
  spec.add_dependency "thor", "~> 0.18"
23
- spec.add_dependency "rack", "~> 1.5"
24
23
  spec.add_development_dependency "bundler", "~> 1.3"
25
24
  spec.add_development_dependency "rake", "~> 10.1"
26
25
  spec.add_development_dependency "minitest", "~> 5.2"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slide_hero
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Nunez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-02 00:00:00.000000000 Z
11
+ date: 2015-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tilt
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0.18'
41
- - !ruby/object:Gem::Dependency
42
- name: rack
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '1.5'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '1.5'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: bundler
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -155,7 +141,6 @@ files:
155
141
  - README.md
156
142
  - Rakefile
157
143
  - bin/slidehero
158
- - config.ru
159
144
  - lib/slide_hero.rb
160
145
  - lib/slide_hero/code.rb
161
146
  - lib/slide_hero/dsl.rb
data/config.ru DELETED
@@ -1,14 +0,0 @@
1
- use Rack::Static,
2
- :urls => ["/audio", "/video", "/code", "/images", "/js", "/css", "/lib", "/plugin"],
3
- :root => ".tmp"
4
-
5
- run lambda { |env|
6
- [
7
- 200,
8
- {
9
- 'Content-Type' => 'text/html',
10
- 'Cache-Control' => 'public, max-age=86400'
11
- },
12
- File.open('.tmp/index.html', File::RDONLY)
13
- ]
14
- }