webs 0.1.27 → 0.1.28

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/Rakefile CHANGED
@@ -3,7 +3,7 @@ require 'rubygems'
3
3
  require 'rake'
4
4
  require 'echoe'
5
5
 
6
- Echoe.new('webs', '0.1.27') do |p|
6
+ Echoe.new('webs', '0.1.28') do |p|
7
7
  p.description = "Reusable webs stuff."
8
8
  p.url = "https://colczak@github.com/websdev/websgem.git"
9
9
  p.author = "Chuck Olczak"
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 && !off
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 #&& !off
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 && !off
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 && !off
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
@@ -83,7 +83,7 @@ module Webs
83
83
  if partials && partials.any?
84
84
  partials.each do |p|
85
85
  p = render_to_string( :partial=>p )
86
- Rails.logger.debug "************ PARTIAL=> #{p}"
86
+ # Rails.logger.debug "************ PARTIAL=> #{p}"
87
87
  render_text += p
88
88
  end
89
89
  end
@@ -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
@@ -7,7 +7,7 @@ require dir + 'helper/params'
7
7
  require dir + 'helper/tags'
8
8
 
9
9
  module Webs
10
- VERSION = '0.1.27'.freeze
10
+ VERSION = '0.1.28'.freeze
11
11
 
12
12
  def self.app_title
13
13
  APP_NAME.titleize
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.27"
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-19}
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.27
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-19 00:00:00 -04:00
13
+ date: 2011-04-21 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies: []
16
16