marcinbunsch-quick_serve 0.3.3 → 0.3.4

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.3
1
+ 0.3.4
@@ -24,4 +24,4 @@ module Mongrel
24
24
  end
25
25
 
26
26
  end
27
- end
27
+ end
@@ -16,8 +16,12 @@ module ActiveRecord
16
16
  after_destroy :free_snapshots
17
17
 
18
18
  def free_snapshots
19
+ # if rails uses active_record store, it changes with each request, making quick_serve unusable
20
+ # this probably should be a config option (somehow)
21
+ return if self.class.to_s == 'CGI::Session::ActiveRecordStore::Session'
22
+ puts "quick_serve: detected change in #{self.class}"
19
23
  QuickServe::Rails::Snapshot.reset
20
24
  end
21
25
 
22
26
  end
23
- end
27
+ end
@@ -45,7 +45,7 @@ module QuickServe
45
45
  updated << filename
46
46
  # update the mtime in file registry so we it's only send once
47
47
  files[filename] = current_mtime
48
- # puts ">> Spotted change in #{filename}"
48
+ puts "quick_serve: spotted change in #{filename}"
49
49
  end
50
50
  end
51
51
  QuickServe::Rails::Snapshot.reset if updated != []
@@ -78,4 +78,4 @@ module QuickServe
78
78
 
79
79
  end
80
80
  end
81
- end
81
+ end
@@ -90,4 +90,4 @@ module QuickServe
90
90
  exit(1)
91
91
  end
92
92
  end
93
- end
93
+ end
data/quick_serve.gemspec CHANGED
@@ -1,12 +1,15 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
1
4
  # -*- encoding: utf-8 -*-
2
5
 
3
6
  Gem::Specification.new do |s|
4
7
  s.name = %q{quick_serve}
5
- s.version = "0.3.3"
8
+ s.version = "0.3.4"
6
9
 
7
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
11
  s.authors = ["Marcin Bunsch"]
9
- s.date = %q{2009-09-13}
12
+ s.date = %q{2009-09-17}
10
13
  s.default_executable = %q{qs}
11
14
  s.description = %q{}
12
15
  s.email = %q{marcin@applicake.com}
@@ -33,10 +36,11 @@ Gem::Specification.new do |s|
33
36
  "lib/quick_serve/server.rb",
34
37
  "quick_serve.gemspec"
35
38
  ]
39
+ s.has_rdoc = true
36
40
  s.homepage = %q{http://github.com/marcinbunsch/quick_serve}
37
41
  s.rdoc_options = ["--charset=UTF-8"]
38
42
  s.require_paths = ["lib"]
39
- s.rubygems_version = %q{1.3.3}
43
+ s.rubygems_version = %q{1.3.1}
40
44
  s.summary = %q{Super simple web server mainly for javascript development}
41
45
  s.test_files = [
42
46
  "test/test_helper.rb"
@@ -44,7 +48,7 @@ Gem::Specification.new do |s|
44
48
 
45
49
  if s.respond_to? :specification_version then
46
50
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
47
- s.specification_version = 3
51
+ s.specification_version = 2
48
52
 
49
53
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
50
54
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marcinbunsch-quick_serve
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Bunsch
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-13 00:00:00 -07:00
12
+ date: 2009-09-17 00:00:00 -07:00
13
13
  default_executable: qs
14
14
  dependencies: []
15
15
 
@@ -40,7 +40,7 @@ files:
40
40
  - lib/quick_serve/rails/snapshot.rb
41
41
  - lib/quick_serve/server.rb
42
42
  - quick_serve.gemspec
43
- has_rdoc: false
43
+ has_rdoc: true
44
44
  homepage: http://github.com/marcinbunsch/quick_serve
45
45
  licenses:
46
46
  post_install_message:
@@ -65,7 +65,7 @@ requirements: []
65
65
  rubyforge_project:
66
66
  rubygems_version: 1.3.5
67
67
  signing_key:
68
- specification_version: 3
68
+ specification_version: 2
69
69
  summary: Super simple web server mainly for javascript development
70
70
  test_files:
71
71
  - test/test_helper.rb