autometal-piwik 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -0
- data/Rakefile +1 -1
- data/lib/piwik.rb +1 -1
- data/lib/piwik/site.rb +2 -2
- metadata +7 -7
data/README.rdoc
CHANGED
@@ -46,6 +46,8 @@ RubyGems and the following gems (installed automatically if necessary):
|
|
46
46
|
sudo gem install autometal-piwik --source=http://gemcutter.org
|
47
47
|
|
48
48
|
== CHANGELOG:
|
49
|
+
* 0.4.1
|
50
|
+
Quick fixed api result parsing in site creation. The API's responses are inconsistent, but I am not sure why.
|
49
51
|
* 0.4.0
|
50
52
|
Added Piwik::Trackable controller mixing, pretty much swiped off of halfdan's piwik analytics project (https://github.com/halfdan/piwik_analytics/). The version included in this plugin is not suitable for application tracking, and is instead geared towards tracking multiple websites stored as ActiveRecord models
|
51
53
|
* 0.3.0
|
data/Rakefile
CHANGED
@@ -9,7 +9,7 @@ $hoe = Hoe.spec 'autometal-piwik' do
|
|
9
9
|
self.developer 'Achillefs Charmpilas', 'ac@humbuckercode.co.uk'
|
10
10
|
self.post_install_message = File.read('PostInstall.txt')
|
11
11
|
self.rubyforge_name = self.name
|
12
|
-
self.extra_deps = [['activesupport','>= 2.3.8'],['xml-simple',">=1.0.11"],["rest-client",">=
|
12
|
+
self.extra_deps = [['activesupport','>= 2.3.8'],['xml-simple',">=1.0.11"],["rest-client",">= 1.6.1"]]
|
13
13
|
end
|
14
14
|
|
15
15
|
require 'newgem/tasks'
|
data/lib/piwik.rb
CHANGED
data/lib/piwik/site.rb
CHANGED
@@ -64,8 +64,8 @@ module Piwik
|
|
64
64
|
raise ArgumentError, "Main URL can not be blank" if main_url.blank?
|
65
65
|
xml = call('SitesManager.addSite', :siteName => name, :urls => main_url)
|
66
66
|
result = XmlSimple.xml_in(xml, {'ForceArray' => false})
|
67
|
-
case result.class
|
68
|
-
when Hash
|
67
|
+
case result.class.to_s
|
68
|
+
when "Hash"
|
69
69
|
@id = result["result"].to_i
|
70
70
|
else
|
71
71
|
@id = result.to_i
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autometal-piwik
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 1
|
10
|
+
version: 0.4.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Achillefs Charmpilas
|
@@ -58,12 +58,12 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
hash:
|
61
|
+
hash: 13
|
62
62
|
segments:
|
63
|
-
- 0
|
64
|
-
- 5
|
65
63
|
- 1
|
66
|
-
|
64
|
+
- 6
|
65
|
+
- 1
|
66
|
+
version: 1.6.1
|
67
67
|
type: :runtime
|
68
68
|
version_requirements: *id003
|
69
69
|
- !ruby/object:Gem::Dependency
|