autoloaded 2.2.1 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b0374f06d830e6f6fd9374e49328e40e5ef21752
4
- data.tar.gz: 12f8ef7aa7f296d736bc4b5a1dcd10f23935d1c1
2
+ SHA256:
3
+ metadata.gz: 7edfd1d86676b7b8119398b3bf4da809a4a54b882d127aa285d395c9c6cc12d7
4
+ data.tar.gz: c4665c0185aab569eb8e45d78c2f4d4f872a0b7d7005b6cbc4b3c1be6618ea3e
5
5
  SHA512:
6
- metadata.gz: 9b48d6d8f4281986e1069497dca2c54cbcd6b1446fd11e6436df4a9cfd3658a449b4d099fcf42d3cfc715b0f04223ef8a21a81778f49800c611253b62d57b4f9
7
- data.tar.gz: fcf9518c24572378c5a2cf3bbf1084b22675ef55139c431ae3cf1999aeddc23e171dd28218752846918c81642f2aeb086d6cb803f618173c33c7ae9cb4ccb939
6
+ metadata.gz: 77fb3a56932532e6ee56e8c2cba6289795785f1ae02f37412c93648e9dcc30a4df4b46566ae8c892b237b4f623083843f792c00d88f6bf8ebcd42f306d3378bd
7
+ data.tar.gz: 6ee5d63e993ca94369a6adb3c8ee200e3c95d59fb015984f1832206e3dbc1997896d516e5ae046ab5480189923c14de674cfaf5d4460b2a3fc4affd41f37e0d7
@@ -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
  - 1.9
@@ -8,6 +7,9 @@ rvm:
8
7
  - 2.2
9
8
  - 2.3
10
9
  - 2.4
10
+ - 2.5
11
+ - 2.6
12
+ - 2.7
11
13
  - ruby-head
12
14
  - jruby-head
13
15
  - rbx
@@ -15,6 +17,7 @@ rvm:
15
17
  script: "bundle exec rake test"
16
18
  matrix:
17
19
  allow_failures:
20
+ - rvm: 1.9
18
21
  - rvm: ruby-head
19
22
  - rvm: jruby-head
20
23
  - rvm: rbx
data/Gemfile CHANGED
@@ -3,25 +3,27 @@ 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 :development do
14
- gem 'json', '~> 2', require: false
16
+ gem 'json', '~> 2', require: false
15
17
  end
16
18
 
17
19
  group :doc do
18
- gem 'yard', '~> 0', require: false
19
- gem 'rdiscount', '~> 2', require: false
20
+ gem 'yard', '>= 0.9.11', '< 1', require: false
21
+ gem 'rdiscount', '~> 2', require: false
20
22
  end
21
23
 
22
24
  group :tooling do
23
- gem 'guard-rspec', '~> 4', require: false
25
+ gem 'guard-rspec', '~> 4', require: false
24
26
  if RUBY_PLATFORM =~ /darwin/i
25
- gem 'rb-fsevent', '~> 0', require: false
27
+ gem 'rb-fsevent', '~> 0', require: false
26
28
  end
27
29
  end
data/History.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Version history for the _Autoloaded_ project
2
2
 
3
+ ## <a name="v2.3.0"></a>v2.3.0 and <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="v2.2.1"></a>v2.2.1 and <a name="v1.5.1"></a>v1.5.1, Wed 10/18/2017
4
9
 
5
10
  * Eliminate Ruby warnings about undefined instance variables
@@ -45,9 +50,10 @@
45
50
 
46
51
  (First release)
47
52
 
