yaks-sinatra 0.7.2 → 0.7.3

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/yaks-sinatra.rb +2 -2
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1cac25dc6b5d8f78de2e5e48c7ce3fb4203fe440
4
- data.tar.gz: 22dc455a751597c3c2edc4e654e1e3188443a943
3
+ metadata.gz: a3383c830e64e61976dfa2bb9cb7fd5a571c5006
4
+ data.tar.gz: 1b5465645cb2ce08d9480658fc32467e65a97aef
5
5
  SHA512:
6
- metadata.gz: c0b3557b7c5f54b3ed5216f115a8cab04411d35d3bbe57cda58622a010c31227463746901df765dc1f066f7c1d60eaedc3e576b934557ae9fa4406b8a30b016f
7
- data.tar.gz: e4ee01fd18f64c6f4ebe3df73a5a78fcd057ecbdfaf3545d47c687811cedd736318257454f77cece836dae7991ac874f9ed408b3d1051f830a7661674d188b13
6
+ metadata.gz: 1f657b8e3f0c1cfe4a8b28104cea397c94d75f2009d5b0d6220ee9d7ec50982ce85c124040c0203e1f094bf41e9e76d87196a70f5f0917502afb4de2fe0474ac
7
+ data.tar.gz: 06e2b065f23d8686ebc0012050e7e950956fbea7cbec2b47435014123667a17e4cc1f9ddb370ab4b9b93ccbf913dd8ec891b14d7ef35dc9dd79d6b4e80aa0b0f
data/lib/yaks-sinatra.rb CHANGED
@@ -19,8 +19,8 @@ module Sinatra
19
19
  end
20
20
 
21
21
  module YaksHelpers
22
- def yaks(*args)
23
- runner = Yaks.yaks_config.runner(*args, env: env)
22
+ def yaks(object, opts = {})
23
+ runner = Yaks.yaks_config.runner(object, {env: env}.merge(opts))
24
24
  content_type runner.format
25
25
  runner.result
26
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yaks-sinatra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arne Brasseur
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-10 00:00:00.000000000 Z
11
+ date: 2014-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yaks
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.7.2
19
+ version: 0.7.3
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.7.2
26
+ version: 0.7.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sinatra
29
29
  requirement: !ruby/object:Gem::Requirement