webs 0.1.27 → 0.1.28
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/cache/cache.rb +4 -4
- data/lib/controller/webs_controller.rb +1 -1
- data/lib/views/layouts/webs_page.html.erb +5 -0
- data/lib/webs.rb +1 -1
- data/webs.gemspec +2 -2
- metadata +2 -2
data/Rakefile
CHANGED
data/lib/cache/cache.rb
CHANGED
@@ -5,7 +5,7 @@ module Webs
|
|
5
5
|
mattr_accessor :off
|
6
6
|
|
7
7
|
def cache_remove(key)
|
8
|
-
Rails.logger.debug "*********** cache_remove(#{key})" if debug
|
8
|
+
Rails.logger.debug "*********** cache_remove(#{key})" if debug
|
9
9
|
return if key.nil?
|
10
10
|
Webs.cache.delete(key.to_s)
|
11
11
|
rescue Exception => e
|
@@ -14,7 +14,7 @@ module Webs
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def cache_read( key )
|
17
|
-
Rails.logger.debug "*********** cache_read(#{key})" if debug
|
17
|
+
Rails.logger.debug "*********** cache_read(#{key})" if debug
|
18
18
|
if Webs.cache.respond_to?( 'read' )
|
19
19
|
Webs.cache.read(key)
|
20
20
|
else
|
@@ -45,14 +45,14 @@ module Webs
|
|
45
45
|
#TODO: Check to see if dalli cache & compressed then up the size to 3MB
|
46
46
|
# should get almost 10:1 compression ratio. This will be key for caching pages & fragments
|
47
47
|
if block_size < 1.megabyte
|
48
|
-
Rails.logger.debug "*********** cache_block[#{block_size}](#{key}, #{data && data.inspect.length > 100 ? data.inspect[0..100] : data} )" if debug
|
48
|
+
Rails.logger.debug "*********** cache_block[#{block_size}](#{key}, #{data && data.inspect.length > 100 ? data.inspect[0..100] : data} )" if debug
|
49
49
|
if Webs.cache.respond_to?( 'write' )
|
50
50
|
Webs.cache.write(key, data)
|
51
51
|
else
|
52
52
|
Webs.cache[ key ] = data
|
53
53
|
end
|
54
54
|
else
|
55
|
-
Rails.logger.debug "*********** cache_block(#{key}) not cached since exceeds 3M @ #{block_size} )" if debug
|
55
|
+
Rails.logger.debug "*********** cache_block(#{key}) not cached since exceeds 3M @ #{block_size} )" if debug
|
56
56
|
end
|
57
57
|
else
|
58
58
|
Rails.logger.debug "****HIT**** cache_block(#{key} )" if debug && !off
|
@@ -3,6 +3,9 @@
|
|
3
3
|
<%= javascript_include_tag 'application' %>
|
4
4
|
<%= stylesheet_link_tag 'styles' %>
|
5
5
|
<%= yield :fw_head %>
|
6
|
+
<% if @jquery_noconflict %>
|
7
|
+
<%= render :partial=>'shared/jquery_noconflict' %>
|
8
|
+
<% end %>
|
6
9
|
</fw:head>
|
7
10
|
|
8
11
|
<fw:paragraph>
|
@@ -21,4 +24,6 @@
|
|
21
24
|
|
22
25
|
<%= yield %>
|
23
26
|
</fw:paragraph>
|
27
|
+
|
28
|
+
<%= yield :fw_after %>
|
24
29
|
<% end %>
|
data/lib/webs.rb
CHANGED
data/webs.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{webs}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.28"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Chuck Olczak"]
|
9
|
-
s.date = %q{2011-04-
|
9
|
+
s.date = %q{2011-04-21}
|
10
10
|
s.description = %q{Reusable webs stuff.}
|
11
11
|
s.email = %q{chuck@webs.com}
|
12
12
|
gemfiles = [
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: webs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.28
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Chuck Olczak
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-04-
|
13
|
+
date: 2011-04-21 00:00:00 -04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|