camaleon_google_analytic 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.
- checksums.yaml +4 -4
- data/app/controllers/plugins/camaleon_google_analytic/admin_controller.rb +1 -1
- data/app/helpers/plugins/camaleon_google_analytic/main_helper.rb +4 -5
- data/app/views/plugins/camaleon_google_analytic/admin/settings.html.erb +1 -1
- data/lib/camaleon_google_analytic/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d93f45d20366b73872f875ea6ff00359969889e1
|
|
4
|
+
data.tar.gz: c6d5fcc94e50bfff68e81b4f7cf0e2fe45613764
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2607bb9875e95f5b46a9a665e6f8c47517651aaf026ecd4d04faf81d300b986e01a264d953d59e0c811d515dcb449ad3d184cdc89ee906a852df9e08afa8d549
|
|
7
|
+
data.tar.gz: 7509f4c737d373579c7170ab5a1eaa2095e07f5412ef93dc09e27769f5695267d077179803a6724740c70f435559a6c0999fdc12a668f6ae0621214532c60465
|
|
@@ -16,7 +16,6 @@ module Plugins::CamaleonGoogleAnalytic::MainHelper
|
|
|
16
16
|
# here all actions on going to inactive
|
|
17
17
|
# plugin: plugin model
|
|
18
18
|
def camaleon_google_analytic_on_inactive(plugin)
|
|
19
|
-
current_site.camaleon_google_analytic.destroy_all
|
|
20
19
|
end
|
|
21
20
|
|
|
22
21
|
# here all actions to upgrade for a new version
|
|
@@ -25,10 +24,10 @@ module Plugins::CamaleonGoogleAnalytic::MainHelper
|
|
|
25
24
|
end
|
|
26
25
|
|
|
27
26
|
def google_analytic_front_before_load
|
|
28
|
-
|
|
29
|
-
if
|
|
30
|
-
camaleon_google_analytics_code =
|
|
31
|
-
|
|
27
|
+
camaleon_google_analytics_meta = current_site.get_meta('camaleon_google_analytic_config')
|
|
28
|
+
if camaleon_google_analytics_meta.has_key? :code
|
|
29
|
+
camaleon_google_analytics_code = camaleon_google_analytics_meta[:code]
|
|
30
|
+
append_pre_asset_content("<script>window.GAID='#{camaleon_google_analytics_code}';</script>")
|
|
32
31
|
append_asset_libraries({camaleon_google_analytic: {js: [plugin_gem_asset('google_analytics')]}})
|
|
33
32
|
end
|
|
34
33
|
end
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
</div>
|
|
14
14
|
</div>
|
|
15
15
|
<div class="panel-footer">
|
|
16
|
-
<a class="btn btn-default" href="<%= url_for
|
|
16
|
+
<a class="btn btn-default" href="<%= url_for cama_admin_plugins_path %>"><%= t('admin.button.back') %></a>
|
|
17
17
|
<button class="btn btn-primary pull-right" type="submit"><%= t('admin.button.submit') %></button>
|
|
18
18
|
</div>
|
|
19
19
|
</div>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: camaleon_google_analytic
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
7
|
+
- raulanatol
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-12-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
116
116
|
version: '0'
|
|
117
117
|
requirements: []
|
|
118
118
|
rubyforge_project:
|
|
119
|
-
rubygems_version: 2.
|
|
119
|
+
rubygems_version: 2.5.1
|
|
120
120
|
signing_key:
|
|
121
121
|
specification_version: 4
|
|
122
122
|
summary: Google analytics plugin
|