stasis 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -225,10 +225,6 @@ Render a specific template or directory:
225
225
 
226
226
  stasis.render('index.html.haml', 'subdirectory')
227
227
 
228
- Define local variables for `before` callbacks, views, and `helpers`:
229
-
230
- stasis.render(:locals => { :x => 'y' })
231
-
232
228
  More
233
229
  ----
234
230
 
data/config/gemspec.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  name: stasis
2
- version: 0.1.2
2
+ version: 0.1.3
3
3
  authors:
4
4
  - Winton Welsh
5
5
  email: mail@wintoni.us
data/lib/stasis/server.rb CHANGED
@@ -24,7 +24,6 @@ class Stasis
24
24
  params = request['paths'] + [
25
25
  {
26
26
  :collect => request['return'],
27
- :locals => request['locals'],
28
27
  :write => request['write']
29
28
  }
30
29
  ]
data/lib/stasis.rb CHANGED
@@ -96,6 +96,17 @@ class Stasis
96
96
 
97
97
  # Create a controller instance.
98
98
  @controller = Controller.new(self)
99
+
100
+ # Reject paths that are controllers.
101
+ @paths.reject! do |path|
102
+ if File.basename(path) == 'controller.rb'
103
+ # Add controller to `Controller` instance.
104
+ @controller._add(path)
105
+ true
106
+ else
107
+ false
108
+ end
109
+ end
99
110
  end
100
111
 
101
112
  def render(*only)
@@ -125,17 +136,6 @@ class Stasis
125
136
  # Remove old generated files.
126
137
  FileUtils.rm_rf(destination)
127
138
  end
128
-
129
- # Reject paths that are controllers.
130
- @paths.reject! do |path|
131
- if File.basename(path) == 'controller.rb'
132
- # Add controller to `Controller` instance.
133
- @controller._add(path)
134
- true
135
- else
136
- false
137
- end
138
- end
139
139
 
140
140
  # Trigger all plugin `before_all` events.
141
141
  trigger(:before_all)
data/site/index.html.haml CHANGED
@@ -20,5 +20,5 @@
20
20
  #body
21
21
  ~ @readme
22
22
  .clear
23
- %script{ :src => "jquery-1.6.2.js", :type => "text/javascript" }
23
+ %script{ :src => "https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js", :type => "text/javascript" }
24
24
  %script{ :src => "stasis.js", :type => "text/javascript" }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stasis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-08-26 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: directory_watcher
16
- requirement: &70117661293640 !ruby/object:Gem::Requirement
16
+ requirement: &70292723191500 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.4.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70117661293640
24
+ version_requirements: *70292723191500
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: redis
27
- requirement: &70117661293180 !ruby/object:Gem::Requirement
27
+ requirement: &70292723191040 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.2.1
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70117661293180
35
+ version_requirements: *70292723191040
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: slop
38
- requirement: &70117661292740 !ruby/object:Gem::Requirement
38
+ requirement: &70292723190600 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 2.1.0
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70117661292740
46
+ version_requirements: *70292723190600
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: tilt
49
- requirement: &70117661292300 !ruby/object:Gem::Requirement
49
+ requirement: &70292723190160 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '1.3'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70117661292300
57
+ version_requirements: *70292723190160
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: yajl-ruby
60
- requirement: &70117661291860 !ruby/object:Gem::Requirement
60
+ requirement: &70292723189720 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 0.8.2
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70117661291860
68
+ version_requirements: *70292723189720
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
- requirement: &70117661291280 !ruby/object:Gem::Requirement
71
+ requirement: &70292723189140 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 0.8.7
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70117661291280
79
+ version_requirements: *70292723189140
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: rspec
82
- requirement: &70117661290840 !ruby/object:Gem::Requirement
82
+ requirement: &70292723188700 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: '1.0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70117661290840
90
+ version_requirements: *70292723188700
91
91
  description: Stasis is a dynamic framework for static sites.
92
92
  email: mail@wintoni.us
93
93
  executables: