alaska 1.0.4 → 1.1.0
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.
- checksums.yaml +4 -4
- data/lib/alaska/context.rb +2 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75e8c82b9e03893c4ea44a2ef469ca97a8b3dbe2
|
4
|
+
data.tar.gz: 0a76932b180f653d6ee169efc9537e66afe90232
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 528e50d3880adb758449b0c8bad2c4804bcca0b99cc0068269e2355483e33256e4e9e10c0c1a1ab84d99cc7d49caabd2e25f77fb46a417dc45c16813386348eb
|
7
|
+
data.tar.gz: fa0fe30d4c40cb64049a393c2d16663e3410346d84414e4c8984bd70b5c86750a0591df389fcf604f4ba301e9c6aa76b00bbcd61bdb1aa7b466abd7f0c206ea0
|
data/lib/alaska/context.rb
CHANGED
@@ -10,7 +10,7 @@ module Alaska
|
|
10
10
|
class Context < ExecJS::Runtime::Context
|
11
11
|
# runtime is an instance of Alaska
|
12
12
|
# src is the js code to be eval()'d in the nodejs context
|
13
|
-
def initialize(runtime, src = ""
|
13
|
+
def initialize(runtime, src = "", options = {})
|
14
14
|
@runtime = runtime
|
15
15
|
|
16
16
|
# compile context source, in most cases
|
@@ -57,6 +57,7 @@ module Alaska
|
|
57
57
|
sock = Net::BufferedIO.new(@runtime.provision_socket)
|
58
58
|
request = Net::HTTP::Post.new("/")
|
59
59
|
request['Connection'] = 'close'
|
60
|
+
request['Content-Type'] = 'application/x-www-form-urlencoded'
|
60
61
|
request.body = contents
|
61
62
|
request.exec(sock, "1.1", "/")
|
62
63
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alaska
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Bardin
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2016-05-28 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: execjs
|
@@ -19,14 +19,14 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - "~>"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '2.
|
22
|
+
version: '2.7'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '2.
|
29
|
+
version: '2.7'
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: rake
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|