statsmix 0.1.4 → 0.1.5
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/VERSION +1 -1
- data/lib/statsmix.rb +2 -6
- data/statsmix.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.5
|
data/lib/statsmix.rb
CHANGED
@@ -2,7 +2,6 @@ require 'net/http'
|
|
2
2
|
require 'net/https'
|
3
3
|
require 'rubygems'
|
4
4
|
require 'json'
|
5
|
-
|
6
5
|
class StatsMix
|
7
6
|
|
8
7
|
BASE_URI = 'https://statsmix.com/api/v2/'
|
@@ -69,6 +68,7 @@ class StatsMix
|
|
69
68
|
connect('stats')
|
70
69
|
@request_uri = @url.path + '.' + @format
|
71
70
|
@request = Net::HTTP::Post.new(@request_uri)
|
71
|
+
@params[:metric_id] = metric_id
|
72
72
|
@params.merge!(params)
|
73
73
|
@params[:value] = value if value
|
74
74
|
return do_request
|
@@ -135,7 +135,7 @@ class StatsMix
|
|
135
135
|
# Required: name
|
136
136
|
# Optional: params[:profile_id, :sharing, :include_in_email]
|
137
137
|
# Returns: Net::HTTP object
|
138
|
-
def self.create_metric(name,params={})
|
138
|
+
def self.create_metric(name, params = {})
|
139
139
|
connect('metrics')
|
140
140
|
@params.merge!(params)
|
141
141
|
@params[:name] = name
|
@@ -171,10 +171,6 @@ class StatsMix
|
|
171
171
|
return do_request
|
172
172
|
end
|
173
173
|
|
174
|
-
def initialize(api_key = nil)
|
175
|
-
self.setup(api_key)
|
176
|
-
end
|
177
|
-
|
178
174
|
# Returns: Net::HTTP object
|
179
175
|
def self.response
|
180
176
|
@response
|
data/statsmix.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: statsmix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 5
|
10
|
+
version: 0.1.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tom Markiewicz
|