alaska 1.0.4 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/alaska/context.rb +2 -1
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 838fe0565db0f27a2c6f91f1cc16af4104401a05
4
- data.tar.gz: cbc675b45795d1fd7145066f0fe711c454cc71d6
3
+ metadata.gz: 75e8c82b9e03893c4ea44a2ef469ca97a8b3dbe2
4
+ data.tar.gz: 0a76932b180f653d6ee169efc9537e66afe90232
5
5
  SHA512:
6
- metadata.gz: b7ac32056cfafd5da0fa134eadf37137ec5172c257566863e70aea3146f84869beb0ece8f1bdc5effec520c3d6a5df10703c5bb00812a925d2c5fa817dca78d7
7
- data.tar.gz: caf187b1da186e80c3cc86498746a49ac749d07de9ba0d8ee305148158753328c2e3b35c451914a9d80677866c4e0d0a5852f7ec158efdbace151cbb9e5e1c9c
6
+ metadata.gz: 528e50d3880adb758449b0c8bad2c4804bcca0b99cc0068269e2355483e33256e4e9e10c0c1a1ab84d99cc7d49caabd2e25f77fb46a417dc45c16813386348eb
7
+ data.tar.gz: fa0fe30d4c40cb64049a393c2d16663e3410346d84414e4c8984bd70b5c86750a0591df389fcf604f4ba301e9c6aa76b00bbcd61bdb1aa7b466abd7f0c206ea0
@@ -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 = "") # third step, repeated .. yes, at least twice for common.css
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
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: 2015-02-10 00:00:00.000000000 Z
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.6'
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.6'
29
+ version: '2.7'
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: rake
32
32
  requirement: !ruby/object:Gem::Requirement