puffer 0.0.9 → 0.0.10
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.
- data/VERSION +1 -1
- data/app/cells/puffer/base/additional.html.erb +2 -2
- data/lib/puffer/engine.rb +2 -1
- data/lib/puffer/extensions/mapper.rb +11 -12
- data/lib/puffer/inputs/select.rb +1 -1
- data/puffer.gemspec +2 -3
- data/spec/spec_helper.rb +2 -1
- metadata +4 -5
- data/.rvmrc +0 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.10
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<dl>
|
2
2
|
<dt>Links</dt>
|
3
3
|
<dd>
|
4
|
-
<%=
|
5
|
-
<%=
|
4
|
+
<%= link_to t(:list, :target => resource.human), resource.collection_path %>
|
5
|
+
<%= link_to t(:add, :target => resource.human), resource.new_path %>
|
6
6
|
</dd>
|
7
7
|
<dt>Search</dt>
|
8
8
|
<dd>
|
data/lib/puffer/engine.rb
CHANGED
@@ -3,7 +3,8 @@ 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
|
-
|
6
|
+
require 'cells'
|
7
|
+
::Cell::Base.prepend_view_path(Cells::DEFAULT_VIEW_PATHS.map { |path| File.join(root, path) })
|
7
8
|
end
|
8
9
|
end
|
9
10
|
end
|
@@ -4,21 +4,20 @@ module Puffer
|
|
4
4
|
|
5
5
|
def self.included base
|
6
6
|
base.class_eval do
|
7
|
-
alias_method :original_resource, :resource
|
8
|
-
alias_method :original_resources, :resources
|
9
|
-
|
10
7
|
include InstanceMethods
|
8
|
+
alias_method_chain :resource, :puffer
|
9
|
+
alias_method_chain :resources, :puffer
|
11
10
|
end
|
12
11
|
end
|
13
12
|
|
14
13
|
module InstanceMethods
|
15
14
|
|
16
|
-
def
|
17
|
-
puffer_resource(*resources, &block) ||
|
15
|
+
def resource_with_puffer *resources, &block
|
16
|
+
puffer_resource(*resources, &block) || resource_without_puffer(*resources, &block)
|
18
17
|
end
|
19
18
|
|
20
|
-
def
|
21
|
-
puffer_resources(*resources, &block) ||
|
19
|
+
def resources_with_puffer *resources, &block
|
20
|
+
puffer_resources(*resources, &block) || resources_without_puffer(*resources, &block)
|
22
21
|
end
|
23
22
|
|
24
23
|
def puffer_controller controller
|
@@ -156,18 +155,18 @@ module Puffer
|
|
156
155
|
|
157
156
|
def self.included base
|
158
157
|
base.class_eval do
|
159
|
-
alias_method :original_clear!, :clear!
|
160
|
-
attr_accessor_with_default :puffer, {}
|
161
|
-
|
162
158
|
include InstanceMethods
|
159
|
+
|
160
|
+
alias_method_chain :clear!, :puffer
|
161
|
+
attr_accessor_with_default :puffer, {}
|
163
162
|
end
|
164
163
|
end
|
165
164
|
|
166
165
|
module InstanceMethods
|
167
166
|
|
168
|
-
def
|
167
|
+
def clear_with_puffer!
|
169
168
|
self.puffer = {}
|
170
|
-
|
169
|
+
clear_without_puffer!
|
171
170
|
end
|
172
171
|
|
173
172
|
end
|
data/lib/puffer/inputs/select.rb
CHANGED
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.
|
8
|
+
s.version = "0.0.10"
|
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-
|
12
|
+
s.date = %q{2011-02-03}
|
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 = [
|
@@ -17,7 +17,6 @@ Gem::Specification.new do |s|
|
|
17
17
|
]
|
18
18
|
s.files = [
|
19
19
|
".rspec",
|
20
|
-
".rvmrc",
|
21
20
|
"Gemfile",
|
22
21
|
"Gemfile.lock",
|
23
22
|
"MIT-LICENSE",
|
data/spec/spec_helper.rb
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
# Configure Rails Envinronment
|
2
2
|
ENV["RAILS_ENV"] ||= "test"
|
3
|
-
Bundler.require(:default, ENV["RAILS_ENV"])
|
4
3
|
|
5
4
|
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
6
5
|
require "rails/test_help"
|
7
6
|
require "rspec/rails"
|
8
7
|
|
8
|
+
Bundler.require(:default, ENV["RAILS_ENV"])
|
9
|
+
|
9
10
|
ActionMailer::Base.delivery_method = :test
|
10
11
|
ActionMailer::Base.perform_deliveries = true
|
11
12
|
ActionMailer::Base.default_url_options[:host] = "test.com"
|
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:
|
4
|
+
hash: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 10
|
10
|
+
version: 0.0.10
|
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-
|
18
|
+
date: 2011-02-03 00:00:00 +03:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -191,7 +191,6 @@ extra_rdoc_files:
|
|
191
191
|
- README.md
|
192
192
|
files:
|
193
193
|
- .rspec
|
194
|
-
- .rvmrc
|
195
194
|
- Gemfile
|
196
195
|
- Gemfile.lock
|
197
196
|
- MIT-LICENSE
|
data/.rvmrc
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
rvm use ree@puffer
|