camaleon_google_analytic 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 85fdace6cf7834c0ee977469aa54c85c652d15c5
4
- data.tar.gz: 7f47f0440aae195fecdeea009e31f5bab0de09c0
3
+ metadata.gz: d93f45d20366b73872f875ea6ff00359969889e1
4
+ data.tar.gz: c6d5fcc94e50bfff68e81b4f7cf0e2fe45613764
5
5
  SHA512:
6
- metadata.gz: 4b14246309a20aca84e6a72e307cbe303d4e88a9441c3628de4232c3d0f0873b18e56cf3b681ddb0da787469fd8dcda9c85cbfec339503be2fda15ee1da4eb7b
7
- data.tar.gz: d4b0a0169567aecfde8c37beeb2934747e12c63b80df0dd553dc071d6e3d92143b84f9472b425fc89777fcb631ba93c34ed541bd23c4eed84ad619ceab290cdd
6
+ metadata.gz: 2607bb9875e95f5b46a9a665e6f8c47517651aaf026ecd4d04faf81d300b986e01a264d953d59e0c811d515dcb449ad3d184cdc89ee906a852df9e08afa8d549
7
+ data.tar.gz: 7509f4c737d373579c7170ab5a1eaa2095e07f5412ef93dc09e27769f5695267d077179803a6724740c70f435559a6c0999fdc12a668f6ae0621214532c60465
@@ -1,4 +1,4 @@
1
- class Plugins::CamaleonGoogleAnalytic::AdminController < Apps::PluginsAdminController
1
+ class Plugins::CamaleonGoogleAnalytic::AdminController < CamaleonCms::Apps::PluginsAdminController
2
2
  include Plugins::CamaleonGoogleAnalytic::MainHelper
3
3
 
4
4
  def settings
@@ -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
- cameleon_google_analytics_meta = current_site.get_meta('camaleon_google_analytic_config')
29
- if cameleon_google_analytics_meta.has_key? :code
30
- camaleon_google_analytics_code = cameleon_google_analytics_meta[:code]
31
- append_asset_content("<script>window.GAID='#{camaleon_google_analytics_code}';</script>")
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 admin_plugins_path %>"><%= t('admin.button.back') %></a>
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>
@@ -1,3 +1,3 @@
1
1
  module CamaleonGoogleAnalytic
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
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.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
- - Raúl Anatol
7
+ - raulanatol
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-05 00:00:00.000000000 Z
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.4.8
119
+ rubygems_version: 2.5.1
120
120
  signing_key:
121
121
  specification_version: 4
122
122
  summary: Google analytics plugin