jrhicks-static-generators 0.4.2 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest CHANGED
@@ -13,6 +13,12 @@ rails_generators/static_app/templates/blueprint/README
13
13
  rails_generators/static_app/templates/blueprint/README.textile
14
14
  rails_generators/static_app/templates/blueprint/readme.txt
15
15
  rails_generators/static_app/templates/blueprint/screen.css
16
+ rails_generators/static_app/templates/faceted_search/lib/base.rb
17
+ rails_generators/static_app/templates/faceted_search/lib/facet.rb
18
+ rails_generators/static_app/templates/faceted_search/lib/keyword_facet.rb
19
+ rails_generators/static_app/templates/faceted_search/lib/numeric_range_facet.rb
20
+ rails_generators/static_app/templates/faceted_search/views/keyword_facet.html.erb
21
+ rails_generators/static_app/templates/faceted_search/views/numeric_range_facet.html.erb
16
22
  rails_generators/static_app/templates/header_bg.png
17
23
  rails_generators/static_app/templates/icons/cross.png
18
24
  rails_generators/static_app/templates/icons/doc.png
@@ -87,8 +93,9 @@ rails_generators/static_scaffold/templates/helper.rb
87
93
  rails_generators/static_scaffold/templates/helper_test.rb
88
94
  rails_generators/static_scaffold/templates/layout.html.erb
89
95
  rails_generators/static_scaffold/templates/model.rb
90
- rails_generators/static_scaffold/templates/model_filter_session.rb
96
+ rails_generators/static_scaffold/templates/model_search.rb
91
97
  rails_generators/static_scaffold/templates/paperclip_tokens.rb
98
+ rails_generators/static_scaffold/templates/partial_facet_form.html.erb
92
99
  rails_generators/static_scaffold/templates/partial_work_area_entry_header.html.erb
93
100
  rails_generators/static_scaffold/templates/partial_work_area_index_header.html.erb
94
101
  rails_generators/static_scaffold/templates/view_edit.html.erb
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('static-generators', '0.4.2') do |p|
5
+ Echoe.new('static-generators', '0.4.4') do |p|
6
6
  p.project = "staticgenerators"
7
7
  p.description = "Generate attractive interfaces that are easy to edit."
8
8
  p.url = "http://github.com/jrhicks/static-scaffolds"
@@ -30,6 +30,16 @@ class StaticAppGenerator < Rails::Generator::Base
30
30
  m.directory 'vendor/plugins/jrails/tasks'
31
31
  m.directory 'vendor/plugins/jrails/javascripts'
32
32
  m.directory 'vendor/plugins/jrails/javascripts/sources'
33
+
34
+ # Faceted Search
35
+ m.directory "lib/faceted_search"
36
+ m.file("faceted_search/lib/base.rb","lib/faceted_search/base.rb")
37
+ m.file("faceted_search/lib/facet.rb","lib/faceted_search/facet.rb")
38
+ m.file("faceted_search/lib/keyword_facet.rb","lib/faceted_search/keyword_facet.rb")
39
+ m.file("faceted_search/lib/numeric_range_facet.rb","lib/faceted_search/numeric_range_facet.rb")
40
+ m.directory "app/views/faceted_search"
41
+ m.file("faceted_search/views/keyword_facet.html.erb","app/views/faceted_search/_keyword_facet.html.erb")
42
+ m.file("faceted_search/views/numeric_range_facet.html.erb","app/views/faceted_search/_numeric_range_facet.html.erb")
33
43
 
34
44
  # jrails plugin files
