refinerycms-generators 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gemspec.rb +1 -1
- data/lib/generators/refinery_engine/templates/app/views/admin/plural_name/_form.html.erb +1 -2
- data/lib/generators/refinery_engine/templates/lib/refinerycms-plural_name.rb +9 -0
- data/lib/refinerycms-generators.rb +9 -0
- data/refinerycms-generators.gemspec +2 -2
- metadata +18 -29
data/lib/gemspec.rb
CHANGED
@@ -44,12 +44,11 @@
|
|
44
44
|
<%% end %>
|
45
45
|
</div>
|
46
46
|
</div>
|
47
|
-
</div>
|
48
47
|
<% generated_text_areas = true -%>
|
49
48
|
<% elsif attribute.field_type.to_s != 'text_area' -%>
|
50
49
|
<%%= f.<%= attribute.field_type -%> :<%= attribute.name -%><%= ", :class => 'larger widest'" if (index == 0 && attribute.field_type == :text_field) -%><%= ", :checked => @#{singular_name}[:#{attribute.name}]" if attribute.field_type == :check_box %> -%>
|
51
|
-
</div>
|
52
50
|
<% end -%>
|
51
|
+
</div>
|
53
52
|
<% end %>
|
54
53
|
<%%= render :partial => "/shared/admin/form_actions",
|
55
54
|
:locals => {
|
@@ -2,6 +2,14 @@ require 'refinerycms-base'
|
|
2
2
|
|
3
3
|
module Refinery
|
4
4
|
module <%= class_name.pluralize %><%= 'Engine' if plural_name == singular_name %>
|
5
|
+
|
6
|
+
class << self
|
7
|
+
attr_accessor :root
|
8
|
+
def root
|
9
|
+
@root ||= Pathname.new(File.expand_path('../../', __FILE__))
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
5
13
|
class Engine < Rails::Engine
|
6
14
|
initializer "static assets" do |app|
|
7
15
|
app.middleware.insert_after ::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public"
|
@@ -10,6 +18,7 @@ module Refinery
|
|
10
18
|
config.after_initialize do
|
11
19
|
Refinery::Plugin.register do |plugin|
|
12
20
|
plugin.name = "<%= class_name.pluralize.underscore.downcase %>"
|
21
|
+
plugin.pathname = root
|
13
22
|
plugin.activity = {
|
14
23
|
:class => <%= class_name %><% if (title = attributes.detect { |a| a.type.to_s == "string" }).present? and title.name != 'title' %>,
|
15
24
|
:title => '<%= title.name %>'<% end %>
|
@@ -3,11 +3,20 @@ require File.expand_path('../refinery/generators', __FILE__)
|
|
3
3
|
|
4
4
|
module Refinery
|
5
5
|
module Generators
|
6
|
+
|
7
|
+
class << self
|
8
|
+
attr_accessor :root
|
9
|
+
def root
|
10
|
+
@root ||= Pathname.new(File.expand_path('../../', __FILE__))
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
6
14
|
class Engine < Rails::Engine
|
7
15
|
config.after_initialize do
|
8
16
|
::Refinery::Plugin.register do |plugin|
|
9
17
|
plugin.name = "refinery_generators"
|
10
18
|
plugin.hide_from_menu = true
|
19
|
+
plugin.pathname = root
|
11
20
|
end
|
12
21
|
end
|
13
22
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = %q{refinerycms-generators}
|
3
|
-
s.version = %q{1.0.
|
4
|
-
s.date = %q{2011-
|
3
|
+
s.version = %q{1.0.3}
|
4
|
+
s.date = %q{2011-08-11}
|
5
5
|
s.summary = %q{Core generators for the Refinery CMS project.}
|
6
6
|
s.description = %q{Core generators for Refinery CMS including refinery_engine.}
|
7
7
|
s.homepage = %q{http://refinerycms.com}
|
metadata
CHANGED
@@ -1,28 +1,22 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms-generators
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.3
|
4
5
|
prerelease:
|
5
|
-
version: 1.0.2
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Resolve Digital
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
date: 2011-06-03 00:00:00 +12:00
|
14
|
-
default_executable:
|
12
|
+
date: 2011-08-11 00:00:00.000000000Z
|
15
13
|
dependencies: []
|
16
|
-
|
17
14
|
description: Core generators for Refinery CMS including refinery_engine.
|
18
15
|
email: info@refinerycms.com
|
19
16
|
executables: []
|
20
|
-
|
21
17
|
extensions: []
|
22
|
-
|
23
18
|
extra_rdoc_files: []
|
24
|
-
|
25
|
-
files:
|
19
|
+
files:
|
26
20
|
- features/engine_generator.feature
|
27
21
|
- features/step_definitions/engine_generator_steps.rb
|
28
22
|
- features/step_definitions/generator_steps.rb
|
@@ -68,33 +62,28 @@ files:
|
|
68
62
|
- lib/refinerycms-generators.rb
|
69
63
|
- readme.md
|
70
64
|
- refinerycms-generators.gemspec
|
71
|
-
has_rdoc: true
|
72
65
|
homepage: http://refinerycms.com
|
73
66
|
licenses: []
|
74
|
-
|
75
67
|
post_install_message:
|
76
68
|
rdoc_options: []
|
77
|
-
|
78
|
-
require_paths:
|
69
|
+
require_paths:
|
79
70
|
- lib
|
80
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
71
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
81
72
|
none: false
|
82
|
-
requirements:
|
83
|
-
- -
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
version:
|
86
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
78
|
none: false
|
88
|
-
requirements:
|
89
|
-
- -
|
90
|
-
- !ruby/object:Gem::Version
|
91
|
-
version:
|
79
|
+
requirements:
|
80
|
+
- - ! '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
92
83
|
requirements: []
|
93
|
-
|
94
84
|
rubyforge_project:
|
95
|
-
rubygems_version: 1.
|
85
|
+
rubygems_version: 1.8.7
|
96
86
|
signing_key:
|
97
87
|
specification_version: 3
|
98
88
|
summary: Core generators for the Refinery CMS project.
|
99
89
|
test_files: []
|
100
|
-
|