simple_ga_reporting 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/lib/simple_ga_reporting/config/filters.rb +2 -0
- data/{config → lib/simple_ga_reporting/config}/sample_ga_reporting_config.yml +0 -0
- data/{config → lib/simple_ga_reporting/config}/sample_key_and_email.yml +0 -0
- data/lib/simple_ga_reporting/simple_ga_reports.rb +2 -2
- data/lib/simple_ga_reporting/version.rb +1 -1
- metadata +5 -5
- data/config/filters.rb +0 -19
- data/lib/simple_ga_reporting/filters.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 282dd77f4ef0b142598939022e69716eec322200edcd16ebe7c2f514f5dc313b
|
4
|
+
data.tar.gz: 666470828394059a9a39ff4b531f3b94c0a9c387be92a44643695b2c979723b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75381b38ce69e3b6a4afb4096dd6438da29dccbb36a4f6bf99cf7042ef0008366d2f074cbc3bec1ea04bf8a915663d0eb3fea53a23229aa5ef85c13ec35445bf
|
7
|
+
data.tar.gz: d5ba8cecd98b433cd385937d4d05fe7bd5740eb84edabd38370b1ed8bf62435c98826ddc4233383765d562ea21fc410307162e930ec32efe860a63179c14df68
|
data/CHANGELOG.md
ADDED
File without changes
|
File without changes
|
@@ -6,10 +6,10 @@ class SimpleGaReports
|
|
6
6
|
end
|
7
7
|
|
8
8
|
class << SimpleGaReports
|
9
|
-
def configure(yaml_file
|
9
|
+
def configure(yaml_file, filters_file='simple_ga_reporting/config/filters.rb', **options)
|
10
10
|
# TODO: oh... global variable...
|
11
11
|
$model_config = YAML.load_file(yaml_file)
|
12
|
-
$filters_file =
|
12
|
+
$filters_file = filters_file
|
13
13
|
|
14
14
|
require 'simple_ga_reporting/legato_ga_model'
|
15
15
|
query_parameters($model_config, options)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_ga_reporting
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Osamu Takiya
|
@@ -134,6 +134,7 @@ files:
|
|
134
134
|
- ".circleci/config.yml"
|
135
135
|
- ".gitignore"
|
136
136
|
- ".rspec"
|
137
|
+
- CHANGELOG.md
|
137
138
|
- CODE_OF_CONDUCT.md
|
138
139
|
- Gemfile
|
139
140
|
- LICENSE
|
@@ -141,9 +142,6 @@ files:
|
|
141
142
|
- Rakefile
|
142
143
|
- bin/console
|
143
144
|
- bin/setup
|
144
|
-
- config/filters.rb
|
145
|
-
- config/sample_ga_reporting_config.yml
|
146
|
-
- config/sample_key_and_email.yml
|
147
145
|
- images/config_filter_by_gui.png
|
148
146
|
- images/dimensions_and_metrics_explorer.png
|
149
147
|
- images/ga_add_api_user.png
|
@@ -157,7 +155,9 @@ files:
|
|
157
155
|
- images/gcp_download_json_key.png
|
158
156
|
- images/gcp_private_key_and_client_email.png
|
159
157
|
- lib/simple_ga_reporting.rb
|
160
|
-
- lib/simple_ga_reporting/filters.rb
|
158
|
+
- lib/simple_ga_reporting/config/filters.rb
|
159
|
+
- lib/simple_ga_reporting/config/sample_ga_reporting_config.yml
|
160
|
+
- lib/simple_ga_reporting/config/sample_key_and_email.yml
|
161
161
|
- lib/simple_ga_reporting/legato_ga_model.rb
|
162
162
|
- lib/simple_ga_reporting/legato_ga_user.rb
|
163
163
|
- lib/simple_ga_reporting/simple_ga_reports.rb
|
data/config/filters.rb
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
module Filters
|
2
|
-
def my_awesome_filter
|
3
|
-
end
|
4
|
-
|
5
|
-
def his_awesome_filter
|
6
|
-
end
|
7
|
-
|
8
|
-
def her_awesome_filter
|
9
|
-
end
|
10
|
-
|
11
|
-
def chrome_or_fx
|
12
|
-
filter :chrome_or_fx, &lambda { contains(:browser, 'Chrome|Firefox') }
|
13
|
-
# filter :chrome_or_fx, &lambda { ['Chrome', 'Firefox'].map { |browser| matches(:browser, browser) } }
|
14
|
-
end
|
15
|
-
|
16
|
-
def over_one_thousand_search_sessions
|
17
|
-
filter :over_one_thousand_search_sessions, &lambda { gte(:searchSessions, 1000) }
|
18
|
-
end
|
19
|
-
end
|