strobe 0.3.2 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/strobe/cert.pem +32 -0
- data/lib/strobe/cli/preview.rb +13 -0
- data/lib/strobe/connection.rb +8 -1
- data/lib/strobe/version.rb +1 -1
- metadata +19 -18
data/lib/strobe/cert.pem
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
2
|
+
MIIFjzCCBHegAwIBAgIQbApvs79PZIagOHNx2QR8EzANBgkqhkiG9w0BAQUFADCB
|
3
|
+
iTELMAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4G
|
4
|
+
A1UEBxMHU2FsZm9yZDEaMBgGA1UEChMRQ09NT0RPIENBIExpbWl0ZWQxLzAtBgNV
|
5
|
+
BAMTJkNPTU9ETyBIaWdoLUFzc3VyYW5jZSBTZWN1cmUgU2VydmVyIENBMB4XDTEx
|
6
|
+
MDYxNDAwMDAwMFoXDTEzMDYxMzIzNTk1OVowgbAxCzAJBgNVBAYTAlVTMQ4wDAYD
|
7
|
+
VQQREwU5NDEwNzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDVNhbiBGcmFuY2lzY28x
|
8
|
+
HTAbBgNVBAkUFDMwMCBCcmFubmFuIFN0LiAjMjAxMRQwEgYDVQQKEwtTdHJvYmUs
|
9
|
+
IEluYzEdMBsGA1UECxMUUGxhdGludW1TU0wgV2lsZGNhcmQxGDAWBgNVBAMUDyou
|
10
|
+
c3Ryb2JlYXBwLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL9a
|
11
|
+
ORP8qYD8r+922BqClraAka5KJdw1nKmkYUIzHptOifYxNibzyO/fpE41q72pBBg8
|
12
|
+
HToYMa1WpKLVCRF4bg58cNOtdC8+E/hbeZ2KZCYq6ToChN55RrXyEvYtietXoYgk
|
13
|
+
VvNbR8dCCeBSjIBWUpKo/ebZ3Iq5ilQBb5MxikplFJ03ZptPPC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R/H84kdQrUrKHJkjrIC3t1+aZIt8QxfKte5AL8O03SKw2dYDc7XHGJZfSdk0V
|
29
|
+
CWZFTlbwss+KZyTXGxx4PnVcSPaM6fkvLQB/SwLtRN7KcJDBmXKf04uFWDOvLhl/
|
30
|
+
a4CGypRd4OkFDt2lfNFLw7i5XAWYHZdCa/w58rFxM/5RW1idJ4FcoW3VnqoskEM/
|
31
|
+
Xci61KFZ9iR4xoFlnnC31ROuu+/2OGsFeZSdz4eBEQZ9icQ=
|
32
|
+
-----END CERTIFICATE-----
|
data/lib/strobe/cli/preview.rb
CHANGED
@@ -5,6 +5,19 @@ begin
|
|
5
5
|
rescue LoadError
|
6
6
|
end
|
7
7
|
|
8
|
+
begin
|
9
|
+
require 'thin/version'
|
10
|
+
|
11
|
+
module Thin::VERSION
|
12
|
+
# Censoring
|
13
|
+
if CODENAME == "Bat-Shit Crazy"
|
14
|
+
remove_const :CODENAME
|
15
|
+
CODENAME = "Bat Crazy"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
rescue LoadError
|
19
|
+
end
|
20
|
+
|
8
21
|
module Strobe
|
9
22
|
module CLI::Preview
|
10
23
|
class Server < Rack::Server
|
data/lib/strobe/connection.rb
CHANGED
@@ -154,7 +154,14 @@ module Strobe
|
|
154
154
|
http = Net::HTTP.new host, port || 80
|
155
155
|
http.read_timeout = 900 # For deploys
|
156
156
|
http.open_timeout = 10
|
157
|
-
|
157
|
+
if port == 443
|
158
|
+
pem = File.read(File.expand_path("../cert.pem", __FILE__))
|
159
|
+
http.use_ssl = true
|
160
|
+
http.cert = OpenSSL::X509::Certificate.new(pem)
|
161
|
+
http.key = http.cert.public_key
|
162
|
+
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
163
|
+
http.verify_depth = 5
|
164
|
+
end
|
158
165
|
http
|
159
166
|
end
|
160
167
|
|
data/lib/strobe/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: strobe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
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-08-
|
12
|
+
date: 2011-08-31 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activemodel
|
16
|
-
requirement: &
|
16
|
+
requirement: &2156152220 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 3.0.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2156152220
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: mime-types
|
27
|
-
requirement: &
|
27
|
+
requirement: &2156151340 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 1.16.0
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2156151340
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rack
|
38
|
-
requirement: &
|
38
|
+
requirement: &2156143460 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 1.3.0
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2156143460
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: thin
|
49
|
-
requirement: &
|
49
|
+
requirement: &2156141520 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 1.2.0
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *2156141520
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: em-http-request
|
60
|
-
requirement: &
|
60
|
+
requirement: &2156140060 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: 1.0.0.beta
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *2156140060
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: thor
|
71
|
-
requirement: &
|
71
|
+
requirement: &2156138260 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ~>
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: 0.14.0
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *2156138260
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: oauth
|
82
|
-
requirement: &
|
82
|
+
requirement: &2156136060 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ~>
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: 0.4.5
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *2156136060
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: launchy
|
93
|
-
requirement: &
|
93
|
+
requirement: &2156132400 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,7 +98,7 @@ dependencies:
|
|
98
98
|
version: '0'
|
99
99
|
type: :runtime
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *2156132400
|
102
102
|
description: The client library for deploying applications to Strobe's HTML5 deployment
|
103
103
|
platform
|
104
104
|
email:
|
@@ -152,6 +152,7 @@ files:
|
|
152
152
|
- lib/strobe.rb
|
153
153
|
- CHANGELOG.md
|
154
154
|
- README.md
|
155
|
+
- lib/strobe/cert.pem
|
155
156
|
- bin/strobe
|
156
157
|
homepage: http://rubygems.org/gems/strobe
|
157
158
|
licenses: []
|