amplitude-api 0.1.0 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +5 -4
- data/.rubocop.yml +19 -1
- data/.travis.yml +2 -3
- data/Changelog.md +32 -0
- data/Gemfile +3 -12
- data/Rakefile +7 -5
- data/amplitude-api.gemspec +17 -15
- data/lib/amplitude-api.rb +3 -4
- data/lib/amplitude_api.rb +71 -45
- data/lib/amplitude_api/config.rb +27 -5
- data/lib/amplitude_api/event.rb +77 -16
- data/lib/amplitude_api/identification.rb +3 -1
- data/lib/amplitude_api/version.rb +3 -1
- data/readme.md +38 -6
- data/spec/lib/amplitude_api/event_spec.rb +212 -112
- data/spec/lib/amplitude_api/identification_spec.rb +19 -17
- data/spec/lib/amplitude_api_spec.rb +328 -188
- data/spec/spec_helper.rb +7 -5
- metadata +6 -7
- data/Gemfile.lock +0 -61
data/spec/spec_helper.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require File.expand_path(File.join("..", "..", "lib", "amplitude_api"), __FILE__)
|
4
|
+
require "pry"
|
3
5
|
# This file was generated by the `rspec --init` command. Conventionally, all
|
4
6
|
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
5
7
|
# Require this file using `require "spec_helper"` to ensure that it is only
|
@@ -14,10 +16,10 @@ RSpec.configure do |config|
|
|
14
16
|
# order dependency and want to debug it, you can fix the order by providing
|
15
17
|
# the seed, which is printed after each run.
|
16
18
|
# --seed 1234
|
17
|
-
config.order =
|
19
|
+
config.order = "random"
|
18
20
|
|
19
21
|
config.before(:suite) do
|
20
|
-
AmplitudeAPI.config.api_key =
|
21
|
-
AmplitudeAPI.config.secret_key =
|
22
|
+
AmplitudeAPI.config.api_key = "stub api key"
|
23
|
+
AmplitudeAPI.config.secret_key = "stub secret key"
|
22
24
|
end
|
23
25
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amplitude-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Rakoczy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -65,7 +65,7 @@ dependencies:
|
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: '2.99'
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
|
-
name:
|
68
|
+
name: faraday
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|
70
70
|
requirements:
|
71
71
|
- - "~>"
|
@@ -92,7 +92,6 @@ files:
|
|
92
92
|
- ".yardopts"
|
93
93
|
- Changelog.md
|
94
94
|
- Gemfile
|
95
|
-
- Gemfile.lock
|
96
95
|
- LICENSE
|
97
96
|
- Rakefile
|
98
97
|
- amplitude-api.gemspec
|
@@ -117,16 +116,16 @@ require_paths:
|
|
117
116
|
- lib
|
118
117
|
required_ruby_version: !ruby/object:Gem::Requirement
|
119
118
|
requirements:
|
120
|
-
- - "
|
119
|
+
- - ">="
|
121
120
|
- !ruby/object:Gem::Version
|
122
|
-
version: '2.
|
121
|
+
version: '2.4'
|
123
122
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
123
|
requirements:
|
125
124
|
- - ">="
|
126
125
|
- !ruby/object:Gem::Version
|
127
126
|
version: '0'
|
128
127
|
requirements: []
|
129
|
-
rubygems_version: 3.0.
|
128
|
+
rubygems_version: 3.0.8
|
130
129
|
signing_key:
|
131
130
|
specification_version: 4
|
132
131
|
summary: Send events to the Amplitude API
|
data/Gemfile.lock
DELETED
@@ -1,61 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: https://rubygems.org/
|
3
|
-
specs:
|
4
|
-
ast (2.4.0)
|
5
|
-
coderay (1.1.2)
|
6
|
-
diff-lcs (1.3)
|
7
|
-
ethon (0.12.0)
|
8
|
-
ffi (>= 1.3.0)
|
9
|
-
ffi (1.10.0)
|
10
|
-
jaro_winkler (1.5.2)
|
11
|
-
method_source (0.9.2)
|
12
|
-
parallel (1.17.0)
|
13
|
-
parser (2.6.2.0)
|
14
|
-
ast (~> 2.4.0)
|
15
|
-
pry (0.12.2)
|
16
|
-
coderay (~> 1.1.0)
|
17
|
-
method_source (~> 0.9.0)
|
18
|
-
psych (3.1.0)
|
19
|
-
rainbow (3.0.0)
|
20
|
-
rake (12.3.2)
|
21
|
-
rspec (3.8.0)
|
22
|
-
rspec-core (~> 3.8.0)
|
23
|
-
rspec-expectations (~> 3.8.0)
|
24
|
-
rspec-mocks (~> 3.8.0)
|
25
|
-
rspec-core (3.8.0)
|
26
|
-
rspec-support (~> 3.8.0)
|
27
|
-
rspec-expectations (3.8.2)
|
28
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
29
|
-
rspec-support (~> 3.8.0)
|
30
|
-
rspec-mocks (3.8.0)
|
31
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
32
|
-
rspec-support (~> 3.8.0)
|
33
|
-
rspec-support (3.8.0)
|
34
|
-
rubocop (0.66.0)
|
35
|
-
jaro_winkler (~> 1.5.1)
|
36
|
-
parallel (~> 1.10)
|
37
|
-
parser (>= 2.5, != 2.5.1.1)
|
38
|
-
psych (>= 3.1.0)
|
39
|
-
rainbow (>= 2.2.2, < 4.0)
|
40
|
-
ruby-progressbar (~> 1.7)
|
41
|
-
unicode-display_width (>= 1.4.0, < 1.6)
|
42
|
-
rubocop-rspec (1.32.0)
|
43
|
-
rubocop (>= 0.60.0)
|
44
|
-
ruby-progressbar (1.10.0)
|
45
|
-
typhoeus (1.3.1)
|
46
|
-
ethon (>= 0.9.0)
|
47
|
-
unicode-display_width (1.5.0)
|
48
|
-
|
49
|
-
PLATFORMS
|
50
|
-
ruby
|
51
|
-
|
52
|
-
DEPENDENCIES
|
53
|
-
pry (~> 0.12.2)
|
54
|
-
rake (>= 12.0)
|
55
|
-
rspec (>= 2.99.0)
|
56
|
-
rubocop (~> 0.66.0)
|
57
|
-
rubocop-rspec
|
58
|
-
typhoeus (~> 1.1)
|
59
|
-
|
60
|
-
BUNDLED WITH
|
61
|
-
1.17.2
|