35
45
  [
@@ -0,0 +1,76 @@
1
+ class FacetedSearch::Base
2
+
3
+ # Manage a set of Basefacets which facilitate complex
4
+ # queries by storing search criteria found in request parameters
5
+ # and recalling these parameters to refine scopes
6
+
7
+ # See Ryan Bates RailsCast Episodes 112 & 119 for an explanation of
8
+ # Anonymous Scopes and Session Models
9
+
10
+ def initialize(session)
11
+ raise Exception.new("initialize is a subclass responsibility")
12
+ end
13
+
14
+ def register(facet)
15
+ @facets = [] if not @facets
16
+ @facets << facet
17
+ return facet
18
+ end
19
+
20
+ def create_keyword_facet(attributes)
21
+ register(FacetedSearch::KeywordFacet.new(attributes, @model.table_name, @session))
22
+ end
23
+
24
+ def create_numeric_range_facet(attribute)
25
+ register(FacetedSearch::NumericRangeFacet.new(attribute, @model.table_name, @session))
26
+ end
27
+
28
+ def refined(scope)
29
+ @facets.each {|facet| scope = facet.refined(scope)}
30
+ return scope
31
+ end
32
+
33
+ def paginate(scope=nil)
34
+ scope = @model.scoped({}) if not scope
35
+ scope = refined(scope)
36
+ return scope.paginate({:page=>page})
37
+ end
38
+
39
+ def to_params
40
+ params={}
41
+ @facets.each {|facet| params.merge(facet.to_params) }
42
+ return params
43
+ end
44
+
45
+ def to_md5
46
+ require 'digest/md5'
47
+ Digest::MD5.hexdigest(to_params.to_s)
48
+ end
49
+
50
+ def update_with(params)
51
+ @facets.each {|facet| facet.update_with(params)}
52
+ @session[page_param] = params[page_param] unless params[page_param].blank?
53
+ end
54
+
55
+ def order
56
+ @session[order_param]
57
+ end
58
+
59
+ def page
60
+ @session[page_param]
61
+ end
62
+
63
+ def order_param
64
+ "#{@model.table_name}_order"
65
+ end
66
+
67
+ def order_by_param
68
+ "#{@model.table_name}_order_by"
69
+ end
70
+
71
+ def page_param
72
+ "#{@model.table_name}_page"
73
+ end
74
+
75
+
76
+ end
@@ -0,0 +1,29 @@
1
+ class FacetedSearch::Facet
2
+
3
+ # facilitate complex queries by managing session data from request paramaters
4
+
5
+ def initialize(table_name,session)
6
+ @session = session
7
+ @table_name = table_name
8
+ raise Exception.new("initialize is a subclase responsibility")
9
+ end
10
+
11
+ def refined
12
+ raise Exception.new("refine is a subclass responsibility")
13
+ end
14
+
15
+ def parameter_names
16
+ raise Exception.new("parameter_names is subclass responsibility")
17
+ end
18
+
19
+ def to_params
20
+ params = {}
21
+ parameter_names.each {|pname| params[pname]=@session[pname]}
22
+ return params
23
+ end
24
+
25
+ def update_with(params)
26
+ parameter_names.each {|p| @session[p] = params[p] unless params[p]==nil}
27
+ end
28
+
29
+ end
@@ -0,0 +1,38 @@
1
+ class FacetedSearch::KeywordFacet < FacetedSearch::Facet
2
+
3
+ # Scope for like text on specified attributes
4
+
5
+ def initialize(attributes, table_name, session)
6
+ @attributes = attributes
7
+ @table_name = table_name
8
+ @session = session
9
+ end
10
+
11
+ def refined(scope)
12
+ if not search_phrase.blank?
13
+ for word in search_phrase.split
14
+ sql = @attributes.map {|a| "#{@table_name}.#{a} like ?"}.join(" or ")
15
+ values = ["%#{word}%"]*@attributes.length
16
+ scope = scope.scoped :conditions=>[sql,values].flatten
17
+ end
18
+ end
19
+ return scope
20
+ end
21
+
22
+ def param_name()
23
+ "#{@table_name}_keyword"
24
+ end
25
+
26
+ def search_phrase
27
+ @session[param_name]
28
+ end
29
+
30
+ def parameter_names
31
+ [param_name]
32
+ end
33
+
34
+ def form
35
+ "HTML HERE ??!?"
36
+ end
37
+
38
+ end
@@ -0,0 +1,41 @@
1
+ class FacetedSearch::NumericRangeFacet < FacetedSearch::Facet
2
+
3
+ # Set upper and lower limit values for an attribute
4
+
5
+ def initialize(attribute, table_name, session)
6
+ @attribute = attribute
7
+ @table_name = table_name
8
+ @session = session
9
+ end
10
+
11
+ def refined(scope)
12
+ scope = scope.scoped :conditions => ["#{@table_name}.#{@attribute} <= ?", upper_limit] unless upper_limit.blank?
13
+ scope = scope.scoped :conditions => ["#{@table_name}.#{@attribute} >= ?", lower_limit] unless lower_limit.blank?
14
+ return scope
15
+ end
16
+
17
+ def upper_limit_param_name()
18
+ "#{@table_name}_nrul_#{@attribute}"
19
+ end
20
+
21
+ def lower_limit_param_name()
22
+ "#{@table_name}_nrll_#{@attribute}"
23
+ end
24
+
25
+ def upper_limit
26
+ @session[upper_limit_param_name]
27
+ end
28
+
29
+ def lower_limit
30
+ @session[lower_limit_param_name]
31
+ end
32
+
33
+ def parameter_names
34
+ [upper_limit_param_name, lower_limit_param_name]
35
+ end
36
+
37
+ def form
38
+ "HTML HERE ??!?"
39
+ end
40
+
41
+ end
@@ -0,0 +1,4 @@
1
+ <%form_for(@facet, :url => { :action => "index" }) do |f|%>
2
+ <input type="text" name="<%=@facet.param_name%>" value="<%=@facet.search_phrase%>"%>
3
+ <%= submit_tag 'Update' %>
4
+ <%end%>
@@ -0,0 +1,7 @@
1
+ <%form_for(@facet, :url => { :action => "index" }) do |f|%>
2
+ From:
3
+ <input type="text" name="<%=@facet.lower_limit_param_name%>" value="<%=@facet.lower_limit%>" size="3">
4
+ To:
5
+ <input type="text" name="<%=@facet.upper_limit_param_name%>" value="<%=@facet.upper_limit%>" size="3"><br>
6
+ <%= submit_tag 'Update' %>
7
+ <%end%>
@@ -151,6 +151,14 @@ class StaticGenSpecsGenerator < Rails::Generator::NamedBase
151
151
  end
152
152
  end
153
153
 
154
+ def guess_numeric_range_facets
155
+ column_names.select {|cname| [:int,:float, :decimal].include?(guess_type(cname)) }
156
+ end
157
+
158
+ def guess_keyword_facets
159
+ column_names.select {|cname| [:text,:string].include?(guess_type(cname)) }
160
+ end
161
+
154
162
  def estimate_string(cname)
155
163
  # Look for commonly named fields and guess length otherwise make an educated guess based on db limits
156
164
  c=column(cname)
@@ -51,6 +51,26 @@ class <%=class_name%>GenSpecs < GeneratorSpecs
51
51
  <%end -%>
52
52
  ]
