autoloaded 1.5.1 → 1.6.0

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
- SHA1:
3
- metadata.gz: 2047f7eef42a1cbbb9ad8e47748d3f99eaab4f32
4
- data.tar.gz: be5523f0c2b3367d20546bb07af2b6fdef581dac
2
+ SHA256:
3
+ metadata.gz: 4f05e57586f73870920a66d8f3dad6ddad3ec902be70e809668185bba4e9599f
4
+ data.tar.gz: af8c4f8ad12bdb20de0284895e6c157a3038078c1c7d57f04b53ec34bb6a2560
5
5
  SHA512:
6
- metadata.gz: c4fbb79d6f769531510d3c423b670598ae292f79ba2dd44c9c7fac2ba16f919b1a603c5b832ed3897ca5f1e994e9708361eb7f542740aa0c57856ef6169b2570
7
- data.tar.gz: bf3585f53218dca2f703019e402dc86cf600001d8368e1d744b3217d9d1588cc0de6f83b655665b9325cfbec66a249417d33708b26d85a109da8fed54685737c
6
+ metadata.gz: 1bdfcb7f1d7f76a6c39ec1898c582f42d177d63ac6ff8da9800f07810ab7ef96e40d1714984c3f9d97df6cacafda01e3d117b7e2957857fb3def77cad10225c0
7
+ data.tar.gz: 8560f6707ea39d5d6298c3a90133b1e2b49d3e00c519f94fb5eb66eee2f42129b53afb1e40b8bd6ce75e1a0be24aee26ce1d7bd19c15d244feed0e9d1d9a8f7e
@@ -1,5 +1,4 @@
1
1
  language: ruby
2
- before_install: gem install bundler
3
2
  bundler_args: --without debug doc tooling
4
3
  rvm:
5
4
  - 2.0
@@ -7,6 +6,9 @@ rvm:
7
6
  - 2.2
8
7
  - 2.3
9
8
  - 2.4
9
+ - 2.5
10
+ - 2.6
11
+ - 2.7
10
12
  - ruby-head
11
13
  - jruby-head
12
14
  - rbx
@@ -14,6 +16,7 @@ rvm:
14
16
  script: "bundle exec rake test"
15
17
  matrix:
16
18
  allow_failures:
19
+ - rvm: 1.9
17
20
  - rvm: ruby-head
18
21
  - rvm: jruby-head
19
22
  - rvm: rbx
data/Gemfile CHANGED
@@ -3,21 +3,23 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  group :debug do
6
- gem 'pry-byebug', '~> 3', platforms: [:mri_20,
7
- :mri_21,
8
- :mri_22,
9
- :mri_23]
10
- gem 'pry-debugger', '~> 0', platforms: :mri_19
6
+ gem 'pry-byebug', '~> 3', platforms: [:mri_20,
7
+ :mri_21,
8
+ :mri_22,
9
+ :mri_23,
10
+ :mri_24,
11
+ :mri_25]
12
+ gem 'pry-debugger', '~> 0', platforms: :mri_19
11
13
  end
12
14
 
13
15
  group :doc do
14
- gem 'yard', '~> 0', require: false
15
- gem 'rdiscount', '~> 2', require: false
16
+ gem 'yard', '>= 0.9.11', '< 1', require: false
17
+ gem 'rdiscount', '~> 2', require: false
16
18
  end
17
19
 
18
20
  group :tooling do
19
- gem 'guard-rspec', '~> 4', require: false
21
+ gem 'guard-rspec', '~> 4', require: false
20
22
  if RUBY_PLATFORM =~ /darwin/i
21
- gem 'rb-fsevent', '~> 0', require: false
23
+ gem 'rb-fsevent', '~> 0', require: false
22
24
  end
23
25
  end
data/History.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Version history for the _Autoloaded_ project
2
2
 
