fathom_analytics 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 +7 -0
- data/.env.example +3 -0
- data/.github/workflows/ci.yml +37 -0
- data/.gitignore +13 -0
- data/.rspec +3 -0
- data/.travis.yml +6 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +65 -0
- data/LICENSE.txt +21 -0
- data/README.md +100 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +6 -0
- data/fathom_analytics.gemspec +36 -0
- data/lib/fathom_analytics.rb +7 -0
- data/lib/fathom_analytics/api.rb +161 -0
- data/lib/fathom_analytics/connection.rb +39 -0
- data/lib/fathom_analytics/error.rb +7 -0
- data/lib/fathom_analytics/version.rb +3 -0
- metadata +200 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9ef2617afd279bb381b921c7455379f8ea955c5203b70162680136e0d764778f
|
4
|
+
data.tar.gz: cf7f4a11afa39c034b3776a363adbc09aac76405c16fde3fdf7e54d6a9d8f6ca
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c6f208079f8edc3f493fccd1ebbed879ee8f8d2b643b36a677475daea1c330d6c869f5ba25237341ad1534b921c62311c2477fcc4cf1b53a49f68495fe69f9d6
|
7
|
+
data.tar.gz: 9bbb5d5d912008aef6b401bfec5af3e2ec88924532b7e10e393055e0ab6a2201850bb03c51319034088aa86863f214b49ebc101376dc8ec0293af442a127c396
|
data/.env.example
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
name: CI Specs
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ master ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ master ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
build:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
|
13
|
+
steps:
|
14
|
+
- uses: actions/checkout@v2
|
15
|
+
|
16
|
+
- uses: actions/cache@v1
|
17
|
+
with:
|
18
|
+
path: vendor/bundle
|
19
|
+
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
20
|
+
restore-keys: |
|
21
|
+
${{ runner.os }}-gems-
|
22
|
+
- name: Set up Ruby 2.6
|
23
|
+
uses: actions/setup-ruby@v1
|
24
|
+
with:
|
25
|
+
ruby-version: 2.6.x
|
26
|
+
|
27
|
+
- name: Install dependencies
|
28
|
+
run: |
|
29
|
+
gem install bundler
|
30
|
+
bundle config path vendor/bundle
|
31
|
+
bundle install --jobs 4 --retry 3
|
32
|
+
- name: Run Tests
|
33
|
+
env:
|
34
|
+
RAILS_ENV: test
|
35
|
+
run: |
|
36
|
+
cp .env.example .env
|
37
|
+
bundle exec rspec
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
fathom_analytics (0.1.0)
|
5
|
+
faraday (~> 1.0, >= 1.0.1)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
addressable (2.7.0)
|
11
|
+
public_suffix (>= 2.0.2, < 5.0)
|
12
|
+
byebug (11.1.3)
|
13
|
+
coderay (1.1.3)
|
14
|
+
crack (0.4.3)
|
15
|
+
safe_yaml (~> 1.0.0)
|
16
|
+
diff-lcs (1.4.3)
|
17
|
+
dotenv (2.7.5)
|
18
|
+
faraday (1.0.1)
|
19
|
+
multipart-post (>= 1.2, < 3)
|
20
|
+
hashdiff (1.0.1)
|
21
|
+
method_source (1.0.0)
|
22
|
+
multipart-post (2.1.1)
|
23
|
+
pry (0.13.1)
|
24
|
+
coderay (~> 1.1)
|
25
|
+
method_source (~> 1.0)
|
26
|
+
pry-byebug (3.9.0)
|
27
|
+
byebug (~> 11.0)
|
28
|
+
pry (~> 0.13.0)
|
29
|
+
public_suffix (4.0.5)
|
30
|
+
rake (12.3.3)
|
31
|
+
rspec (3.9.0)
|
32
|
+
rspec-core (~> 3.9.0)
|
33
|
+
rspec-expectations (~> 3.9.0)
|
34
|
+
rspec-mocks (~> 3.9.0)
|
35
|
+
rspec-core (3.9.2)
|
36
|
+
rspec-support (~> 3.9.3)
|
37
|
+
rspec-expectations (3.9.2)
|
38
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
39
|
+
rspec-support (~> 3.9.0)
|
40
|
+
rspec-mocks (3.9.1)
|
41
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
42
|
+
rspec-support (~> 3.9.0)
|
43
|
+
rspec-support (3.9.3)
|
44
|
+
safe_yaml (1.0.5)
|
45
|
+
vcr (6.0.0)
|
46
|
+
webmock (3.8.3)
|
47
|
+
addressable (>= 2.3.6)
|
48
|
+
crack (>= 0.3.2)
|
49
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
50
|
+
|
51
|
+
PLATFORMS
|
52
|
+
ruby
|
53
|
+
|
54
|
+
DEPENDENCIES
|
55
|
+
byebug (~> 11.1, >= 11.1.3)
|
56
|
+
dotenv (~> 2.7, >= 2.7.5)
|
57
|
+
fathom_analytics!
|
58
|
+
pry-byebug (~> 3.9)
|
59
|
+
rake (~> 12.0)
|
60
|
+
rspec (~> 3.0)
|
61
|
+
vcr (~> 6.0)
|
62
|
+
webmock (~> 3.8, >= 3.8.3)
|
63
|
+
|
64
|
+
BUNDLED WITH
|
65
|
+
2.1.4
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020 Sunny Rana
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,100 @@
|
|
1
|
+

