cybrid_api_organization_ruby 0.115.93 → 0.115.95

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +5 -5
  4. data/cybrid_api_organization_ruby.gemspec +1 -1
  5. data/lib/cybrid_api_organization_ruby/api/organizations_organization_api.rb +1 -1
  6. data/lib/cybrid_api_organization_ruby/api/subscriptions_organization_api.rb +1 -1
  7. data/lib/cybrid_api_organization_ruby/api_client.rb +1 -1
  8. data/lib/cybrid_api_organization_ruby/api_error.rb +1 -1
  9. data/lib/cybrid_api_organization_ruby/configuration.rb +1 -1
  10. data/lib/cybrid_api_organization_ruby/models/error_response_organization_model.rb +1 -1
  11. data/lib/cybrid_api_organization_ruby/models/organization_organization_model.rb +1 -1
  12. data/lib/cybrid_api_organization_ruby/models/patch_organization_organization_model.rb +1 -1
  13. data/lib/cybrid_api_organization_ruby/models/post_subscription_organization_model.rb +1 -1
  14. data/lib/cybrid_api_organization_ruby/models/subscription_environment_organization_model.rb +1 -1
  15. data/lib/cybrid_api_organization_ruby/models/subscription_list_organization_model.rb +1 -1
  16. data/lib/cybrid_api_organization_ruby/models/subscription_organization_model.rb +1 -1
  17. data/lib/cybrid_api_organization_ruby/models/subscription_state_organization_model.rb +1 -1
  18. data/lib/cybrid_api_organization_ruby/models/subscription_type_organization_model.rb +1 -1
  19. data/lib/cybrid_api_organization_ruby/version.rb +2 -2
  20. data/lib/cybrid_api_organization_ruby.rb +1 -1
  21. data/spec/api/organizations_organization_api_spec.rb +1 -1
  22. data/spec/api/subscriptions_organization_api_spec.rb +1 -1
  23. data/spec/api_client_spec.rb +1 -1
  24. data/spec/configuration_spec.rb +1 -1
  25. data/spec/models/error_response_organization_model_spec.rb +1 -1
  26. data/spec/models/organization_organization_model_spec.rb +1 -1
  27. data/spec/models/patch_organization_organization_model_spec.rb +1 -1
  28. data/spec/models/post_subscription_organization_model_spec.rb +1 -1
  29. data/spec/models/subscription_environment_organization_model_spec.rb +1 -1
  30. data/spec/models/subscription_list_organization_model_spec.rb +1 -1
  31. data/spec/models/subscription_organization_model_spec.rb +1 -1
  32. data/spec/models/subscription_state_organization_model_spec.rb +1 -1
  33. data/spec/models/subscription_type_organization_model_spec.rb +1 -1
  34. data/spec/spec_helper.rb +1 -1
  35. data/vendor/bundle/ruby/3.2.0/cache/method_source-1.1.0.gem +0 -0
  36. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/gem_make.out +5 -5
  37. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.16.3/gem_make.out +5 -5
  38. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
  39. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.1.2/gem_make.out +5 -5
  40. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.7.3/gem_make.out +5 -5
  41. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.1.0/gem_make.out +5 -5
  42. data/vendor/bundle/ruby/3.2.0/gems/method_source-1.1.0/CHANGELOG.md +15 -0
  43. data/vendor/bundle/ruby/3.2.0/gems/{method_source-1.0.0 → method_source-1.1.0}/Gemfile +4 -0
  44. data/vendor/bundle/ruby/3.2.0/gems/{method_source-1.0.0 → method_source-1.1.0}/README.markdown +8 -0
  45. data/vendor/bundle/ruby/3.2.0/gems/{method_source-1.0.0 → method_source-1.1.0}/lib/method_source/code_helpers.rb +3 -3
  46. data/vendor/bundle/ruby/3.2.0/gems/method_source-1.1.0/lib/method_source/version.rb +3 -0
  47. data/vendor/bundle/ruby/3.2.0/gems/{method_source-1.0.0 → method_source-1.1.0}/lib/method_source.rb +36 -0
  48. data/vendor/bundle/ruby/3.2.0/gems/method_source-1.1.0/method_source.gemspec +19 -0
  49. data/vendor/bundle/ruby/3.2.0/gems/{method_source-1.0.0 → method_source-1.1.0}/spec/method_source_spec.rb +14 -0
  50. data/vendor/bundle/ruby/3.2.0/gems/{method_source-1.0.0 → method_source-1.1.0}/spec/spec_helper.rb +6 -0
  51. data/vendor/bundle/ruby/3.2.0/specifications/{method_source-1.0.0.gemspec → method_source-1.1.0.gemspec} +4 -8
  52. metadata +19 -20
  53. data/vendor/bundle/ruby/3.2.0/cache/method_source-1.0.0.gem +0 -0
  54. data/vendor/bundle/ruby/3.2.0/gems/method_source-1.0.0/.circleci/config.yml +0 -139
  55. data/vendor/bundle/ruby/3.2.0/gems/method_source-1.0.0/CHANGELOG.md +0 -10
  56. data/vendor/bundle/ruby/3.2.0/gems/method_source-1.0.0/lib/method_source/version.rb +0 -3
  57. data/vendor/bundle/ruby/3.2.0/gems/method_source-1.0.0/method_source.gemspec +0 -33
  58. /data/vendor/bundle/ruby/3.2.0/gems/{method_source-1.0.0 → method_source-1.1.0}/.gemtest +0 -0
  59. /data/vendor/bundle/ruby/3.2.0/gems/{method_source-1.0.0 → method_source-1.1.0}/.yardopts +0 -0
  60. /data/vendor/bundle/ruby/3.2.0/gems/{method_source-1.0.0 → method_source-1.1.0}/LICENSE +0 -0
  61. /data/vendor/bundle/ruby/3.2.0/gems/{method_source-1.0.0 → method_source-1.1.0}/Rakefile +0 -0
  62. /data/vendor/bundle/ruby/3.2.0/gems/{method_source-1.0.0 → method_source-1.1.0}/lib/method_source/source_location.rb +0 -0
  63. /data/vendor/bundle/ruby/3.2.0/gems/{method_source-1.0.0 → method_source-1.1.0}/spec/method_source/code_helpers_spec.rb +0 -0
@@ -3,12 +3,12 @@ current directory: /home/circleci/project/api-service-clients/api-platform-organ
3
3
  creating Makefile
4
4
 
5
5
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler
6
- make DESTDIR\= sitearchdir\=./.gem.20240412-3666-inq6p4 sitelibdir\=./.gem.20240412-3666-inq6p4 clean
6
+ make DESTDIR\= sitearchdir\=./.gem.20240415-3661-qqkfn6 sitelibdir\=./.gem.20240415-3661-qqkfn6 clean
7
7
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler'
8
8
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler'
9
9
 
10
10
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler
11
- make DESTDIR\= sitearchdir\=./.gem.20240412-3666-inq6p4 sitelibdir\=./.gem.20240412-3666-inq6p4
11
+ make DESTDIR\= sitearchdir\=./.gem.20240415-3661-qqkfn6 sitelibdir\=./.gem.20240415-3661-qqkfn6
12
12
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler'
13
13
  compiling adj_matrix.c
14
14
  adj_matrix.c: In function ‘adj_matrix_default’:
@@ -26,12 +26,12 @@ linking shared-object jaro_winkler/jaro_winkler_ext.so
26
26
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler'
27
27
 
28
28
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler
29
- make DESTDIR\= sitearchdir\=./.gem.20240412-3666-inq6p4 sitelibdir\=./.gem.20240412-3666-inq6p4 install
29
+ make DESTDIR\= sitearchdir\=./.gem.20240415-3661-qqkfn6 sitelibdir\=./.gem.20240415-3661-qqkfn6 install
30
30
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler'
31
- /usr/bin/install -c -m 0755 jaro_winkler_ext.so ./.gem.20240412-3666-inq6p4/jaro_winkler
31
+ /usr/bin/install -c -m 0755 jaro_winkler_ext.so ./.gem.20240415-3661-qqkfn6/jaro_winkler
32
32
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler'
33
33
 
34
34
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler
35
- make DESTDIR\= sitearchdir\=./.gem.20240412-3666-inq6p4 sitelibdir\=./.gem.20240412-3666-inq6p4 clean
35
+ make DESTDIR\= sitearchdir\=./.gem.20240415-3661-qqkfn6 sitelibdir\=./.gem.20240415-3661-qqkfn6 clean
36
36
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler'
37
37
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler'
@@ -5,7 +5,7 @@ checking for yaml_get_version() in -lyaml... yes
5
5
  creating Makefile
6
6
 
7
7
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.2/ext/psych
8
- make DESTDIR\= sitearchdir\=./.gem.20240412-3666-w56e7 sitelibdir\=./.gem.20240412-3666-w56e7 clean
8
+ make DESTDIR\= sitearchdir\=./.gem.20240415-3661-gldppd sitelibdir\=./.gem.20240415-3661-gldppd clean
9
9
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.2/ext/psych'
10
10
  cd libyaml && make clean
11
11
  /bin/sh: 1: cd: can't cd to libyaml
@@ -13,7 +13,7 @@ make[1]: [Makefile:283: clean-so] Error 2 (ignored)
13
13
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.2/ext/psych'
14
14
 
15
15
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.2/ext/psych
16
- make DESTDIR\= sitearchdir\=./.gem.20240412-3666-w56e7 sitelibdir\=./.gem.20240412-3666-w56e7
16
+ make DESTDIR\= sitearchdir\=./.gem.20240415-3661-gldppd sitelibdir\=./.gem.20240415-3661-gldppd
17
17
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.2/ext/psych'
18
18
  compiling psych.c
19
19
  compiling psych_emitter.c
@@ -24,13 +24,13 @@ linking shared-object psych.so
24
24
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.2/ext/psych'
25
25
 
26
26
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.2/ext/psych
27
- make DESTDIR\= sitearchdir\=./.gem.20240412-3666-w56e7 sitelibdir\=./.gem.20240412-3666-w56e7 install
27
+ make DESTDIR\= sitearchdir\=./.gem.20240415-3661-gldppd sitelibdir\=./.gem.20240415-3661-gldppd install
28
28
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.2/ext/psych'
29
- /usr/bin/install -c -m 0755 psych.so ./.gem.20240412-3666-w56e7
29
+ /usr/bin/install -c -m 0755 psych.so ./.gem.20240415-3661-gldppd
30
30
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.2/ext/psych'
31
31
 
32
32
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.2/ext/psych
33
- make DESTDIR\= sitearchdir\=./.gem.20240412-3666-w56e7 sitelibdir\=./.gem.20240412-3666-w56e7 clean
33
+ make DESTDIR\= sitearchdir\=./.gem.20240415-3661-gldppd sitelibdir\=./.gem.20240415-3661-gldppd clean
34
34
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.2/ext/psych'
35
35
  cd libyaml && make clean
36
36
  /bin/sh: 1: cd: can't cd to libyaml
@@ -3,24 +3,24 @@ current directory: /home/circleci/project/api-service-clients/api-platform-organ
3
3
  creating Makefile
4
4
 
5
5
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.7.3/ext/racc/cparse
6
- make DESTDIR\= sitearchdir\=./.gem.20240412-3666-hnicdc sitelibdir\=./.gem.20240412-3666-hnicdc clean
6
+ make DESTDIR\= sitearchdir\=./.gem.20240415-3661-ldb7pt sitelibdir\=./.gem.20240415-3661-ldb7pt clean
7
7
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.7.3/ext/racc/cparse'
8
8
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.7.3/ext/racc/cparse'
9
9
 
10
10
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.7.3/ext/racc/cparse
11
- make DESTDIR\= sitearchdir\=./.gem.20240412-3666-hnicdc sitelibdir\=./.gem.20240412-3666-hnicdc
11
+ make DESTDIR\= sitearchdir\=./.gem.20240415-3661-ldb7pt sitelibdir\=./.gem.20240415-3661-ldb7pt
12
12
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.7.3/ext/racc/cparse'
13
13
  compiling cparse.c
14
14
  linking shared-object racc/cparse.so
15
15
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.7.3/ext/racc/cparse'
16
16
 
17
17
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.7.3/ext/racc/cparse
18
- make DESTDIR\= sitearchdir\=./.gem.20240412-3666-hnicdc sitelibdir\=./.gem.20240412-3666-hnicdc install
18
+ make DESTDIR\= sitearchdir\=./.gem.20240415-3661-ldb7pt sitelibdir\=./.gem.20240415-3661-ldb7pt install
19
19
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.7.3/ext/racc/cparse'
20
- /usr/bin/install -c -m 0755 cparse.so ./.gem.20240412-3666-hnicdc/racc
20
+ /usr/bin/install -c -m 0755 cparse.so ./.gem.20240415-3661-ldb7pt/racc
21
21
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.7.3/ext/racc/cparse'
22
22
 
23
23
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.7.3/ext/racc/cparse
24
- make DESTDIR\= sitearchdir\=./.gem.20240412-3666-hnicdc sitelibdir\=./.gem.20240412-3666-hnicdc clean
24
+ make DESTDIR\= sitearchdir\=./.gem.20240415-3661-ldb7pt sitelibdir\=./.gem.20240415-3661-ldb7pt clean
25
25
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.7.3/ext/racc/cparse'
26
26
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.7.3/ext/racc/cparse'
@@ -3,24 +3,24 @@ current directory: /home/circleci/project/api-service-clients/api-platform-organ
3
3
  creating Makefile
4
4
 
5
5
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio
6
- make DESTDIR\= sitearchdir\=./.gem.20240412-3666-ju5rvi sitelibdir\=./.gem.20240412-3666-ju5rvi clean
6
+ make DESTDIR\= sitearchdir\=./.gem.20240415-3661-7zta5z sitelibdir\=./.gem.20240415-3661-7zta5z clean
7
7
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio'
8
8
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio'
9
9
 
10
10
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio
11
- make DESTDIR\= sitearchdir\=./.gem.20240412-3666-ju5rvi sitelibdir\=./.gem.20240412-3666-ju5rvi
11
+ make DESTDIR\= sitearchdir\=./.gem.20240415-3661-7zta5z sitelibdir\=./.gem.20240415-3661-7zta5z
12
12
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio'
13
13
  compiling stringio.c
14
14
  linking shared-object stringio.so
15
15
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio'
16
16
 
17
17
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio
18
- make DESTDIR\= sitearchdir\=./.gem.20240412-3666-ju5rvi sitelibdir\=./.gem.20240412-3666-ju5rvi install
18
+ make DESTDIR\= sitearchdir\=./.gem.20240415-3661-7zta5z sitelibdir\=./.gem.20240415-3661-7zta5z install
19
19
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio'
20
- /usr/bin/install -c -m 0755 stringio.so ./.gem.20240412-3666-ju5rvi
20
+ /usr/bin/install -c -m 0755 stringio.so ./.gem.20240415-3661-7zta5z
21
21
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio'
22
22
 
23
23
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio
24
- make DESTDIR\= sitearchdir\=./.gem.20240412-3666-ju5rvi sitelibdir\=./.gem.20240412-3666-ju5rvi clean
24
+ make DESTDIR\= sitearchdir\=./.gem.20240415-3661-7zta5z sitelibdir\=./.gem.20240415-3661-7zta5z clean
25
25
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio'
26
26
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.1.0/ext/stringio'
@@ -0,0 +1,15 @@
1
+ # method_source changelog
2
+
3
+ ### master
4
+
5
+ ### [v1.1.0][v1.1.0] (April 15, 2024)
6
+
7
+ - Added `MethodSource.clear_cache`
8
+ - Added support for `RUBYOPT="--enable-frozen-string-literal"`
9
+
10
+ ### [v1.0.0][v1.0.0] (March 19, 2020)
11
+
12
+ - Added Ruby 2.7 support
13
+
14
+ [v1.0.0]: https://github.com/banister/method_source/releases/tag/v1.0.0
15
+ [v1.1.0]: https://github.com/banister/method_source/releases/tag/v1.1.0
@@ -1,2 +1,6 @@
1
1
  source 'https://rubygems.org'
2
+
2
3
  gemspec
4
+
5
+ gem "rake"
6
+ gem "rspec"
@@ -50,6 +50,14 @@ Example: display method comments
50
50
  # Merges the elements of the given enumerable object to the set and
51
51
  # returns self.
52
52
 
53
+ Example: display module/class comments
54
+ --------------------------------------
55
+
56
+ MethodSource::MethodExtensions.method(:included).module_comment
57
+ # =>
58
+ # This module is to be included by `Method` and `UnboundMethod` and
59
+ # provides the `#source` functionality
60
+
53
61
  Limitations:
54
62
  ------------
55
63
 
@@ -90,7 +90,7 @@ module MethodSource
90
90
  # @return [String] a valid ruby expression
91
91
  # @raise [SyntaxError]
92
92
  def extract_first_expression(lines, consume=0, &block)
93
- code = consume.zero? ? "" : lines.slice!(0..(consume - 1)).join
93
+ code = consume.zero? ? +"" : lines.slice!(0..(consume - 1)).join
94
94
 
95
95
  lines.each do |v|
96
96
  code << v
@@ -104,7 +104,7 @@ module MethodSource
104
104
  # @param [Array<String>] lines
105
105
  # @return [String]
106
106
  def extract_last_comment(lines)
107
- buffer = ""
107
+ buffer = +""
108
108
 
109
109
  lines.each do |line|
110
110
  # Add any line that is a valid ruby comment,
@@ -112,7 +112,7 @@ module MethodSource
112
112
  if (line =~ /^\s*#/) || (line =~ /^\s*$/)
113
113
  buffer << line.lstrip
114
114
  else
115
- buffer.replace("")
115
+ buffer.clear
116
116
  end
117
117
  end
118
118
 
@@ -0,0 +1,3 @@
1
+ module MethodSource
2
+ VERSION = '1.1.0'.freeze
3
+ end
@@ -55,6 +55,11 @@ module MethodSource
55
55
  raise SourceNotFoundError, "Could not load source for #{name}: #{e.message}"
56
56
  end
57
57
 
58
+ # Clear cache.
59
+ def self.clear_cache
60
+ @lines_for_file = {}
61
+ end
62
+
58
63
  # @deprecated — use MethodSource::CodeHelpers#complete_expression?
59
64
  def self.valid_expression?(str)
60
65
  complete_expression?(str)
@@ -121,6 +126,37 @@ module MethodSource
121
126
  def comment
122
127
  MethodSource.comment_helper(source_location, defined?(name) ? name : inspect)
123
128
  end
129
+
130
+ # Return the comments associated with the method class/module.
131
+ # @return [String] The method's comments as a string
132
+ # @raise SourceNotFoundException
133
+ #
134
+ # @example
135
+ # MethodSource::MethodExtensions.method(:included).module_comment
136
+ # =>
137
+ # # This module is to be included by `Method` and `UnboundMethod` and
138
+ # # provides the `#source` functionality
139
+ def class_comment
140
+ if self.respond_to?(:receiver)
141
+ class_inst_or_module = self.receiver
142
+ elsif self.respond_to?(:owner)
143
+ class_inst_or_module = self.owner
144
+ else
145
+ return comment
146
+ end
147
+
148
+ if class_inst_or_module.respond_to?(:name)
149
+ const_name = class_inst_or_module.name
150
+ else
151
+ const_name = class_inst_or_module.class.name
152
+ class_inst_or_module = class_inst_or_module.class
153
+ end
154
+
155
+ location = class_inst_or_module.const_source_location(const_name)
156
+
157
+ MethodSource.comment_helper(location, defined?(name) ? name : inspect)
158
+ end
159
+ alias module_comment class_comment
124
160
  end
125
161
  end
126
162
 
@@ -0,0 +1,19 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = "method_source".freeze
5
+ s.version = "1.1.0"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
8
+ s.require_paths = ["lib".freeze]
9
+ s.authors = ["John Mair (banisterfiend)".freeze]
10
+ s.date = "2024-04-15"
11
+ s.description = "retrieve the sourcecode for a method".freeze
12
+ s.email = "jrmair@gmail.com".freeze
13
+ s.files = ["CHANGELOG.md".freeze, ".gemtest".freeze, ".yardopts".freeze, "Gemfile".freeze, "LICENSE".freeze, "README.markdown".freeze, "Rakefile".freeze, "lib/method_source.rb".freeze, "lib/method_source/code_helpers.rb".freeze, "lib/method_source/source_location.rb".freeze, "lib/method_source/version.rb".freeze, "method_source.gemspec".freeze, "spec/method_source/code_helpers_spec.rb".freeze, "spec/method_source_spec.rb".freeze, "spec/spec_helper.rb".freeze]
14
+ s.homepage = "http://banisterfiend.wordpress.com".freeze
15
+ s.metadata["changelog_uri"] = "https://github.com/banister/method_source/blob/master/CHANGELOG.md".freeze
16
+ s.licenses = ["MIT".freeze]
17
+ s.summary = "retrieve the sourcecode for a method".freeze
18
+ s.test_files = ["spec/method_source/code_helpers_spec.rb".freeze, "spec/method_source_spec.rb".freeze, "spec/spec_helper.rb".freeze]
19
+ end
@@ -30,6 +30,8 @@ describe MethodSource do
30
30
  @hello_source = "def hello; :hello; end\n"
31
31
  @hello_comment = "# A comment for hello\n# It spans two lines and is indented by 2 spaces\n"
32
32
  @lambda_comment = "# This is a comment for MyLambda\n"
33
+ @module_comment = "# This is a comment for module\n"
34
+ @class_comment = "# This is a comment for class\n"
33
35
  @lambda_source = "MyLambda = lambda { :lambda }\n"
34
36
  @proc_source = "MyProc = Proc.new { :proc }\n"
35
37
  @hello_instance_evaled_source = " def hello_\#{name}(*args)\n send_mesg(:\#{name}, *args)\n end\n"
@@ -109,6 +111,18 @@ describe MethodSource do
109
111
  it 'should return comment for lambda' do
110
112
  expect(MyLambda.comment).to eq(@lambda_comment)
111
113
  end
114
+
115
+ it 'should return comment for module' do
116
+ expect(M.instance_method(:hello).module_comment).to eq(@module_comment)
117
+ end
118
+
119
+ it 'should return comment for class' do
120
+ expect(C.method(:hello).class_comment).to eq(@class_comment)
121
+ end
122
+
123
+ it 'should return comment for class instance' do
124
+ expect(C.new.method(:hello).class_comment).to eq(@class_comment)
125
+ end
112
126
  end
113
127
  # end
114
128
  describe "Comment tests" do
@@ -10,10 +10,16 @@ def jruby?
10
10
  end
11
11
 
12
12
 
13
+ # This is a comment for module
13
14
  module M
14
15
  def hello; :hello_module; end
15
16
  end
16
17
 
18
+ # This is a comment for class
19
+ class C
20
+ include M
21
+ end
22
+
17
23
  $o = Object.new
18
24
  def $o.hello; :hello_singleton; end
19
25
 
@@ -1,14 +1,15 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: method_source 1.0.0 ruby lib
2
+ # stub: method_source 1.1.0 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "method_source".freeze
6
- s.version = "1.0.0".freeze
6
+ s.version = "1.1.0".freeze
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
9
+ s.metadata = { "changelog_uri" => "https://github.com/banister/method_source/blob/master/CHANGELOG.md" } if s.respond_to? :metadata=
9
10
  s.require_paths = ["lib".freeze]
10
11
  s.authors = ["John Mair (banisterfiend)".freeze]
11
- s.date = "2020-03-19"
12
+ s.date = "2024-04-15"
12
13
  s.description = "retrieve the sourcecode for a method".freeze
13
14
  s.email = "jrmair@gmail.com".freeze
14
15
  s.homepage = "http://banisterfiend.wordpress.com".freeze
@@ -17,9 +18,4 @@ Gem::Specification.new do |s|
17
18
  s.summary = "retrieve the sourcecode for a method".freeze
18
19
 
19
20
  s.installed_by_version = "3.4.21".freeze if s.respond_to? :installed_by_version
20
-
21
- s.specification_version = 4
22
-
23
- s.add_development_dependency(%q<rspec>.freeze, ["~> 3.6".freeze])
24
- s.add_development_dependency(%q<rake>.freeze, ["~> 0.9".freeze])
25
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cybrid_api_organization_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.115.93
4
+ version: 0.115.95
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cybrid
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-12 00:00:00.000000000 Z
11
+ date: 2024-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -122,7 +122,7 @@ files:
122
122
  - vendor/bundle/ruby/3.2.0/cache/ethon-0.16.0.gem
123
123
  - vendor/bundle/ruby/3.2.0/cache/ffi-1.16.3.gem
124
124
  - vendor/bundle/ruby/3.2.0/cache/jaro_winkler-1.5.6.gem
125
- - vendor/bundle/ruby/3.2.0/cache/method_source-1.0.0.gem
125
+ - vendor/bundle/ruby/3.2.0/cache/method_source-1.1.0.gem
126
126
  - vendor/bundle/ruby/3.2.0/cache/parallel-1.24.0.gem
127
127
  - vendor/bundle/ruby/3.2.0/cache/parser-3.3.0.5.gem
128
128
  - vendor/bundle/ruby/3.2.0/cache/pry-0.14.2.gem
@@ -1173,22 +1173,21 @@ files:
1173
1173
  - vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/lib/jaro_winkler/jaro_winkler_ext.so
1174
1174
  - vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/lib/jaro_winkler/jaro_winkler_pure.rb
1175
1175
  - vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/lib/jaro_winkler/version.rb
1176
- - vendor/bundle/ruby/3.2.0/gems/method_source-1.0.0/.circleci/config.yml
1177
- - vendor/bundle/ruby/3.2.0/gems/method_source-1.0.0/.gemtest
1178
- - vendor/bundle/ruby/3.2.0/gems/method_source-1.0.0/.yardopts
1179
- - vendor/bundle/ruby/3.2.0/gems/method_source-1.0.0/CHANGELOG.md
1180
- - vendor/bundle/ruby/3.2.0/gems/method_source-1.0.0/Gemfile
1181
- - vendor/bundle/ruby/3.2.0/gems/method_source-1.0.0/LICENSE
1182
- - vendor/bundle/ruby/3.2.0/gems/method_source-1.0.0/README.markdown
1183
- - vendor/bundle/ruby/3.2.0/gems/method_source-1.0.0/Rakefile
1184
- - vendor/bundle/ruby/3.2.0/gems/method_source-1.0.0/lib/method_source.rb
1185
- - vendor/bundle/ruby/3.2.0/gems/method_source-1.0.0/lib/method_source/code_helpers.rb
1186
- - vendor/bundle/ruby/3.2.0/gems/method_source-1.0.0/lib/method_source/source_location.rb
1187
- - vendor/bundle/ruby/3.2.0/gems/method_source-1.0.0/lib/method_source/version.rb
1188
- - vendor/bundle/ruby/3.2.0/gems/method_source-1.0.0/method_source.gemspec
1189
- - vendor/bundle/ruby/3.2.0/gems/method_source-1.0.0/spec/method_source/code_helpers_spec.rb
1190
- - vendor/bundle/ruby/3.2.0/gems/method_source-1.0.0/spec/method_source_spec.rb
1191
- - vendor/bundle/ruby/3.2.0/gems/method_source-1.0.0/spec/spec_helper.rb
1176
+ - vendor/bundle/ruby/3.2.0/gems/method_source-1.1.0/.gemtest
1177
+ - vendor/bundle/ruby/3.2.0/gems/method_source-1.1.0/.yardopts
1178
+ - vendor/bundle/ruby/3.2.0/gems/method_source-1.1.0/CHANGELOG.md
1179
+ - vendor/bundle/ruby/3.2.0/gems/method_source-1.1.0/Gemfile
1180
+ - vendor/bundle/ruby/3.2.0/gems/method_source-1.1.0/LICENSE
1181
+ - vendor/bundle/ruby/3.2.0/gems/method_source-1.1.0/README.markdown
1182
+ - vendor/bundle/ruby/3.2.0/gems/method_source-1.1.0/Rakefile
1183
+ - vendor/bundle/ruby/3.2.0/gems/method_source-1.1.0/lib/method_source.rb
1184
+ - vendor/bundle/ruby/3.2.0/gems/method_source-1.1.0/lib/method_source/code_helpers.rb
1185
+ - vendor/bundle/ruby/3.2.0/gems/method_source-1.1.0/lib/method_source/source_location.rb
1186
+ - vendor/bundle/ruby/3.2.0/gems/method_source-1.1.0/lib/method_source/version.rb
1187
+ - vendor/bundle/ruby/3.2.0/gems/method_source-1.1.0/method_source.gemspec
1188
+ - vendor/bundle/ruby/3.2.0/gems/method_source-1.1.0/spec/method_source/code_helpers_spec.rb
1189
+ - vendor/bundle/ruby/3.2.0/gems/method_source-1.1.0/spec/method_source_spec.rb
1190
+ - vendor/bundle/ruby/3.2.0/gems/method_source-1.1.0/spec/spec_helper.rb
1192
1191
  - vendor/bundle/ruby/3.2.0/gems/parallel-1.24.0/MIT-LICENSE.txt
1193
1192
  - vendor/bundle/ruby/3.2.0/gems/parallel-1.24.0/lib/parallel.rb
1194
1193
  - vendor/bundle/ruby/3.2.0/gems/parallel-1.24.0/lib/parallel/version.rb
@@ -2613,7 +2612,7 @@ files:
2613
2612
  - vendor/bundle/ruby/3.2.0/specifications/ethon-0.16.0.gemspec
2614
2613
  - vendor/bundle/ruby/3.2.0/specifications/ffi-1.16.3.gemspec
2615
2614
  - vendor/bundle/ruby/3.2.0/specifications/jaro_winkler-1.5.6.gemspec
2616
- - vendor/bundle/ruby/3.2.0/specifications/method_source-1.0.0.gemspec
2615
+ - vendor/bundle/ruby/3.2.0/specifications/method_source-1.1.0.gemspec
2617
2616
  - vendor/bundle/ruby/3.2.0/specifications/parallel-1.24.0.gemspec
2618
2617
  - vendor/bundle/ruby/3.2.0/specifications/parser-3.3.0.5.gemspec
2619
2618
  - vendor/bundle/ruby/3.2.0/specifications/pry-0.14.2.gemspec
@@ -1,139 +0,0 @@
1
- version: 2
2
- references:
3
- repo_restore_cache: &repo_restore_cache
4
- restore_cache:
5
- keys:
6
- - repo-{{ .Environment.CIRCLE_SHA1 }}
7
-
8
- repo_save_cache: &repo_save_cache
9
- save_cache:
10
- key: repo-{{ .Environment.CIRCLE_SHA1 }}-{{ epoch }}
11
- paths:
12
- - ~/method_source
13
-
14
- bundle_install: &bundle_install
15
- run:
16
- name: Install Bundler dependencies
17
- command: bundle install --path ~/method_source/vendor/bundle --jobs 15
18
-
19
- unit: &unit
20
- run:
21
- name: Run unit tests
22
- command: bundle exec rake
23
-
24
- jobs:
25
- "ruby-1.9":
26
- docker:
27
- - image: kyrylo/ruby-1.9.3p551
28
- working_directory: /home/circleci/method_source
29
- steps:
30
- - checkout
31
- - <<: *repo_restore_cache
32
- - <<: *bundle_install
33
- - <<: *unit
34
- "ruby-2.0":
35
- docker:
36
- - image: kyrylo/ruby-2.0.0p648
37
- working_directory: /home/circleci/method_source
38
- steps:
39
- - checkout
40
- - <<: *repo_restore_cache
41
- - <<: *bundle_install
42
- - <<: *unit
43
- "ruby-2.1":
44
- docker:
45
- - image: circleci/ruby:2.1
46
- working_directory: ~/method_source
47
- steps:
48
- - checkout
49
- - <<: *repo_restore_cache
50
- - <<: *bundle_install
51
- - <<: *unit
52
- "ruby-2.2":
53
- docker:
54
- - image: circleci/ruby:2.2
55
- working_directory: ~/method_source
56
- steps:
57
- - checkout
58
- - <<: *repo_restore_cache
59
- - <<: *bundle_install
60
- - <<: *unit
61
- "ruby-2.3":
62
- docker:
63
- - image: circleci/ruby:2.3
64
- working_directory: ~/method_source
65
- steps:
66
- - checkout
67
- - <<: *repo_restore_cache
68
- - <<: *bundle_install
69
- - <<: *unit
70
- "ruby-2.4":
71
- docker:
72
- - image: circleci/ruby:2.4
73
- working_directory: ~/method_source
74
- steps:
75
- - checkout
76
- - <<: *repo_restore_cache
77
- - <<: *bundle_install
78
- - <<: *unit
79
- "ruby-2.5":
80
- docker:
81
- - image: circleci/ruby:2.5
82
- working_directory: ~/method_source
83
- steps:
84
- - checkout
85
- - <<: *repo_restore_cache
86
- - <<: *bundle_install
87
- - <<: *unit
88
- "ruby-2.6":
89
- docker:
90
- - image: circleci/ruby:2.6
91
- working_directory: ~/method_source
92
- steps:
93
- - checkout
94
- - <<: *repo_restore_cache
95
- - <<: *bundle_install
96
- - <<: *unit
97
- "ruby-2.7":
98
- docker:
99
- - image: circleci/ruby:2.7.0
100
- working_directory: ~/method_source
101
- steps:
102
- - checkout
103
- - <<: *repo_restore_cache
104
- - <<: *bundle_install
105
- - <<: *unit
106
- "jruby-9.1-jdk":
107
- docker:
108
- - image: circleci/jruby:9.1-jdk
109
- working_directory: ~/method_source
110
- steps:
111
- - checkout
112
- - <<: *repo_restore_cache
113
- - <<: *bundle_install
114
- - <<: *unit
115
- "jruby-9.2-jdk":
116
- docker:
117
- - image: circleci/jruby:9.2-jdk
118
- working_directory: ~/method_source
119
- steps:
120
- - checkout
121
- - <<: *repo_restore_cache
122
- - <<: *bundle_install
123
- - <<: *unit
124
-
125
- workflows:
126
- version: 2
127
- build:
128
- jobs:
129
- - "ruby-1.9"
130
- - "ruby-2.0"
131
- - "ruby-2.1"
132
- - "ruby-2.2"
133
- - "ruby-2.3"
134
- - "ruby-2.4"
135
- - "ruby-2.5"
136
- - "ruby-2.6"
137
- - "ruby-2.7"
138
- - "jruby-9.1-jdk"
139
- - "jruby-9.2-jdk"
@@ -1,10 +0,0 @@
1
- method_source changelog
2
- =======================
3
-
4
- ### master
5
-
6
- ### [v1.0.0][v1.0.0] (March 19, 2020)
7
-
8
- * Added Ruby 2.7 support
9
-
10
- [v1.0.0]: https://github.com/banister/method_source/releases/tag/v1.0.0
@@ -1,3 +0,0 @@
1
- module MethodSource
2
- VERSION = '1.0.0'.freeze
3
- end
@@ -1,33 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
- Gem::Specification.new do |s|
4
- s.name = "method_source".freeze
5
- s.version = "1.0.0"
6
-
7
- s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
8
- s.require_paths = ["lib".freeze]
9
- s.authors = ["John Mair (banisterfiend)".freeze]
10
- s.date = "2020-03-19"
11
- s.description = "retrieve the sourcecode for a method".freeze
12
- s.email = "jrmair@gmail.com".freeze
13
- s.files = ["CHANGELOG.md".freeze, ".gemtest".freeze, ".travis.yml".freeze, ".yardopts".freeze, "Gemfile".freeze, "LICENSE".freeze, "README.markdown".freeze, "Rakefile".freeze, "lib/method_source.rb".freeze, "lib/method_source/code_helpers.rb".freeze, "lib/method_source/source_location.rb".freeze, "lib/method_source/version.rb".freeze, "method_source.gemspec".freeze, "spec/method_source/code_helpers_spec.rb".freeze, "spec/method_source_spec.rb".freeze, "spec/spec_helper.rb".freeze]
14
- s.homepage = "http://banisterfiend.wordpress.com".freeze
15
- s.licenses = ["MIT".freeze]
16
- s.summary = "retrieve the sourcecode for a method".freeze
17
- s.test_files = ["spec/method_source/code_helpers_spec.rb".freeze, "spec/method_source_spec.rb".freeze, "spec/spec_helper.rb".freeze]
18
-
19
- if s.respond_to? :specification_version then
20
- s.specification_version = 4
21
-
22
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
23
- s.add_development_dependency(%q<rspec>.freeze, ["~> 3.6"])
24
- s.add_development_dependency(%q<rake>.freeze, ["~> 0.9"])
25
- else
26
- s.add_dependency(%q<rspec>.freeze, ["~> 3.6"])
27
- s.add_dependency(%q<rake>.freeze, ["~> 0.9"])
28
- end
29
- else
30
- s.add_dependency(%q<rspec>.freeze, ["~> 3.6"])
31
- s.add_dependency(%q<rake>.freeze, ["~> 0.9"])
32
- end
33
- end