dynoscale_ruby 1.0.3 → 1.0.5

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: 47759854ca94fb24bcc0c11bb4cf235b09bd027abf24542420c05c8df01d3dcb
4
- data.tar.gz: 19adb7b1704ba702cc07644e119b9121447db1a37f571a1eb06abc97fb84319b
3
+ metadata.gz: 9ae70638c0e3b13db20761df445d3c36f2b5fb92f0db80a8a42dac452d7ac0fe
4
+ data.tar.gz: 718c22206457e7a4efd646b19599780fbb98905f30e32b4683e8d4118602d43b
5
5
  SHA512:
6
- metadata.gz: 7334f837342defdbd850785a60e3d743bac517b616fdda060d3b57d73d25d5741f4eaa396d4ce898bacf391fec795f4acbe4cb2ab4e5dbcb5893c2615b06193a
7
- data.tar.gz: c83206d6e393aed982ec43a34f48dd1b75c692337acad334ca7cd62b71aa28284d10aa7553b7c7fdea4dda3ebffa9f2bc339d1791ea485fd9d32e84682e7c782
6
+ metadata.gz: 5377962fcbc5f461384c5a3f0ba361d891b1f626650479dfd76d44bc516f9c83e7a47d8e82502a641d5532f01265e19597d16c34439e818fa1842a82a61bd86e
7
+ data.tar.gz: f68481ffc35c1e8987c4cdb59ca08a141edc35f1b2f2514fc37041d73f1ceb4d7de71109ff45d008e6b9fa3f8c23972c1b13f2f147ef670d78ccae95f17527d0
data/.gitignore CHANGED
@@ -6,6 +6,7 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+ /vendor/
9
10
 
10
11
  # rspec failure tracking
11
12
  .rspec_status
data/CHANGELOG.md ADDED
@@ -0,0 +1,23 @@
1
+ # Changelog
2
+
3
+ ## 1.0.5
4
+
5
+ - Update development and test dependencies to current releases (rake, rspec, sidekiq, resque, activesupport, and related gems)
6
+ - Align `DynoscaleRuby::VERSION` with the published gem version
7
+
8
+ ## 1.0.4
9
+
10
+ - Fix issue 2
11
+
12
+ ## 1.0.3
13
+
14
+ - Allow skipping the Dynoscale agent via `SKIP_DYNOSCALE_AGENT`
15
+ - Fix typo in middleware
16
+
17
+ ## 1.0.2
18
+
19
+ - Handle nil current report
20
+
21
+ ## 1.0.1
22
+
23
+ - Initial public release
data/Gemfile CHANGED
@@ -3,7 +3,7 @@ source "https://rubygems.org"
3
3
  # Specify your gem's dependencies in dynoscale_ruby.gemspec
4
4
  gemspec
5
5
 
6
- gem "rake", "~> 12.0"
6
+ gem "rake"
7
7
  gem "rspec", "~> 3.0"
8
8
  gem "vcr", ">= 3.0"
9
9
  gem "webmock"
data/Gemfile.lock CHANGED
@@ -1,106 +1,144 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dynoscale_ruby (1.0.2)
4
+ dynoscale_ruby (1.0.5)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- activemodel (5.2.6)
10
- activesupport (= 5.2.6)
11
- activerecord (5.2.6)
12
- activemodel (= 5.2.6)
13
- activesupport (= 5.2.6)
14
- arel (>= 9.0)
15
- activesupport (5.2.6)
16
- concurrent-ruby (~> 1.0, >= 1.0.2)
17
- i18n (>= 0.7, < 2)
18
- minitest (~> 5.1)
19
- tzinfo (~> 1.1)
20
- addressable (2.8.0)
21
- public_suffix (>= 2.0.2, < 5.0)
22
- arel (9.0.0)
23
- byebug (11.1.3)
9
+ activemodel (8.1.4)
10
+ activesupport (= 8.1.4)
11
+ activerecord (8.1.4)
12
+ activemodel (= 8.1.4)
13
+ activesupport (= 8.1.4)
14
+ timeout (>= 0.4.0)
15
+ activesupport (8.1.4)
16
+ base64
17
+ bigdecimal
18
+ concurrent-ruby (~> 1.0, >= 1.3.1)
19
+ connection_pool (>= 2.2.5)
20
+ drb
21
+ i18n (>= 1.6, < 2)
22
+ json
23
+ logger (>= 1.4.2)
24
+ minitest (>= 5.1)
25
+ securerandom (>= 0.3)
26
+ tzinfo (~> 2.0, >= 2.0.5)
27
+ uri (>= 0.13.1)
28
+ addressable (2.9.0)
29
+ public_suffix (>= 2.0.2, < 8.0)
30
+ base64 (0.3.0)
31
+ benchmark (0.5.0)
32
+ bigdecimal (4.1.3)
33
+ byebug (13.0.0)
34
+ reline (>= 0.6.0)
24
35
  coderay (1.1.3)
