staccato 0.4.7 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/staccato.rb +3 -1
- data/lib/staccato/tracker.rb +9 -1
- data/lib/staccato/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee2c0f61d931e1fe18965baeef84213f42086310
|
4
|
+
data.tar.gz: afc0cd71e2b001f6b6e4fe762c1b8f69a15b9a68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02205abcbdb2efeced0a9f3fcdce3371334983f3c63b7370fc218ad35d9574337078d56cef143dcdba8bc53cdaa4523fde639b218f01ce8914c3f7e8cb948efa
|
7
|
+
data.tar.gz: e15522d3162b563b8b0b223123c337753079da28786397875ffcbc6a4b369661fe40e614dd2234322de3a28a083ba3bff57748c6e8d7e27e2c9044176e520919
|
data/CHANGELOG.md
CHANGED
data/lib/staccato.rb
CHANGED
@@ -51,7 +51,9 @@ module Staccato
|
|
51
51
|
# @param hit [Hit] anything that returns a hash for #params
|
52
52
|
# @param uri [URI]
|
53
53
|
# @return String
|
54
|
-
def self.as_url(hit, uri =
|
54
|
+
def self.as_url(hit, uri = nil)
|
55
|
+
uri ||= hit.tracker.default_uri
|
56
|
+
|
55
57
|
uri.query = URI.encode_www_form(hit.params)
|
56
58
|
uri.to_s
|
57
59
|
end
|
data/lib/staccato/tracker.rb
CHANGED
@@ -159,6 +159,10 @@ module Staccato
|
|
159
159
|
post(params)
|
160
160
|
end
|
161
161
|
|
162
|
+
def default_uri
|
163
|
+
Staccato.ga_collection_uri(@ssl)
|
164
|
+
end
|
165
|
+
|
162
166
|
private
|
163
167
|
|
164
168
|
# @private
|
@@ -167,7 +171,7 @@ module Staccato
|
|
167
171
|
end
|
168
172
|
|
169
173
|
def adapter
|
170
|
-
@adapter ||= Staccato.default_adapter.new(
|
174
|
+
@adapter ||= Staccato.default_adapter.new(default_uri)
|
171
175
|
end
|
172
176
|
end
|
173
177
|
|
@@ -218,5 +222,9 @@ module Staccato
|
|
218
222
|
# (see Tracker#track)
|
219
223
|
def track(params = {})
|
220
224
|
end
|
225
|
+
|
226
|
+
def default_uri
|
227
|
+
Staccato.ga_collection_uri
|
228
|
+
end
|
221
229
|
end
|
222
230
|
end
|
data/lib/staccato/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: staccato
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tony Pitale
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|