stackify-ruby-apm 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +38 -0
- data/.ruby-version +1 -0
- data/Gemfile +17 -11
- data/Gemfile.lock +98 -95
- data/Rakefile +7 -5
- data/docker/stackify-ruby +8 -0
- data/docker/stackify-ruby-rvm +10 -0
- data/docker/stackify-ruby-test +28 -0
- data/lib/{stackify → stackify_apm}/agent.rb +42 -33
- data/lib/{stackify → stackify_apm}/config.rb +56 -39
- data/lib/{stackify → stackify_apm}/context.rb +5 -6
- data/lib/{stackify → stackify_apm}/context/request.rb +0 -0
- data/lib/{stackify → stackify_apm}/context/request/socket.rb +0 -0
- data/lib/{stackify → stackify_apm}/context/request/url.rb +2 -6
- data/lib/stackify_apm/context/response.rb +33 -0
- data/lib/{stackify → stackify_apm}/context_builder.rb +2 -5
- data/lib/{stackify → stackify_apm}/error.rb +7 -6
- data/lib/stackify_apm/error/exception.rb +37 -0
- data/lib/stackify_apm/error/log.rb +24 -0
- data/lib/stackify_apm/error_builder.rb +61 -0
- data/lib/stackify_apm/helper/database_helper.rb +27 -0
- data/lib/{stackify → stackify_apm}/instrumenter.rb +12 -19
- data/lib/{stackify → stackify_apm}/internal_error.rb +0 -0
- data/lib/{stackify → stackify_apm}/log.rb +0 -0
- data/lib/{stackify → stackify_apm}/logger/log_device.rb +22 -11
- data/lib/{stackify → stackify_apm}/logger/logger_high_version.rb +1 -6
- data/lib/{stackify → stackify_apm}/logger/logger_lower_version.rb +2 -1
- data/lib/stackify_apm/middleware.rb +70 -0
- data/lib/{stackify → stackify_apm}/naively_hashable.rb +1 -3
- data/lib/{stackify → stackify_apm}/normalizers.rb +3 -2
- data/lib/{stackify → stackify_apm}/normalizers/action_controller.rb +0 -0
- data/lib/{stackify → stackify_apm}/normalizers/action_mailer.rb +0 -0
- data/lib/{stackify → stackify_apm}/normalizers/action_view.rb +0 -0
- data/lib/{stackify → stackify_apm}/normalizers/active_record.rb +3 -25
- data/lib/{stackify → stackify_apm}/railtie.rb +5 -7
- data/lib/{stackify → stackify_apm}/root_info.rb +2 -6
- data/lib/{stackify → stackify_apm}/serializers.rb +3 -2
- data/lib/{stackify → stackify_apm}/serializers/errors.rb +7 -10
- data/lib/{stackify → stackify_apm}/serializers/transactions.rb +11 -18
- data/lib/{stackify → stackify_apm}/span.rb +8 -9
- data/lib/{stackify → stackify_apm}/span/context.rb +3 -1
- data/lib/{stackify → stackify_apm}/spies.rb +3 -2
- data/lib/{stackify → stackify_apm}/spies/action_dispatch.rb +3 -4
- data/lib/stackify_apm/spies/curb.rb +49 -0
- data/lib/stackify_apm/spies/curb/easy.rb +157 -0
- data/lib/stackify_apm/spies/curb/multi.rb +43 -0
- data/lib/{stackify → stackify_apm}/spies/httpclient.rb +10 -8
- data/lib/{stackify → stackify_apm}/spies/httprb.rb +7 -9
- data/lib/{stackify → stackify_apm}/spies/mongo.rb +5 -3
- data/lib/{stackify → stackify_apm}/spies/net_http.rb +4 -5
- data/lib/{stackify → stackify_apm}/spies/redis.rb +19 -18
- data/lib/stackify_apm/spies/sequel.rb +65 -0
- data/lib/{stackify → stackify_apm}/spies/sinatra.rb +7 -10
- data/lib/stackify_apm/spies/sinatra_activerecord/mysql_adapter.rb +201 -0
- data/lib/stackify_apm/spies/sinatra_activerecord/postgresql_adapter.rb +94 -0
- data/lib/stackify_apm/spies/sinatra_activerecord/sqlite_adapter.rb +46 -0
- data/lib/stackify_apm/spies/stackify_logger.rb +60 -0
- data/lib/{stackify → stackify_apm}/spies/tilt.rb +3 -3
- data/lib/stackify_apm/stacktrace.rb +18 -0
- data/lib/stackify_apm/stacktrace/frame.rb +47 -0
- data/lib/{stackify → stackify_apm}/stacktrace_builder.rb +10 -11
- data/lib/{stackify → stackify_apm}/subscriber.rb +20 -14
- data/lib/{stackify → stackify_apm}/trace_logger.rb +10 -16
- data/lib/stackify_apm/transaction.rb +127 -0
- data/lib/{stackify → stackify_apm}/util.rb +3 -1
- data/lib/{stackify → stackify_apm}/util/dig.rb +1 -1
- data/lib/{stackify → stackify_apm}/util/inflector.rb +0 -0
- data/lib/{stackify → stackify_apm}/util/inspector.rb +1 -3
- data/lib/stackify_apm/util/lru_cache.rb +49 -0
- data/lib/stackify_apm/util/trace_log_watcher.rb +37 -0
- data/lib/stackify_apm/version.rb +6 -0
- data/lib/{stackify → stackify_apm}/worker.rb +8 -7
- data/lib/stackify_ruby_apm.rb +18 -15
- data/run-test-docker.sh +50 -0
- data/run-test.sh +1 -3
- data/stackify-ruby-apm.gemspec +14 -11
- metadata +86 -59
- data/lib/stackify/context/response.rb +0 -37
- data/lib/stackify/error/exception.rb +0 -36
- data/lib/stackify/error/log.rb +0 -25
- data/lib/stackify/error_builder.rb +0 -65
- data/lib/stackify/middleware.rb +0 -74
- data/lib/stackify/spies/sinatra_activerecord/mysql_adapter.rb +0 -177
- data/lib/stackify/spies/sinatra_activerecord/postgresql_adapter.rb +0 -96
- data/lib/stackify/spies/sinatra_activerecord/sqlite_adapter.rb +0 -48
- data/lib/stackify/stacktrace.rb +0 -19
- data/lib/stackify/stacktrace/frame.rb +0 -50
- data/lib/stackify/transaction.rb +0 -132
- data/lib/stackify/util/lru_cache.rb +0 -49
- data/lib/stackify/version.rb +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de9af597a0b5c2cd3404ca49bb58b493ceddf026
|
4
|
+
data.tar.gz: dbfed2f61477f371a4e04d4e21e99774f85e3dba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b1bae168fc9700f547c8de0ba4e26185c62b1e416d9b9520d7195db70977a6226cde6d47c07ab3ad1fa36fadeb3f2cdf685f3f006af8fedb6de93c210cd4fc7
|
7
|
+
data.tar.gz: e9050031fcfcdf3449c9375837d41e8f157fb183c6882d063b7bbe879710998290eace9b3f3e847607328649b07026c3746e76c4188762f47d62034c28b75b4b
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
AllCops:
|
2
|
+
RubyInterpreters:
|
3
|
+
- ruby
|
4
|
+
- macruby
|
5
|
+
- rake
|
6
|
+
- jruby
|
7
|
+
- rbx
|
8
|
+
|
9
|
+
Exclude:
|
10
|
+
- 'node_modules/**/*'
|
11
|
+
- 'vendor/**/*'
|
12
|
+
- '.git/**/*'
|
13
|
+
- 'spec/**/*'
|
14
|
+
|
15
|
+
Naming/FileName:
|
16
|
+
Exclude:
|
17
|
+
- 'lib/stackify-ruby-apm.rb'
|
18
|
+
|
19
|
+
Metrics/LineLength:
|
20
|
+
Max: 1000
|
21
|
+
|
22
|
+
Metrics/BlockLength:
|
23
|
+
Max: 1000
|
24
|
+
|
25
|
+
Metrics/MethodLength:
|
26
|
+
Enabled: false
|
27
|
+
|
28
|
+
Metrics/ClassLength:
|
29
|
+
Max: 1000
|
30
|
+
|
31
|
+
Style/RedundantFreeze:
|
32
|
+
Enabled: false
|
33
|
+
|
34
|
+
Style/SafeNavigation:
|
35
|
+
Enabled: false
|
36
|
+
|
37
|
+
Metrics/AbcSize:
|
38
|
+
Enabled: false
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.0.0-p648
|
data/Gemfile
CHANGED
@@ -1,22 +1,28 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
source 'https://rubygems.org'
|
2
4
|
|
3
5
|
# Specify your gem's dependencies in stackify-ruby-apm.gemspec
|
4
6
|
gemspec
|
5
7
|
|
6
8
|
group :test do
|
7
|
-
gem '
|
8
|
-
gem '
|
9
|
+
gem 'activerecord'
|
10
|
+
gem 'curb'
|
9
11
|
gem 'fakeredis'
|
10
|
-
gem 'rack-test'
|
11
|
-
gem 'rails'
|
12
|
-
gem 'httpclient'
|
13
12
|
gem 'http'
|
14
|
-
gem '
|
15
|
-
gem
|
16
|
-
gem "activerecord"
|
17
|
-
gem "sinatra-activerecord"
|
18
|
-
gem "sqlite3"
|
13
|
+
gem 'httpclient'
|
14
|
+
gem 'mongo'
|
19
15
|
gem 'mysql2'
|
20
16
|
gem 'pg', '~> 0.20'
|
17
|
+
gem 'rack-test'
|
18
|
+
gem 'rails'
|
21
19
|
gem 'rubocop', require: false
|
20
|
+
gem 'sequel'
|
21
|
+
gem 'sinatra'
|
22
|
+
gem 'sinatra-activerecord'
|
23
|
+
gem 'sqlite3', '1.3.13'
|
24
|
+
gem 'stackify-api-ruby'
|
25
|
+
gem 'timecop'
|
26
|
+
gem 'to_bool'
|
27
|
+
gem 'webmock'
|
22
28
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,57 +1,51 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
stackify-ruby-apm (1.0
|
4
|
+
stackify-ruby-apm (1.1.0)
|
5
5
|
concurrent-ruby (~> 1.0)
|
6
6
|
delegate_matcher (~> 0.4)
|
7
|
+
rufus-scheduler (~> 3.5)
|
7
8
|
|
8
9
|
GEM
|
9
10
|
remote: https://rubygems.org/
|
10
11
|
specs:
|
11
|
-
|
12
|
-
actionpack (=
|
13
|
-
|
14
|
-
|
15
|
-
actionmailer (5.2.2)
|
16
|
-
actionpack (= 5.2.2)
|
17
|
-
actionview (= 5.2.2)
|
18
|
-
activejob (= 5.2.2)
|
12
|
+
actionmailer (4.2.11)
|
13
|
+
actionpack (= 4.2.11)
|
14
|
+
actionview (= 4.2.11)
|
15
|
+
activejob (= 4.2.11)
|
19
16
|
mail (~> 2.5, >= 2.5.4)
|
20
|
-
rails-dom-testing (~>
|
21
|
-
actionpack (
|
22
|
-
actionview (=
|
23
|
-
activesupport (=
|
24
|
-
rack (~>
|
25
|
-
rack-test (
|
26
|
-
rails-dom-testing (~>
|
17
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
18
|
+
actionpack (4.2.11)
|
19
|
+
actionview (= 4.2.11)
|
20
|
+
activesupport (= 4.2.11)
|
21
|
+
rack (~> 1.6)
|
22
|
+
rack-test (~> 0.6.2)
|
23
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
27
24
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
28
|
-
actionview (
|
29
|
-
activesupport (=
|
25
|
+
actionview (4.2.11)
|
26
|
+
activesupport (= 4.2.11)
|
30
27
|
builder (~> 3.1)
|
31
|
-
|
32
|
-
rails-dom-testing (~>
|
28
|
+
erubis (~> 2.7.0)
|
29
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
33
30
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
34
|
-
activejob (
|
35
|
-
activesupport (=
|
36
|
-
globalid (>= 0.3.
|
37
|
-
activemodel (
|
38
|
-
activesupport (=
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
marcel (~> 0.3.1)
|
47
|
-
activesupport (5.2.2)
|
48
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
49
|
-
i18n (>= 0.7, < 2)
|
31
|
+
activejob (4.2.11)
|
32
|
+
activesupport (= 4.2.11)
|
33
|
+
globalid (>= 0.3.0)
|
34
|
+
activemodel (4.2.11)
|
35
|
+
activesupport (= 4.2.11)
|
36
|
+
builder (~> 3.1)
|
37
|
+
activerecord (4.2.11)
|
38
|
+
activemodel (= 4.2.11)
|
39
|
+
activesupport (= 4.2.11)
|
40
|
+
arel (~> 6.0)
|
41
|
+
activesupport (4.2.11)
|
42
|
+
i18n (~> 0.7)
|
50
43
|
minitest (~> 5.1)
|
44
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
51
45
|
tzinfo (~> 1.1)
|
52
46
|
addressable (2.5.2)
|
53
47
|
public_suffix (>= 2.0.2, < 4.0)
|
54
|
-
arel (
|
48
|
+
arel (6.0.4)
|
55
49
|
ast (2.4.0)
|
56
50
|
bson (4.3.0)
|
57
51
|
builder (3.2.3)
|
@@ -59,51 +53,53 @@ GEM
|
|
59
53
|
crack (0.4.3)
|
60
54
|
safe_yaml (~> 1.0.0)
|
61
55
|
crass (1.0.4)
|
56
|
+
curb (0.9.8)
|
62
57
|
delegate_matcher (0.4.3)
|
63
58
|
proc_extensions (~> 0.2)
|
64
59
|
diff-lcs (1.3)
|
65
60
|
domain_name (0.5.20180417)
|
66
61
|
unf (>= 0.0.5, < 1.0.0)
|
67
|
-
|
62
|
+
erubis (2.7.0)
|
63
|
+
et-orbi (1.1.7)
|
64
|
+
tzinfo
|
68
65
|
fakeredis (0.7.0)
|
69
66
|
redis (>= 3.2, < 5.0)
|
67
|
+
faraday (0.15.4)
|
68
|
+
multipart-post (>= 1.2, < 3)
|
70
69
|
file-tail (1.2.0)
|
71
70
|
tins (~> 1.0)
|
72
|
-
|
71
|
+
fugit (1.1.8)
|
72
|
+
et-orbi (~> 1.1, >= 1.1.7)
|
73
|
+
raabro (~> 1.1)
|
74
|
+
globalid (0.4.2)
|
73
75
|
activesupport (>= 4.2.0)
|
74
76
|
hashdiff (0.3.8)
|
75
|
-
http (
|
77
|
+
http (3.0.0)
|
76
78
|
addressable (~> 2.3)
|
77
79
|
http-cookie (~> 1.0)
|
78
|
-
http-form_data (
|
80
|
+
http-form_data (>= 2.0.0.pre.pre2, < 3)
|
79
81
|
http_parser.rb (~> 0.6.0)
|
80
82
|
http-cookie (1.0.3)
|
81
83
|
domain_name (~> 0.5)
|
82
84
|
http-form_data (2.1.1)
|
83
85
|
http_parser.rb (0.6.0)
|
84
86
|
httpclient (2.8.3)
|
85
|
-
i18n (
|
87
|
+
i18n (0.9.5)
|
86
88
|
concurrent-ruby (~> 1.0)
|
87
|
-
jaro_winkler (1.5.2)
|
88
89
|
loofah (2.2.3)
|
89
90
|
crass (~> 1.0.2)
|
90
91
|
nokogiri (>= 1.5.9)
|
91
92
|
mail (2.7.1)
|
92
93
|
mini_mime (>= 0.1.1)
|
93
|
-
marcel (0.3.3)
|
94
|
-
mimemagic (~> 0.3.2)
|
95
|
-
method_source (0.9.2)
|
96
|
-
mimemagic (0.3.3)
|
97
94
|
mini_mime (1.0.1)
|
98
|
-
mini_portile2 (2.
|
95
|
+
mini_portile2 (2.1.0)
|
99
96
|
minitest (5.11.3)
|
100
97
|
mongo (2.6.2)
|
101
98
|
bson (>= 4.3.0, < 5.0.0)
|
102
|
-
|
99
|
+
multipart-post (2.0.0)
|
103
100
|
mysql2 (0.5.2)
|
104
|
-
|
105
|
-
|
106
|
-
mini_portile2 (~> 2.4.0)
|
101
|
+
nokogiri (1.6.8.1)
|
102
|
+
mini_portile2 (~> 2.1.0)
|
107
103
|
parallel (1.12.1)
|
108
104
|
parser (2.5.3.0)
|
109
105
|
ast (~> 2.4.0)
|
@@ -111,39 +107,41 @@ GEM
|
|
111
107
|
powerpack (0.1.2)
|
112
108
|
proc_extensions (0.2)
|
113
109
|
sourcify (~> 0.5)
|
114
|
-
public_suffix (
|
115
|
-
|
116
|
-
rack
|
110
|
+
public_suffix (2.0.5)
|
111
|
+
raabro (1.1.6)
|
112
|
+
rack (1.6.11)
|
113
|
+
rack-protection (1.5.5)
|
117
114
|
rack
|
118
|
-
rack-test (
|
119
|
-
rack (>= 1.0
|
120
|
-
rails (
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
rails-dom-testing (
|
134
|
-
activesupport (>= 4.2.0)
|
135
|
-
nokogiri (
|
115
|
+
rack-test (0.6.3)
|
116
|
+
rack (>= 1.0)
|
117
|
+
rails (4.2.11)
|
118
|
+
actionmailer (= 4.2.11)
|
119
|
+
actionpack (= 4.2.11)
|
120
|
+
actionview (= 4.2.11)
|
121
|
+
activejob (= 4.2.11)
|
122
|
+
activemodel (= 4.2.11)
|
123
|
+
activerecord (= 4.2.11)
|
124
|
+
activesupport (= 4.2.11)
|
125
|
+
bundler (>= 1.3.0, < 2.0)
|
126
|
+
railties (= 4.2.11)
|
127
|
+
sprockets-rails
|
128
|
+
rails-deprecated_sanitizer (1.0.3)
|
129
|
+
activesupport (>= 4.2.0.alpha)
|
130
|
+
rails-dom-testing (1.0.9)
|
131
|
+
activesupport (>= 4.2.0, < 5.0)
|
132
|
+
nokogiri (~> 1.6)
|
133
|
+
rails-deprecated_sanitizer (>= 1.0.1)
|
136
134
|
rails-html-sanitizer (1.0.4)
|
137
135
|
loofah (~> 2.2, >= 2.2.2)
|
138
|
-
railties (
|
139
|
-
actionpack (=
|
140
|
-
activesupport (=
|
141
|
-
method_source
|
136
|
+
railties (4.2.11)
|
137
|
+
actionpack (= 4.2.11)
|
138
|
+
activesupport (= 4.2.11)
|
142
139
|
rake (>= 0.8.7)
|
143
|
-
thor (>= 0.
|
144
|
-
rainbow (
|
140
|
+
thor (>= 0.18.1, < 2.0)
|
141
|
+
rainbow (2.2.2)
|
142
|
+
rake
|
145
143
|
rake (10.5.0)
|
146
|
-
redis (
|
144
|
+
redis (3.3.5)
|
147
145
|
rspec (3.8.0)
|
148
146
|
rspec-core (~> 3.8.0)
|
149
147
|
rspec-expectations (~> 3.8.0)
|
@@ -157,27 +155,28 @@ GEM
|
|
157
155
|
diff-lcs (>= 1.2.0, < 2.0)
|
158
156
|
rspec-support (~> 3.8.0)
|
159
157
|
rspec-support (3.8.0)
|
160
|
-
rubocop (0.
|
161
|
-
jaro_winkler (~> 1.5.1)
|
158
|
+
rubocop (0.50.0)
|
162
159
|
parallel (~> 1.10)
|
163
|
-
parser (>= 2.
|
160
|
+
parser (>= 2.3.3.1, < 3.0)
|
164
161
|
powerpack (~> 0.1)
|
165
|
-
rainbow (>= 2.2.2, <
|
162
|
+
rainbow (>= 2.2.2, < 3.0)
|
166
163
|
ruby-progressbar (~> 1.7)
|
167
|
-
unicode-display_width (~> 1.
|
164
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
168
165
|
ruby-progressbar (1.10.0)
|
169
166
|
ruby2ruby (2.4.1)
|
170
167
|
ruby_parser (~> 3.1)
|
171
168
|
sexp_processor (~> 4.6)
|
172
169
|
ruby_parser (3.12.0)
|
173
170
|
sexp_processor (~> 4.9)
|
171
|
+
rufus-scheduler (3.5.2)
|
172
|
+
fugit (~> 1.1, >= 1.1.5)
|
174
173
|
safe_yaml (1.0.4)
|
174
|
+
sequel (5.16.0)
|
175
175
|
sexp_processor (4.11.0)
|
176
|
-
sinatra (
|
177
|
-
|
178
|
-
rack (~>
|
179
|
-
|
180
|
-
tilt (~> 2.0)
|
176
|
+
sinatra (1.4.8)
|
177
|
+
rack (~> 1.5)
|
178
|
+
rack-protection (~> 1.4)
|
179
|
+
tilt (>= 1.3, < 3)
|
181
180
|
sinatra-activerecord (2.0.13)
|
182
181
|
activerecord (>= 3.2)
|
183
182
|
sinatra (>= 1.0)
|
@@ -194,11 +193,14 @@ GEM
|
|
194
193
|
activesupport (>= 4.0)
|
195
194
|
sprockets (>= 3.0.0)
|
196
195
|
sqlite3 (1.3.13)
|
196
|
+
stackify-api-ruby (1.0.11)
|
197
|
+
faraday (~> 0.8)
|
197
198
|
thor (0.20.3)
|
198
199
|
thread_safe (0.3.6)
|
199
200
|
tilt (2.0.9)
|
200
201
|
timecop (0.9.1)
|
201
202
|
tins (1.20.2)
|
203
|
+
to_bool (1.2.0)
|
202
204
|
tzinfo (1.2.5)
|
203
205
|
thread_safe (~> 0.1)
|
204
206
|
unf (0.1.4)
|
@@ -209,9 +211,6 @@ GEM
|
|
209
211
|
addressable (>= 2.3.6)
|
210
212
|
crack (>= 0.3.2)
|
211
213
|
hashdiff
|
212
|
-
websocket-driver (0.7.0)
|
213
|
-
websocket-extensions (>= 0.1.0)
|
214
|
-
websocket-extensions (0.1.3)
|
215
214
|
|
216
215
|
PLATFORMS
|
217
216
|
ruby
|
@@ -219,6 +218,7 @@ PLATFORMS
|
|
219
218
|
DEPENDENCIES
|
220
219
|
activerecord
|
221
220
|
bundler (~> 1.16)
|
221
|
+
curb
|
222
222
|
fakeredis
|
223
223
|
http
|
224
224
|
httpclient
|
@@ -230,12 +230,15 @@ DEPENDENCIES
|
|
230
230
|
rake (~> 10.0)
|
231
231
|
rspec (~> 3.0)
|
232
232
|
rubocop
|
233
|
+
sequel
|
233
234
|
sinatra
|
234
235
|
sinatra-activerecord
|
235
|
-
sqlite3
|
236
|
+
sqlite3 (= 1.3.13)
|
237
|
+
stackify-api-ruby
|
236
238
|
stackify-ruby-apm!
|
237
239
|
timecop
|
240
|
+
to_bool
|
238
241
|
webmock
|
239
242
|
|
240
243
|
BUNDLED WITH
|
241
|
-
1.17.
|
244
|
+
1.17.1
|
data/Rakefile
CHANGED
@@ -1,10 +1,12 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'bundler/gem_tasks'
|
4
|
+
require 'rspec/core/rake_task'
|
3
5
|
|
4
6
|
if defined?(Sinatra)
|
5
|
-
|
6
|
-
|
7
|
+
require 'rspec/integration/sinatra_sqlite_adapter_rspec'
|
8
|
+
require 'sinatra/activerecord/rake'
|
7
9
|
end
|
8
10
|
RSpec::Core::RakeTask.new(:spec)
|
9
11
|
|
10
|
-
task :
|
12
|
+
task default: :spec
|
@@ -0,0 +1,10 @@
|
|
1
|
+
FROM ubuntu:18.04
|
2
|
+
|
3
|
+
RUN \
|
4
|
+
export DEBIAN_FRONTEND=noninteractiv && \
|
5
|
+
apt-get update && \
|
6
|
+
apt-get install -y curl git libcurl4-gnutls-dev libmysqlclient-dev libmysqld-dev libpq-dev tzdata && \
|
7
|
+
curl -L https://get.rvm.io | bash -s stable
|
8
|
+
|
9
|
+
ENV PATH /usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
10
|
+
|