active_scaffold 3.0.11 → 3.0.12

Sign up to get free protection for your applications and to get access to all the features.
data/init.rb CHANGED
@@ -1,7 +1,2 @@
1
+ ACTIVE_SCAFFOLD_PLUGIN = true
1
2
  require 'active_scaffold'
2
-
3
- begin
4
- ActiveScaffoldAssets.copy_to_public(ActiveScaffold.root, {:clean_up_destination => true})
5
- rescue
6
- raise $! unless Rails.env == 'production'
7
- end
@@ -338,11 +338,10 @@ require 'active_scaffold_env'
338
338
  ## But at least rescue the action in production
339
339
  ##
340
340
 
341
- Rails::Application.initializer("active_scaffold.install_assets") do
342
- begin
341
+ if defined?(ACTIVE_SCAFFOLD_PLUGIN)
342
+ ActiveScaffoldAssets.copy_to_public(ActiveScaffold.root, {:clean_up_destination => true})
343
+ else
344
+ Rails::Application.initializer("active_scaffold.install_assets") do
343
345
  ActiveScaffoldAssets.copy_to_public(ActiveScaffold.root, {:clean_up_destination => true})
344
- rescue
345
- raise $! unless Rails.env == 'production'
346
346
  end
347
- end if defined?(ACTIVE_SCAFFOLD_GEM)
348
-
347
+ end
@@ -2,7 +2,7 @@ module ActiveScaffold
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 0
5
- PATCH = 11
5
+ PATCH = 12
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
@@ -8,6 +8,8 @@ class ActiveScaffoldAssets
8
8
  copy_asset_type(from, available_frontends, asset_type, options)
9
9
  end
10
10
  end
11
+ rescue
12
+ raise $! unless Rails.env == 'production'
11
13
  end
12
14
 
13
15
  protected
@@ -42,4 +44,4 @@ protected
42
44
  FileUtils.rm Dir.glob("#{destination}/*") if options[:clean_up_destination]
43
45
  FileUtils.cp_r(Dir.glob("#{source}/#{file_mask}"), destination)
44
46
  end
45
- end
47
+ end
@@ -8,7 +8,7 @@ module Rails
8
8
  end
9
9
 
10
10
  def install_plugins
11
- unless defined?(ACTIVE_SCAFFOLD_GEM)
11
+ if defined?(ACTIVE_SCAFFOLD_PLUGIN)
12
12
  plugin 'verification', :git => 'git://github.com/rails/verification.git'
13
13
  plugin 'render_component', :git => 'git://github.com/vhochstein/render_component.git'
14
14
  end
@@ -21,7 +21,7 @@ module Rails
21
21
  end
22
22
 
23
23
  def configure_active_scaffold
24
- unless defined?(ACTIVE_SCAFFOLD_GEM)
24
+ if defined?(ACTIVE_SCAFFOLD_PLUGIN)
25
25
  if js_lib == 'jquery'
26
26
  gsub_file 'vendor/plugins/active_scaffold/lib/active_scaffold_env.rb', /#ActiveScaffold.js_framework = :jquery/, 'ActiveScaffold.js_framework = :jquery'
27
27
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_scaffold
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 11
10
- version: 3.0.11
9
+ - 12
10
+ version: 3.0.12
11
11
  platform: ruby
12
12
  authors:
13
13
  - Many, see README
@@ -315,7 +315,6 @@ files:
315
315
  - lib/active_scaffold/version.rb
316
316
  - lib/active_scaffold_assets.rb
317
317
  - lib/active_scaffold_env.rb
318
- - lib/active_scaffold_vho.rb
319
318
  - lib/extensions/action_controller_rendering.rb
320
319
  - lib/extensions/action_view_rendering.rb
321
320
  - lib/extensions/action_view_resolver.rb
@@ -1,2 +0,0 @@
1
- ACTIVE_SCAFFOLD_GEM = true
2
- require 'active_scaffold'