53
53
  end
54
+
55
+ def search_facets
56
+ [<%if guess_keyword_facets and guess_keyword_facets.length>0 -%>
57
+ {
58
+ :name => "keyword_facet",
59
+ :type => "keyword_facet",
60
+ :attributes => <%=guess_keyword_facets.inspect%>,
61
+ :partial => "keyword_facet",
62
+ :title => "Search"
63
+ },
64
+ <%end -%><%for nrc in guess_numeric_range_facets -%>
65
+ {
66
+ :name => "<%=nrc%>_facet",
67
+ :type => "numeric_range_facet",
68
+ :attributes => <%=nrc.inspect%>,
69
+ :partial => "numeric_range_facet",
70
+ :title => <%=nrc.titleize.inspect%>
71
+ },<%end -%>
72
+ ]
73
+ end
54
74
 
55
75
  def form_groups
56
76
  [
@@ -78,7 +78,12 @@ class StaticScaffoldGenerator < Rails::Generator::NamedBase
78
78
  "model.rb",
79
79
  File.join('app/models',"#{@controller_singular_name.downcase}.rb"))
80
80
 
81
-
81
+ # Faceted Search
82
+ m.template("model_search.rb",
83
+ File.join('app/models',"#{@controller_singular_name.downcase}_search.rb"))
84
+ m.template("partial_facet_form.html.erb",
85
+ File.join('app/views',controller_class_path, controller_file_name, "_facet_form.html.erb"))
86
+
82
87
  # Views
83
88
  for action in scaffold_views
84
89
  m.template(
@@ -1,4 +1,7 @@
1
1
  class <%= controller_class_name %>Controller < ApplicationController
2
+
3
+ before_filter :update_<%=gen_spec.singular_name%>_search
4
+
2
5
  # GET /<%= table_name %>
3
6
  # GET /<%= table_name %>.xml
4
7
  def index
@@ -6,7 +9,7 @@ class <%= controller_class_name %>Controller < ApplicationController
6
9
  @<%=gen_spec.ascendant[:name]%> = <%=gen_spec.ascendant[:model]%>.find(params["<%=gen_spec.ascendant[:name]%>"])
7
10
  @<%=gen_spec.plural_name %> = @<%=gen_spec.ascendant[:name]%>.<%= gen_spec.plural_name %>
8
11
  <%else -%>
9
- @<%=gen_spec.plural_name %> = <%= gen_spec.model_name %>.search(params[:page])
12
+ @<%=gen_spec.plural_name %> = <%= gen_spec.singular_name %>_search.paginate
10
13
  <%end -%>
11
14
 
12
15
  # Configure Partials
@@ -109,4 +112,17 @@ class <%= controller_class_name %>Controller < ApplicationController
109
112
  format.xml { head :ok }
110
113
  end
111
114
  end
115
+
116
+ private
117
+
118
+ def <%=gen_spec.singular_name%>_search
119
+ @<%=gen_spec.singular_name%>_search ||= <%=gen_spec.model_name%>Search.new(session)
120
+ end
121
+
122
+ def update_<%=gen_spec.singular_name%>_search
123
+ <%=gen_spec.singular_name%>_search.update_with(params)
124
+ end
125
+
126
+ helper_method :<%=gen_spec.singular_name%>_search
127
+
112
128
  end
@@ -0,0 +1,71 @@
1
+ class FilterSessionBase
2
+
3
+ # See Ryan Bates Episode 112 & 119
4
+
5
+ def initialize(session)
6
+ @session = session
7
+ end
8
+
9
+ def numeric_range_filters
10
+ []
11
+ end
12
+
13
+ def keyword_filters
14
+ []
15
+ end
16
+
17
+ def belongs_to_filters
18
+ []
19
+ end
20
+
21
+ def select_filters
22
+ []
23
+ end
24
+
25
+ def find_clients
26
+ scope = Product.scope({})
27
+ numeric_range_filters.each { |a| scope = numeric_range_scope(scope, a) }
28
+ belongs_to_filters.each { |a| scope = belongs_to_filters_scope(scope, a) }
29
+ select_filters.each { |a| scope = select_filters_scope(scope, a) }
30
+ scope = keyword_filters unless keyword_filters.blank?
31
+ scope
32
+ end
33
+
34
+ def update_filter(params)
35
+ @params=params
36
+ update_page_and_order()
37
+ update_numeric_range_filter("price")
38
+ end
39
+
40
+ private
41
+
42
+ def reset
43
+ @session[@prefix] = {}
44
+ set("order_by","price")
45
+ set("order", "asc")
46
+ end
47
+
48
+ def numeric_range_scope(scope, attribute)
49
+ lr = session[@prefix]["#{lower_range}_#{attribute}"]
50
+ ur = session[@prefix]["#{upper_range}_#{attribute}"]
51
+ scope.scoped :conditions => ["#{Client.table_name}.#{attribute} >= ?", lr] unless lr.blank?
52
+ scope.scoped :conditions => ["#{Client.table_name}.#{attribute} <= ?", ur] unless ur.blank?
53
+ end
54
+
55
+ def update_page_and_order(params)
56
+ @params=params
57
+ set_if("page")
58
+ set_if("order_by")
59
+ set_if("order")
60
+ end
61
+
62
+ def update_numeric_range_filter(attribute)
63
+ set_if("upper_range_#{attribute}", @params)
64
+ set_if("lower_range_#{attribute}", @params)
65
+ end
66
+
67
+ def set_if(attribute, params)
68
+ @session[@prefix][name] = params[attribute]) unless params[attribute].blank?
69
+ end
70
+
71
+ end
@@ -19,21 +19,10 @@
19
19
  <div class="span-5">
20
20
  <div class="model_selector">
21
21
  <div class="model_selection ui-corner-tl">
22
- Clients
23
- </div>
24
- <div class="model_selection">
25
- <%%=link_to 'Projects'%>
26
- </div>
27
- <div class="model_selection">
28
- <%%=link_to 'Users'%>
29
- </div>
30
- <div class="model_selection">
31
- <%%=link_to 'Offices'%>
32
- </div>
33
- <div class="model_selection">
34
- <%%=link_to 'Vendors'%>
22
+ <%=gen_spec.plural_name.titleize%>
35
23
  </div>
36
24
  </div> <!-- end model selector -->
25
+ <%%=render :partial=>"<%=gen_spec.plural_name%>/facet_form"%>
37
26
  </div> <!-- end left_column -->
38
27
 
39
28
  <!-- Right Column -->
