hobo 1.4.0.pre5 → 1.4.0.pre6

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,10 +3,6 @@
3
3
  ## regressions
4
4
 
5
5
  * after-submit, sortable-input-many do not work
6
- * Hobo 1.4 breaks default_scope. If you're setting the order, you
7
- can use Hobo's set_default_order as a stopgap although once it's
8
- fixed please switch back to default_scope as set_default_order
9
- is deprecated.
10
6
  * remote-method-button, create-button, update-button,
11
7
  transition-button: normal usages of these tags work, but they do
12
8
  not work if you ask them to do AJAX
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.0.pre5
1
+ 1.4.0.pre6
@@ -11,10 +11,10 @@ module Hobo
11
11
 
12
12
  def install_default_plugins
13
13
  opts = options.dup
14
- opts[:version => Hobo::VERSION]
14
+ opts[:version] = Hobo::VERSION
15
15
  say "Installing default plugins for #{opts[:subsite]}..."
16
16
  say "Installing hobo_rapid plugin..."
17
- install_plugin_helper('hobo_rapid', nil, opts)
17
+ install_plugin_helper('hobo_rapid', nil, opts.merge(:skip_dryml => true))
18
18
  say "Installing hobo_jquery plugin..."
19
19
  install_plugin_helper('hobo_jquery', nil, opts)
20
20
  say "Installing hobo_jquery_ui plugin..."
@@ -16,8 +16,9 @@ URL. Otherwise it is considered to be a path.
16
16
  argument :name, :desc => "the plugin name"
17
17
  argument :git_path, :required => false, :desc => "if supplied, is passed to the :git or :path option in the gemfile"
18
18
  class_option :skip_gem, :type => :boolean, :aliases => '-M', :desc => "don't add plugin to Gemfile"
19
- class_option :skip_js, :type => :boolean, :aliases => '-J', :desc => "don't add require to application.js"
20
- class_option :skip_css, :type => :boolean, :aliases => '-C', :desc => "doesn't add require to application.css"
19
+ class_option :skip_js, :type => :boolean, :aliases => '-J', :desc => "don't add require to [subsite].js"
20
+ class_option :skip_css, :type => :boolean, :aliases => '-C', :desc => "doesn't add require to [subsite].css"
21
+ class_option :skip_dryml, :type => :boolean, :desc => "doesn't add include to [subsite]_site.dryml"
21
22
  class_option :version, :type => :string, :aliases => '-v', :desc => "Gemspec version string"
22
23
  class_option :comments, :type => :string, :desc => "comments to add before require/include"
23
24
  class_option :subsite, :type => :string, :aliases => '-e', :default => "all", :desc => "Subsite name (without '_site') or 'all'"
@@ -43,7 +43,7 @@ module Generators
43
43
  subsites.each do |subsite|
44
44
  inject_js_require(name, subsite, options[:comments]) unless options[:skip_js]
45
45
  inject_css_require(name, subsite, options[:comments]) unless options[:skip_css]
46
- inject_dryml_include(name, subsite, options[:comments])
46
+ inject_dryml_include(name, subsite, options[:comments]) unless options[:skip_dryml]
47
47
  end
48
48
 
49
49
  return need_update
@@ -31,6 +31,9 @@ module Hobo
31
31
  class_option :admin_subsite_name, :type => :string,
32
32
  :desc => "Admin Subsite Name", :default => 'admin'
33
33
 
34
+ class_option :invite_only, :type => :boolean,
35
+ :desc => "Require invitation to join site"
36
+
34
37
  class_option :private_site, :type => :boolean,
35
38
  :desc => "Make the site unaccessible to non-members"
36
39
 
@@ -10,7 +10,7 @@ module Hobo
10
10
 
11
11
  def generate_taglib
12
12
  template "taglib.dryml.erb", File.join('app/views/taglibs', "#{file_name}_site.dryml")
13
- Rails::Generators.invoke('hobo:install_default_plugins', ["--subsite=#{file_name}", "--theme=hobo_clean_admin", "--ui_theme=flick", "--skip_gem"])
13
+ Rails::Generators.invoke('hobo:install_default_plugins', ["--subsite=#{file_name}", "--theme=hobo_clean_admin", "--ui_theme=flick"])
14
14
  end
15
15
 
16
16
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: hobo
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: 6
5
- version: 1.4.0.pre5
5
+ version: 1.4.0.pre6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Tom Locke
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-04-23 00:00:00 Z
13
+ date: 2012-04-24 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: hobo_support
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - "="
22
22
  - !ruby/object:Gem::Version
23
- version: 1.4.0.pre5
23
+ version: 1.4.0.pre6
24
24
  type: :runtime
25
25
  version_requirements: *id001
26
26
  - !ruby/object:Gem::Dependency
@@ -31,7 +31,7 @@ dependencies:
31
31
  requirements:
32
32
  - - "="
33
33
  - !ruby/object:Gem::Version
34
- version: 1.4.0.pre5
34
+ version: 1.4.0.pre6
35
35
  type: :runtime
36
36
  version_requirements: *id002
37
37
  - !ruby/object:Gem::Dependency
@@ -42,7 +42,7 @@ dependencies:
42
42
  requirements:
43
43
  - - "="
44
44
  - !ruby/object:Gem::Version
45
- version: 1.4.0.pre5
45
+ version: 1.4.0.pre6
46
46
  type: :runtime
47
47
  version_requirements: *id003
48
48
  - !ruby/object:Gem::Dependency