hobo 2.1.0.pre4 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
- == Welcome to Hobo
1
+ ## Welcome to Hobo
2
2
  Hobo is an Open Source extension to Ruby on Rails which helps you build full blown web applications incredibly quickly and easily. Available as a Gem or Rails plugin, Hobo provides a simple, clean and elegant development framework which allows for rapid prototyping or production of the most sophisticated web applications.
3
3
 
4
- == Main Features
4
+ ## Main Features
5
5
 
6
- * Rapid implementation of dynamic Ajax interfaces in your application with no extra programming.
7
- * Switchable themes. Customise and tweak your application structure and layout to meet any design goals.
8
- * Powerful mark-up language, DRYML, combines rapid development with ultimate design flexibility. The end of the cookie cutter blues!
6
+ * Rapid implementation of dynamic Ajax interfaces in your application with no extra programming.
7
+ * Switchable themes. Customise and tweak your application structure and layout to meet any design goals.
8
+ * Powerful mark-up language, DRYML, combines rapid development with ultimate design flexibility. The end of the cookie cutter blues!
9
9
 
10
- == RDOC Note
10
+ ## RDOC Note
11
11
 
12
- This is also the front page to the Hobo RDOC. RDOC is not the main documentation method for Hobo. See [hobocentral](http://cookbook.hobocentral.net) for the Hobo documentation.
12
+ This is also the front page to the Hobo RDOC. RDOC is not the main documentation method for Hobo. See [hobocentral](http://cookbook.hobocentral.net) for the Hobo documentation.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.0.pre4
1
+ 2.1.0
@@ -77,10 +77,13 @@ module HoboRouteHelper
77
77
  recognized_params = Rails.application.routes.recognize_path(base_url, {:method => options[:method]})
78
78
  url
79
79
  rescue NoMethodError => e # raised if polymorphic_url fails
80
+ logger.info("polymorphic_url has failed with NoMethodError: #{e.message}")
80
81
  nil
81
82
  rescue ArgumentError => e # raised from polymorphic_url
83
+ logger.info("polymorphic_url has failed with ArgumentError: #{e.message}")
82
84
  nil
83
85
  rescue ActionController::RoutingError => e # raised if recognize_path fails
86
+ logger.info("recognize_path has failed: #{e.message}")
84
87
  nil
85
88
  end
86
89
 
@@ -107,10 +107,10 @@ module Generators
107
107
  collection_path = "#{owner_class.pluralize}/:#{owner}_id/#{collection}"
108
108
 
109
109
  routes = []
110
- routes << "get 'new', :on => :new, :action => 'new_for_#{owner}'" if actions.include?(:new)
110
+ routes << "get '/', :on => :new, :action => 'new_for_#{owner}'" if actions.include?(:new)
111
111
  collection_routes = []
112
- collection_routes << "get 'index', :action => 'index_for_#{owner}'" if actions.include?(:index)
113
- collection_routes << "post 'create', :action => 'create_for_#{owner}'" if actions.include?(:create)
112
+ collection_routes << "get '/', :action => 'index_for_#{owner}'" if actions.include?(:index)
113
+ collection_routes << "post '/', :action => 'create_for_#{owner}'" if actions.include?(:create)
114
114
  routes << {"collection" => collection_routes} unless collection_routes.empty?
115
115
 
116
116
  { "resources :#{owner_class.pluralize}, :as => :#{owner}, :only => []" =>
@@ -458,7 +458,8 @@ module Hobo
458
458
  options.reverse_merge!(:page => params[:page] || 1)
459
459
  finder.paginate(options)
460
460
  else
461
- finder.all(options.except(*WILL_PAGINATE_OPTIONS))
461
+ # Equivalent to the old finder.scoped (http://stackoverflow.com/a/18199294)
462
+ finder.where(nil)
462
463
  end
463
464
  end
464
465
 
@@ -720,7 +721,9 @@ module Hobo
720
721
  hobo_ajax_response || render(:nothing => true)
721
722
  else
722
723
  location = destination_after_submit(options)
723
- respond_with(self.this, :location => location)
724
+ respond_with(self.this) do |wants|
725
+ wants.html { redirect_to location }
726
+ end
724
727
  end
725
728
  else
726
729
  this.exempt_from_edit_checks = true
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hobo
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0.pre4
5
- prerelease: 6
4
+ version: 2.1.0
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Tom Locke
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-29 00:00:00.000000000 Z
12
+ date: 2014-01-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  type: :runtime
@@ -20,13 +20,13 @@ dependencies:
20
20
  requirements:
21
21
  - - '='
22
22
  - !ruby/object:Gem::Version
23
- version: 2.1.0.pre4
23
+ version: 2.1.0
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
27
  - - '='
28
28
  - !ruby/object:Gem::Version
29
- version: 2.1.0.pre4
29
+ version: 2.1.0
30
30
  - !ruby/object:Gem::Dependency
31
31
  type: :runtime
32
32
  name: hobo_fields
@@ -36,13 +36,13 @@ dependencies:
36
36
  requirements:
37
37
  - - '='
38
38
  - !ruby/object:Gem::Version
39
- version: 2.1.0.pre4
39
+ version: 2.1.0
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - '='
44
44
  - !ruby/object:Gem::Version
45
- version: 2.1.0.pre4
45
+ version: 2.1.0
46
46
  - !ruby/object:Gem::Dependency
47
47
  type: :runtime
48
48
  name: dryml
@@ -52,13 +52,13 @@ dependencies:
52
52
  requirements:
53
53
  - - '='
54
54
  - !ruby/object:Gem::Version
55
- version: 2.1.0.pre4
55
+ version: 2.1.0
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  none: false
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 2.1.0.pre4
61
+ version: 2.1.0
62
62
  - !ruby/object:Gem::Dependency
63
63
  type: :runtime
64
64
  name: hobo_will_paginate
@@ -169,7 +169,7 @@ files:
169
169
  - CHANGES-2.1.markdown
170
170
  - Gemfile
171
171
  - LICENSE.txt
172
- - README
172
+ - README.md
173
173
  - Rakefile
174
174
  - VERSION
175
175
  - app/controllers/dryml_support_controller.rb