simple_ga_reporting 1.1.9 → 1.2.0

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
  SHA256:
3
- metadata.gz: 0e9f645fd9d0ebd264ff5938e511986f9b95bb5073ef4a677aba60159e9afb9f
4
- data.tar.gz: 6d4fab1bdbc996c25cf0cbeadd728037ab0843823005df02d7afd794519cfce6
3
+ metadata.gz: f221a740b8c7c09dca3d7610864ec4d7593eb14ee85a7f263d76576880d5ee1c
4
+ data.tar.gz: 40473825da12f440658e5f140ab0f06cd4eb70632a7247f7fec06e65a7fdf58c
5
5
  SHA512:
6
- metadata.gz: b494fc73ce80af56342d5edf7bd3c17178ea4a444914956207e844404021bbd6fb0f8aea4d281602347788d3563e10463dcbc40784e6d9d98a0d23f16a91337a
7
- data.tar.gz: d26c64e6392761a694abff0c27a1a64bf46034df72d1569e33eeeca7d80eb5cbc738bf22f258425b21d85efd2c9a5cdee8551e174ffef4191e3d7b95851dbb09
6
+ metadata.gz: 5fa0a15cde2dc0ee6df4b6f763a99bc4197c8315833398f079cee538cfd3ffdafe5aaf170299de50df2195dd81c0019980416c47eef463c2172d7d1c1673ddc2
7
+ data.tar.gz: a3029692fb6e0ebf7a2a7fbbef3d27318d1dfb82d7bdf9f7d15a2e57dda6530d821c4907ce4fa5a87eabe6fa98796884ed88ab1103e71fcb2ad57d6443143fa5
@@ -1,3 +1,6 @@
1
+ # 1.2.0
2
+ - fix the bug which occurs if the `filters.rb` filepath is not specified
3
+
1
4
  # 1.1.9
2
5
  - I have been thinking 'HOW TO SPECIFY CONFIG FILE(S)PATH?' and I concluded ROLLBACK v1.1.3
3
6
 
@@ -6,10 +6,15 @@ class SimpleGaReports
6
6
  end
7
7
 
8
8
  class << SimpleGaReports
9
- def configure(report_config: 'config/ga_reporting_config.yml', filters: 'config/filters.rb', **options)
9
+ def configure(report_config: 'config/ga_reporting_config.yml', filters: nil, **options)
10
10
  # TODO: oh... global variable...
11
11
  $model_config = YAML.load_file(report_config)
12
- $filters_file = filters
12
+
13
+ if filters.nil?
14
+ $filters_file = File.expand_path('../config/filters.rb', __FILE__)
15
+ else
16
+ $filters_file = filters
17
+ end
13
18
 
14
19
  require 'simple_ga_reporting/legato_ga_model'
15
20
  query_parameters($model_config, options)
@@ -1,3 +1,3 @@
1
1
  module SimpleGaReporting
2
- VERSION = '1.1.9'
2
+ VERSION = '1.2.0'
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.1.9
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Osamu Takiya