proton 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY.md CHANGED
@@ -1,3 +1,21 @@
1
+ Proton v0.3.6 - Feb 05, 2012
2
+ ----------------------------
3
+
4
+ ### Fixed:
5
+ * Fixed bug where ^C doesn't work.
6
+
7
+ Proton v0.3.5 - Oct 29, 2011
8
+ ----------------------------
9
+
10
+ ### Fixed:
11
+ * Remove the hard dependency on RedCloth and maruku. Hopefully fixes #1.
12
+
13
+ ### Misc:
14
+ * Added `rake test!`.
15
+ * Added comments in the default 'proton rack' Gemfile about CoffeeScript
16
+ support.
17
+ * Update the sinefunc/proton reference to rstacruz/proton.
18
+
1
19
  Proton v0.3.4 - Aug 01, 2011
2
20
  ----------------------------
3
21
 
@@ -79,17 +79,39 @@ class Proton
79
79
  end
80
80
 
81
81
  module Proton::Server
82
+ extend Proton::CLI::Helpers
82
83
  # Available options:
83
84
  # :last_modified -- timestamp for all files
84
85
  def self.options
85
- @options ||= Hash.new
86
+ @options ||= Hash.new
86
87
  end
87
88
 
88
89
  # :Host, :Port
89
90
  def self.run!(options={})
90
91
  self.options.merge options
91
92
  handler = rack_handler or return false
92
- handler.run self, options
93
+ handler_name = handler.name.gsub(/.*::/, '')
94
+ url = "http://#{options[:Host]}:#{options[:Port]}/"
95
+
96
+
97
+ handler.run self, options do |server|
98
+ puts
99
+ say_status '==>', "Proton server has now started (via #{handler_name})."
100
+ say_info "Point your browser to: #{url}"
101
+ puts
102
+ [:INT, :TERM].each { |sig| trap(sig) { quit!(server, handler_name) } }
103
+ end
104
+
105
+ rescue Errno::EADDRINUSE => e
106
+ say_error "Someone is already performing on port #{port}!"
107
+ end
108
+
109
+ def self.quit!(server, handler_name)
110
+ # Use Thin's hard #stop! if available, otherwise just #stop.
111
+ server.respond_to?(:stop!) ? server.stop! : server.stop
112
+ puts
113
+ say_status '==>', "Exiting..." unless handler_name =~/cgi/i
114
+ puts
93
115
  end
94
116
 
95
117
  def self.rack_handler
@@ -1,5 +1,5 @@
1
1
  class Proton
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
 
4
4
  # Attribute: version (Proton)
5
5
  # Returns the version.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-29 00:00:00.000000000Z
12
+ date: 2012-02-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: shake
16
- requirement: &2151865940 !ruby/object:Gem::Requirement
16
+ requirement: &2152506380 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0.1'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2151865940
24
+ version_requirements: *2152506380
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: tilt
27
- requirement: &2151878060 !ruby/object:Gem::Requirement
27
+ requirement: &2152505660 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.3.2
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2151878060
35
+ version_requirements: *2152505660
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: cuba
38
- requirement: &2151899360 !ruby/object:Gem::Requirement
38
+ requirement: &2152505080 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 2.0.0
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2151899360
46
+ version_requirements: *2152505080
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: hashie
49
- requirement: &2151908720 !ruby/object:Gem::Requirement
49
+ requirement: &2152504480 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.0.0
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *2151908720
57
+ version_requirements: *2152504480
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: haml
60
- requirement: &2152188140 !ruby/object:Gem::Requirement
60
+ requirement: &2152503940 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 3.1.1
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *2152188140
68
+ version_requirements: *2152503940
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: sass
71
- requirement: &2152678240 !ruby/object:Gem::Requirement
71
+ requirement: &2152503240 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 3.1.1
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *2152678240
79
+ version_requirements: *2152503240
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: compass
82
- requirement: &2152754680 !ruby/object:Gem::Requirement
82
+ requirement: &2152502180 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: 0.11.1
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *2152754680
90
+ version_requirements: *2152502180
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: RedCloth
93
- requirement: &2153007040 !ruby/object:Gem::Requirement
93
+ requirement: &2152501680 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: '0'
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *2153007040
101
+ version_requirements: *2152501680
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: less
104
- requirement: &2155935080 !ruby/object:Gem::Requirement
104
+ requirement: &2152500820 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ! '>='
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: '0'
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *2155935080
112
+ version_requirements: *2152500820
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: maruku
115
- requirement: &2156285760 !ruby/object:Gem::Requirement
115
+ requirement: &2152499700 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ! '>='
@@ -120,7 +120,7 @@ dependencies:
120
120
  version: '0'
121
121
  type: :development
122
122
  prerelease: false
123
- version_requirements: *2156285760
123
+ version_requirements: *2152499700
124
124
  description: Proton lets you create static websites from a bunch of files written
125
125
  in HAML, Textile, Sass, or any other templating language.
126
126
  email:
@@ -276,7 +276,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
276
276
  version: '0'
277
277
  requirements: []
278
278
  rubyforge_project:
279
- rubygems_version: 1.8.10
279
+ rubygems_version: 1.8.11
280
280
  signing_key:
281
281
  specification_version: 3
282
282
  summary: Prototyping tool / static site generator.