widgets 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,11 @@
1
+ class WidgetsController < ApplicationController
2
+ layout false
3
+
4
+ def show
5
+ @name = params.delete(:id)
6
+ @id = params.delete(:widget_id)
7
+ @options = params.except(:controller, :action).to_hash.symbolize_keys!
8
+
9
+ respond_to :html, :js
10
+ end
11
+ end
data/config/routes.rb ADDED
@@ -0,0 +1,4 @@
1
+ Rails.application.routes.draw do
2
+ # Widget names are path names and can have slashes in them.
3
+ resources :widgets, only: [:show], constraints: {id: /.+/}
4
+ end
data/lib/widgets.rb CHANGED
@@ -1,5 +1,10 @@
1
1
  module Widgets
2
2
  class Engine < Rails::Engine
3
- require File.expand_path '../../app/helpers/application_helper', __FILE__
3
+ engine_name :widgets
4
+
5
+ config.after_initialize do
6
+ require File.expand_path '../../app/controllers/widgets_controller', __FILE__
7
+ require File.expand_path '../../app/helpers/application_helper', __FILE__
8
+ end
4
9
  end
5
10
  end
data/lib/widgets.rb~ ADDED
@@ -0,0 +1,10 @@
1
+ module Widgets
2
+ class Engine < Rails::Engine
3
+ engine_name :widgets
4
+
5
+ config.after_initialize do
6
+ require File.expand_path '../../app/controllers/widgets_controller', __FILE__
7
+ require File.expand_path '../../app/helpers/application_helper', __FILE__
8
+ end
9
+ end
10
+ end
@@ -1,3 +1,3 @@
1
1
  module Widgets
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
@@ -0,0 +1,3 @@
1
+ module Widgets
2
+ VERSION = '0.2.1'
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.1
4
+ version: 0.2.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-03-05 00:00:00.000000000 Z
12
+ date: 2013-04-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guid
@@ -91,6 +91,22 @@ dependencies:
91
91
  - - ~>
92
92
  - !ruby/object:Gem::Version
93
93
  version: 2.12.2
94
+ - !ruby/object:Gem::Dependency
95
+ name: specstar-controllers
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ~>
100
+ - !ruby/object:Gem::Version
101
+ version: 0.0.9
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: 0.0.9
94
110
  - !ruby/object:Gem::Dependency
95
111
  name: specstar-support-random
96
112
  requirement: !ruby/object:Gem::Requirement
@@ -146,10 +162,14 @@ executables: []
146
162
  extensions: []
147
163
  extra_rdoc_files: []
148
164
  files:
165
+ - app/controllers/widgets_controller.rb
149
166
  - app/helpers/application_helper.rb
167
+ - config/routes.rb
150
168
  - lib/tasks/widgets_tasks.rake
151
169
  - lib/widgets/version.rb
170
+ - lib/widgets/version.rb~
152
171
  - lib/widgets.rb
172
+ - lib/widgets.rb~
153
173
  - MIT-LICENSE
154
174
  - Rakefile
155
175
  - README.rdoc