staccato 0.4.0 → 0.4.1

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: 3b939560977963d95eee659f167c7a8d5815c1e3
4
- data.tar.gz: 02ac189ce8e4bfae7e3748750a7472b28e8d64b8
3
+ metadata.gz: e3af0bde415a8655877df36c7d4946b5b58783fa
4
+ data.tar.gz: 72daad3c89d5e31a7a546c1881bb9a0b92eef036
5
5
  SHA512:
6
- metadata.gz: 1eb4c798052ac93e811cb1ff6996c0288e7246f9ad95d00deb01293452bad88a596570a34f120c1bd99eb0990f03697341073178955e67e1c03c3d77ceb30e8a
7
- data.tar.gz: 3941be84e6f0fd6dc632ff0b19d1094e3fa199f18eb95d971f5e2f6e54bee58718ddf613064ccc86cb8e09d362d3fc68920849f737adc1a5613db65630a764f7
6
+ metadata.gz: e370b94498361d9db18cc0acdbab16d81d7d9f458e88743f25f46febaa77b317337d5a0baf77b09c4b21d76d3388f4c5741c85c212ff4cc01a5498bd4034c3a1
7
+ data.tar.gz: f9138d8bcbafc4c81007478493236c5182484a6721bb30cd994566f1fff2849b6851634e3d6e7361d46ae0300ab6dde349f52daec0d4d261204b2de930aa0c9a
data/.travis.yml CHANGED
@@ -5,3 +5,4 @@ rvm:
5
5
  - 2.1.6
6
6
  - 2.2.2
7
7
  script: bundle exec rake
8
+ sudo: false
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## Staccato 0.4.1 ##
2
+
3
+ * Screenview hit type
4
+
5
+ *Tony Pitale <@tpitale>*
6
+
1
7
  ## Staccato 0.4.0 ##
2
8
 
3
9
  * UDP Adapter for use with Staccato::Proxy
data/README.md CHANGED
@@ -409,6 +409,13 @@ pageview.add_measurement(:product_impression, {
409
409
  pageview.track!
410
410
  ```
411
411
 
412
+ ### Screenview (as in mobile) ###
413
+
414
+ ```ruby
415
+ tracker.screenview({
416
+ screen_name: 'user1'
417
+ })
418
+
412
419
  ## Google Documentation ##
413
420
 
414
421
  https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide
@@ -0,0 +1,15 @@
1
+ module Staccato
2
+ # Screenview Hit type field definitions
3
+ # @author Tony Pitale
4
+ class Screenview
5
+ # Screenview field definitions
6
+ FIELDS = {}
7
+
8
+ include Hit
9
+
10
+ # pageview hit type
11
+ def type
12
+ :screenview
13
+ end
14
+ end
15
+ end
@@ -52,6 +52,14 @@ module Staccato
52
52
  build_pageview(options).track!
53
53
  end
54
54
 
55
+ def build_screenview(options = {})
56
+ Staccato::Screenview.new(self, options)
57
+ end
58
+
59
+ def screenview(options = {})
60
+ build_screenview(options).track!
61
+ end
62
+
55
63
  # Build an event
56
64
  #
57
65
  # @param options [Hash] options include:
@@ -19,4 +19,4 @@ module Staccato
19
19
  :transaction
20
20
  end
21
21
  end
22
- end
22
+ end
@@ -1,4 +1,4 @@
1
1
  module Staccato
2
2
  # The current Staccato VERSION
3
- VERSION = "0.4.0"
3
+ VERSION = "0.4.1"
4
4
  end
data/lib/staccato.rb CHANGED
@@ -51,6 +51,7 @@ require 'staccato/boolean_helpers'
51
51
  require 'staccato/option_set'
52
52
  require 'staccato/hit'
53
53
  require 'staccato/pageview'
54
+ require 'staccato/screenview'
54
55
  require 'staccato/event'
55
56
  require 'staccato/social'
56
57
  require 'staccato/exception'
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.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Pitale
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-06 00:00:00.000000000 Z
11
+ date: 2015-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -133,6 +133,7 @@ files:
133
133
  - lib/staccato/null_measurement.rb
134
134
  - lib/staccato/option_set.rb
135
135
  - lib/staccato/pageview.rb
136
+ - lib/staccato/screenview.rb
136
137
  - lib/staccato/social.rb
137
138
  - lib/staccato/timing.rb
138
139
  - lib/staccato/tracker.rb