fastlane-plugin-google_analytics 0.1.0.pre.alpha.pre.4 → 0.1.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4fbbbede6540063f2521e4347b1653117a4fc2fe
4
- data.tar.gz: 6a2a012e5297823c6d17380348a04bc4a0e01ba1
3
+ metadata.gz: ed99b525fea8a06dfc3aa3882f9440888983aedf
4
+ data.tar.gz: a03b41640cb2d73420dbeae307c4b8bff3194c3d
5
5
  SHA512:
6
- metadata.gz: 2fe8e4673b50fcea7f3534e122b6bcc58413badd65194ad0ab8d4e22a5fac038f91dc181eefaa65023d48cc7d300c4969ebc510c91b4d23837ad288d45fd2520
7
- data.tar.gz: 3c1a8a28178e5a7825c7c57a9be9a565b6c7a9b6383e904de40142fda2e77f70dae5ac6b301e99b49a4a371db58fffc6196eb00f3a44eec6de2b7779e2593b04
6
+ metadata.gz: 915ffd33aacae01a4a8d0af8bf10875a81cc7e35fb0b7b4bf242b0feb41409c2cad65cce95af9ebdb885d5cd43ce1147d1dbf484071e5c532c70a250b0d378d4
7
+ data.tar.gz: 0526014f5589d998a9df63b60e47d26f7e8534262d77f3da3a3f52e66b7b08dc190f5807cdee5a06af54b47cd980aa4047ebabc0fae66be7ebaf63ffd87f1519
data/README.md CHANGED
@@ -10,39 +10,43 @@ This project is a [fastlane](https://github.com/fastlane/fastlane) plugin. To ge
10
10
  fastlane add_plugin google_analytics
11
11
  ```
12
12
 
13
- ## About
13
+ ## About google_analytics
14
14
 
15
- Use Google Analytics
15
+ Fire universal Analytics
16
16
 
17
- <img src='assets/screen.png'>
17
+ **Note to author:** Add a more detailed description about this plugin here. If your plugin contains multiple actions, make sure to mention them here.
18
18
 
19
19
  ## Example
20
20
 
21
- ### Pageview
22
- ```ruby
23
- google_analytics(payload: { path: '/page-path', hostname: 'mysite.com', title: 'A Page!' } )
24
- ```
21
+ Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
25
22
 
26
- ### Exception
27
- ```ruby
28
- google_exception(payload: { description: 'RuntimeException', fatal: true })
29
- ```
23
+ **Note to author:** Please set up a sample project to make it easy for users to explore what your plugin does. Provide everything that is necessary to try out the plugin in this project (including a sample Xcode/Android project if necessary)
30
24
 
31
- ### Timing
32
- ```ruby
33
- google_timing(payload: { category: 'runtime', variable: 'db', label: 'query', time: 50 })
34
- ```
25
+ ## Run tests for this plugin
35
26
 
36
- ### Event
37
- ```ruby
38
- google_event(payload: { category: 'video', action: 'play', label: 'cars', value: 1 })
27
+ To run both the tests, and code style validation, run
28
+
29
+ ```
30
+ rake
39
31
  ```
40
32
 
33
+ To automatically fix many of the styling issues, use
34
+ ```
35
+ rubocop -a
36
+ ```
41
37
 
42
38
  ## Issues and Feedback
43
39
 
44
40
  For any other issues and feedback about this plugin, please submit it to this repository.
45
41
 
42
+ ## Troubleshooting
43
+
44
+ If you have trouble using plugins, check out the [Plugins Troubleshooting](https://docs.fastlane.tools/plugins/plugins-troubleshooting/) guide.
45
+
46
+ ## Using `fastlane` Plugins
47
+
48
+ For more information about how the `fastlane` plugin system works, check out the [Plugins documentation](https://docs.fastlane.tools/plugins/create-plugin/).
49
+
46
50
  ## About `fastlane`
47
51
 
48
52
  `fastlane` is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out [fastlane.tools](https://fastlane.tools).
@@ -4,29 +4,24 @@ module Fastlane
4
4
  module Actions
5
5
  class GoogleAnalyticsAction < Action
6
6
  def self.run(params)
7
- UI.important "Firing #{params[:type]} ⚡️"
7
+ UI.important "Firing #{params[:type].to_s} ⚡️"
8
8
  tracker(params).send(params[:type].to_s, params[:payload])
9
9
  end
10
-
11
10
  def self.tracker(params)
12
- Staccato.tracker(params[:ua], nil, ssl: true) do |c|
13
- # c.adapter = Staccato::Adapter::Logger.new(Staccato.ga_collection_uri, Logger.new(STDOUT), lambda {|params| JSON.dump(params)})
11
+ Staccato.tracker(params[:ua], nil, ssl:true) do |c|
12
+ #c.adapter = Staccato::Adapter::Logger.new(Staccato.ga_collection_uri, Logger.new(STDOUT), lambda {|params| JSON.dump(params)})
14
13
  end
15
14
  end
16
-
17
15
  def self.description
18
16
  "Fire universal Analytics"
19
17
  end
20
-
21
18
  def self.alias_used(action_alias, params)
22
19
  cat = action_alias.split("_").last
23
- params[:type] = cat
20
+ params[:type]=cat
24
21
  end
25
-
26
22
  def self.aliases
27
- ["google_event", "google_pageview", "google_timing", "google_exception"]
23
+ ["google_event", "google_pageview", "google_timing", "google_exception"]
28
24
  end
29
-
30
25
  def self.authors
31
26
  ["Helmut Januschka"]
32
27
  end
@@ -52,12 +47,12 @@ module Fastlane
52
47
  description: "Google Analytics Payload",
53
48
  optional: false,
54
49
  type: Hash),
55
- FastlaneCore::ConfigItem.new(key: :type,
56
- env_name: "GOOGLE_ANALYTICS_TYPE",
57
- default_value: "pageview",
58
- description: "pageview, event, timinig, exception",
59
- optional: false,
60
- type: String)
50
+ FastlaneCore::ConfigItem.new(key: :type,
51
+ env_name: "GOOGLE_ANALYTICS_TYPE",
52
+ default_value: "pageview",
53
+ description: "pageview, event, timinig, exception",
54
+ optional: false,
55
+ type: String)
61
56
  ]
62
57
  end
63
58
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-google_analytics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.alpha.pre.4
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Helmut Januschka
@@ -135,12 +135,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
135
135
  version: '0'
136
136
  required_rubygems_version: !ruby/object:Gem::Requirement
137
137
  requirements:
138
- - - ">"
138
+ - - ">="
139
139
  - !ruby/object:Gem::Version
140
- version: 1.3.1
140
+ version: '0'
141
141
  requirements: []
142
142
  rubyforge_project:
143
- rubygems_version: 2.4.8
143
+ rubygems_version: 2.6.8
144
144
  signing_key:
145
145
  specification_version: 4
146
146
  summary: Fire universal Analytics