@@ -0,0 +1,13 @@
1
+ class <%=gen_spec.model_name%>Search < FacetedSearch::Base
2
+
3
+ attr_reader <%=gen_spec.search_facets.map {|f| f[:name].to_sym.inspect}.join(", ")%>
4
+
5
+ def initialize(session)
6
+ @session = session
7
+ @model = <%=gen_spec.model_name%>
8
+ <%for f in gen_spec.search_facets -%>
9
+ @<%=f[:name]%> = create_<%=f[:type]%>(<%=f[:attributes].inspect%>)
10
+ <%end -%>
11
+ end
12
+
13
+ end
@@ -0,0 +1,7 @@
1
+ <%for f in gen_spec.search_facets -%>
2
+ <div style="padding-top: 2em;">
3
+ <h6><%=f[:title]%></h6>
4
+ <%%@facet=<%=gen_spec.singular_name%>_search.<%=f[:name]%> %>
5
+ <%%=render :partial=>"/faceted_search/<%=f[:partial]%>"%>
6
+ </div>
7
+ <%end -%>
@@ -1,5 +1,5 @@
1
1
  <div style="float: right; padding-right: 1em; font-size: .8em;">
2
- <%%= will_paginate @posts, :inner_window=>1, :outer_window=>0, :previous_label=>'&laquo;', :next_label=>'&raquo;' %>
2
+ <%%= will_paginate @posts, :param_name=><%=gen_spec.singular_name%>_search.page_param, :inner_window=>1, :outer_window=>0, :previous_label=>'&laquo;', :next_label=>'&raquo;' %>
3
3
 
4
4
  </div>
5
5
  Application Work Area Title Bar
@@ -2,15 +2,15 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{static-generators}
5
- s.version = "0.4.2"
5
+ s.version = "0.4.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Jeffrey Hicks"]
9
- s.date = %q{2009-07-14}
9
+ s.date = %q{2009-07-16}
10
10
  s.description = %q{Generate attractive interfaces that are easy to edit.}
11
11
  s.email = %q{jrhicks (at) gmail (dot) com}
12
12
  s.extra_rdoc_files = ["CHANGELOG", "lib/static_generators.rb", "LICENSE", "README.md", "tasks/deployment.rake", "TODO"]
