jrhicks-static-generators 0.4.5 → 0.4.7

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest CHANGED
@@ -18,6 +18,7 @@ rails_generators/static_app/templates/faceted_search/lib/date_range_facet.rb
18
18
  rails_generators/static_app/templates/faceted_search/lib/facet.rb
19
19
  rails_generators/static_app/templates/faceted_search/lib/keyword_facet.rb
20
20
  rails_generators/static_app/templates/faceted_search/lib/numeric_range_facet.rb
21
+ rails_generators/static_app/templates/faceted_search/views/active_facets.html.erb
21
22
  rails_generators/static_app/templates/faceted_search/views/date_range_facet.html.erb
22
23
  rails_generators/static_app/templates/faceted_search/views/keyword_facet.html.erb
23
24
  rails_generators/static_app/templates/faceted_search/views/numeric_range_facet.html.erb
data/README.md CHANGED
@@ -1,27 +1,44 @@
1
- ## Static Scaffolds (Not really ready yet)
1
+ ## Static Scaffolds
2
2
 
3
- Generate attractive interfaces that are easy to edit.
3
+ Scaffold usable rails apps that are easy to edit.
4
4
 
5
- ## Installation
5
+ ## Install Gem
6
6
 
7
7
  gem sources -a http://gems.github.com
8
8
  gem install jrhicks-static-generators
9
9
 
10
- ## Usage (Roadmap)
10
+ ## Install into new app (Requires Rails 2.3)
11
+
12
+ rails project_name -m http://github.com/jrhicks/static-scaffolds/raw/master/rails_templates/static_base.rb
13
+
14
+ ## Usage
11
15
 
12
16
  ruby script/generate static_app
13
17
  ruby script/generate static_gen_specs MyModel
14
18
  ruby script/generate static_scaffold MyModel
15
19
 
16
- ## Gem Development
20
+ ## Demo AddressBook App
17
21
 
18
- gem install echoe
19
- rake manifest
20
- rake install
22
+ rails address_book -m http://github.com/jrhicks/static-scaffolds/raw/master/rails_templates/static_base.rb
23
+ ruby script/generate model contact full_name, email, work_phone, cell_phone, street_address, city, state, zip
24
+ rake db:migrate
25
+ ruby script/generate static_gen_specs contact -f
26
+ ruby script/generate static_scaffold contact -f
27
+ rake db:populate_fake_contacts
28
+ ruby script/server
29
+
30
+ http://localhost:3000/contacts
31
+
32
+ ## Development
33
+
34
+ git clone git://github.com/jrhicks/static-scaffolds.git
35
+
36
+ gem install echoe
37
+ rake manifest
21
38
  rake build
22
- rake publish
39
+ rake install
23
40
 
24
41
  ## Author
25
42
 
26
- Jeffrey Hicks
43
+ Jeffrey Hicks
27
44
 
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.5') do |p|
5
+ Echoe.new('static-generators', '0.4.7') 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"
@@ -39,6 +39,7 @@ class StaticAppGenerator < Rails::Generator::Base
39
39
  m.file("faceted_search/lib/numeric_range_facet.rb","lib/faceted_search/numeric_range_facet.rb")
40
40
  m.file("faceted_search/lib/date_range_facet.rb","lib/faceted_search/date_range_facet.rb")
41
41
  m.directory "app/views/faceted_search"
42
+ m.file("faceted_search/views/active_facets.html.erb","app/views/faceted_search/_active_facets.html.erb")
42
43
  m.file("faceted_search/views/keyword_facet.html.erb","app/views/faceted_search/_keyword_facet.html.erb")
43
44
  m.file("faceted_search/views/numeric_range_facet.html.erb","app/views/faceted_search/_numeric_range_facet.html.erb")
44
45
  m.file("faceted_search/views/date_range_facet.html.erb","app/views/faceted_search/_date_range_facet.html.erb")
@@ -17,16 +17,16 @@ class FacetedSearch::Base
17
17
  return facet
18
18
  end
19
19
 
