ads-rails 0.0.2 → 0.0.3
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/lib/ads/rails/action_view/base.rb +2 -2
- data/lib/ads/rails/version.rb +1 -1
- data/test/dummy/log/test.log +3 -0
- metadata +2 -2
|
@@ -6,13 +6,13 @@ module Ads
|
|
|
6
6
|
def google_adsense_include_tag(*args)
|
|
7
7
|
if ::Rails.env.production?
|
|
8
8
|
options = args.extract_options!
|
|
9
|
-
script = <<-SCRIPT
|
|
9
|
+
script = <<-SCRIPT
|
|
10
10
|
google_ad_client = '#{options[:client]}';
|
|
11
11
|
google_ad_slot = '#{options[:slot]}';
|
|
12
12
|
google_ad_width = #{options[:width]};
|
|
13
13
|
google_ad_height = #{options[:height]};
|
|
14
14
|
SCRIPT
|
|
15
|
-
content_tag(:script,
|
|
15
|
+
content_tag(:script, script.html_safe, :type => 'text/javascript') +
|
|
16
16
|
content_tag(:script, nil, :type => 'text/javascript', :src => 'http://pagead2.googlesyndication.com/pagead/show_ads.js')
|
|
17
17
|
end
|
|
18
18
|
end
|
data/lib/ads/rails/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
|
@@ -4,3 +4,6 @@ Connecting to database specified by database.yml
|
|
|
4
4
|
Connecting to database specified by database.yml
|
|
5
5
|
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
6
6
|
[1m[35m (0.0ms)[0m rollback transaction
|
|
7
|
+
Connecting to database specified by database.yml
|
|
8
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
|
9
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ads-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-
|
|
12
|
+
date: 2013-06-27 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|