widgets 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,6 +3,7 @@ module ApplicationHelper
3
3
  id = Guid.new.to_s
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
+ options[:widget_id] = id unless options.include? :widget_id
6
7
  contents = if block_given?
7
8
  render :layout => partial, :inline => capture(&block), :locals => options
8
9
  else
@@ -1,3 +1,3 @@
1
1
  module Widgets
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
@@ -1,3 +1,3 @@
1
1
  module Widgets
2
- VERSION = '0.0.1'
2
+ VERSION = '0.1.0'
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.0
4
+ version: 0.1.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-01-30 00:00:00.000000000 Z
12
+ date: 2013-02-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guid
@@ -115,7 +115,6 @@ extensions: []
115
115
  extra_rdoc_files: []
116
116
  files:
117
117
  - app/helpers/application_helper.rb
118
- - app/helpers/application_helper.rb~
119
118
  - lib/tasks/widgets_tasks.rake
120
119
  - lib/widgets/version.rb
121
120
  - lib/widgets/version.rb~
@@ -1,14 +0,0 @@
1
- module ApplicationHelper
2
- def widget(name, options={}, &block)
3
- id = Guid.new.to_s
4
- partial = File.join 'components', name.to_s
5
- attributes = {:id => id, :'data-component' => name, :style => options.delete(:style), :class => options.delete(:effects)}
6
- contents = if block_given?
7
- render :layout => partial, :inline => capture(&block), :locals => options
8
- else
9
- render :template => partial, :locals => options
10
- end
11
-
12
- content_tag :div, contents, attributes
13
- end
14
- end