20
- def create_keyword_facet(attributes)
21
- register(FacetedSearch::KeywordFacet.new(attributes, @model.table_name, @session))
20
+ def create_keyword_facet(title, attributes)
21
+ register(FacetedSearch::KeywordFacet.new(attributes, title, @model.table_name, @session))
22
22
  end
23
23
 
24
- def create_numeric_range_facet(attribute)
25
- register(FacetedSearch::NumericRangeFacet.new(attribute, @model.table_name, @session))
24
+ def create_numeric_range_facet(title, attribute)
25
+ register(FacetedSearch::NumericRangeFacet.new(attribute, title, @model.table_name, @session))
26
26
  end
27
27
 
28
- def create_date_range_facet(attribute)
29
- register(FacetedSearch::DateRangeFacet.new(attribute, @model.table_name, @session))
28
+ def create_date_range_facet(title, attribute)
29
+ register(FacetedSearch::DateRangeFacet.new(attribute, title, @model.table_name, @session))
30
30
  end
31
31
 
32
32
  def refined(scope)
@@ -59,6 +59,14 @@ class FacetedSearch::Base
59
59
  end
60
60
  end
61
61
 
62
+ def active_facets
63
+ @facets.select {|facet| facet.is_active? }
64
+ end
65
+
66
+ def turn_off_facets
67
+ @facets.each {|facet| facet.turn_off }
68
+ end
69
+
62
70
  def order
63
71
  @session[order_param]
64
72
  end
@@ -1,45 +1,57 @@
1
- class FacetedSearch::DateRangeFacet < FacetedSearch::Facet
1
+ class FacetedSearch::Facet
2
2
 
3
- # Set upper and lower limit values for an attribute
3
+ # facilitate complex queries by managing session data from request paramaters
4
4
 
5
- def initialize(attribute, table_name, session)
6
- @attribute = attribute
7
- @table_name = table_name
8
- @session = session
9
- end
5
+ attr_reader :title
6
+
7
+ def initialize()
8
+ raise Exception.new("initialize is a subclase responsibility")
9
+ end
10
10
 
11
- def refined(scope)
12
- scope = scope.scoped :conditions => ["#{@table_name}.#{@attribute} <= ?", upper_limit_date] unless upper_limit.blank?
13
- scope = scope.scoped :conditions => ["#{@table_name}.#{@attribute} >= ?", lower_limit_date] unless lower_limit.blank?
14
- return scope
11
+ def turn_off_param
12
+ raise Exception.new("turn_off_param is a subclass responsibility")
15
13
  end
16
14
 
17
- def upper_limit_param_name()
18
- "#{@table_name}_date_ul_#{@attribute}"
19
- end
20
-
21
- def lower_limit_param_name()
22
- "#{@table_name}_date_ll_#{@attribute}"
23
- end
24
-
25
- def upper_limit_date
26
- Date.parse(upper_limit)
27
- end
28
-
29
- def lower_limit_date
30
- Date.parse(lower_limit)
15
+ def is_active?
16
+ raise Exception.new("is_on? is a subclass responsibility")
31
17
  end
32
18
 
33
- def upper_limit
34
- @session[upper_limit_param_name]
19
+ def turn_off
20
+ raise Exception.new("turn_off is a subclass responsibility")
35
21
  end
36
-
37
- def lower_limit
38
- @session[lower_limit_param_name]
22
+
23
+ def refined
24
+ raise Exception.new("refine is a subclass responsibility")
39
25
  end
40
-
26
+
41
27
  def parameter_names
42
- [upper_limit_param_name, lower_limit_param_name]
28
+ raise Exception.new("parameter_names is subclass responsibility")
29
+ end
30
+
31
+ def to_params
32
+ params = {}
33
+ parameter_names.each {|pname| params[pname]=@session[pname]}
34
+ return params
35
+ end
36
+
37
+ def turn_off_if_needed(params)
38
+ if params.keys.include?(turn_off_param) and is_active?
39
+ turn_off
40
+ return true
41
+ else
42
+ return false
43
+ end
44
+ end
45
+
46
+ def update_with(params)
47
+ value_changed = turn_off_if_needed(params)
48
+ for p in parameter_names
49
+ if params[p]!=nil and @session[p]!=params[p]
50
+ value_changed=true
51
+ @session[p] = params[p]
52
+ end
53
+ end
54
+ return value_changed
43
55
  end
