widgets 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@ module ApplicationHelper
5
5
  id = Guid.new.to_s
6
6
  partial = File.join 'widgets', name.to_s
7
7
  attributes = {:id => id, :'data-widget' => name, :style => options.delete(:style), :class => options.delete(:effects)}
8
- options[:widget_id] = id unless options.include? :widget_id
8
+ options = {widget_id: id, widget_name: name}.merge options
9
9
 
10
10
  html = if block_given?
11
11
  render :layout => partial, :inline => capture(&block), :locals => options, :formats => [:html]
@@ -1,3 +1,3 @@
1
1
  module Widgets
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
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.2.0
4
+ version: 0.2.1
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-22 00:00:00.000000000 Z
12
+ date: 2013-03-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guid
@@ -149,7 +149,6 @@ files:
149
149
  - app/helpers/application_helper.rb
150
150
  - lib/tasks/widgets_tasks.rake
151
151
  - lib/widgets/version.rb
152
- - lib/widgets/version.rb~
153
152
  - lib/widgets.rb
154
153
  - MIT-LICENSE
155
154
  - Rakefile
@@ -1,3 +0,0 @@
1
- module Widgets
2
- VERSION = '0.1.3'
3
- end