beautiful_scaffold 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/beautiful_scaffold.gemspec
CHANGED
|
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = "beautiful_scaffold"
|
|
6
|
-
s.version = "0.0.
|
|
6
|
+
s.version = "0.0.8"
|
|
7
7
|
s.platform = Gem::Platform::RUBY
|
|
8
8
|
s.summary = "Beautiful Scaffold generate fully customizable scaffold"
|
|
9
9
|
s.email = "claudel.sylvain@gmail.com"
|
|
@@ -11,6 +11,10 @@ class BeautifulMigrationGenerator < Rails::Generators::Base
|
|
|
11
11
|
argument :myattributes, :type => :array, :default => [], :banner => "field:type field:type"
|
|
12
12
|
class_option :namespace, :default => nil
|
|
13
13
|
|
|
14
|
+
def install_gems
|
|
15
|
+
require_gems
|
|
16
|
+
end
|
|
17
|
+
|
|
14
18
|
def add_field_for_fulltext
|
|
15
19
|
@beautiful_attributes = myattributes.dup
|
|
16
20
|
@fulltext_field = []
|
|
@@ -101,4 +101,15 @@ module BeautifulScaffoldCommonMethods
|
|
|
101
101
|
return ["bbcode","html","text","wiki","textile","markdown"]
|
|
102
102
|
end
|
|
103
103
|
|
|
104
|
+
def require_gems
|
|
105
|
+
gem('will_paginate')
|
|
106
|
+
gem('ransack')
|
|
107
|
+
gem('prawn', '1.0.0.rc1')
|
|
108
|
+
gem('RedCloth')
|
|
109
|
+
gem('bb-ruby')
|
|
110
|
+
gem('bluecloth')
|
|
111
|
+
gem('rdiscount')
|
|
112
|
+
gem('sanitize')
|
|
113
|
+
end
|
|
114
|
+
|
|
104
115
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: beautiful_scaffold
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.8
|
|
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-03-
|
|
12
|
+
date: 2012-03-12 00:00:00.000000000Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: Beautiful Scaffold generate a complete scaffold (sort, export, paginate
|
|
15
15
|
and filter data)
|