puffer 0.0.14 → 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.14
1
+ 0.0.15
data/lib/puffer/engine.rb CHANGED
@@ -3,7 +3,6 @@ module Puffer
3
3
  config.autoload_paths << File.join(root, 'lib')
4
4
 
5
5
  initializer 'puffer.add_cells_paths', :after => :add_view_paths do
6
- require 'cells'
7
6
  ::Cell::Base.prepend_view_path(Cells::DEFAULT_VIEW_PATHS.map { |path| File.join(root, path) })
8
7
  end
9
8
  end
@@ -13,11 +13,11 @@ module Puffer
13
13
  module InstanceMethods
14
14
 
15
15
  def resource_with_puffer *resources, &block
16
- puffer_resource(*resources, &block) || resource_without_puffer(*resources, &block)
16
+ puffer_resource(*Marshal.load(Marshal.dump(resources)), &block) || resource_without_puffer(*resources, &block)
17
17
  end
18
18
 
19
19
  def resources_with_puffer *resources, &block
20
- puffer_resources(*resources, &block) || resources_without_puffer(*resources, &block)
20
+ puffer_resources(*Marshal.load(Marshal.dump(resources)), &block) || resources_without_puffer(*resources, &block)
21
21
  end
22
22
 
23
23
  def puffer_controller controller
data/lib/puffer.rb CHANGED
@@ -15,6 +15,9 @@ module Puffer
15
15
 
16
16
  end
17
17
 
18
+ require 'will_paginate'
19
+ require 'cells'
20
+
18
21
  require 'puffer/engine'
19
22
  require 'puffer/extensions/activerecord'
20
23
  require 'puffer/extensions/controller'
data/puffer.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{puffer}
8
- s.version = "0.0.14"
8
+ s.version = "0.0.15"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["pyromaniac"]
12
- s.date = %q{2011-02-08}
12
+ s.date = %q{2011-02-10}
13
13
  s.description = %q{In Soviet Russia puffer admins you}
14
14
  s.email = %q{kinwizard@gmail.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puffer
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 14
10
- version: 0.0.14
9
+ - 15
10
+ version: 0.0.15
11
11
  platform: ruby
12
12
  authors:
13
13
  - pyromaniac
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-08 00:00:00 +03:00
18
+ date: 2011-02-10 00:00:00 +03:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency