appmap 1.0.1 → 1.1.1

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: ef590ede8fe883183358cb975bb4531c07ee332de2708bfce4743c4cfc0c7f15
4
- data.tar.gz: 23d4c0d3c7fa26d5c298186d3e8c9e6318ffe8aa265dcd55358a02ace656db04
3
+ metadata.gz: f5d260b017a2176b96a916c243f8264b82d0472cede76a50135bca126d6137c7
4
+ data.tar.gz: bd15866c48645e0af3b3467127d1572a334f6844621cd5d0869129ec12b9cd6d
5
5
  SHA512:
6
- metadata.gz: 2dcfac0480a1e5cf59be2bfa03614d141135d1e2a06010e494fd8807e58803b2361627cd861a038cc4ea7b1e21013628ae04e4a75fadc7df877c9c143d5a8f5d
7
- data.tar.gz: bb9dadf2e3dae77b280497223544ffe84f9fed42cb742ea021e049be311a07f5e79b5715a59c523ff4ca7fff9ed37db301f243b5d6a722cde5d5b44ad8c98fc1
6
+ metadata.gz: f36a622fc19d61291f3989f7b2505dd206a9f2304825c495694d524653cb0def70fd1524fbb29b3f892a57a2bf373b5f0a2ec9b33d730b95b705fee15a528f64
7
+ data.tar.gz: dab35c68e719ed5995aabd7a5d0e216f70b4bfbf72dad35562b102727342b488f6407921b99b687b7f8164c702f6fe46e5929b079de752a20702e84ab9dabda6
data/.travis.yml CHANGED
@@ -9,11 +9,10 @@ cache:
9
9
  # section called "Pre-installed Ruby versions". Use versions from
10
10
  # that list to not install rvm and ruby each time.
11
11
  rvm:
12
- - 2.6.9
13
- - 2.7.5
14
12
  - 3.0.1 # doesn't show in pre-installed list
15
13
  - 3.1.2
16
14
  - 3.2.0
15
+ - 3.3.1
17
16
 
18
17
  addons:
19
18
  postgresql: "14"
data/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [1.1.1](https://github.com/getappmap/appmap-ruby/compare/v1.1.0...v1.1.1) (2024-12-13)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Handle rack apps without engine? method in Rails ([7e9d3a0](https://github.com/getappmap/appmap-ruby/commit/7e9d3a0e7c7aa6a9a8e8c7da04a97122b3952bce))
7
+
8
+ # [1.1.0](https://github.com/getappmap/appmap-ruby/compare/v1.0.1...v1.1.0) (2024-05-22)
9
+
10
+
11
+ ### Features
12
+
13
+ * support Ruby 3.3 ([e25847a](https://github.com/getappmap/appmap-ruby/commit/e25847a509098b39fbe40d28d637832c920e87c7))
14
+
1
15
  ## [1.0.1](https://github.com/getappmap/appmap-ruby/compare/v1.0.0...v1.0.1) (2024-04-30)
2
16
 
3
17
 
data/ext/appmap/appmap.c CHANGED
@@ -1,6 +1,7 @@
1
1
  #include <ruby.h>
2
2
  #include <ruby/debug.h>
3
3
  #include <ruby/intern.h>
4
+ #include <ruby/version.h>
4
5
 
5
6
  // Seems like CLASS_OR_MODULE_P should really be in a header file in
6
7
  // the ruby source -- it's in object.c and duplicated in eval.c. In
@@ -17,7 +18,13 @@ static VALUE
17
18
  singleton_method_owner_name(VALUE klass, VALUE method)
18
19
  {
19
20
  VALUE owner = rb_funcall(method, rb_intern("owner"), 0);
21
+
22
+ #if RUBY_API_VERSION_CODE < 30200
20
23
  VALUE attached = rb_ivar_get(owner, rb_intern("__attached__"));
24
+ #else
25
+ VALUE attached = rb_class_attached_object(owner);
26
+ #endif
27
+
21
28
  if (!CLASS_OR_MODULE_P(attached)) {
22
29
  attached = rb_funcall(attached, rb_intern("class"), 0);
23
30
  }
@@ -66,7 +66,9 @@ module AppMap
66
66
 
67
67
  next unless Rails.test_route(app, request)
68
68
 
69
- return normalized_path request, app.rack_app.routes.router if app.engine?
69
+ if app.respond_to?(:engine?) && app.engine?
70
+ return normalized_path request, app.rack_app.routes.router
71
+ end
70
72
 
71
73
  return AppMap::Util.swaggerize_path(route.path.spec.to_s)
72
74
  end
@@ -3,11 +3,11 @@
3
3
  module AppMap
4
4
  URL = 'https://github.com/applandinc/appmap-ruby'
5
5
 
6
- VERSION = '1.0.1'
6
+ VERSION = '1.1.1'
7
7
 
8
8
  APPMAP_FORMAT_VERSION = '1.12.0'
9
9
 
10
- SUPPORTED_RUBY_VERSIONS = %w[2.5 2.6 2.7 3.0 3.1 3.2].freeze
10
+ SUPPORTED_RUBY_VERSIONS = %w[2.5 2.6 2.7 3.0 3.1 3.2 3.3].freeze
11
11
 
12
12
  DEFAULT_APPMAP_DIR = 'tmp/appmap'.freeze
13
13
  DEFAULT_CONFIG_FILE_PATH = 'appmap.yml'.freeze
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appmap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Gilpin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-04-30 00:00:00.000000000 Z
11
+ date: 2024-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: method_source
@@ -452,7 +452,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
452
452
  - !ruby/object:Gem::Version
453
453
  version: '0'
454
454
  requirements: []
455
- rubygems_version: 3.1.6
455
+ rubygems_version: 3.5.16
456
456
  signing_key:
457
457
  specification_version: 4
458
458
  summary: Record the operation of a Ruby program, using the AppLand 'AppMap' format.