44
56
 
45
57
  end
@@ -2,7 +2,8 @@ class FacetedSearch::KeywordFacet < FacetedSearch::Facet
2
2
 
3
3
  # Scope for like text on specified attributes
4
4
 
5
- def initialize(attributes, table_name, session)
5
+ def initialize(attributes, title, table_name, session)
6
+ @title=title
6
7
  @attributes = attributes
7
8
  @table_name = table_name
8
9
  @session = session
@@ -18,6 +19,18 @@ class FacetedSearch::KeywordFacet < FacetedSearch::Facet
18
19
  end
19
20
  return scope
20
21
  end
22
+
23
+ def is_active?
24
+ (not search_phrase.blank?)
25
+ end
26
+
27
+ def turn_off
28
+ @session[param_name]=nil
29
+ end
30
+
31
+ def turn_off_param
32
+ "#{@table_name}_turn_off_keyword"
33
+ end
21
34
 
22
35
  def param_name()
23
36
  "#{@table_name}_keyword"
@@ -26,6 +39,10 @@ class FacetedSearch::KeywordFacet < FacetedSearch::Facet
26
39
  def search_phrase
27
40
  @session[param_name]
28
41
  end
42
+
43
+ def title
44
+ search_phrase
45
+ end
29
46
 
30
47
  def parameter_names
31
48
  [param_name]
@@ -2,7 +2,8 @@ class FacetedSearch::NumericRangeFacet < FacetedSearch::Facet
2
2
 
3
3
  # Set upper and lower limit values for an attribute
4
4
 
5
- def initialize(attribute, table_name, session)
5
+ def initialize(attribute, title, table_name, session)
6
+ @title = title
6
7
  @attribute = attribute
7
8
  @table_name = table_name
8
9
  @session = session
@@ -14,6 +15,19 @@ class FacetedSearch::NumericRangeFacet < FacetedSearch::Facet
14
15
  return scope
15
16
  end
16
17
 
18
+ def is_active?
19
+ (not lower_limit.blank?) or (not upper_limit.blank?)
20
+ end
21
+
22
+ def turn_off
23
+ @session[lower_limit_param_name]=nil
24
+ @session[upper_limit_param_name]=nil
25
+ end
26
+
27
+ def turn_off_param
28
+ "#{@table_name}_turn_off_#{@attribute}"
29
+ end
30
+
17
31
  def upper_limit_param_name()
18
32
  "#{@table_name}_nrul_#{@attribute}"
19
33
  end
