conjoin 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 37b3b3e0dea3d26b4c82214d197eb158e543c5da
4
- data.tar.gz: 3b309564ec3d2a4cf8077d104f9cdeb8a39f1c79
3
+ metadata.gz: d627a6815d37ad26ddf1116cbcfa4a9d80bc2686
4
+ data.tar.gz: aebbe30dc4b8629b3c5e6a1ef34dd396db73c505
5
5
  SHA512:
6
- metadata.gz: 017d486d53c6159088e8d2facb64e9956519d9d81852688c4e20ea209d4debf43d884b1e5de2dd4407425eb3334041d2790559cc8767cfd5e21afd6f7a617f6b
7
- data.tar.gz: fa8ddf1a40b6035986e16799695891208c6d2f09b1adaaafc1adb73ce8966cb6ae3211ab0aa6947f491c7771fac27d5fc33a925ba00866bb56552050007bb92e
6
+ metadata.gz: 56d77c26866b08f5e4fa6bb7e3fdafaa07a04ddf162ec3933e9b04a493dceb48a2cd51a47e787b5f47d3bd21fd8a0f7bee992e4842c275110fcea7140c4976e4
7
+ data.tar.gz: d2cc0d0836b2cb9897cafc7ca96f9e79c576b64aace688e81bac53bf1664a25a31ccd8cdec291a37f90545d0e873d5d4df2d0cc4b3c5939f07a41c55cd16560c
@@ -1,3 +1,3 @@
1
1
  module Conjoin
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
@@ -73,7 +73,7 @@ module Conjoin
73
73
  end
74
74
 
75
75
  def url_for_event event, options = {}
76
- widget_name = req.env[:widget_name]
76
+ widget_name = options.delete(:widget_name) || req.env[:widget_name]
77
77
  "#{Conjoin.env.mounted?? settings[:mounted_url] : ''}/widgets?widget_event=#{event}&widget_name=#{widget_name}" + (options.any?? '&' + URI.encode_www_form(options) : '')
78
78
  end
79
79
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conjoin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-15 00:00:00.000000000 Z
11
+ date: 2014-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cuba