|
2
|
+
# Fathom Analytics Ruby Client
|
3
|
+
|
4
|
+
A Ruby interface to [Fathom Analytics server](https://github.com/usefathom/fathom).
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem 'fathom_analytics'
|
12
|
+
```
|
13
|
+
|
14
|
+
And then execute:
|
15
|
+
|
16
|
+
$ bundle install
|
17
|
+
|
18
|
+
Or install it yourself as:
|
19
|
+
|
20
|
+
$ gem install fathom_analytics
|
21
|
+
|
22
|
+
## Usage
|
23
|
+
|
24
|
+
#### Creating an instance of the API client:
|
25
|
+
|
26
|
+
``` ruby
|
27
|
+
api = FathomAnalytics::Api.new(url: 'https://example.com', email: '', password: '')
|
28
|
+
```
|
29
|
+
|
30
|
+
#### Get all sites:
|
31
|
+
``` ruby
|
32
|
+
api.sites
|
33
|
+
```
|
34
|
+
|
35
|
+
#### Add a new site:
|
36
|
+
``` ruby
|
37
|
+
api.add_site(name: 'demo')
|
38
|
+
```
|
39
|
+
|
40
|
+
#### Remove a site:
|
41
|
+
``` ruby
|
42
|
+
api.remove_site(id: 1)
|
43
|
+
```
|
44
|
+
|
45
|
+
#### Get realtime site stats:
|
46
|
+
``` ruby
|
47
|
+
api.site_realtime_stats(id: 1)
|
48
|
+
```
|
49
|
+
|
50
|
+
#### Get site stats:
|
51
|
+
``` ruby
|
52
|
+
api.site_stats(id: 1, from: 1577862000, to: 1609484399)
|
53
|
+
```
|
54
|
+
|
55
|
+
#### Get aggregated site stats:
|
56
|
+
``` ruby
|
57
|
+
api.site_agg_stats(id: 1, from: 1577862000, to: 1609484399)
|
58
|
+
```
|
59
|
+
|
60
|
+
#### Get aggregated page stats:
|
61
|
+
``` ruby
|
62
|
+
api.page_agg_stats(id: 1, from: 1577862000, to: 1609484399)
|
63
|
+
```
|
64
|
+
|
65
|
+
#### Get aggregated page views:
|
66
|
+
``` ruby
|
67
|
+
api.page_agg_page_views_stats(id: 1, from: 1577862000, to: 1609484399)
|
68
|
+
```
|
69
|
+
|
70
|
+
#### Get aggregated referrer stats:
|
71
|
+
``` ruby
|
72
|
+
api.referrer_agg_stats(id: 1, from: 1577862000, to: 1609484399)
|
73
|
+
```
|
74
|
+
|
75
|
+
#### Get aggregated referrer page views:
|
76
|
+
``` ruby
|
77
|
+
api.referrer_agg_page_views_stats(id: 1, from: 1577862000, to: 1609484399)
|
78
|
+
```
|
79
|
+
|
80
|
+
#### Pagination
|
81
|
+
|
82
|
+
Pagination is supported through `offset` and `limit` params.
|
83
|
+
``` ruby
|
84
|
+
api.site_stats(id: 1, from: 1577862000, to: 1609484399, offset: 1, limit: 10)
|
85
|
+
```
|
86
|
+
The default values for paginations params are as follows:
|
87
|
+
1. `limit` = 50
|
88
|
+
2. `offset` = 0
|
89
|
+
|
90
|
+
## Contributing
|
91
|
+
|
92
|
+
1. Fork it
|
93
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
94
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
95
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
96
|
+
5. Create new Pull Request
|
97
|
+
|
98
|
+
## License
|
99
|
+
|
100
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "fathom_analytics"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
require_relative 'lib/fathom_analytics/version'
|
2
|
+
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = "fathom_analytics"
|
5
|
+
spec.version = FathomAnalytics::VERSION
|
6
|
+
spec.authors = ["Sunny Rana"]
|
7
|
+
spec.email = ["gpoisoned@gmail.com"]
|
8
|
+
|
9
|
+
spec.summary = %q{Ruby client for Fathom Analytics server.}
|
10
|
+
spec.homepage = "https://github.com/gpoisoned/fathom_analytics"
|
11
|
+
spec.license = "MIT"
|
12
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
13
|
+
|
14
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
15
|
+
spec.metadata["source_code_uri"] = "https://github.com/gpoisoned/fathom_analytics"
|
16
|
+
spec.metadata["changelog_uri"] = "https://github.com/gpoisoned/fathom_analytics"
|
17
|
+
|
18
|
+
# Specify which files should be added to the gem when it is released.
|
19
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
20
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
21
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
22
|
+
end
|
23
|
+
spec.bindir = "exe"
|
24
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
25
|
+
spec.require_paths = ["lib"]
|
26
|
+
|
27
|
+
spec.add_dependency 'faraday', '~> 1.0', '>= 1.0.1'
|
28
|
+
|
29
|
+
spec.add_development_dependency 'rake', '~> 12.0'
|
30
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
31
|
+
spec.add_development_dependency "byebug", '~> 11.1', '>= 11.1.3'
|
32
|
+
spec.add_development_dependency "pry-byebug", '~> 3.9'
|
33
|
+
spec.add_development_dependency "webmock", '~> 3.8', '>= 3.8.3'
|
34
|
+
spec.add_development_dependency "vcr", '~> 6.0'
|
35
|
+
spec.add_development_dependency "dotenv", '~> 2.7', '>= 2.7.5'
|
36
|
+
end
|
@@ -0,0 +1,161 @@
|
|
1
|
+
module FathomAnalytics
|
2
|
+
class Api
|
3
|
+
LIMIT = 50
|
4
|
+
|
5
|
+
attr_reader :url, :email, :password
|
6
|
+
|
7
|
+
def initialize(url:, email:, password:)
|
8
|
+
@url = url
|
9
|
+
@email = email
|
10
|
+
@password = password
|
11
|
+
@auth_token = nil
|
12
|
+
end
|
13
|
+
|
14
|
+
def add_site(name:)
|
15
|
+
post_request(path: "/api/sites", params: { name: name })
|
16
|
+
end
|
17
|
+
|
18
|
+
def remove_site(id:)
|
19
|
+
delete_request(path: "/api/sites/#{id}")
|
20
|
+
end
|
21
|
+
|
22
|
+
def sites
|
23
|
+
get_request(path: "/api/sites")
|
24
|
+
end
|
25
|
+
|
26
|
+
def site_realtime_stats(id:)
|
27
|
+
get_request(path: "/api/sites/#{id}/stats/site/realtime")
|
28
|
+
end
|
29
|
+
|
30
|
+
def site_stats(id:, from:, to:, limit: LIMIT, offset: 0)
|
31
|
+
path = "/api/sites/#{id}/stats/site"
|
32
|
+
get_request(path: path, before: to, after: from, limit: limit, offset: offset)
|
33
|
+
end
|
34
|
+
|
35
|
+
def site_agg_stats(id:, from:, to:, limit: LIMIT, offset: 0)
|
36
|
+
path = "/api/sites/#{id}/stats/site/agg"
|
37
|
+
get_request(path: path, before: to, after: from, limit: limit, offset: offset)
|
38
|
+
end
|
39
|
+
|
40
|
+
def page_agg_stats(id:, from:, to:, limit: LIMIT, offset: 0)
|
41
|
+
path = "/api/sites/#{id}/stats/pages/agg"
|
42
|
+
get_request(path: path, before: to, after: from, limit: limit, offset: offset)
|
43
|
+
end
|
44
|
+
|
45
|
+
def page_agg_page_views_stats(id:, from:, to:, limit: LIMIT, offset: 0)
|
46
|
+
path = "/api/sites/#{id}/stats/pages/page_views"
|
47
|
+
get_request(path: path, before: to, after: from, limit: limit, offset: offset)
|
48
|
+
end
|
49
|
+
|
50
|
+
def referrer_agg_stats(id:, from:, to:, limit: LIMIT, offset: 0)
|
51
|
+
path = "/api/sites/#{id}/stats/referrers/agg"
|
52
|
+
get_request(path: path, before: to, after: from, limit: limit, offset: offset)
|
53
|
+
end
|
54
|
+
|
55
|
+
def referrer_agg_page_views_stats(id:, from:, to:, limit: LIMIT, offset: 0)
|
56
|
+
path = "/api/sites/#{id}/stats/referrers/page_views"
|
57
|
+
get_request(path: path, before: to, after: from, limit: limit, offset: offset)
|
58
|
+
end
|
59
|
+
|
60
|
+
def authenticate
|
61
|
+
params = {
|
62
|
+
"Email": email,
|
63
|
+
"Password": password
|
64
|
+
}
|
65
|
+
response = post_request(path: "/api/session", params: params, authenticated: false) do |raw_response|
|
66
|
+
set_auth_token(raw_response)
|
67
|
+
end
|
68
|
+
response
|
69
|
+
end
|
70
|
+
|
71
|
+
private
|
72
|
+
|
73
|
+
def get_request(path:, before: nil, after: nil, limit: nil, offset: nil, authenticated: true)
|
74
|
+
ensure_auth_token if authenticated
|
75
|
+
|
76
|
+
params = {}
|
77
|
+
params['before'] = before if before
|
78
|
+
params['after'] = after if after
|
79
|
+
params['limit'] = limit if limit
|
80
|
+
params['offset'] = offset if offset
|
81
|
+
|
82
|
+
response = connection.get(
|
83
|
+
path: path,
|
84
|
+
auth_token: @auth_token,
|
85
|
+
params: params
|
86
|
+
)
|
87
|
+
|
88
|
+
if response.status == 200
|
89
|
+
api_response(response.body)
|
90
|
+
else
|
91
|
+
raise FathomAnalytics::Error.new(response.status)
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
def post_request(path:, params:, authenticated: true, &block)
|
96
|
+
ensure_auth_token if authenticated
|
97
|
+
|
98
|
+
response = connection.post(
|
99
|
+
path: path,
|
100
|
+
params: params,
|
101
|
+
auth_token: @auth_token
|
102
|
+
)
|
103
|
+
|
104
|
+
if response.status == 200
|
105
|
+
yield response if block_given?
|
106
|
+
|
107
|
+
api_response(response.body)
|
108
|
+
else
|
109
|
+
raise FathomAnalytics::Error.new(response.status)
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
def delete_request(path:, authenticated: true)
|
114
|
+
ensure_auth_token if authenticated
|
115
|
+
|
116
|
+
response = connection.delete(
|
117
|
+
path: path,
|
118
|
+
auth_token: @auth_token
|
119
|
+
)
|
120
|
+
|
121
|
+
if response.status == 200
|
122
|
+
yield response if block_given?
|
123
|
+
|
124
|
+
api_response(response.body)
|
125
|
+
else
|
126
|
+
raise FathomAnalytics::Error.new(response.status)
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
def api_response(response_body)
|
131
|
+
parsed = JSON.parse(response_body)
|
132
|
+
parsed["Data"] || {}
|
133
|
+
rescue JSON::ParserError
|
134
|
+
{}
|
135
|
+
end
|
136
|
+
|
137
|
+
def ensure_auth_token
|
138
|
+
return unless @auth_token.nil?
|
139
|
+
|
140
|
+
authenticate
|
141
|
+
end
|
142
|
+
|
143
|
+
def set_auth_token(response)
|
144
|
+
set_cookie_header = response.headers['set-cookie']
|
145
|
+
@auth_token = parse_auth_header(set_cookie_header)
|
146
|
+
|
147
|
+
raise FathomAnalytics::Error.new("Failed to retrieve auth key") unless @auth_token
|
148
|
+
end
|
149
|
+
|
150
|
+
def parse_auth_header(header)
|
151
|
+
return nil if header.nil?
|
152
|
+
|
153
|
+
matches = header.match(/auth=([a-zA-Z0-9\-_]+);/)
|
154
|
+
matches[1] if matches
|
155
|
+
end
|
156
|
+
|
157
|
+
def connection
|
158
|
+
@connection ||= FathomAnalytics::Connection.new(base_url: url)
|
159
|
+
end
|
160
|
+
end
|
161
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
module FathomAnalytics
|
2
|
+
class Connection
|
3
|
+
def initialize(base_url:)
|
4
|
+
@base_url = base_url
|
5
|
+
@_fd_connection = Faraday.new(
|
6
|
+
url: @base_url,
|
7
|
+
headers: {'Content-Type' => 'application/json'}
|
8
|
+
)
|
9
|
+
end
|
10
|
+
|
11
|
+
def get(path: '', params: {}, auth_token:)
|
12
|
+
get_url = @base_url + path
|
13
|
+
@_fd_connection.get(get_url) do |req|
|
14
|
+
params.each do |k, v|
|
15
|
+
req.params[k] = v
|
16
|
+
end
|
17
|
+
req.headers['Content-Type'] = 'application/json'
|
18
|
+
req.headers['Cookie'] = "auth=#{auth_token}" if auth_token
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
def post(path: '', params:, auth_token:)
|
23
|
+
post_url = @base_url + path
|
24
|
+
@_fd_connection.post(post_url) do |req|
|
25
|
+
req.headers['Content-Type'] = 'application/json'
|
26
|
+
req.headers['Cookie'] = "auth=#{auth_token}" if auth_token
|
27
|
+
req.body = params.to_json
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def delete(path: '', auth_token:)
|
32
|
+
delete_url = @base_url + path
|
33
|
+
@_fd_connection.delete(delete_url) do |req|
|
34
|
+
req.headers['Content-Type'] = 'application/json'
|
35
|
+
req.headers['Cookie'] = "auth=#{auth_token}" if auth_token
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
metadata
ADDED
@@ -0,0 +1,200 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: fathom_analytics
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Sunny Rana
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-07-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: faraday
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 1.0.1
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.0'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 1.0.1
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: rake
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '12.0'
|
40
|
+
type: :development
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '12.0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rspec
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '3.0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '3.0'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: byebug
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '11.1'
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 11.1.3
|
71
|
+
type: :development
|
72
|
+
prerelease: false
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - "~>"
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '11.1'
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: 11.1.3
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: pry-byebug
|
83
|
+
requirement: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - "~>"
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '3.9'
|
88
|
+
type: :development
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - "~>"
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '3.9'
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: webmock
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
98
|
+
requirements:
|
99
|
+
- - "~>"
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '3.8'
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: 3.8.3
|
105
|
+
type: :development
|
106
|
+
prerelease: false
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - "~>"
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '3.8'
|
112
|
+
- - ">="
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
version: 3.8.3
|
115
|
+
- !ruby/object:Gem::Dependency
|
116
|
+
name: vcr
|
117
|
+
requirement: !ruby/object:Gem::Requirement
|
118
|
+
requirements:
|
119
|
+
- - "~>"
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: '6.0'
|
122
|
+
type: :development
|
123
|
+
prerelease: false
|
124
|
+
version_requirements: !ruby/object:Gem::Requirement
|
125
|
+
requirements:
|
126
|
+
- - "~>"
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: '6.0'
|
129
|
+
- !ruby/object:Gem::Dependency
|
130
|
+
name: dotenv
|
131
|
+
requirement: !ruby/object:Gem::Requirement
|
132
|
+
requirements:
|
133
|
+
- - "~>"
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: '2.7'
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 2.7.5
|
139
|
+
type: :development
|
140
|
+
prerelease: false
|
141
|
+
version_requirements: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '2.7'
|
146
|
+
- - ">="
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
version: 2.7.5
|
149
|
+
description:
|
150
|
+
email:
|
151
|
+
- gpoisoned@gmail.com
|
152
|
+
executables: []
|
153
|
+
extensions: []
|
154
|
+
extra_rdoc_files: []
|
155
|
+
files:
|
156
|
+
- ".env.example"
|
157
|
+
- ".github/workflows/ci.yml"
|
158
|
+
- ".gitignore"
|
159
|
+
- ".rspec"
|
160
|
+
- ".travis.yml"
|
161
|
+
- Gemfile
|
162
|
+
- Gemfile.lock
|
163
|
+
- LICENSE.txt
|
164
|
+
- README.md
|
165
|
+
- Rakefile
|
166
|
+
- bin/console
|
167
|
+
- bin/setup
|
168
|
+
- fathom_analytics.gemspec
|
169
|
+
- lib/fathom_analytics.rb
|
170
|
+
- lib/fathom_analytics/api.rb
|
171
|
+
- lib/fathom_analytics/connection.rb
|
172
|
+
- lib/fathom_analytics/error.rb
|
173
|
+
- lib/fathom_analytics/version.rb
|
174
|
+
homepage: https://github.com/gpoisoned/fathom_analytics
|
175
|
+
licenses:
|
176
|
+
- MIT
|
177
|
+
metadata:
|
178
|
+
homepage_uri: https://github.com/gpoisoned/fathom_analytics
|
179
|
+
source_code_uri: https://github.com/gpoisoned/fathom_analytics
|
180
|
+
changelog_uri: https://github.com/gpoisoned/fathom_analytics
|
181
|
+
post_install_message:
|
182
|
+
rdoc_options: []
|
183
|
+
require_paths:
|
184
|
+
- lib
|
185
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
186
|
+
requirements:
|
187
|
+
- - ">="
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: 2.3.0
|
190
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
requirements: []
|
196
|
+
rubygems_version: 3.0.3
|
197
|
+
signing_key:
|
198
|
+
specification_version: 4
|
199
|
+
summary: Ruby client for Fathom Analytics server.
|
200
|
+
test_files: []
|