13
- s.files = ["CHANGELOG", "lib/static_generators.rb", "LICENSE", "rails_generators/static_app/static_app_generator.rb", "rails_generators/static_app/templates/application_helper.rb", "rails_generators/static_app/templates/blueprint/AUTHORS.textile", "rails_generators/static_app/templates/blueprint/icons/cross.png", "rails_generators/static_app/templates/blueprint/icons/key.png", "rails_generators/static_app/templates/blueprint/icons/tick.png", "rails_generators/static_app/templates/blueprint/ie.css", "rails_generators/static_app/templates/blueprint/print.css", "rails_generators/static_app/templates/blueprint/README", "rails_generators/static_app/templates/blueprint/README.textile", "rails_generators/static_app/templates/blueprint/readme.txt", "rails_generators/static_app/templates/blueprint/screen.css", "rails_generators/static_app/templates/header_bg.png", "rails_generators/static_app/templates/icons/cross.png", "rails_generators/static_app/templates/icons/doc.png", "rails_generators/static_app/templates/icons/email.png", "rails_generators/static_app/templates/icons/external.png", "rails_generators/static_app/templates/icons/feed.png", "rails_generators/static_app/templates/icons/key.png", "rails_generators/static_app/templates/icons/pdf.png", "rails_generators/static_app/templates/icons/tick.png", "rails_generators/static_app/templates/icons/visited.png", "rails_generators/static_app/templates/icons/xls.png", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/css/redmond/images/ui-bg_flat_0_aaaaaa_40x100.png", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/css/redmond/images/ui-bg_flat_55_fbec88_40x100.png", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/css/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/css/redmond/images/ui-bg_glass_85_dfeffc_1x400.png", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/css/redmond/images/ui-bg_glass_95_fef1ec_1x400.png", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/css/redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/css/redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/css/redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/css/redmond/images/ui-icons_217bc0_256x240.png", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/css/redmond/images/ui-icons_2e83ff_256x240.png", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/css/redmond/images/ui-icons_469bdd_256x240.png", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/css/redmond/images/ui-icons_6da8d5_256x240.png", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/css/redmond/images/ui-icons_cd0a0a_256x240.png", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/css/redmond/images/ui-icons_d8e7f3_256x240.png", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/css/redmond/images/ui-icons_f9bd01_256x240.png", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/css/redmond/jquery-ui-1.7.2.custom.css", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/index.html", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/js/jquery-1.3.2.min.js", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/js/jquery-ui-1.7.2.custom.min.js", "rails_generators/static_app/templates/jrails/jquery-ui.js", "rails_generators/static_app/templates/jrails/jquery.js", "rails_generators/static_app/templates/jrails/jrails.js", "rails_generators/static_app/templates/layout.html.erb", "rails_generators/static_app/templates/layout_helper.rb", "rails_generators/static_app/templates/navigation_bar_bg.gif", "rails_generators/static_app/templates/plugins/jrails/CHANGELOG", "rails_generators/static_app/templates/plugins/jrails/init.rb", "rails_generators/static_app/templates/plugins/jrails/install.rb", "rails_generators/static_app/templates/plugins/jrails/javascripts/jquery-ui.js", "rails_generators/static_app/templates/plugins/jrails/javascripts/jquery.js", "rails_generators/static_app/templates/plugins/jrails/javascripts/jrails.js", "rails_generators/static_app/templates/plugins/jrails/javascripts/sources/jrails.js", "rails_generators/static_app/templates/plugins/jrails/lib/jrails.rb", "rails_generators/static_app/templates/plugins/jrails/README", "rails_generators/static_app/templates/plugins/jrails/tasks/jrails.rake", "rails_generators/static_app/templates/sorttable/sorttable.js", "rails_generators/static_app/templates/standard_banner.html.erb", "rails_generators/static_app/templates/standard_footer.html.erb", "rails_generators/static_app/templates/standard_header.html.erb", "rails_generators/static_app/templates/standard_navigation.html.erb", "rails_generators/static_app/templates/static_generator.rake", "rails_generators/static_app/templates/static_style.css", "rails_generators/static_app/templates/uni-form/jquery.js", "rails_generators/static_app/templates/uni-form/uni-form-generic.css", "rails_generators/static_app/templates/uni-form/uni-form.css", "rails_generators/static_app/templates/uni-form/uni-form.jquery.js", "rails_generators/static_app/USAGE", "rails_generators/static_authorization/static_authorization_generator.rb", "rails_generators/static_authorization/templates/migration.rb", "rails_generators/static_authorization/USAGE", "rails_generators/static_gen_specs/static_gen_specs_generator.rb", "rails_generators/static_gen_specs/templates/generator_specs.rb", "rails_generators/static_gen_specs/templates/model_gen_specs.rb", "rails_generators/static_gen_specs/USAGE", "rails_generators/static_scaffold/static_scaffold_generator.rb", "rails_generators/static_scaffold/templates/controller.rb", "rails_generators/static_scaffold/templates/fake_data.rake", "rails_generators/static_scaffold/templates/functional_test.rb", "rails_generators/static_scaffold/templates/helper.rb", "rails_generators/static_scaffold/templates/helper_test.rb", "rails_generators/static_scaffold/templates/layout.html.erb", "rails_generators/static_scaffold/templates/model.rb", "rails_generators/static_scaffold/templates/paperclip_tokens.rb", "rails_generators/static_scaffold/templates/partial_work_area_entry_header.html.erb", "rails_generators/static_scaffold/templates/partial_work_area_index_header.html.erb", "rails_generators/static_scaffold/templates/view_edit.html.erb", "rails_generators/static_scaffold/templates/view_index.html.erb", "rails_generators/static_scaffold/templates/view_new.html.erb", "rails_generators/static_scaffold/templates/view_show.html.erb", "rails_generators/static_scaffold/USAGE", "Rakefile", "README.md", "tasks/deployment.rake", "TODO", "USAGE", "Manifest", "static-generators.gemspec"]
13
+ s.files = ["CHANGELOG", "lib/static_generators.rb", "LICENSE", "rails_generators/static_app/static_app_generator.rb", "rails_generators/static_app/templates/application_helper.rb", "rails_generators/static_app/templates/blueprint/AUTHORS.textile", "rails_generators/static_app/templates/blueprint/icons/cross.png", "rails_generators/static_app/templates/blueprint/icons/key.png", "rails_generators/static_app/templates/blueprint/icons/tick.png", "rails_generators/static_app/templates/blueprint/ie.css", "rails_generators/static_app/templates/blueprint/print.css", "rails_generators/static_app/templates/blueprint/README", "rails_generators/static_app/templates/blueprint/README.textile", "rails_generators/static_app/templates/blueprint/readme.txt", "rails_generators/static_app/templates/blueprint/screen.css", "rails_generators/static_app/templates/faceted_search/lib/base.rb", "rails_generators/static_app/templates/faceted_search/lib/facet.rb", "rails_generators/static_app/templates/faceted_search/lib/keyword_facet.rb", "rails_generators/static_app/templates/faceted_search/lib/numeric_range_facet.rb", "rails_generators/static_app/templates/faceted_search/views/keyword_facet.html.erb", "rails_generators/static_app/templates/faceted_search/views/numeric_range_facet.html.erb", "rails_generators/static_app/templates/header_bg.png", "rails_generators/static_app/templates/icons/cross.png", "rails_generators/static_app/templates/icons/doc.png", "rails_generators/static_app/templates/icons/email.png", "rails_generators/static_app/templates/icons/external.png", "rails_generators/static_app/templates/icons/feed.png", "rails_generators/static_app/templates/icons/key.png", "rails_generators/static_app/templates/icons/pdf.png", "rails_generators/static_app/templates/icons/tick.png", "rails_generators/static_app/templates/icons/visited.png", "rails_generators/static_app/templates/icons/xls.png", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/css/redmond/images/ui-bg_flat_0_aaaaaa_40x100.png", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/css/redmond/images/ui-bg_flat_55_fbec88_40x100.png", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/css/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/css/redmond/images/ui-bg_glass_85_dfeffc_1x400.png", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/css/redmond/images/ui-bg_glass_95_fef1ec_1x400.png", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/css/redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/css/redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/css/redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/css/redmond/images/ui-icons_217bc0_256x240.png", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/css/redmond/images/ui-icons_2e83ff_256x240.png", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/css/redmond/images/ui-icons_469bdd_256x240.png", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/css/redmond/images/ui-icons_6da8d5_256x240.png", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/css/redmond/images/ui-icons_cd0a0a_256x240.png", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/css/redmond/images/ui-icons_d8e7f3_256x240.png", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/css/redmond/images/ui-icons_f9bd01_256x240.png", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/css/redmond/jquery-ui-1.7.2.custom.css", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/index.html", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/js/jquery-1.3.2.min.js", "rails_generators/static_app/templates/jquery-ui-1.7.2.custom/js/jquery-ui-1.7.2.custom.min.js", "rails_generators/static_app/templates/jrails/jquery-ui.js", "rails_generators/static_app/templates/jrails/jquery.js", "rails_generators/static_app/templates/jrails/jrails.js", "rails_generators/static_app/templates/layout.html.erb", "rails_generators/static_app/templates/layout_helper.rb", "rails_generators/static_app/templates/navigation_bar_bg.gif", "rails_generators/static_app/templates/plugins/jrails/CHANGELOG", "rails_generators/static_app/templates/plugins/jrails/init.rb", "rails_generators/static_app/templates/plugins/jrails/install.rb", "rails_generators/static_app/templates/plugins/jrails/javascripts/jquery-ui.js", "rails_generators/static_app/templates/plugins/jrails/javascripts/jquery.js", "rails_generators/static_app/templates/plugins/jrails/javascripts/jrails.js", "rails_generators/static_app/templates/plugins/jrails/javascripts/sources/jrails.js", "rails_generators/static_app/templates/plugins/jrails/lib/jrails.rb", "rails_generators/static_app/templates/plugins/jrails/README", "rails_generators/static_app/templates/plugins/jrails/tasks/jrails.rake", "rails_generators/static_app/templates/sorttable/sorttable.js", "rails_generators/static_app/templates/standard_banner.html.erb", "rails_generators/static_app/templates/standard_footer.html.erb", "rails_generators/static_app/templates/standard_header.html.erb", "rails_generators/static_app/templates/standard_navigation.html.erb", "rails_generators/static_app/templates/static_generator.rake", "rails_generators/static_app/templates/static_style.css", "rails_generators/static_app/templates/uni-form/jquery.js", "rails_generators/static_app/templates/uni-form/uni-form-generic.css", "rails_generators/static_app/templates/uni-form/uni-form.css", "rails_generators/static_app/templates/uni-form/uni-form.jquery.js", "rails_generators/static_app/USAGE", "rails_generators/static_authorization/static_authorization_generator.rb", "rails_generators/static_authorization/templates/migration.rb", "rails_generators/static_authorization/USAGE", "rails_generators/static_gen_specs/static_gen_specs_generator.rb", "rails_generators/static_gen_specs/templates/generator_specs.rb", "rails_generators/static_gen_specs/templates/model_gen_specs.rb", "rails_generators/static_gen_specs/USAGE", "rails_generators/static_scaffold/static_scaffold_generator.rb", "rails_generators/static_scaffold/templates/controller.rb", "rails_generators/static_scaffold/templates/fake_data.rake", "rails_generators/static_scaffold/templates/filter_session_base.rb", "rails_generators/static_scaffold/templates/functional_test.rb", "rails_generators/static_scaffold/templates/helper.rb", "rails_generators/static_scaffold/templates/helper_test.rb", "rails_generators/static_scaffold/templates/layout.html.erb", "rails_generators/static_scaffold/templates/model.rb", "rails_generators/static_scaffold/templates/model_search.rb", "rails_generators/static_scaffold/templates/paperclip_tokens.rb", "rails_generators/static_scaffold/templates/partial_facet_form.html.erb", "rails_generators/static_scaffold/templates/partial_work_area_entry_header.html.erb", "rails_generators/static_scaffold/templates/partial_work_area_index_header.html.erb", "rails_generators/static_scaffold/templates/view_edit.html.erb", "rails_generators/static_scaffold/templates/view_index.html.erb", "rails_generators/static_scaffold/templates/view_new.html.erb", "rails_generators/static_scaffold/templates/view_show.html.erb", "rails_generators/static_scaffold/USAGE", "Rakefile", "README.md", "tasks/deployment.rake", "TODO", "USAGE", "Manifest", "static-generators.gemspec"]
14
14
  s.has_rdoc = true
15
15
  s.homepage = %q{http://github.com/jrhicks/static-scaffolds}
16
16
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Static-generators", "--main", "README.md"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jrhicks-static-generators
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeffrey Hicks
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-14 00:00:00 -07:00
12
+ date: 2009-07-16 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -71,6 +71,12 @@ files:
71
71
  - rails_generators/static_app/templates/blueprint/README.textile
72
72
  - rails_generators/static_app/templates/blueprint/readme.txt
73
73
  - rails_generators/static_app/templates/blueprint/screen.css
74
+ - rails_generators/static_app/templates/faceted_search/lib/base.rb
75
+ - rails_generators/static_app/templates/faceted_search/lib/facet.rb
76
+ - rails_generators/static_app/templates/faceted_search/lib/keyword_facet.rb
77
+ - rails_generators/static_app/templates/faceted_search/lib/numeric_range_facet.rb
78
+ - rails_generators/static_app/templates/faceted_search/views/keyword_facet.html.erb
79
+ - rails_generators/static_app/templates/faceted_search/views/numeric_range_facet.html.erb
74
80
  - rails_generators/static_app/templates/header_bg.png
75
81
  - rails_generators/static_app/templates/icons/cross.png
76
82
  - rails_generators/static_app/templates/icons/doc.png
@@ -139,12 +145,15 @@ files:
139
145
  - rails_generators/static_scaffold/static_scaffold_generator.rb
140
146
  - rails_generators/static_scaffold/templates/controller.rb
141
147
  - rails_generators/static_scaffold/templates/fake_data.rake
148
+ - rails_generators/static_scaffold/templates/filter_session_base.rb
142
149
  - rails_generators/static_scaffold/templates/functional_test.rb
143
150
  - rails_generators/static_scaffold/templates/helper.rb
144
151
  - rails_generators/static_scaffold/templates/helper_test.rb
145
152
  - rails_generators/static_scaffold/templates/layout.html.erb
146
153
  - rails_generators/static_scaffold/templates/model.rb
154
+ - rails_generators/static_scaffold/templates/model_search.rb
147
155
  - rails_generators/static_scaffold/templates/paperclip_tokens.rb
156
+ - rails_generators/static_scaffold/templates/partial_facet_form.html.erb
148
157
  - rails_generators/static_scaffold/templates/partial_work_area_entry_header.html.erb
149
158
  - rails_generators/static_scaffold/templates/partial_work_area_index_header.html.erb
150
159
  - rails_generators/static_scaffold/templates/view_edit.html.erb