simple_ga_reporting 1.0.2 → 1.0.3

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
  SHA256:
3
- metadata.gz: d92e1412886f748142b271d44ae89b31f53814b1704ffb95ed710f160d1949b7
4
- data.tar.gz: b6978b6bd0df58870fd0daa7a9f19f7c57be14cf5b74e5048fb4a8f988c93c86
3
+ metadata.gz: 282dd77f4ef0b142598939022e69716eec322200edcd16ebe7c2f514f5dc313b
4
+ data.tar.gz: 666470828394059a9a39ff4b531f3b94c0a9c387be92a44643695b2c979723b0
5
5
  SHA512:
6
- metadata.gz: b1cbd39b4e4e3465e97f63a8fd9c9b3f46708a401c2e2e7af3fba3e1a63f4919de72f99e1b1e7a35d546560831f3c28721dd9ad495dcca07a9bb9991c21a8ecd
7
- data.tar.gz: f067bd1a3ff4ba15facd0cdd407b8dba3dcc98a1996dae0829d5756b742b4a69c6e49ee0b9695fafefff0cc3af14162bca28a5249d215926360af7172eaa5c56
6
+ metadata.gz: 75381b38ce69e3b6a4afb4096dd6438da29dccbb36a4f6bf99cf7042ef0008366d2f074cbc3bec1ea04bf8a915663d0eb3fea53a23229aa5ef85c13ec35445bf
7
+ data.tar.gz: d5ba8cecd98b433cd385937d4d05fe7bd5740eb84edabd38370b1ed8bf62435c98826ddc4233383765d562ea21fc410307162e930ec32efe860a63179c14df68
data/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ # 1.0.3
2
+ - fix 1.0.2 bugs
3
+
4
+ # 1.0.2
5
+ - read default `filters.yml` when user's `filters.yml` doesn't exist
6
+
7
+ # 1.0.1
8
+ - add `require 'yaml'`
9
+
10
+ # 1.0.0
11
+ - first release
@@ -0,0 +1,2 @@
1
+ module Filters
2
+ end
@@ -6,10 +6,10 @@ class SimpleGaReports
6
6
  end
7
7
 
8
8
  class << SimpleGaReports
9
- def configure(yaml_file='config/ga_reporting_config.yml', filters_file='config/filters.rb', **options)
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 = File.exist?(filters_file) ? filters_file : './filters.rb'
12
+ $filters_file = filters_file
13
13
 
14
14
  require 'simple_ga_reporting/legato_ga_model'
15
15
  query_parameters($model_config, options)
@@ -1,3 +1,3 @@
1
1
  module SimpleGaReporting
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
3
3
  end
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.2
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
@@ -1,3 +0,0 @@
1
- # TODO: uuummmmmm... this is dummy file, not cool...
2
- module Filters
3
- end