widgets 0.1.1 → 0.1.2

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.
@@ -4,8 +4,9 @@ module ApplicationHelper
4
4
  partial = File.join 'widgets', name.to_s
5
5
  attributes = {:id => id, :'data-widget' => name, :style => options.delete(:style), :class => options.delete(:effects)}
6
6
  options[:widget_id] = id unless options.include? :widget_id
7
+
7
8
  contents = if block_given?
8
- render :layout => partial, :inline => capture(&block), :locals => options
9
+ render :layout => partial, :inline => capture(&block), :locals => options, :formats => [:html]
9
10
  else
10
11
  render :template => partial, :locals => options
11
12
  end
@@ -1,3 +1,3 @@
1
1
  module Widgets
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: widgets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-02 00:00:00.000000000 Z
12
+ date: 2013-02-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guid
@@ -117,7 +117,6 @@ files:
117
117
  - app/helpers/application_helper.rb
118
118
  - lib/tasks/widgets_tasks.rake
119
119
  - lib/widgets/version.rb
120
- - lib/widgets/version.rb~
121
120
  - lib/widgets.rb
122
121
  - MIT-LICENSE
123
122
  - Rakefile
@@ -1,3 +0,0 @@
1
- module Widgets
2
- VERSION = '0.1.0'
3
- end