48
- [JRuby]: http://jruby.org
49
- [Ruby-Core-Module-autoload]: http://ruby-doc.org/core/Module.html#method-i-autoload-3F "‘Module#autoload’ method in the Ruby Core Library"
50
- [Ruby-Core-Module-constants]: http://ruby-doc.org/core/Module.html#method-i-constants "‘Module#constants’ method in the Ruby Core Library"
51
- [Ruby-Stdlib-Pathname]: http://ruby-doc.org/stdlib/libdoc/pathname/rdoc/Pathname.html "‘Pathnameclass in the Ruby Standard Library"
52
- [readme]: http://github.com/njonsson/autoloaded/blob/master/README.md "Autoloaded readme"
53
- [inline-documentation]: http://www.rubydoc.info/github/njonsson/autoloaded "Autoloaded inline documentation"
53
+ [JRuby]: https://www.jruby.org/
54
+ [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"
55
+ [Ruby-Core-Module-autoload]: https://ruby-doc.org/core/Module.html#method-i-autoload-3F "‘Module#autoload’ method in the Ruby Core Library"
56
+ [Ruby-Core-Module-constants]: https://ruby-doc.org/core/Module.html#method-i-constants "‘Module#constantsmethod in the Ruby Core Library"
57
+ [Ruby-Stdlib-Pathname]: https://ruby-doc.org/stdlib/libdoc/pathname/rdoc/Pathname.html "‘Pathname’ class in the Ruby Standard Library"
58
+ [readme]: https://github.com/njonsson/autoloaded/blob/master/README.md "Autoloaded readme"
59
+ [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', '~> 2'
51
50
  ```
@@ -514,20 +513,18 @@ Released under the [MIT License][MIT-License].
514
513
  [Travis CI build status]: https://secure.travis-ci.org/njonsson/autoloaded.svg?branch=master
515
514
  [Code Climate quality report]: https://codeclimate.com/github/njonsson/autoloaded/badges/gpa.svg
516
515
  [Code Climate coverage report]: https://codeclimate.com/github/njonsson/autoloaded/badges/coverage.svg
517
- [Gemnasium build status]: https://gemnasium.com/njonsson/autoloaded.svg
518
- [Inch CI build status]: http://inch-ci.org/github/njonsson/autoloaded.svg?branch=master
516
+ [Inch CI build status]: https://www.inch-ci.org/github/njonsson/autoloaded.svg?branch=master
519
517
  [RubyGems release]: https://badge.fury.io/rb/autoloaded.svg
520
518
 
521
- [spider-gear-image]: https://www.flickr.com/photos/dongkwan/4941065976 "spider gear image by Ernesto Andrade"
522
- [Travis-CI-build-status]: http://travis-ci.org/njonsson/autoloaded "Travis CI build status for Autoloaded"
523
- [Code-Climate-report]: http://codeclimate.com/github/njonsson/autoloaded "Code Climate report for Autoloaded"
524
- [Gemnasium-build-status]: http://gemnasium.com/njonsson/autoloaded "Gemnasium build status for Autoloaded"
525
- [Inch-CI-build-status]: http://inch-ci.org/github/njonsson/autoloaded "Inch CI build status for Autoloaded"
526
- [RubyGems-release]: http://rubygems.org/gems/autoloaded "RubyGems release of Autoloaded"
527
- [Ruby-Core-Module-autoload]: http://ruby-doc.org/core/Module.html#method-i-autoload "‘Module#autoloadmethod in the Ruby Core Library"
528
- [ActiveSupport-Autoload]: http://api.rubyonrails.org/classes/ActiveSupport/Autoload.html "‘ActiveSupport::Autoload’ module in the Rails API"
529
- [Bundler]: http://bundler.io
530
- [Ruby-Core-Kernel-autoload]: http://ruby-doc.org/core/Kernel.html#method-i-autoload "‘Kernel#autoload’ method in the Ruby Core Library"
531
- [fork-Autoloaded]: https://github.com/njonsson/autoloaded/fork "Fork the official repository of Autoloaded"
532
- [compare-Autoloaded-branches]: https://github.com/njonsson/autoloaded/compare "Compare branches of Autoloaded repositories"
533
- [MIT-License]: http://github.com/njonsson/autoloaded/blob/master/License.md "MIT License claim for Autoloaded"
519
+ [spider-gear-image]: https://www.flickr.com/photos/dongkwan/4941065976 "spider gear image by Ernesto Andrade"
520
+ [Travis-CI-build-status]: https://www.travis-ci.org/njonsson/autoloaded "Travis CI build status for Autoloaded"
521
+ [Code-Climate-report]: https://codeclimate.com/github/njonsson/autoloaded "Code Climate report for Autoloaded"
522
+ [Inch-CI-build-status]: https://www.inch-ci.org/github/njonsson/autoloaded "Inch CI build status for Autoloaded"
523
+ [RubyGems-release]: https://rubygems.org/gems/autoloaded "RubyGems release of Autoloaded"
524
+ [Ruby-Core-Module-autoload]: https://ruby-doc.org/core/Module.html#method-i-autoload "‘Module#autoload’ method in the Ruby Core Library"
525
+ [ActiveSupport-Autoload]: https://api.rubyonrails.org/classes/ActiveSupport/Autoload.html "‘ActiveSupport::Autoloadmodule in the Rails API"
526
+ [Bundler]: https://bundler.io/
527
+ [Ruby-Core-Kernel-autoload]: https://ruby-doc.org/core/Kernel.html#method-i-autoload "‘Kernel#autoload’ method in the Ruby Core Library"
528
+ [fork-Autoloaded]: https://github.com/njonsson/autoloaded/fork "Fork the official repository of Autoloaded"
529
+ [compare-Autoloaded-branches]: https://github.com/njonsson/autoloaded/compare "Compare branches of Autoloaded repositories"
530
+ [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 = '>= 1.9', '< 3'
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 = '2.2.1'
6
+ VERSION = '2.3.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: 2.2.1
4
+ version: 2.3.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
@@ -107,7 +93,7 @@ files:
107
93
  - lib/tasks/lib_each.rake
108
94
  - lib/tasks/spec.rake
109
95
  - lib/tasks/spec_each.rake
110
- homepage: http://njonsson.github.io/autoloaded
96
+ homepage: https://njonsson.github.io/autoloaded
111
97
  licenses:
112
98
  - MIT
113
99
  metadata: {}
@@ -129,8 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
115
  - !ruby/object:Gem::Version
130
116
  version: '0'
131
117
  requirements: []
132
- rubyforge_project:
133
- rubygems_version: 2.6.14
118
+ rubygems_version: 3.1.2
134
119
  signing_key:
135
120
  specification_version: 4
136
121
  summary: Eliminates the drudgery of handcrafting a Ruby Core library `autoload` statement