25
- concurrent-ruby (1.1.9)
26
- connection_pool (2.2.5)
27
- crack (0.4.5)
36
+ concurrent-ruby (1.3.8)
37
+ connection_pool (3.0.2)
38
+ crack (1.0.1)
39
+ bigdecimal
28
40
  rexml
29
- delayed_job (4.1.9)
30
- activesupport (>= 3.0, < 6.2)
31
- delayed_job_active_record (4.1.6)
32
- activerecord (>= 3.0, < 6.2)
41
+ delayed_job (4.2.0)
42
+ activesupport (>= 3.0, < 9.0)
43
+ benchmark
44
+ logger
45
+ delayed_job_active_record (4.1.11)
46
+ activerecord (>= 3.0, < 9.0)
33
47
  delayed_job (>= 3.0, < 5)
34
- diff-lcs (1.4.4)
35
- hashdiff (1.0.1)
36
- i18n (1.8.10)
48
+ diff-lcs (1.6.2)
49
+ drb (2.2.3)
50
+ hashdiff (1.2.1)
51
+ i18n (1.15.2)
37
52
  concurrent-ruby (~> 1.0)
38
- method_source (1.0.0)
39
- minitest (5.14.4)
40
- mono_logger (1.1.1)
41
- multi_json (1.15.0)
42
- mustermann (1.1.1)
43
- ruby2_keywords (~> 0.0.1)
44
- pry (0.13.1)
53
+ io-console (0.9.4)
54
+ json (3.0.2)
55
+ logger (1.7.0)
56
+ method_source (1.1.0)
57
+ minitest (6.0.6)
58
+ drb (~> 2.0)
59
+ prism (~> 1.5)
60
+ mono_logger (1.1.2)
61
+ multi_json (1.21.2)
62
+ mustermann (3.1.1)
63
+ prism (1.9.0)
64
+ pry (0.16.0)
45
65
  coderay (~> 1.1)
46
66
  method_source (~> 1.0)
47
- pry-byebug (3.9.0)
48
- byebug (~> 11.0)
49
- pry (~> 0.13.0)
50
- public_suffix (4.0.6)
51
- que (0.14.3)
52
- rack (2.2.3)
53
- rack-protection (2.1.0)
54
- rack
55
- rake (12.3.3)
56
- redis (4.1.4)
57
- redis-namespace (1.8.1)
58
- redis (>= 3.0.4)
59
- resque (2.1.0)
60
- mono_logger (~> 1.0)
67
+ reline (>= 0.6.0)
68
+ pry-byebug (3.12.0)
69
+ byebug (~> 13.0)
70
+ pry (>= 0.13, < 0.17)
71
+ public_suffix (7.0.5)
72
+ que (2.4.1)
73
+ rack (3.2.7)
74
+ rack-protection (4.2.1)
75
+ base64 (>= 0.1.0)
76
+ logger (>= 1.6.0)
77
+ rack (>= 3.0.0, < 4)
78
+ rack-session (2.1.2)
79
+ base64 (>= 0.1.0)
80
+ rack (>= 3.0.0)
81
+ rake (13.4.2)
82
+ redis (6.0.0)
83
+ redis-client (= 0.30.1)
84
+ redis-client (0.30.1)
85
+ connection_pool
86
+ redis-namespace (1.11.0)
87
+ redis (>= 4)
88
+ reline (0.7.0)
89
+ io-console (~> 0.5)
90
+ resque (3.1.0)
91
+ base64 (~> 0.1)
92
+ logger
93
+ mono_logger (~> 1)
61
94
  multi_json (~> 1.0)
95
+ redis (>= 4.0)
62
96
  redis-namespace (~> 1.6)
63
- sinatra (>= 0.9.2)
64
- vegas (~> 0.1.2)
65
- rexml (3.2.5)
66
- rspec (3.10.0)
67
- rspec-core (~> 3.10.0)
68
- rspec-expectations (~> 3.10.0)
69
- rspec-mocks (~> 3.10.0)
70
- rspec-core (3.10.1)
71
- rspec-support (~> 3.10.0)
72
- rspec-expectations (3.10.1)
97
+ sinatra (>= 2.0)
98
+ rexml (3.4.4)
99
+ rspec (3.13.2)
100
+ rspec-core (~> 3.13.0)
101
+ rspec-expectations (~> 3.13.0)
102
+ rspec-mocks (~> 3.13.0)
103
+ rspec-core (3.13.6)
104
+ rspec-support (~> 3.13.0)
105
+ rspec-expectations (3.13.5)
73
106
  diff-lcs (>= 1.2.0, < 2.0)
74
- rspec-support (~> 3.10.0)
75
- rspec-mocks (3.10.2)
107
+ rspec-support (~> 3.13.0)
108
+ rspec-mocks (3.13.8)
76
109
  diff-lcs (>= 1.2.0, < 2.0)
