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.
Files changed (5) hide show
  1. data/README.rdoc +2 -0
  2. data/Rakefile +1 -1
  3. data/lib/piwik.rb +1 -1
  4. data/lib/piwik/site.rb +2 -2
  5. metadata +7 -7
@@ -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",">= 0.5.1"]]
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'
@@ -6,5 +6,5 @@ require 'piwik/site.rb'
6
6
  require 'piwik/user.rb'
7
7
  require 'piwik/trackable.rb'
8
8
  module Piwik
9
- VERSION = "0.4.0"
9
+ VERSION = "0.4.1"
10
10
  end
@@ -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: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 0
10
- version: 0.4.0
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: 9
61
+ hash: 13
62
62
  segments:
63
- - 0
64
- - 5
65
63
  - 1
66
- version: 0.5.1
64
+ - 6
65
+ - 1
66
+ version: 1.6.1
67
67
  type: :runtime
68
68
  version_requirements: *id003
69
69
  - !ruby/object:Gem::Dependency