staticmatic2 2.1.4 → 2.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -134,6 +134,15 @@ Force the browser to ignore its cache whenever you damn well feel like it:
134
134
 
135
135
  <script language="javascript" src="js/app.js?_=2.0.6" type="text/javascript"></script>
136
136
 
137
+ ## SSL support
138
+
139
+ To enable SSL support, add the following lines to configuration/site.rb file:
140
+
141
+ require 'webrick/https'
142
+ configuration.ssl_enable = true
143
+ configuration.ssl_private_key_path = "/path/to/key.pem"
144
+ configuration.ssl_certificate_path = "/path/to/cert.pem"
145
+
137
146
  # Roadmap / TODO list
138
147
 
139
148
  - Fix slowness of executable (built on [Thor](https://github.com/wycats/thor); maybe reconsider?)
@@ -141,3 +150,5 @@ Force the browser to ignore its cache whenever you damn well feel like it:
141
150
  - Integrate sprockets both for building and for previewing (probably as an option flag)
142
151
  - Change rendering and yielding syntax to rails syntax
143
152
  - Create a command that converts a staticmatic project to a rails project
153
+
154
+ [![endorse](http://api.coderwall.com/mindeavor/endorse.png)](http://coderwall.com/mindeavor)
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 2
3
3
  :minor: 1
4
- :patch: 4
4
+ :patch: 5
5
5
  :build: !!null
@@ -3,6 +3,9 @@ module StaticMatic
3
3
  attr_accessor :preview_server
4
4
  attr_accessor :preview_server_host
5
5
  attr_accessor :preview_server_port
6
+ attr_accessor :ssl_enable
7
+ attr_accessor :ssl_private_key_path
8
+ attr_accessor :ssl_certificate_path
6
9
 
7
10
  attr_accessor :use_extensions_for_page_links
8
11
  attr_accessor :default_template_engine
@@ -59,8 +59,28 @@ module StaticMatic
59
59
  use Rack::ShowExceptions
60
60
  run StaticMatic::Server.new(staticmatic)
61
61
  end
62
+
63
+ ssl_enable = staticmatic.configuration.ssl_enable || false
64
+
65
+ if not ssl_enable
66
+ staticmatic.configuration.preview_server.run(app, :Port => port, :Host => host)
67
+ else
68
+ ssl_verify_client = OpenSSL::SSL::VERIFY_NONE
69
+ ssl_private_key = OpenSSL::PKey::RSA.new(File.open(staticmatic.configuration.ssl_private_key_path).read)
70
+ ssl_certificate = OpenSSL::X509::Certificate.new(File.open(staticmatic.configuration.ssl_certificate_path).read)
71
+ ssl_cert_name = [["CN", WEBrick::Utils::getservername]]
72
+ staticmatic.configuration.preview_server.run(
73
+ app,
74
+ :Port => port,
75
+ :Host => host,
76
+ :SSLEnable => true,
77
+ :SSLPrivateKey => ssl_private_key,
78
+ :SSLCertificate => ssl_certificate,
79
+ :SSLCertName => ssl_cert_name
80
+ )
81
+
82
+ end
62
83
 
63
- staticmatic.configuration.preview_server.run(app, :Port => port, :Host => host)
64
84
  end
65
85
 
66
86
  end
data/staticmatic2.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "staticmatic2"
8
- s.version = "2.1.4"
8
+ s.version = "2.1.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Stephen Bartholomew", "Gilbert B Garza"]
12
- s.date = "2012-03-15"
12
+ s.date = "2012-07-09"
13
13
  s.description = " StaticMatic helps you quickly create maintainable Amazon S3 static websites using\n tools such as Haml and Sass.\n \n Quickly deploy to services such as Amazon S3 in a single command.\n"
14
14
  s.email = "gilbertbgarza@gmail.com"
15
15
  s.executables = ["staticmatic"]
@@ -119,7 +119,7 @@ Gem::Specification.new do |s|
119
119
  s.licenses = ["MIT"]
120
120
  s.require_paths = ["lib"]
121
121
  s.rubyforge_project = "staticmatic2"
122
- s.rubygems_version = "1.8.11"
122
+ s.rubygems_version = "1.8.21"
123
123
  s.summary = "Build Amazon S3 static websites using modern dynamic tools"
124
124
 
125
125
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: staticmatic2
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.4
4
+ version: 2.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-03-15 00:00:00.000000000Z
13
+ date: 2012-07-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: haml
17
- requirement: &2159430380 !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,15 @@ dependencies:
22
22
  version: '3.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2159430380
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ~>
29
+ - !ruby/object:Gem::Version
30
+ version: '3.1'
26
31
  - !ruby/object:Gem::Dependency
27
32
  name: sass
28
- requirement: &2159429520 !ruby/object:Gem::Requirement
33
+ requirement: !ruby/object:Gem::Requirement
29
34
  none: false
30
35
  requirements:
31
36
  - - ~>
@@ -33,10 +38,15 @@ dependencies:
33
38
  version: '3.1'
34
39
  type: :runtime
35
40
  prerelease: false
36
- version_requirements: *2159429520
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ~>
45
+ - !ruby/object:Gem::Version
46
+ version: '3.1'
37
47
  - !ruby/object:Gem::Dependency
38
48
  name: tilt
39
- requirement: &2159428660 !ruby/object:Gem::Requirement
49
+ requirement: !ruby/object:Gem::Requirement
40
50
  none: false
41
51
  requirements:
42
52
  - - ! '>='
@@ -44,10 +54,15 @@ dependencies:
44
54
  version: '1.3'
45
55
  type: :runtime
46
56
  prerelease: false
47
- version_requirements: *2159428660
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '1.3'
48
63
  - !ruby/object:Gem::Dependency
49
64
  name: compass
50
- requirement: &2159427920 !ruby/object:Gem::Requirement
65
+ requirement: !ruby/object:Gem::Requirement
51
66
  none: false
52
67
  requirements:
53
68
  - - ~>
@@ -55,10 +70,15 @@ dependencies:
55
70
  version: 0.12.1
56
71
  type: :runtime
57
72
  prerelease: false
58
- version_requirements: *2159427920
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ~>
77
+ - !ruby/object:Gem::Version
78
+ version: 0.12.1
59
79
  - !ruby/object:Gem::Dependency
60
80
  name: rack
61
- requirement: &2159427260 !ruby/object:Gem::Requirement
81
+ requirement: !ruby/object:Gem::Requirement
62
82
  none: false
63
83
  requirements:
64
84
  - - ! '>='
@@ -66,10 +86,15 @@ dependencies:
66
86
  version: '1.0'
67
87
  type: :runtime
68
88
  prerelease: false
69
- version_requirements: *2159427260
89
+ version_requirements: !ruby/object:Gem::Requirement
90
+ none: false
91
+ requirements:
92
+ - - ! '>='
93
+ - !ruby/object:Gem::Version
94
+ version: '1.0'
70
95
  - !ruby/object:Gem::Dependency
71
96
  name: thor
72
- requirement: &2159426380 !ruby/object:Gem::Requirement
97
+ requirement: !ruby/object:Gem::Requirement
73
98
  none: false
74
99
  requirements:
75
100
  - - ! '>='
@@ -77,10 +102,15 @@ dependencies:
77
102
  version: 0.14.6
78
103
  type: :runtime
79
104
  prerelease: false
80
- version_requirements: *2159426380
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: 0.14.6
81
111
  - !ruby/object:Gem::Dependency
82
112
  name: aws-s3
83
- requirement: &2159425640 !ruby/object:Gem::Requirement
113
+ requirement: !ruby/object:Gem::Requirement
84
114
  none: false
85
115
  requirements:
86
116
  - - ! '>='
@@ -88,10 +118,15 @@ dependencies:
88
118
  version: '0'
89
119
  type: :runtime
90
120
  prerelease: false
91
- version_requirements: *2159425640
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ none: false
123
+ requirements:
124
+ - - ! '>='
125
+ - !ruby/object:Gem::Version
126
+ version: '0'
92
127
  - !ruby/object:Gem::Dependency
93
128
  name: bundler
94
- requirement: &2159424660 !ruby/object:Gem::Requirement
129
+ requirement: !ruby/object:Gem::Requirement
95
130
  none: false
96
131
  requirements:
97
132
  - - ~>
@@ -99,10 +134,15 @@ dependencies:
99
134
  version: '1.0'
100
135
  type: :development
101
136
  prerelease: false
102
- version_requirements: *2159424660
137
+ version_requirements: !ruby/object:Gem::Requirement
138
+ none: false
139
+ requirements:
140
+ - - ~>
141
+ - !ruby/object:Gem::Version
142
+ version: '1.0'
103
143
  - !ruby/object:Gem::Dependency
104
144
  name: jeweler
105
- requirement: &2159423700 !ruby/object:Gem::Requirement
145
+ requirement: !ruby/object:Gem::Requirement
106
146
  none: false
107
147
  requirements:
108
148
  - - ~>
@@ -110,10 +150,15 @@ dependencies:
110
150
  version: '1.6'
111
151
  type: :development
112
152
  prerelease: false
113
- version_requirements: *2159423700
153
+ version_requirements: !ruby/object:Gem::Requirement
154
+ none: false
155
+ requirements:
156
+ - - ~>
157
+ - !ruby/object:Gem::Version
158
+ version: '1.6'
114
159
  - !ruby/object:Gem::Dependency
115
160
  name: rspec
116
- requirement: &2159422880 !ruby/object:Gem::Requirement
161
+ requirement: !ruby/object:Gem::Requirement
117
162
  none: false
118
163
  requirements:
119
164
  - - ~>
@@ -121,7 +166,12 @@ dependencies:
121
166
  version: 1.3.1
122
167
  type: :development
123
168
  prerelease: false
124
- version_requirements: *2159422880
169
+ version_requirements: !ruby/object:Gem::Requirement
170
+ none: false
171
+ requirements:
172
+ - - ~>
173
+ - !ruby/object:Gem::Version
174
+ version: 1.3.1
125
175
  description: ! " StaticMatic helps you quickly create maintainable Amazon S3 static
126
176
  websites using\n tools such as Haml and Sass.\n \n Quickly deploy to services
127
177
  such as Amazon S3 in a single command.\n"
@@ -244,7 +294,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
244
294
  version: '0'
245
295
  segments:
246
296
  - 0
247
- hash: 740324119504496183
297
+ hash: -1845147646628748619
248
298
  required_rubygems_version: !ruby/object:Gem::Requirement
249
299
  none: false
250
300
  requirements:
@@ -253,7 +303,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
253
303
  version: '0'
254
304
  requirements: []
255
305
  rubyforge_project: staticmatic2
256
- rubygems_version: 1.8.11
306
+ rubygems_version: 1.8.21
257
307
  signing_key:
258
308
  specification_version: 3
259
309
  summary: Build Amazon S3 static websites using modern dynamic tools