@@ -0,0 +1,6 @@
1
+ Results filtered on
2
+ <%for facet in @search.active_facets%>
3
+ <span class="remove_facet ui-corner-all">
4
+ <%=facet.title%> <%=link_to "x", {facet.turn_off_param=>"now"}, :method=>:get%>
5
+ </span>
6
+ <%end%>
@@ -1,6 +1,58 @@
1
1
  /* Author: Craig Erskine Description: Dynamic Menu System - Horizontal/Vertical */ ul#navmenu-h { margin: 0; padding: 0; list-style: none; position: relative; } ul#navmenu-h ul { width: 160px; /* Sub Menu Width */ margin: 0; list-style: none; display: none; position: absolute; top: 100%; left: 0; } ul#navmenu-h ul ul,ul#navmenu-h ul ul ul { top: 0; left: 100%; } ul#navmenu-h li { float: left; display: inline; position: relative; } ul#navmenu-h ul li { width: 100%; display: block; } /* Root Menu */ ul#navmenu-h a { border-top: 1px solid #FFF; border-right: 1px solid #FFF; padding: 6px; float: left; display: block; background: #DDD; color: #666; font: bold 11px Arial, sans-serif; text-decoration: none; height: 1%; } /* Root Menu Hover Persistence */ ul#navmenu-h a:hover,ul#navmenu-h li:hover a,ul#navmenu-h li.iehover a { background: #BBB; color: #FFF; } /* 2nd Menu */ ul#navmenu-h li:hover li a,ul#navmenu-h li.iehover li a { float: none; background: #BBB; } /* 2nd Menu Hover Persistence */ ul#navmenu-h li:hover li a:hover,ul#navmenu-h li:hover li:hover a,ul#navmenu-h li.iehover li a:hover,ul#navmenu-h li.iehover li.iehover a { background: #999; } /* 3rd Menu */ ul#navmenu-h li:hover li:hover li a,ul#navmenu-h li.iehover li.iehover li a { background: #999; } /* 3rd Menu Hover Persistence */ ul#navmenu-h li:hover li:hover li a:hover,ul#navmenu-h li:hover li:hover li:hover a,ul#navmenu-h li.iehover li.iehover li a:hover,ul#navmenu-h li.iehover li.iehover li.iehover a { background: #666; } /* 4th Menu */ ul#navmenu-h li:hover li:hover li:hover li a,ul#navmenu-h li.iehover li.iehover li.iehover li a { background: #666; } /* 4th Menu Hover */ ul#navmenu-h li:hover li:hover li:hover li a:hover,ul#navmenu-h li.iehover li.iehover li.iehover li a:hover { background: #333; } /* Hover Function - Do Not Move */ ul#navmenu-h li:hover ul ul,ul#navmenu-h li:hover ul ul ul,ul#navmenu-h li.iehover ul ul,ul#navmenu-h li.iehover ul ul ul { display: none; } ul#navmenu-h li:hover ul,ul#navmenu-h ul li:hover ul,ul#navmenu-h ul ul li:hover ul,ul#navmenu-h li.iehover ul,ul#navmenu-h ul li.iehover ul,ul#navmenu-h ul ul li.iehover ul { display: block; }
2
2
  /* Author: Craig Erskine Description: Dynamic Menu System - Vertical */ ul#navmenu-v,ul#navmenu-v li,ul#navmenu-v ul { width: 160px; /* Menu Width */ margin: 0; list-style: none; } ul#navmenu-v li { float: left; position: relative; width: 100%; } ul#navmenu-v li.iehover { z-index: 1000; /* IE z-index bugfix */ } ul#navmenu-v ul { display: none; position: absolute; top: 0; left: 100%; z-index: 9999; } /* Root Menu */ ul#navmenu-v a { border-top: 1px solid #FFF; border-right: 1px solid #FFF; padding: 6px; display: block; background: #DDD; color: #666; font: bold 11px Arial, sans-serif; text-decoration: none; height: 1%; } /* Root Menu Hover Persistence */ ul#navmenu-v a:hover,ul#navmenu-v li:hover a,ul#navmenu-v li.iehover a { background: #BBB; color: #FFF; } /* 2nd Menu */ ul#navmenu-v li:hover li a,ul#navmenu-v li.iehover li a { float: none; background: #BBB; } /* 2nd Menu Hover Persistence */ ul#navmenu-v li:hover li a:hover,ul#navmenu-v li:hover li:hover a,ul#navmenu-v li.iehover li a:hover,ul#navmenu-v li.iehover li.iehover a { background: #999; } /* 3rd Menu */ ul#navmenu-v li:hover li:hover li a,ul#navmenu-v li.iehover li.iehover li a { background: #999; } /* 3rd Menu Hover Persistence */ ul#navmenu-v li:hover li:hover li a:hover,ul#navmenu-v li:hover li:hover li:hover a,ul#navmenu-v li.iehover li.iehover li a:hover,ul#navmenu-v li.iehover li.iehover li.iehover a { background: #666; } /* 4th Menu */ ul#navmenu-v li:hover li:hover li:hover li a,ul#navmenu-v li.iehover li.iehover li.iehover li a { background: #666; } /* 4th Menu Hover */ ul#navmenu-v li:hover li:hover li:hover li a:hover,ul#navmenu-v li.iehover li.iehover li.iehover li a:hover { background: #333; } /* Hover Function - Do Not Move */ ul#navmenu-v li:hover ul ul,ul#navmenu-v li:hover ul ul ul,ul#navmenu-v li.iehover ul ul,ul#navmenu-v li.iehover ul ul ul { display: none; } ul#navmenu-v li:hover ul,ul#navmenu-v ul li:hover ul,ul#navmenu-v ul ul li:hover ul,ul#navmenu-v li.iehover ul,ul#navmenu-v ul li.iehover ul,ul#navmenu-v ul ul li.iehover ul { display: block; }
