hobo 0.8.5 → 0.8.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. data/CHANGES.txt +41 -0
  2. data/Manifest +1 -5
  3. data/Rakefile +10 -3
  4. data/bin/hobo +38 -15
  5. data/dryml_generators/rapid/cards.dryml.erb +7 -7
  6. data/dryml_generators/rapid/pages.dryml.erb +52 -24
  7. data/hobo.gemspec +42 -322
  8. data/init.rb +0 -7
  9. data/lib/active_record/association_collection.rb +9 -0
  10. data/lib/hobo.rb +13 -14
  11. data/lib/hobo/accessible_associations.rb +32 -7
  12. data/lib/hobo/authentication_support.rb +1 -1
  13. data/lib/hobo/controller.rb +5 -7
  14. data/lib/hobo/dryml.rb +9 -2
  15. data/lib/hobo/dryml/dryml_builder.rb +11 -12
  16. data/lib/hobo/dryml/dryml_doc.rb +22 -24
  17. data/lib/hobo/dryml/dryml_generator.rb +41 -4
  18. data/lib/hobo/dryml/part_context.rb +5 -3
  19. data/lib/hobo/dryml/template.rb +7 -7
  20. data/lib/hobo/dryml/template_environment.rb +11 -22
  21. data/lib/hobo/dryml/template_handler.rb +94 -25
  22. data/lib/hobo/find_for.rb +2 -2
  23. data/lib/hobo/hobo_helper.rb +21 -21
  24. data/lib/hobo/include_in_save.rb +9 -5
  25. data/lib/hobo/lifecycles/transition.rb +2 -2
  26. data/lib/hobo/model.rb +11 -61
  27. data/lib/hobo/model_controller.rb +28 -29
  28. data/lib/hobo/model_router.rb +12 -13
  29. data/lib/hobo/permissions.rb +47 -37
  30. data/lib/hobo/permissions/associations.rb +1 -1
  31. data/lib/hobo/scopes/association_proxy_extensions.rb +5 -6
  32. data/lib/hobo/scopes/automatic_scopes.rb +7 -4
  33. data/lib/hobo/tasks/rails.rb +4 -0
  34. data/lib/hobo/user.rb +0 -1
  35. data/lib/hobo/user_controller.rb +3 -1
  36. data/lib/hobo/view_hints.rb +17 -3
  37. data/rails_generators/hobo/hobo_generator.rb +1 -0
  38. data/rails_generators/hobo_front_controller/templates/functional_test.rb +1 -11
  39. data/rails_generators/hobo_front_controller/templates/index.dryml +1 -6
  40. data/rails_generators/hobo_rapid/hobo_rapid_generator.rb +1 -0
  41. data/rails_generators/hobo_rapid/templates/hobo-rapid.css +3 -2
  42. data/rails_generators/hobo_rapid/templates/hobo-rapid.js +24 -15
  43. data/rails_generators/hobo_rapid/templates/themes/clean/public/stylesheets/clean.css +17 -12
  44. data/rails_generators/hobo_rapid/templates/themes/clean/public/stylesheets/rapid-ui.css +6 -2
  45. data/rails_generators/hobo_rapid/templates/themes/clean/views/clean.dryml +2 -2
  46. data/rails_generators/hobo_user_model/templates/forgot_password.erb +2 -2
  47. data/rails_generators/hobo_user_model/templates/model.rb +2 -2
  48. data/taglibs/rapid.dryml +3 -2
  49. data/taglibs/rapid_core.dryml +21 -16
  50. data/taglibs/rapid_document_tags.dryml +1 -1
  51. data/taglibs/rapid_editing.dryml +7 -10
  52. data/taglibs/rapid_forms.dryml +115 -26
  53. data/taglibs/rapid_generics.dryml +13 -3
  54. data/taglibs/rapid_lifecycles.dryml +18 -1
  55. data/taglibs/rapid_navigation.dryml +50 -61
  56. data/taglibs/rapid_pages.dryml +103 -19
  57. data/taglibs/rapid_plus.dryml +54 -6
  58. data/taglibs/rapid_support.dryml +38 -1
  59. data/taglibs/rapid_user_pages.dryml +17 -5
  60. data/test/permissions/models/models.rb +24 -12
  61. data/test/permissions/models/test.sqlite3 +0 -0
  62. metadata +6 -15
  63. data/lib/extensions/test_case.rb +0 -129
  64. data/lib/hobo/composite_model.rb +0 -73
  65. data/lib/hobo/model_support.rb +0 -44
  66. data/tasks/fix_dryml.rake +0 -143
  67. data/tasks/generate_tag_reference.rake +0 -192
  68. data/test/dryml/complilation_test.rb +0 -261