3
+ ## <a name="v1.6.0"></a>v1.6.0, Sun 4/05/2020
4
+
5
+ * Eliminate Ruby warnings about
6
+ [_Binding#source_location_][Ruby-Core-Binding-source_location]
7
+
3
8
  ## <a name="v1.5.1"></a>v1.5.1, Wed 10/18/2017
4
9
 
5
10
  * Eliminate Ruby warnings about undefined instance variables
@@ -40,9 +45,10 @@
40
45
 
41
46
  (First release)
42
47
 
43
- [JRuby]: http://jruby.org
44
- [Ruby-Core-Module-autoload]: http://ruby-doc.org/core/Module.html#method-i-autoload-3F "‘Module#autoload’ method in the Ruby Core Library"
45
- [Ruby-Core-Module-constants]: http://ruby-doc.org/core/Module.html#method-i-constants "‘Module#constants’ method in the Ruby Core Library"
46
- [Ruby-Stdlib-Pathname]: http://ruby-doc.org/stdlib/libdoc/pathname/rdoc/Pathname.html "‘Pathnameclass in the Ruby Standard Library"
47
- [readme]: http://github.com/njonsson/autoloaded/blob/master/README.md "Autoloaded readme"
48
- [inline-documentation]: http://www.rubydoc.info/github/njonsson/autoloaded "Autoloaded inline documentation"
48
+ [JRuby]: https://www.jruby.org/
49
+ [Ruby-Core-Binding-source_location]: https://ruby-doc.org/core/Binding.html#method-i-source_location "‘Binding#source_location’ method in the Ruby Core Library"
50
+ [Ruby-Core-Module-autoload]: https://ruby-doc.org/core/Module.html#method-i-autoload-3F "‘Module#autoload’ method in the Ruby Core Library"
51
+ [Ruby-Core-Module-constants]: https://ruby-doc.org/core/Module.html#method-i-constants "‘Module#constantsmethod in the Ruby Core Library"
52
+ [Ruby-Stdlib-Pathname]: https://ruby-doc.org/stdlib/libdoc/pathname/rdoc/Pathname.html "‘Pathname’ class in the Ruby Standard Library"
53
+ [readme]: https://github.com/njonsson/autoloaded/blob/master/README.md "Autoloaded readme"
54
+ [inline-documentation]: https://www.rubydoc.info/github/njonsson/autoloaded "Autoloaded inline documentation"
data/README.md CHANGED
@@ -6,7 +6,6 @@
6
6
  [![Code Climate quality report] ][Code-Climate-report]
7
7
  [![Code Climate coverage report]][Code-Climate-report]
8
8
 
9
- [![Gemnasium build status] ][Gemnasium-build-status]
10
9
  [![Inch CI build status] ][Inch-CI-build-status]
11
10
  [![RubyGems release] ][RubyGems-release]
12
11
 
@@ -45,7 +44,7 @@ Or you may want to make _Autoloaded_ a dependency of your project by using
45
44
  ```ruby
46
45
  # Gemfile
47
46
 
48
- source 'http://rubygems.org'
47
+ source 'https://rubygems.org'
49
48
 
50
49
  gem 'autoloaded', '~> 1'
51
50
  ```
@@ -510,20 +509,18 @@ Released under the [MIT License][MIT-License].
510
509
  [Travis CI build status]: https://secure.travis-ci.org/njonsson/autoloaded.svg?branch=v1.x
511
510
  [Code Climate quality report]: https://codeclimate.com/github/njonsson/autoloaded/badges/gpa.svg
512
511
  [Code Climate coverage report]: https://codeclimate.com/github/njonsson/autoloaded/badges/coverage.svg
513
- [Gemnasium build status]: https://gemnasium.com/njonsson/autoloaded.svg
514
- [Inch CI build status]: http://inch-ci.org/github/njonsson/autoloaded.svg?branch=v1.x
512
+ [Inch CI build status]: https://www.inch-ci.org/github/njonsson/autoloaded.svg?branch=v1.x
515
513
  [RubyGems release]: https://badge.fury.io/rb/autoloaded.svg
516
514
 
517
- [spider-gear-image]: https://www.flickr.com/photos/dongkwan/4941065976 "spider gear image by Ernesto Andrade"
518
- [Travis-CI-build-status]: http://travis-ci.org/njonsson/autoloaded "Travis CI build status for Autoloaded"
519
- [Code-Climate-report]: http://codeclimate.com/github/njonsson/autoloaded "Code Climate report for Autoloaded"
520
- [Gemnasium-build-status]: http://gemnasium.com/njonsson/autoloaded "Gemnasium build status for Autoloaded"
521
- [Inch-CI-build-status]: http://inch-ci.org/github/njonsson/autoloaded "Inch CI build status for Autoloaded"
522
- [RubyGems-release]: http://rubygems.org/gems/autoloaded "RubyGems release of Autoloaded"
523
- [Ruby-Core-Module-autoload]: http://ruby-doc.org/core/Module.html#method-i-autoload "‘Module#autoloadmethod in the Ruby Core Library"
524
- [ActiveSupport-Autoload]: http://api.rubyonrails.org/classes/ActiveSupport/Autoload.html "‘ActiveSupport::Autoload’ module in the Rails API"
525
- [Bundler]: http://bundler.io
526
- [Ruby-Core-Kernel-autoload]: http://ruby-doc.org/core/Kernel.html#method-i-autoload "‘Kernel#autoload’ method in the Ruby Core Library"
527
- [fork-Autoloaded]: https://github.com/njonsson/autoloaded/fork "Fork the official repository of Autoloaded"
528
- [compare-Autoloaded-branches]: https://github.com/njonsson/autoloaded/compare "Compare branches of Autoloaded repositories"
529
- [MIT-License]: http://github.com/njonsson/autoloaded/blob/master/License.md "MIT License claim for Autoloaded"
515
+ [spider-gear-image]: https://www.flickr.com/photos/dongkwan/4941065976 "spider gear image by Ernesto Andrade"
516
+ [Travis-CI-build-status]: https://www.travis-ci.org/njonsson/autoloaded "Travis CI build status for Autoloaded"
517
+ [Code-Climate-report]: https://codeclimate.com/github/njonsson/autoloaded "Code Climate report for Autoloaded"
518
+ [Inch-CI-build-status]: https://www.inch-ci.org/github/njonsson/autoloaded "Inch CI build status for Autoloaded"
519
+ [RubyGems-release]: https://rubygems.org/gems/autoloaded "RubyGems release of Autoloaded"
520
+ [Ruby-Core-Module-autoload]: https://ruby-doc.org/core/Module.html#method-i-autoload "‘Module#autoload’ method in the Ruby Core Library"
521
+ [ActiveSupport-Autoload]: https://api.rubyonrails.org/classes/ActiveSupport/Autoload.html "‘ActiveSupport::Autoloadmodule in the Rails API"
522
+ [Bundler]: https://bundler.io/
523
+ [Ruby-Core-Kernel-autoload]: https://ruby-doc.org/core/Kernel.html#method-i-autoload "‘Kernel#autoload’ method in the Ruby Core Library"
524
+ [fork-Autoloaded]: https://github.com/njonsson/autoloaded/fork "Fork the official repository of Autoloaded"
525
+ [compare-Autoloaded-branches]: https://github.com/njonsson/autoloaded/compare "Compare branches of Autoloaded repositories"
526
+ [MIT-License]: https://github.com/njonsson/autoloaded/blob/master/License.md "MIT License claim for Autoloaded"
@@ -28,14 +28,17 @@ Gem::Specification.new do |spec|
28
28
  files. You can combine conventions, even putting multiple
29
29
  autoloaded constants in a single source file.
30
30
  end_description
31
- spec.homepage = 'http://njonsson.github.io/autoloaded'
31
+ spec.homepage = 'https://njonsson.github.io/autoloaded'
32
32
  spec.license = 'MIT'
33
33
 
34
34
  spec.required_ruby_version = '~> 2'
35
35
 
36
- spec.add_development_dependency 'bundler', '~> 1'
37
36
  spec.add_development_dependency 'codeclimate-test-reporter', '~> 0'
38
- spec.add_development_dependency 'rake', '~> 10'
37
+ if RUBY_VERSION < '2.2'
38
+ spec.add_development_dependency 'rake', '~> 12'
39
+ else
40
+ spec.add_development_dependency 'rake', '~> 13'
41
+ end
39
42
  spec.add_development_dependency 'rspec', '~> 3.3'
40
43
 
41
44
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
@@ -41,8 +41,8 @@ module Autoloaded
41
41
  # @return [Array of Array] the arguments passed to each +autoload+ statement
42
42
  # made
43
43
  #
44
- # @see http://ruby-doc.org/core/Module.html#method-i-autoload Module#autoload
45
- # @see http://ruby-doc.org/core/Kernel.html#method-i-autoload Kernel#autoload
44
+ # @see https://ruby-doc.org/core/Module.html#method-i-autoload Module#autoload
45
+ # @see https://ruby-doc.org/core/Kernel.html#method-i-autoload Kernel#autoload
46
46
  # @see #from
47
47
  # @see #except
48
48
  # @see #only
@@ -263,11 +263,19 @@ module Autoloaded
263
263
  end
264
264
 
265
265
  def host_source_filename
266
- host_eval '::File.expand_path __FILE__'
266
+ if host_binding.respond_to?(:source_location)
267
+ host_eval "::File.expand_path '#{host_binding.source_location.first}'"
268
+ else
269
+ host_eval '::File.expand_path __FILE__'
270
+ end
267
271
  end
268
272
 
269
273
  def host_source_location
270
- host_eval('[__FILE__, __LINE__]').collect(&:to_s).join ':'
274
+ if host_binding.respond_to?(:source_location)
275
+ host_binding.source_location
276
+ else
277
+ host_eval('[__FILE__, __LINE__]')
278
+ end.collect(&:to_s).join ':'
271
279
  end
272
280
 
273
281
  end
@@ -61,7 +61,7 @@ public
61
61
  # @return [LoadPathedDirectory] the _LoadPathedDirectory_
62
62
  #
63
63
  # @see #path
64
- # @see http://ruby-doc.org/core/Kernel.html#method-i-require Kernel#require
64
+ # @see https://ruby-doc.org/core/Kernel.html#method-i-require Kernel#require
65
65
  def each_source_filename
66
66
  if (ruby_load_path = closest_ruby_load_path)
67
67
  ::Dir.chdir ruby_load_path do
@@ -3,6 +3,6 @@ module Autoloaded
3
3
  # The current version of the _Autoloaded_ project.
4
4
  #
5
5
  # @since 0.0.1
6
- VERSION = '1.5.1'
6
+ VERSION = '1.6.0'
7
7
 
8
8
  end
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autoloaded
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nils Jonsson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-18 00:00:00.000000000 Z
11
+ date: 2020-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '1'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: codeclimate-test-reporter
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +30,14 @@ dependencies:
44
30
  requirements:
45
31
  - - "~>"
46
32
  - !ruby/object:Gem::Version
47
- version: '10'
33
+ version: '13'
48
34
  type: :development
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
38
  - - "~>"
53
39
  - !ruby/object:Gem::Version
54
- version: '10'
40
+ version: '13'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: rspec
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -111,7 +97,7 @@ files:
111
97
  - lib/tasks/lib_each.rake
112
98
  - lib/tasks/spec.rake
113
99
  - lib/tasks/spec_each.rake
114
- homepage: http://njonsson.github.io/autoloaded
100
+ homepage: https://njonsson.github.io/autoloaded
115
101
  licenses:
116
102
  - MIT
117
103
  metadata: {}
@@ -130,8 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
116
  - !ruby/object:Gem::Version
131
117
  version: '0'
132
118
  requirements: []
133
- rubyforge_project:
134
- rubygems_version: 2.6.14
119
+ rubygems_version: 3.1.2
135
120
  signing_key:
136
121
  specification_version: 4
137
122
  summary: Eliminates the drudgery of handcrafting a Ruby Core library `autoload` statement