3
3
 
4
+ .remove_facet {
5
+ margin-left: .5em;
6
+ background-color: #FEFEFE;
7
+ padding: .25em;
8
+ padding-left: .5em;
9
+ padding-right: .5em;
10
+ }
11
+
12
+ .remove_facets_panel {
13
+ border-left: 1px solid #AAAAAA;
14
+ border-right: 1px solid #AAAAAA;
15
+ padding-top: 4px;
16
+ padding-bottom: 4px;
17
+ padding-left: 6px;
18
+ float: none !important; /*For Opera*/
19
+ float: left; /*For IE*/
20
+ background: #EEE;
21
+ color: #666;
22
+ font: bold 10px/22px Verdana, Arial, Helvetica, sans-serif;
23
+ text-decoration: none;
24
+ height: auto !important;
25
+ height: 1%; /*For IE*/
26
+ }
27
+
28
+ .model_header {
29
+ font-size: 1.25em;
30
+ padding-top: 3px;
31
+ padding-bottom: 2px;
32
+ padding-left: 5px;
33
+ background-color: #899AB7;
34
+ border-top: 1px solid #6982a7; /* 778bAF; */
35
+ border-right: 1px solid #6982a7; /* 778bAF; */
36
+ border-left: 1px solid #6982a7; /* 778bAF; */
37
+ color: white;
38
+ }
39
+
40
+ .model_facets {
41
+ border-left: 1px solid #AAAAAA;
42
+ border-right: 1px solid #AAAAAA;
43
+ border-bottom: 1px solid #AAAAAA;
44
+ padding-top: 4px;
45
+ padding-bottom: 2em;
46
+ padding-left: 6px;
47
+ float: none !important; /*For Opera*/
48
+ float: left; /*For IE*/
49
+ background: #EEE;
50
+ color: #666;
51
+ font: bold 10px/22px Verdana, Arial, Helvetica, sans-serif;
52
+ text-decoration: none;
53
+ height: auto !important;
54
+ height: 1%; /*For IE*/
55
+ }
4
56
 
5
57
  .model_selector {
6
58
  border-bottom: 3px solid #6982a7;
@@ -63,24 +115,38 @@
63
115
  border: 1px solid #AAAAAA;
64
116
  }
65
117
 
118
+ .presentation_selected {
119
+ padding-top: 4px;
120
+ padding-bottom: 3px;
121
+ padding-left: 7px;
122
+ padding-right: 7px;
123
+
124
+ background-color: #EEEEEE;
125
+ display: inline;
126
+ border-top: 1px solid #AAAAAA;
127
+ border-left: 1px solid #AAAAAA;
128
+ border-right: 1px solid #AAAAAA;
129
+ border-bottom: 1px solid #F3F3F3;
130
+ }
131
+
66
132
  .presentation_selection {
67
133
  padding-top: 4px;
68
134
  padding-bottom: 3px;
69
135
  padding-left: 7px;
70
136
  padding-right: 7px;
71
137
 
72
- background-color: #F3F3F3;
138
+ background-color: #CCCCCC;
73
139
  display: inline;
74
140
  border-top: 1px solid #AAAAAA;
75
141
  border-left: 1px solid #AAAAAA;
76
142
  border-right: 1px solid #AAAAAA;
77
143
  border-bottom: 1px solid #F3F3F3;
78
-
79
144
  }
80
145
 
81
146
 