@@ -1,3 +1,44 @@
1
+ === Hobo 0.8.6 ===
2
+
3
+ Hobo 0.8.6 includes Rails 2.3 support. Rails 2.2 support has been
4
+ maintained. Rails 2.1 support was dropped in 0.8.5.
5
+
6
+ Significant effort was put into unit and integration tests in this
7
+ release. Unit tests may be run via `rake test_all`. Integration
8
+ tests live in agility: http://github.com/tablatom/agility/tree/master.
9
+
10
+ Some small changes were made to item orders to fix bugs with IE6.
11
+ This may require updates in custom stylesheets.
12
+
13
+ Previously, the lifecycle transitions had a parameter called :params
14
+ in the documentation and :update in the code. The code has been
15
+ updated to match the documentation.
16
+
17
+ Support for `big_integer` in HoboFields has been dropped. It appears
18
+ that this has never worked correctly.
19
+
20
+ input-many is now a polymorphic tag and the default tag for has_many
21
+ inputs.
22
+
23
+ The 'content' parameter has been renamed to 'description' for
24
+ generated cards.
25
+
26
+ input-many and sortable-collection have been improved.
27
+
28
+ Many tags have had parameters and attributes added to improve
29
+ customization.
30
+
31
+ Many bugs have been fixed. See the [lighthouse](
32
+ http://hobo.lighthouseapp.com) or the [git commit
33
+ history](http://github.com/tablatom/hobo/commits/master/) for more
34
+ details.
35
+
36
+ 0.8.6 is a release candidate for Hobo 1.0. At this point we do not
37
+ believe that there are any outstanding bugs on Hobo that do not have
38
+ workarounds. The
39
+ [lighthouse](https://hobo.lighthouseapp.com/projects/8324-hobo/tickets/bins/8323)
40
+ shows the remaining tickets scheduled for 1.0
41
+
1
42
  === Hobo 0.8.5 ===
2
43
 
3
44
  New permission system
data/Manifest CHANGED
@@ -8,11 +8,9 @@ lib/action_view_extensions/helpers/tag_helper.rb
8
8
  lib/active_record/association_collection.rb
9
9
  lib/active_record/association_proxy.rb
10
10
  lib/active_record/association_reflection.rb
11
- lib/extensions/test_case.rb
12
11
  lib/hobo/accessible_associations.rb
13
12
  lib/hobo/authentication_support.rb
14
13
  lib/hobo/bundle.rb
15
- lib/hobo/composite_model.rb
16
14
  lib/hobo/controller.rb
17
15
  lib/hobo/dev_controller.rb
18
16
  lib/hobo/dryml/dryml_builder.rb
@@ -50,7 +48,6 @@ lib/hobo/lifecycles.rb
50
48
  lib/hobo/model.rb
51
49
  lib/hobo/model_controller.rb
52
50
  lib/hobo/model_router.rb
53
- lib/hobo/model_support.rb
54
51
  lib/hobo/permissions/associations.rb
55
52
  lib/hobo/permissions.rb
56
53
  lib/hobo/rapid_helper.rb
@@ -60,6 +57,7 @@ lib/hobo/scopes/automatic_scopes.rb
60
57
  lib/hobo/scopes/named_scope_extensions.rb
61
58
  lib/hobo/scopes.rb
62
59
  lib/hobo/static_tags
60
+ lib/hobo/tasks/rails.rb
63
61
  lib/hobo/undefined.rb
64
62
  lib/hobo/undefined_access_error.rb
65
63
  lib/hobo/user.rb
@@ -143,8 +141,6 @@ taglibs/rapid_plus.dryml
143
141
  taglibs/rapid_support.dryml
144
142
  taglibs/rapid_user_pages.dryml
145
143
  tasks/environments.rake
146
- tasks/fix_dryml.rake
147
- tasks/generate_tag_reference.rake
148
144
  tasks/hobo_tasks.rake
149
145
  test/generators/test_generator_helper.rb
150
146
  test/generators/test_helper.rb
data/Rakefile CHANGED
@@ -15,6 +15,13 @@ Rake::TestTask.new(:test) { |t|
15
15
  t.verbose = true
16
16
  }
17
17
 
18
+ namespace "test" do
19
+ desc "Run the doctests"
20
+ task :doctest do |t|
21
+ # note, tests in doctest/hobo/ are out of date
22
+ exit(1) if !system("rubydoctest doctest/*.rdoctest")
23
+ end
24
+ end
18
25
 
19
26
  # --- RDoc --- #
20
27
 
@@ -40,11 +47,11 @@ Echoe.new('hobo') do |p|
40
47
  p.project = "hobo"
41
48
 
42
49
  p.changelog = "CHANGES.txt"
43
- p.version = "0.8.5"
50
+ p.version = "0.8.6"
44
51
 
45
52
  p.dependencies = [
46
- 'hobosupport =0.8.5',
47
- 'hobofields =0.8.5',
53
+ 'hobosupport =0.8.6',
54
+ 'hobofields =0.8.6',
48
55
  'rails >=2.2.2',
49
56
  'mislav-will_paginate >=2.2.1']
50
57
 
data/bin/hobo CHANGED
@@ -12,6 +12,8 @@ Options:
12
12
  --db-create # Run rake db:create:all
13
13
  --hobo-src <path to hobo src>
14
14
  -d | --database <database> # e.g. mysql, sqlite
15
+ -r | --rails <version> # rails version to use
16
+ -n | --no-rails # don't run 'rails'. Assumes app-path=='.'
15
17
  "
16
18
 
17
19
 
@@ -34,18 +36,14 @@ def command(*s)
34
36
  exit(1) unless ok
35
37
  end
36
38
 
37
- if ARGV.length == 0 || ARGV.include?("--help")
38
- puts USAGE
39
- exit 1
40
- end
41
-
42
- app_path = ARGV.pop
43
-
44
39
  user_model = "user"
45
40
  create_db = false
41
+ run_rails = true
42
+
43
+ puts ARGV
46
44
 
47
- until ARGV.empty?
48
- case ARGV.shift
45
+ while true
46
+ case arg_name = ARGV.shift
49
47
  when "--user-model"
50
48
  arg = ARGV.shift
51
49
  user_model = arg == "false" ? nil : arg
@@ -55,17 +53,42 @@ until ARGV.empty?
55
53
  hobo_src = "../" + ARGV.shift
56
54
  when "-d", "--database"
57
55
  database_type = ARGV.shift
58
- else
56
+ when "-r", "--rails"
57
+ rails_version = ARGV.shift
58
+ when "-n", "--no-rails"
59
+ run_rails = false
60
+ when "--help"
59
61
  puts USAGE
60
- exit 1
62
+ exit
63
+ else
64
+ app_path = arg_name
65
+ break
61
66
  end
62
67
  end
63
68
 
64
- puts "\nGenerating Rails app...\n"
65
- opts = []
66
- opts << "-d #{database_type}" if database_type
67
- system("rails #{opts * ' '} #{app_path}")
69
+ if run_rails==false && app_path.nil?
70
+ app_path = '.'
71
+ end
68
72
 
73
+ if !ARGV.empty? || app_path.nil?
74
+ puts USAGE
75
+ exit 1
76
+ end
77
+
78
+ if run_rails
79
+ puts "\nGenerating Rails app...\n"
80
+ opts = []
81
+ if rails_version
82
+ opts << "_#{rails_version}_"
83
+ # else
84
+ # if `rails -v`.split[1].split(".").slice(0,2)!=['2', '3']
85
+ # puts "Rails 2.3 required!"
86
+ # exit 2
87
+ # end
88
+ end
89
+ opts << "-d #{database_type}" if database_type
90
+ system("rails #{opts * ' '} #{app_path}")
91
+ end
69
92
 
70
93
  Dir.chdir(app_path) do
71
94
  gen = "ruby #{File.join('script', 'generate')}"
@@ -1,9 +1,9 @@
1
1
  <% each_model do -%>
2
2
  <%
3
- name_attribute = model.name_attribute
4
- content_attribute = model.primary_content_attribute
5
- creator_attribute = model.creator_attribute
6
- primary_collection = model.view_hints.primary_children
3
+ name_attribute = model.name_attribute
4
+ description_attribute = model.primary_content_attribute
5
+ creator_attribute = model.creator_attribute
6
+ primary_collection = model.view_hints.primary_children
7
7
 
8
8
  if creator_attribute
9
9
  creator_refl = model.reflections[creator_attribute]
@@ -15,7 +15,7 @@ edit_link = !show_link && linkable?(:edit)
15
15
  delete_button = !show_link && !edit_link && linkable?(:destroy, :method => :delete)
16
16
 
17
17
  has_actions = edit_link || delete_button
18
- has_body = (!show_link && content_attribute) || creator_link || creator_attribute || primary_collection
18
+ has_body = (!show_link && description_attribute) || creator_link || creator_attribute || primary_collection
19
19
 
20
20
  show_title = !show_link && (name_attribute || !has_body)
21
21
  -%>
@@ -40,8 +40,8 @@ show_title = !show_link && (name_attribute || !has_body)
40
40
  <% end -%>
41
41
  <% if has_body -%>
42
42
  <body: param>
43
- <% if !show_link && content_attribute -%>
44
- <view:<%= content_attribute %> param="content"/>
43
+ <% if !show_link && description_attribute -%>
44
+ <view:<%= description_attribute %> param="description"/>
45
45
  <% end -%>
46
46
  <% if creator_link -%>
47
47
  <a:<%= creator_attribute %> param="creator-link"/>
@@ -1,21 +1,22 @@
1
1
  <!-- ====== Main Navigation ====== -->
2
2
 
3
3
  <def tag="main-nav">
4
- <navigation class="main-nav" merge-attrs>
4
+ <navigation class="main-nav" merge-attrs param="default">
5
5
  <nav-item href="#{base_url}/">Home</nav-item>
6
6
  <% models.select { |m| linkable?(m, :index) }[0..4].each do |m| -%>
7
- <nav-item with="&<%= m.name %>"><%= m.name.titleize.pluralize %></nav-item>
7
+ <nav-item with="&<%= m.name %>"><%= m.view_hints.model_name.titleize.pluralize %></nav-item>
8
8
  <% end -%>
9
9
  </navigation>
10
10
  </def>
11
11
 
12
12
 
13
13
 
14
- <% each_controller do -%>
14
+ <% each_controller do -%>
15
15
 
16
16
  <!-- ====== <%= model.name %> Pages ====== -->
17
17
  <%
18
18
  new_link = linkable?(:new)
19
+ new_form = !new_link && linkable?(model, :create, :method => :post)
19
20
  -%>
20
21
 
21
22
 
@@ -36,11 +37,28 @@ new_link = linkable?(:new)
36
37
  <a action="new" to="&model" param="new-link"/>
37
38
  <% end -%>
38
39
 
40
+ <% if view_hints.paginate? -%>
39
41
  <page-nav param="top-page-nav"/>
40
-
42
+
43
+ <% end -%>
44
+ <% if view_hints.sortable? -%>
45
+ <sortable-collection param="collection"/>
46
+ <% else -%>
41
47
  <collection param/>
42
-
48
+ <% end -%>
49
+
50
+ <% if view_hints.paginate? -%>
43
51
  <page-nav param="bottom-page-nav"/>
52
+
53
+ <% end -%>
54
+
55
+ <% if new_form -%>
56
+ <div param="new-form">
57
+ <h3 param="new-form-heading">New <%= model_name :title %></h3>
58
+ <form with="&new_for_current_user <%= model %>" param/>
59
+ </div>
60
+
61
+ <% end -%>
44
62
  </section>
45
63
  </content:>
46
64
  </page>
@@ -87,7 +105,10 @@ if collection
87
105
  end
88
106
  end
89
107
 
90
- aside_collections = model.view_hints.secondary_children unless model.view_hints.secondary_children.empty?
108
+ unless model.view_hints.secondary_children.empty?
109
+ aside_collections = model.view_hints.secondary_children.map { |c| [model.reflections[c], model.reverse_reflection(c)] }
110
+ aside_collections.reject! { |refl, reverse| reverse.nil? }
111
+ end
91
112
  -%>
92
113
  <def tag="show-page" for="<%= model.name %>">
93
114
  <page merge title="<%= model_name :title %>">
@@ -96,17 +117,17 @@ aside_collections = model.view_hints.secondary_children unless model.view_hints.
96
117
 
97
118
  <content: param>
98
119
  <% if aside_collections -%>
99
- <section-group param="content-body">
120
+ <section-group>
100
121
  <section param="main-content">
101
122
  <% end -%>
102
123
  <header param="content-header">
103
124
  <% if back_link -%>
104
- <a:<%= back_link %> param="parent-link">&laquo; <name/></a>
125
+ <a:<%= back_link %> param="parent-link">&laquo; <name/></a:<%= back_link %>>
105
126
  <% end -%>
106
127
  <h2 param="heading"><name/></h2>
107
128
  <% if boolean_fields -%>
108
129
 
109
- <field-names-where-true fields="<%= boolean_fields * ', ' %>" param/>
130
+ <record-flags fields="<%= boolean_fields * ', ' %>" param/>
110
131
  <% end -%>
111
132
  <% if creator_link -%>
112
133
 
@@ -132,24 +153,24 @@ aside_collections = model.view_hints.secondary_children unless model.view_hints.
132
153
  <section param="collection-section">
133
154
  <h3 param="collection-heading"><%= '<Your/>' if is_user_model %><%= collection.to_s.titleize %></h3>
134
155
 
135
- <% if sortable_collection?(collection) -%>
156
+ <% if sortable_collection?(collection) -%>
136
157
  <sortable-collection:<%= collection %> param="collection"/>
137
- <% else -%>
158
+ <% else -%>
138
159
  <collection:<%= collection %> param/>
139
- <% end -%>
140
- <% if add_link -%>
160
+ <% end -%>
161
+ <% if add_link -%>
141
162
 
142
- <a:<%= collection %> action="new" if="&can_create?(@<%= model_name.underscore %>.<%= collection %>)" param="new-link">New <%= collection.to_s.singularize.titleize %></a>
143
- <% elsif add_form -%>
163
+ <a:<%= collection %> action="new" if="&can_create?(@<%= model_name.underscore %>.<%= collection %>)" param="new-link">New <%= collection.to_s.singularize.titleize %></a:<%= collection %>>
164
+ <% elsif add_form -%>
144
165
 
145
166
  <section param="add-to-collection" if="&can_create?(@<%= model_name.underscore %>.<%= collection %>)">
146
167
  <h3 param="add-form-heading">Add <%= a_or_an collection.to_s.singularize.titleize %></h3>
147
- <form with="&@<%= collection_class.name.underscore %> || @<%= model_name.underscore %>.<%= collection %>.new_candidate" owner="<%= owner %>" without-cancel param>
168
+ <form with="&@<%= collection_class.name.underscore %> || new_for_current_user(@<%= model_name.underscore %>.<%= collection %>)" owner="<%= owner %>" without-cancel param>
148
169
  <field-list: skip="<%= owner %>"/>
149
170
  <submit: label="Add"/>
150
171
  </form>
151
172
  </section>
152
- <% end -%>
173
+ <% end -%>
153
174
  </section>
154
175
  <% end # of main collection -%>
155
176
  </section>
@@ -157,14 +178,21 @@ aside_collections = model.view_hints.secondary_children unless model.view_hints.
157
178
  </section>
158
179
 
159
180
  <aside param>
160
- <% for collection in aside_collections -%>
161
- <preview-with-more:<%= collection %>.recent param="preview-<%= collection %>">
162
- <% if is_user_model -%>
163
- <heading:><Your with="&@<%= model_name.underscore %>"/> <%= collection.to_s.titleize %></heading:>
164
- <% end -%>
181
+ <% for refl, reverse_refl in aside_collections -%>
182
+ <% if linkable?(refl.klass, :"index_for_#{reverse_refl.name}") -%>
183
+ <preview-with-more:<%= refl.name %>.recent param="<%= refl.name %>-preview">
184
+ <% if is_user_model -%>
185
+ <heading:><Your with="&@<%= model_name.underscore %>"/> <%= refl.name.to_s.titleize %></heading:>
186
+ <% end -%>
165
187
  <more:>more</more:>
166
- </preview-with-more>
167
- <% end -%>
188
+ </preview-with-more:<%= refl.name %>.recent>
189
+ <% else -%>
190
+ <section param="<%= refl.name %>-collection-section">
191
+ <h3 param="<%= refl.name %>-collection"><%= refl.name.to_s.titleize %></h3>
192
+ <collection:<%= refl.name %>/>
193
+ </section>
194
+ <% end -%>
195
+ <% end -%>
168
196
  </aside>
169
197
  </section-group>
170
198
  <% end -%>
@@ -1,326 +1,46 @@
1
+ # -*- encoding: utf-8 -*-
1
2
 
2
- # Gem::Specification for Hobo-0.8.5
3
- # Originally generated by Echoe
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{hobo}
5
+ s.version = "0.8.6"
4
6
 
5
- --- !ruby/object:Gem::Specification
6
- name: hobo
7
- version: !ruby/object:Gem::Version
8
- version: 0.8.5
9
- platform: ruby
10
- authors:
11
- - Tom Locke
12
- autorequire:
13
- bindir: bin
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Tom Locke"]
9
+ s.date = %q{2009-05-14}
10
+ s.default_executable = %q{hobo}
11
+ s.description = %q{The web app builder for Rails}
12
+ s.email = %q{tom@tomlocke.com}
13
+ s.executables = ["hobo"]
14
+ s.extra_rdoc_files = ["bin/hobo", "lib/action_view_extensions/helpers/tag_helper.rb", "lib/active_record/association_collection.rb", "lib/active_record/association_proxy.rb", "lib/active_record/association_reflection.rb", "lib/hobo/accessible_associations.rb", "lib/hobo/authentication_support.rb", "lib/hobo/bundle.rb", "lib/hobo/controller.rb", "lib/hobo/dev_controller.rb", "lib/hobo/dryml/dryml_builder.rb", "lib/hobo/dryml/dryml_doc.rb", "lib/hobo/dryml/dryml_generator.rb", "lib/hobo/dryml/dryml_support_controller.rb", "lib/hobo/dryml/parser/attribute.rb", "lib/hobo/dryml/parser/base_parser.rb", "lib/hobo/dryml/parser/document.rb", "lib/hobo/dryml/parser/element.rb", "lib/hobo/dryml/parser/elements.rb", "lib/hobo/dryml/parser/source.rb", "lib/hobo/dryml/parser/text.rb", "lib/hobo/dryml/parser/tree_parser.rb", "lib/hobo/dryml/parser.rb", "lib/hobo/dryml/part_context.rb", "lib/hobo/dryml/scoped_variables.rb", "lib/hobo/dryml/tag_parameters.rb", "lib/hobo/dryml/taglib.rb", "lib/hobo/dryml/template.rb", "lib/hobo/dryml/template_environment.rb", "lib/hobo/dryml/template_handler.rb", "lib/hobo/dryml.rb", "lib/hobo/find_for.rb", "lib/hobo/generator.rb", "lib/hobo/guest.rb", "lib/hobo/hobo_helper.rb", "lib/hobo/include_in_save.rb", "lib/hobo/lifecycles/actions.rb", "lib/hobo/lifecycles/creator.rb", "lib/hobo/lifecycles/lifecycle.rb", "lib/hobo/lifecycles/state.rb", "lib/hobo/lifecycles/transition.rb", "lib/hobo/lifecycles.rb", "lib/hobo/model.rb", "lib/hobo/model_controller.rb", "lib/hobo/model_router.rb", "lib/hobo/permissions/associations.rb", "lib/hobo/permissions.rb", "lib/hobo/rapid_helper.rb", "lib/hobo/scopes/apply_scopes.rb", "lib/hobo/scopes/association_proxy_extensions.rb", "lib/hobo/scopes/automatic_scopes.rb", "lib/hobo/scopes/named_scope_extensions.rb", "lib/hobo/scopes.rb", "lib/hobo/static_tags", "lib/hobo/tasks/rails.rb", "lib/hobo/undefined.rb", "lib/hobo/undefined_access_error.rb", "lib/hobo/user.rb", "lib/hobo/user_controller.rb", "lib/hobo/view_hints.rb", "lib/hobo.rb", "LICENSE.txt", "README", "tasks/environments.rake", "tasks/hobo_tasks.rake"]
15
+ s.files = ["bin/hobo", "CHANGES.txt", "dryml_generators/rapid/cards.dryml.erb", "dryml_generators/rapid/forms.dryml.erb", "dryml_generators/rapid/pages.dryml.erb", "init.rb", "lib/action_view_extensions/helpers/tag_helper.rb", "lib/active_record/association_collection.rb", "lib/active_record/association_proxy.rb", "lib/active_record/association_reflection.rb", "lib/hobo/accessible_associations.rb", "lib/hobo/authentication_support.rb", "lib/hobo/bundle.rb", "lib/hobo/controller.rb", "lib/hobo/dev_controller.rb", "lib/hobo/dryml/dryml_builder.rb", "lib/hobo/dryml/dryml_doc.rb", "lib/hobo/dryml/dryml_generator.rb", "lib/hobo/dryml/dryml_support_controller.rb", "lib/hobo/dryml/parser/attribute.rb", "lib/hobo/dryml/parser/base_parser.rb", "lib/hobo/dryml/parser/document.rb", "lib/hobo/dryml/parser/element.rb", "lib/hobo/dryml/parser/elements.rb", "lib/hobo/dryml/parser/source.rb", "lib/hobo/dryml/parser/text.rb", "lib/hobo/dryml/parser/tree_parser.rb", "lib/hobo/dryml/parser.rb", "lib/hobo/dryml/part_context.rb", "lib/hobo/dryml/scoped_variables.rb", "lib/hobo/dryml/tag_parameters.rb", "lib/hobo/dryml/taglib.rb", "lib/hobo/dryml/template.rb", "lib/hobo/dryml/template_environment.rb", "lib/hobo/dryml/template_handler.rb", "lib/hobo/dryml.rb", "lib/hobo/find_for.rb", "lib/hobo/generator.rb", "lib/hobo/guest.rb", "lib/hobo/hobo_helper.rb", "lib/hobo/include_in_save.rb", "lib/hobo/lifecycles/actions.rb", "lib/hobo/lifecycles/creator.rb", "lib/hobo/lifecycles/lifecycle.rb", "lib/hobo/lifecycles/state.rb", "lib/hobo/lifecycles/transition.rb", "lib/hobo/lifecycles.rb", "lib/hobo/model.rb", "lib/hobo/model_controller.rb", "lib/hobo/model_router.rb", "lib/hobo/permissions/associations.rb", "lib/hobo/permissions.rb", "lib/hobo/rapid_helper.rb", "lib/hobo/scopes/apply_scopes.rb", "lib/hobo/scopes/association_proxy_extensions.rb", "lib/hobo/scopes/automatic_scopes.rb", "lib/hobo/scopes/named_scope_extensions.rb", "lib/hobo/scopes.rb", "lib/hobo/static_tags", "lib/hobo/tasks/rails.rb", "lib/hobo/undefined.rb", "lib/hobo/undefined_access_error.rb", "lib/hobo/user.rb", "lib/hobo/user_controller.rb", "lib/hobo/view_hints.rb", "lib/hobo.rb", "LICENSE.txt", "Manifest", "rails_generators/hobo/hobo_generator.rb", "rails_generators/hobo/templates/application.css", "rails_generators/hobo/templates/application.dryml", "rails_generators/hobo/templates/dryml-support.js", "rails_generators/hobo/templates/guest.rb", "rails_generators/hobo/templates/initializer.rb", "rails_generators/hobo_front_controller/hobo_front_controller_generator.rb", "rails_generators/hobo_front_controller/templates/controller.rb", "rails_generators/hobo_front_controller/templates/functional_test.rb", "rails_generators/hobo_front_controller/templates/helper.rb", "rails_generators/hobo_front_controller/templates/index.dryml", "rails_generators/hobo_front_controller/USAGE", "rails_generators/hobo_model/hobo_model_generator.rb", "rails_generators/hobo_model/templates/fixtures.yml", "rails_generators/hobo_model/templates/hints.rb", "rails_generators/hobo_model/templates/model.rb", "rails_generators/hobo_model/templates/unit_test.rb", "rails_generators/hobo_model/USAGE", "rails_generators/hobo_model_controller/hobo_model_controller_generator.rb", "rails_generators/hobo_model_controller/templates/controller.rb", "rails_generators/hobo_model_controller/templates/functional_test.rb", "rails_generators/hobo_model_controller/templates/helper.rb", "rails_generators/hobo_model_controller/USAGE", "rails_generators/hobo_model_resource/hobo_model_resource_generator.rb", "rails_generators/hobo_model_resource/templates/controller.rb", "rails_generators/hobo_model_resource/templates/functional_test.rb", "rails_generators/hobo_model_resource/templates/helper.rb", "rails_generators/hobo_rapid/hobo_rapid_generator.rb", "rails_generators/hobo_rapid/templates/blank.gif", "rails_generators/hobo_rapid/templates/hobo-rapid.css", "rails_generators/hobo_rapid/templates/hobo-rapid.js", "rails_generators/hobo_rapid/templates/IE7.js", "rails_generators/hobo_rapid/templates/lowpro.js", "rails_generators/hobo_rapid/templates/reset.css", "rails_generators/hobo_rapid/templates/themes/clean/public/images/fieldbg.gif", "rails_generators/hobo_rapid/templates/themes/clean/public/images/pencil.png", "rails_generators/hobo_rapid/templates/themes/clean/public/images/small_close.png", "rails_generators/hobo_rapid/templates/themes/clean/public/images/spinner.gif", "rails_generators/hobo_rapid/templates/themes/clean/public/stylesheets/clean.css", "rails_generators/hobo_rapid/templates/themes/clean/public/stylesheets/rapid-ui.css", "rails_generators/hobo_rapid/templates/themes/clean/views/clean.dryml", "rails_generators/hobo_subsite/hobo_subsite_generator.rb", "rails_generators/hobo_subsite/templates/application.dryml", "rails_generators/hobo_subsite/templates/controller.rb", "rails_generators/hobo_subsite/templates/site_taglib.dryml", "rails_generators/hobo_user_controller/hobo_user_controller_generator.rb", "rails_generators/hobo_user_controller/templates/controller.rb", "rails_generators/hobo_user_controller/templates/functional_test.rb", "rails_generators/hobo_user_controller/templates/helper.rb", "rails_generators/hobo_user_controller/USAGE", "rails_generators/hobo_user_model/hobo_user_model_generator.rb", "rails_generators/hobo_user_model/templates/fixtures.yml", "rails_generators/hobo_user_model/templates/forgot_password.erb", "rails_generators/hobo_user_model/templates/mailer.rb", "rails_generators/hobo_user_model/templates/model.rb", "rails_generators/hobo_user_model/templates/unit_test.rb", "rails_generators/hobo_user_model/USAGE", "Rakefile", "README", "script/destroy", "script/generate", "taglibs/core.dryml", "taglibs/rapid.dryml", "taglibs/rapid_core.dryml", "taglibs/rapid_document_tags.dryml", "taglibs/rapid_editing.dryml", "taglibs/rapid_forms.dryml", "taglibs/rapid_generics.dryml", "taglibs/rapid_lifecycles.dryml", "taglibs/rapid_navigation.dryml", "taglibs/rapid_pages.dryml", "taglibs/rapid_plus.dryml", "taglibs/rapid_support.dryml", "taglibs/rapid_user_pages.dryml", "tasks/environments.rake", "tasks/hobo_tasks.rake", "test/generators/test_generator_helper.rb", "test/generators/test_helper.rb", "test/generators/test_hobo_model_controller_generator.rb", "test/permissions/models/models.rb", "test/permissions/models/schema.rb", "test/permissions/models/test.sqlite3", "test/permissions/test_permissions.rb", "hobo.gemspec"]
16
+ s.has_rdoc = true
17
+ s.homepage = %q{http://hobocentral.net/}
18
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Hobo", "--main", "README"]
19
+ s.require_paths = ["lib"]
20
+ s.rubyforge_project = %q{hobo}
21
+ s.rubygems_version = %q{1.3.1}
22
+ s.summary = %q{The web app builder for Rails}
23
+ s.test_files = ["test/generators/test_generator_helper.rb", "test/generators/test_helper.rb", "test/generators/test_hobo_model_controller_generator.rb", "test/permissions/test_permissions.rb"]
14
24
 
15
- date: 2008-12-09 00:00:00 +00:00
16
- default_executable:
17
- dependencies:
18
- - !ruby/object:Gem::Dependency
19
- name: hobosupport
20
- type: :runtime
21
- version_requirement:
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "="
25
- - !ruby/object:Gem::Version
26
- version: 0.8.5
27
- version:
28
- - !ruby/object:Gem::Dependency
29
- name: hobofields
30
- type: :runtime
31
- version_requirement:
32
- version_requirements: !ruby/object:Gem::Requirement
33
- requirements:
34
- - - "="
35
- - !ruby/object:Gem::Version
36
- version: 0.8.5
37
- version:
38
- - !ruby/object:Gem::Dependency
39
- name: rails
40
- type: :runtime
41
- version_requirement:
42
- version_requirements: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: 2.2.2
47
- version:
48
- - !ruby/object:Gem::Dependency
49
- name: mislav-will_paginate
50
- type: :runtime
51
- version_requirement:
52
- version_requirements: !ruby/object:Gem::Requirement
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- version: 2.2.1
57
- version:
58
- description: The web app builder for Rails
59
- email: tom@tomlocke.com
60
- executables:
61
- - hobo
62
- extensions: []
25
+ if s.respond_to? :specification_version then
26
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
27
+ s.specification_version = 2
63
28
 
64
- extra_rdoc_files:
65
- - bin/hobo
66
- - lib/action_view_extensions/helpers/tag_helper.rb
67
- - lib/active_record/association_collection.rb
68
- - lib/active_record/association_proxy.rb
69
- - lib/active_record/association_reflection.rb
70
- - lib/extensions/test_case.rb
71
- - lib/hobo/accessible_associations.rb
72
- - lib/hobo/authentication_support.rb
73
- - lib/hobo/bundle.rb
74
- - lib/hobo/composite_model.rb
75
- - lib/hobo/controller.rb
76
- - lib/hobo/dev_controller.rb
77
- - lib/hobo/dryml/dryml_builder.rb
78
- - lib/hobo/dryml/dryml_doc.rb
79
- - lib/hobo/dryml/dryml_generator.rb
80
- - lib/hobo/dryml/dryml_support_controller.rb
81
- - lib/hobo/dryml/parser/attribute.rb
82
- - lib/hobo/dryml/parser/base_parser.rb
83
- - lib/hobo/dryml/parser/document.rb
84
- - lib/hobo/dryml/parser/element.rb
85
- - lib/hobo/dryml/parser/elements.rb
86
- - lib/hobo/dryml/parser/source.rb
87
- - lib/hobo/dryml/parser/text.rb
88
- - lib/hobo/dryml/parser/tree_parser.rb
89
- - lib/hobo/dryml/parser.rb
90
- - lib/hobo/dryml/part_context.rb
91
- - lib/hobo/dryml/scoped_variables.rb
92
- - lib/hobo/dryml/tag_parameters.rb
93
- - lib/hobo/dryml/taglib.rb
94
- - lib/hobo/dryml/template.rb
95
- - lib/hobo/dryml/template_environment.rb
96
- - lib/hobo/dryml/template_handler.rb
97
- - lib/hobo/dryml.rb
98
- - lib/hobo/find_for.rb
99
- - lib/hobo/generator.rb
100
- - lib/hobo/guest.rb
101
- - lib/hobo/hobo_helper.rb
102
- - lib/hobo/include_in_save.rb
103
- - lib/hobo/lifecycles/actions.rb
104
- - lib/hobo/lifecycles/creator.rb
105
- - lib/hobo/lifecycles/lifecycle.rb
106
- - lib/hobo/lifecycles/state.rb
107
- - lib/hobo/lifecycles/transition.rb
108
- - lib/hobo/lifecycles.rb
109
- - lib/hobo/model.rb
110
- - lib/hobo/model_controller.rb
111
- - lib/hobo/model_router.rb
112
- - lib/hobo/model_support.rb
113
- - lib/hobo/permissions/associations.rb
114
- - lib/hobo/permissions.rb
115
- - lib/hobo/rapid_helper.rb
116
- - lib/hobo/scopes/apply_scopes.rb
117
- - lib/hobo/scopes/association_proxy_extensions.rb
118
- - lib/hobo/scopes/automatic_scopes.rb
119
- - lib/hobo/scopes/named_scope_extensions.rb
120
- - lib/hobo/scopes.rb
121
- - lib/hobo/static_tags
122
- - lib/hobo/undefined.rb
123
- - lib/hobo/undefined_access_error.rb
124
- - lib/hobo/user.rb
125
- - lib/hobo/user_controller.rb
126
- - lib/hobo/view_hints.rb
127
- - lib/hobo.rb
128
- - LICENSE.txt
129
- - README
130
- - tasks/environments.rake
131
- - tasks/fix_dryml.rake
132
- - tasks/generate_tag_reference.rake
133
- - tasks/hobo_tasks.rake
134
- files:
135
- - bin/hobo
136
- - CHANGES.txt
137
- - dryml_generators/rapid/cards.dryml.erb
138
- - dryml_generators/rapid/forms.dryml.erb
139
- - dryml_generators/rapid/pages.dryml.erb
140
- - init.rb
141
- - lib/action_view_extensions/helpers/tag_helper.rb
142
- - lib/active_record/association_collection.rb
143
- - lib/active_record/association_proxy.rb
144
- - lib/active_record/association_reflection.rb
145
- - lib/extensions/test_case.rb
146
- - lib/hobo/accessible_associations.rb
147
- - lib/hobo/authentication_support.rb
148
- - lib/hobo/bundle.rb
149
- - lib/hobo/composite_model.rb
150
- - lib/hobo/controller.rb
151
- - lib/hobo/dev_controller.rb
152
- - lib/hobo/dryml/dryml_builder.rb
153
- - lib/hobo/dryml/dryml_doc.rb
154
- - lib/hobo/dryml/dryml_generator.rb
155
- - lib/hobo/dryml/dryml_support_controller.rb
156
- - lib/hobo/dryml/parser/attribute.rb
157
- - lib/hobo/dryml/parser/base_parser.rb
158
- - lib/hobo/dryml/parser/document.rb
159
- - lib/hobo/dryml/parser/element.rb
160
- - lib/hobo/dryml/parser/elements.rb
161
- - lib/hobo/dryml/parser/source.rb
162
- - lib/hobo/dryml/parser/text.rb
163
- - lib/hobo/dryml/parser/tree_parser.rb
164
- - lib/hobo/dryml/parser.rb
165
- - lib/hobo/dryml/part_context.rb
166
- - lib/hobo/dryml/scoped_variables.rb
167
- - lib/hobo/dryml/tag_parameters.rb
168
- - lib/hobo/dryml/taglib.rb
169
- - lib/hobo/dryml/template.rb
170
- - lib/hobo/dryml/template_environment.rb
171
- - lib/hobo/dryml/template_handler.rb
172
- - lib/hobo/dryml.rb
173
- - lib/hobo/find_for.rb
174
- - lib/hobo/generator.rb
175
- - lib/hobo/guest.rb
176
- - lib/hobo/hobo_helper.rb
177
- - lib/hobo/include_in_save.rb
178
- - lib/hobo/lifecycles/actions.rb
179
- - lib/hobo/lifecycles/creator.rb
180
- - lib/hobo/lifecycles/lifecycle.rb
181
- - lib/hobo/lifecycles/state.rb
182
- - lib/hobo/lifecycles/transition.rb
183
- - lib/hobo/lifecycles.rb
184
- - lib/hobo/model.rb
185
- - lib/hobo/model_controller.rb
186
- - lib/hobo/model_router.rb
187
- - lib/hobo/model_support.rb
188
- - lib/hobo/permissions/associations.rb
189
- - lib/hobo/permissions.rb
190
- - lib/hobo/rapid_helper.rb
191
- - lib/hobo/scopes/apply_scopes.rb
192
- - lib/hobo/scopes/association_proxy_extensions.rb
193
- - lib/hobo/scopes/automatic_scopes.rb
194
- - lib/hobo/scopes/named_scope_extensions.rb
195
- - lib/hobo/scopes.rb
196
- - lib/hobo/static_tags
197
- - lib/hobo/undefined.rb
198
- - lib/hobo/undefined_access_error.rb
199
- - lib/hobo/user.rb
200
- - lib/hobo/user_controller.rb
201
- - lib/hobo/view_hints.rb
202
- - lib/hobo.rb
203
- - LICENSE.txt
204
- - Manifest
205
- - rails_generators/hobo/hobo_generator.rb
206
- - rails_generators/hobo/templates/application.css
207
- - rails_generators/hobo/templates/application.dryml
208
- - rails_generators/hobo/templates/dryml-support.js
209
- - rails_generators/hobo/templates/guest.rb
210
- - rails_generators/hobo/templates/initializer.rb
211
- - rails_generators/hobo_front_controller/hobo_front_controller_generator.rb
212
- - rails_generators/hobo_front_controller/templates/controller.rb
213
- - rails_generators/hobo_front_controller/templates/functional_test.rb
214
- - rails_generators/hobo_front_controller/templates/helper.rb
215
- - rails_generators/hobo_front_controller/templates/index.dryml
216
- - rails_generators/hobo_front_controller/USAGE
217
- - rails_generators/hobo_model/hobo_model_generator.rb
218
- - rails_generators/hobo_model/templates/fixtures.yml
219
- - rails_generators/hobo_model/templates/hints.rb
220
- - rails_generators/hobo_model/templates/model.rb
221
- - rails_generators/hobo_model/templates/unit_test.rb
222
- - rails_generators/hobo_model/USAGE
223
- - rails_generators/hobo_model_controller/hobo_model_controller_generator.rb
224
- - rails_generators/hobo_model_controller/templates/controller.rb
225
- - rails_generators/hobo_model_controller/templates/functional_test.rb
226
- - rails_generators/hobo_model_controller/templates/helper.rb
227
- - rails_generators/hobo_model_controller/USAGE
228
- - rails_generators/hobo_model_resource/hobo_model_resource_generator.rb
229
- - rails_generators/hobo_model_resource/templates/controller.rb
230
- - rails_generators/hobo_model_resource/templates/functional_test.rb
231
- - rails_generators/hobo_model_resource/templates/helper.rb
232
- - rails_generators/hobo_rapid/hobo_rapid_generator.rb
233
- - rails_generators/hobo_rapid/templates/blank.gif
234
- - rails_generators/hobo_rapid/templates/hobo-rapid.css
235
- - rails_generators/hobo_rapid/templates/hobo-rapid.js
236
- - rails_generators/hobo_rapid/templates/IE7.js
237
- - rails_generators/hobo_rapid/templates/lowpro.js
238
- - rails_generators/hobo_rapid/templates/reset.css
239
- - rails_generators/hobo_rapid/templates/themes/clean/public/images/fieldbg.gif
240
- - rails_generators/hobo_rapid/templates/themes/clean/public/images/pencil.png
241
- - rails_generators/hobo_rapid/templates/themes/clean/public/images/small_close.png
242
- - rails_generators/hobo_rapid/templates/themes/clean/public/images/spinner.gif
243
- - rails_generators/hobo_rapid/templates/themes/clean/public/stylesheets/clean.css
244
- - rails_generators/hobo_rapid/templates/themes/clean/public/stylesheets/rapid-ui.css
245
- - rails_generators/hobo_rapid/templates/themes/clean/views/clean.dryml
246
- - rails_generators/hobo_subsite/hobo_subsite_generator.rb
247
- - rails_generators/hobo_subsite/templates/application.dryml
248
- - rails_generators/hobo_subsite/templates/controller.rb
249
- - rails_generators/hobo_subsite/templates/site_taglib.dryml
250
- - rails_generators/hobo_user_controller/hobo_user_controller_generator.rb
251
- - rails_generators/hobo_user_controller/templates/controller.rb
252
- - rails_generators/hobo_user_controller/templates/functional_test.rb
253
- - rails_generators/hobo_user_controller/templates/helper.rb
254
- - rails_generators/hobo_user_controller/USAGE
255
- - rails_generators/hobo_user_model/hobo_user_model_generator.rb
256
- - rails_generators/hobo_user_model/templates/fixtures.yml
257
- - rails_generators/hobo_user_model/templates/forgot_password.erb
258
- - rails_generators/hobo_user_model/templates/mailer.rb
259
- - rails_generators/hobo_user_model/templates/model.rb
260
- - rails_generators/hobo_user_model/templates/unit_test.rb
261
- - rails_generators/hobo_user_model/USAGE
262
- - Rakefile
263
- - README
264
- - script/destroy
265
- - script/generate
266
- - taglibs/core.dryml
267
- - taglibs/rapid.dryml
268
- - taglibs/rapid_core.dryml
269
- - taglibs/rapid_document_tags.dryml
270
- - taglibs/rapid_editing.dryml
271
- - taglibs/rapid_forms.dryml
272
- - taglibs/rapid_generics.dryml
273
- - taglibs/rapid_lifecycles.dryml
274
- - taglibs/rapid_navigation.dryml
275
- - taglibs/rapid_pages.dryml
276
- - taglibs/rapid_plus.dryml
277
- - taglibs/rapid_support.dryml
278
- - taglibs/rapid_user_pages.dryml
279
- - tasks/environments.rake
280
- - tasks/fix_dryml.rake
281
- - tasks/generate_tag_reference.rake
282
- - tasks/hobo_tasks.rake
283
- - test/generators/test_generator_helper.rb
284
- - test/generators/test_helper.rb
285
- - test/generators/test_hobo_model_controller_generator.rb
286
- - test/permissions/models/models.rb
287
- - test/permissions/models/schema.rb
288
- - test/permissions/models/test.sqlite3
289
- - test/permissions/test_permissions.rb
290
- - hobo.gemspec
291
- has_rdoc: true
292
- homepage: http://hobocentral.net/
293
- post_install_message:
294
- rdoc_options:
295
- - --line-numbers
296
- - --inline-source
297
- - --title
298
- - Hobo
299
- - --main
300
- - README
301
- require_paths:
302
- - lib
303
- required_ruby_version: !ruby/object:Gem::Requirement
304
- requirements:
305
- - - ">="
306
- - !ruby/object:Gem::Version
307
- version: "0"
308
- version:
309
- required_rubygems_version: !ruby/object:Gem::Requirement
310
- requirements:
311
- - - ">="
312
- - !ruby/object:Gem::Version
313
- version: "1.2"
314
- version:
315
- requirements: []
316
-
317
- rubyforge_project: hobo
318
- rubygems_version: 1.3.1
319
- specification_version: 2
320
- summary: The web app builder for Rails
321
- test_files:
322
- - test/dryml/complilation_test.rb
323
- - test/generators/test_generator_helper.rb
324
- - test/generators/test_helper.rb
325
- - test/generators/test_hobo_model_controller_generator.rb
326
- - test/permissions/test_permissions.rb
29
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
30
+ s.add_runtime_dependency(%q<hobosupport>, ["= 0.8.6"])
31
+ s.add_runtime_dependency(%q<hobofields>, ["= 0.8.6"])
32
+ s.add_runtime_dependency(%q<rails>, [">= 2.2.2"])
33
+ s.add_runtime_dependency(%q<mislav-will_paginate>, [">= 2.2.1"])
34
+ else
35
+ s.add_dependency(%q<hobosupport>, ["= 0.8.6"])
36
+ s.add_dependency(%q<hobofields>, ["= 0.8.6"])
37
+ s.add_dependency(%q<rails>, [">= 2.2.2"])
38
+ s.add_dependency(%q<mislav-will_paginate>, [">= 2.2.1"])
39
+ end
40
+ else
41
+ s.add_dependency(%q<hobosupport>, ["= 0.8.6"])
42
+ s.add_dependency(%q<hobofields>, ["= 0.8.6"])
43
+ s.add_dependency(%q<rails>, [">= 2.2.2"])
44
+ s.add_dependency(%q<mislav-will_paginate>, [">= 2.2.1"])
45
+ end
46
+ end