77
- rspec-support (~> 3.10.0)
78
- rspec-support (3.10.2)
79
- ruby2_keywords (0.0.5)
80
- sidekiq (5.2.9)
81
- connection_pool (~> 2.2, >= 2.2.2)
82
- rack (~> 2.0)
83
- rack-protection (>= 1.5.0)
84
- redis (>= 3.3.5, < 4.2)
85
- sinatra (2.1.0)
86
- mustermann (~> 1.0)
87
- rack (~> 2.2)
88
- rack-protection (= 2.1.0)
110
+ rspec-support (~> 3.13.0)
111
+ rspec-support (3.13.7)
112
+ securerandom (0.4.1)
113
+ sidekiq (8.1.7)
114
+ connection_pool (>= 3.0.0)
115
+ json (>= 2.16.0)
116
+ logger (>= 1.7.0)
117
+ rack (>= 3.2.0)
118
+ redis-client (>= 0.29.0)
119
+ sinatra (4.2.1)
120
+ logger (>= 1.6.0)
121
+ mustermann (~> 3.0)
122
+ rack (>= 3.0.0, < 4)
123
+ rack-protection (= 4.2.1)
124
+ rack-session (>= 2.0.0, < 3)
89
125
  tilt (~> 2.0)
90
- thread_safe (0.3.6)
91
- tilt (2.0.10)
92
- tzinfo (1.2.9)
93
- thread_safe (~> 0.1)
94
- vcr (6.0.0)
95
- vegas (0.1.11)
96
- rack (>= 1.0.0)
97
- webmock (3.14.0)
126
+ tilt (2.9.0)
127
+ timeout (0.6.1)
128
+ tzinfo (2.0.6)
129
+ concurrent-ruby (~> 1.0)
130
+ uri (1.1.1)
131
+ vcr (6.4.0)
132
+ webmock (3.26.4)
98
133
  addressable (>= 2.8.0)
99
134
  crack (>= 0.3.2)
100
135
  hashdiff (>= 0.4.0, < 2.0.0)
101
136
 
102
137
  PLATFORMS
138
+ ruby
103
139
  x86_64-darwin-18
140
+ x86_64-linux
141
+ x86_64-linux-gnu
104
142
 
105
143
  DEPENDENCIES
106
144
  activesupport
@@ -109,7 +147,7 @@ DEPENDENCIES
109
147
  dynoscale_ruby!
110
148
  pry-byebug
111
149
  que
112
- rake (~> 12.0)
150
+ rake
113
151
  resque
114
152
  rspec (~> 3.0)
115
153
  sidekiq (>= 5.0)
@@ -117,4 +155,4 @@ DEPENDENCIES
117
155
  webmock
118
156
 
119
157
  BUNDLED WITH
120
- 2.2.27
158
+ 2.4.20
@@ -19,7 +19,6 @@ Gem::Specification.new do |spec|
19
19
  "source_code_uri" => "https://github.com/Mjolnir-Software/dynoscale_ruby",
20
20
  }
21
21
 
22
- spec.version = '1.0.3'
23
22
  # Specify which files should be added to the gem when it is released.
24
23
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
25
24
  spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
@@ -20,7 +20,7 @@ module DynoscaleRuby
20
20
  @@current_report ||= Report.new(current_time + REPORT_RECORDING_FREQ)
21
21
 
22
22
  if queue_time
23
- @@current_report.add_measurement(current_time, queue_time, 'web', nil)
23
+ @@current_report&.add_measurement(current_time, queue_time, 'web', nil)
24
24
  Logger.logger.debug "Web measurement #{current_time}, #{queue_time} recorded in report."
25
25
  end
26
26
 
@@ -35,7 +35,7 @@ module DynoscaleRuby
35
35
  end
36
36
 
37
37
  @@reports ||= {}
38
- @@reports[@@current_report.publish_timestamp] = @@current_report
38
+ @@reports[@@current_report&.publish_timestamp] = @@current_report
39
39
  @@reports.values
40
40
  end
41
41
 
@@ -1,3 +1,3 @@
1
1
  module DynoscaleRuby
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynoscale_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Abrahamsen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-08-23 00:00:00.000000000 Z
11
+ date: 2026-09-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -20,6 +20,7 @@ files:
20
20
  - ".gitignore"
21
21
  - ".rspec"
22
22
  - ".travis.yml"
23
+ - CHANGELOG.md
23
24
  - CODE_OF_CONDUCT.md
24
25
  - Gemfile
25
26
  - Gemfile.lock
@@ -67,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
67
68
  - !ruby/object:Gem::Version
68
69
  version: '0'
69
70
  requirements: []
70
- rubygems_version: 3.1.4
71
+ rubygems_version: 3.4.20
71
72
  signing_key:
72
73
  specification_version: 4
73
74
  summary: This gem is an agent for the Dynoscale Heroku add-on.