action_widget 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,7 @@ Gem::Specification.new do |gem|
10
10
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
11
11
  gem.name = "action_widget"
12
12
  gem.require_paths = ["lib"]
13
- gem.version = "0.2.0"
13
+ gem.version = "0.3.0"
14
14
 
15
- gem.add_dependency 'smart_properties', '~> 1.0'
15
+ gem.add_dependency 'smart_properties', '~> 1.1'
16
16
  end
@@ -2,9 +2,17 @@ module ActionWidget
2
2
  module Extensions
3
3
  module Rails
4
4
  module Generators
5
-
6
- class Create < ::Rails::Generators::Base
7
- source_root File.expand_path('../../support/templates', __FILE__)
5
+
6
+ class Base < ::Rails::Generators::Base
7
+
8
+ def self.namespace(name=nil)
9
+ super.sub(/extensions:rails:/, '')
10
+ end
11
+
12
+ end
13
+
14
+ class Create < Base
15
+ source_root File.expand_path('../../../../../support/templates', __FILE__)
8
16
  argument :widget_name, :type => :string
9
17
  class_option :rspec, :type => :boolean, :default => true, :description => "Generates rspec file"
10
18
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_widget
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
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: 2012-08-29 00:00:00.000000000 Z
12
+ date: 2012-09-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: smart_properties
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: '1.0'
21
+ version: '1.1'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: '1.0'
29
+ version: '1.1'
30
30
  description:
31
31
  email:
32
32
  - me@t6d.de