147
+
82
148
  .presentation_selection a {
83
- background-color: #E2E2E2;
149
+ background-color: #EEE;
84
150
  display: inline;
85
151
  border: 1px solid #AAAAAA;
86
152
 
@@ -17,12 +17,14 @@
17
17
 
18
18
  <!-- Left Column -->
19
19
  <div class="span-5">
20
- <div class="model_selector">
21
- <div class="model_selection ui-corner-tl">
22
- <%=gen_spec.plural_name.titleize%>
20
+ <div class="model">
21
+ <div class="model_header ui-corner-tl">
22
+ <%=gen_spac.titleize%>
23
+ </div>
24
+ <div class="model_facets">
25
+ <%%=render :partial=>"<%=gen_spac.plural_name%>/facet_form"%>
23
26
  </div>
24
27
  </div> <!-- end model selector -->
25
- <%%=render :partial=>"<%=gen_spec.plural_name%>/facet_form"%>
26
28
  </div> <!-- end left_column -->
27
29
 
28
30
  <!-- Right Column -->
@@ -35,16 +37,26 @@
35
37
  </div> <!-- end work_area header -->
36
38
 
37
39
  <div class="presentation_selector">
38
- <div class="presentation_selection">
40
+ <div class="presentation_selected ui-corner-ul ui-corner-ur">
39
41
  <%%=link_to "Table"%>
40
42
  </div>
41
- <div class="presentation_selection">
43
+ <div class="presentation_selection ui-corner-ul ui-corner-ur">
42
44
  <%%=link_to "Map"%>
43
45
  </div>
44
- <div class="presentation_selection">
45
- <%%=link_to "Hourly Averages"%>
46
+ <div class="presentation_selection ui-corner-ul ui-corner-ur">
47
+ <%%=link_to "Chart"%>
46
48
  </div>
47
49
  </div> <!-- end presentation selector -->
50
+
51
+ <!-- facet remove bar -->
52
+ <%if <%=gen_spac.singular_name%>_search.active_facets.length>0%>
53
+ <div class="remove_facets_panel">
54
+ <%@search=<%=gen_spac.singular_name%>_search%>
55
+ <%%=render :partial=>"faceted_search/active_facets"%>
56
+ </div>
57
+ <%end%>
58
+ <!-- end facet remove bar -->
59
+
48
60
  <div class="presentation_window">
49
61
  <%%=yield%>
50
62
  </div> <!-- end presentation window -->
@@ -6,7 +6,7 @@ class <%=gen_spec.model_name%>Search < FacetedSearch::Base
6
6
  @session = session
7
7
  @model = <%=gen_spec.model_name%>
8
8
  <%for f in gen_spec.search_facets -%>
9
- @<%=f[:name]%> = create_<%=f[:type]%>(<%=f[:attributes].inspect%>)
9
+ @<%=f[:name]%> = create_<%=f[:type]%>(<%=f[:title].inspect%>, <%=f[:attributes].inspect%>)
10
10
  <%end -%>
11
11
  end
12
12
 
@@ -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.5"
5
+ s.version = "0.4.7"
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-16}
9
+ s.date = %q{2009-07-19}
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/faceted_search/lib/base.rb", "rails_generators/static_app/templates/faceted_search/lib/date_range_facet.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/date_range_facet.html.erb", "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"]
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/date_range_facet.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/active_facets.html.erb", "rails_generators/static_app/templates/faceted_search/views/date_range_facet.html.erb", "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.5
4
+ version: 0.4.7
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-16 00:00:00 -07:00
12
+ date: 2009-07-19 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -76,6 +76,7 @@ files:
76
76
  - rails_generators/static_app/templates/faceted_search/lib/facet.rb
77
77
  - rails_generators/static_app/templates/faceted_search/lib/keyword_facet.rb
78
78
  - rails_generators/static_app/templates/faceted_search/lib/numeric_range_facet.rb
79
+ - rails_generators/static_app/templates/faceted_search/views/active_facets.html.erb
79
80
  - rails_generators/static_app/templates/faceted_search/views/date_range_facet.html.erb
80
81
  - rails_generators/static_app/templates/faceted_search/views/keyword_facet.html.erb
81
82
  - rails_generators/static_app/templates/faceted_search/views/numeric_range_facet.html.erb