named_imports 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 97be320b89b4ac114bed6fb578408e92469e03ad329a9039f5cd1f3ede527d7d
4
+ data.tar.gz: 746036f1c888ea3c5ba714449cbe73619c510c4c0cc9f0813c63376fdad446ef
5
+ SHA512:
6
+ metadata.gz: 473f6a20a5a5c2a8a6161750c4137a2ba5ff1b0bed490de4193fe89a0b50216ee7e59a975109f65ebc2113808bc646cc837cb16749a62284a8f06b19ebccdabd
7
+ data.tar.gz: 915c2555d3e2370d52388b8954bd254c4511f1e05c51e73687f3dacd24ddf19dc77678a53160f80d7e1b0a68c7869bf8663f52fd5e3f93f0208835d115cb3cd6
@@ -0,0 +1,20 @@
1
+ name: Ruby
2
+
3
+ on:
4
+ - push
5
+ - pull_request
6
+
7
+ jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v2
12
+ - name: Set up Ruby
13
+ uses: ruby/setup-ruby@v1
14
+ with:
15
+ ruby-version: 2.7.2
16
+ - name: Run the default task
17
+ run: |
18
+ gem install bundler -v 2.2.11
19
+ bundle install
20
+ bundle exec rake
data/.gitignore ADDED
@@ -0,0 +1,70 @@
1
+ # generic stuff
2
+ .env
3
+ *.gem
4
+ *.rbc
5
+ log/*.log
6
+ /.config
7
+ /InstalledFiles
8
+ /pkg/
9
+ /tmp/
10
+
11
+ # testy stuff
12
+ .rspec
13
+ .rspec_status
14
+ *.orig
15
+ /coverage/
16
+ /coverage/
17
+ /db/*.sqlite3
18
+ /db/*.sqlite3-[0-9]*
19
+ /db/*.sqlite3-journal
20
+ /public/system
21
+ /spec/examples.txt
22
+ /spec/reports/
23
+ /spec/tmp
24
+ /test/tmp/
25
+ /test/version_tmp/
26
+ capybara-*.html
27
+ pickle-email-*.html
28
+ rerun.txt
29
+ test/dummy/db/*.sqlite3
30
+ test/dummy/db/*.sqlite3-journal
31
+ test/dummy/log/*.log
32
+ test/dummy/node_modules/
33
+ test/dummy/storage/
34
+ test/dummy/tmp/
35
+ test/dummy/yarn-error.log
36
+
37
+ # debuggy stuff
38
+ .byebug_history
39
+
40
+ ## doccy stuff
41
+ /.yardoc/
42
+ /_yardoc/
43
+ /doc/
44
+ /rdoc/
45
+
46
+ ## bundly stuff
47
+ /.bundle/
48
+ /vendor/bundle
49
+ /lib/bundler/man/
50
+
51
+ # "for a library or gem, you might want to ignore these files since the code is
52
+ # intended to run in multiple environments"
53
+ Gemfile.lock
54
+ .ruby-version
55
+ .ruby-gemset
56
+
57
+ # rvmmy stuff
58
+ .rvmrc
59
+
60
+ # editory stuff
61
+ .idea
62
+ .vscode
63
+ *.rdb
64
+
65
+ # systemy stuff
66
+ *.swm
67
+ *.swn
68
+ *.swo
69
+ *.swp
70
+ *.DS_Store
data/.rubocop.yml ADDED
@@ -0,0 +1,96 @@
1
+ require:
2
+ - rubocop-performance
3
+ - rubocop-rspec
4
+ - rubocop-rake
5
+
6
+ # Globals
7
+
8
+ AllCops:
9
+ NewCops: enable
10
+
11
+ # Layout
12
+
13
+ Layout/LineLength:
14
+ Max: 120
15
+ Exclude:
16
+ - 'spec/**/*_spec.rb'
17
+
18
+ Layout/EndAlignment:
19
+ EnforcedStyleAlignWith: variable
20
+
21
+ Layout/FirstArrayElementIndentation:
22
+ EnforcedStyle: consistent
23
+
24
+ # Metrics
25
+
26
+ Metrics/AbcSize:
27
+ CountRepeatedAttributes: false
28
+ Exclude:
29
+ - 'spec/**/*_spec.rb'
30
+
31
+ Metrics/BlockLength:
32
+ Exclude:
33
+ - 'spec/**/*_spec.rb'
34
+
35
+ Metrics/ClassLength:
36
+ Max: 150
37
+ CountComments: false
38
+ CountAsOne:
39
+ - array
40
+ - hash
41
+ - heredoc
42
+ Exclude:
43
+ - 'spec/**/*_spec.rb'
44
+
45
+ Metrics/MethodLength:
46
+ Max: 20
47
+ CountComments: false
48
+ CountAsOne:
49
+ - array
50
+ - hash
51
+ - heredoc
52
+
53
+ Metrics/ModuleLength:
54
+ Max: 150
55
+ CountComments: false
56
+ CountAsOne:
57
+ - array
58
+ - hash
59
+ - heredoc
60
+ Exclude:
61
+ - 'spec/**/*_spec.rb'
62
+
63
+ # Rspec
64
+
65
+ RSpec/ExampleLength:
66
+ Max: 25
67
+
68
+ RSpec/MessageSpies:
69
+ Enabled: false
70
+
71
+ RSpec/MultipleExpectations:
72
+ Enabled: false
73
+
74
+ RSpec/NestedGroups:
75
+ Max: 10
76
+
77
+ # Style
78
+
79
+ Style/DoubleNegation:
80
+ Enabled: false
81
+
82
+ Style/ExpandPathArguments:
83
+ Exclude:
84
+ - 'adornable.gemspec'
85
+
86
+ Style/StringLiterals:
87
+ Enabled: false
88
+
89
+ Style/TrailingCommaInArguments:
90
+ EnforcedStyleForMultiline: consistent_comma
91
+
92
+ Style/TrailingCommaInArrayLiteral:
93
+ EnforcedStyleForMultiline: consistent_comma
94
+
95
+ Style/TrailingCommaInHashLiteral:
96
+ EnforcedStyleForMultiline: consistent_comma
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2021-03-16
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at kjleitz@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in named_imports.gemspec
6
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 Keegan Leitz
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,165 @@
1
+ # NamedImports
2
+
3
+ Ever look at a class in a Ruby file and wonder _"Where the hell did that come from?"_ If you have, then this might ease your pain.
4
+
5
+ ## Installation
6
+
7
+ ### Locally (to your application)
8
+
9
+ Add the gem to your application's `Gemfile`:
10
+
11
+ ```ruby
12
+ gem 'named_imports'
13
+ ```
14
+
15
+ ...and then run:
16
+
17
+ ```bash
18
+ bundle install
19
+ ```
20
+
21
+ ### Globally (to your system)
22
+
23
+ Alternatively, install it globally:
24
+
25
+ ```bash
26
+ gem install named_imports
27
+ ```
28
+
29
+ ## Usage
30
+
31
+ Require the `named_imports` gem in the entrypoint of your project, or at whatever point you know you will need named imports in Ruby files evaluated after that point:
32
+
33
+
34
+ ```rb
35
+ require 'named_imports'
36
+ ```
37
+
38
+ Then, use named imports:
39
+
40
+ ```rb
41
+ # ~/your_project/lib/foo.rb
42
+
43
+ class Foo
44
+ def self.some_bool
45
+ true
46
+ end
47
+ end
48
+ ```
49
+
50
+ ```rb
51
+ # ~/your_project/lib/example.rb
52
+
53
+ from 'foo', import { Foo }
54
+
55
+ Foo.some_bool
56
+ #=> true
57
+ ```
58
+
59
+ You can also specify which constant to import, which provides some safety that you don't try to access constants you haven't specified:
60
+
61
+ ```rb
62
+ # ~/your_project/lib/whatever/bar_and_baz.rb
63
+
64
+ class Bar
65
+ def self.some_int
66
+ 123
67
+ end
68
+ end
69
+
70
+ class Baz
71
+ def self.some_str
72
+ "hi"
73
+ end
74
+ end
75
+ ```
76
+
77
+ ```rb
78
+ # ~/your_project/lib/example.rb
79
+
80
+ from './whatever/bar_and_baz', import { Baz }
81
+
82
+ Bar.some_int
83
+ #=> NameError (uninitialized constant Bar)
84
+
85
+ Baz.some_str
86
+ #=> "hi"
87
+ ```
88
+
89
+ > **Note:** Currently, non-specified constants defined in the imported file _will_ be available _after_ you've used one (or more) of the constants you specified in the import statement. Working on it!
90
+
91
+ You can import multiple constants as well, by separating them with a semicolon in the `import` block:
92
+
93
+ ```rb
94
+ # ~/your_project/lib/whatever/bam_and_bop.rb
95
+
96
+ class Bam
97
+ def self.some_ary
98
+ []
99
+ end
100
+ end
101
+
102
+ class Bop
103
+ def self.some_hash
104
+ {}
105
+ end
106
+ end
107
+ ```
108
+
109
+ ```rb
110
+ # ~/your_project/lib/example.rb
111
+
112
+ from 'whatever/bam_and_bop.rb', import { Bam; Bop }
113
+
114
+ Bam.some_ary
115
+ #=> []
116
+
117
+ Bop.some_hash
118
+ #=> {}
119
+ ```
120
+
121
+ ## TODO
122
+
123
+ - [x] named constant imports
124
+ - [x] multiple constant imports
125
+ - [ ] top-level function imports
126
+ - [x] namespace should not be polluted with non-specified constants (before the specified import is referenced/used)
127
+ - [ ] namespace should not be polluted with non-specified constants (after the specified import is referenced/used)
128
+
129
+ ## Development
130
+
131
+ ### Install dependencies
132
+
133
+ ```bash
134
+ bin/setup
135
+ ```
136
+
137
+ ### Run the tests
138
+
139
+ ```bash
140
+ rake spec
141
+ ```
142
+
143
+ ### Run the linter
144
+
145
+ ```bash
146
+ rubocop
147
+ ```
148
+
149
+ ### Create release
150
+
151
+ ```
152
+ rake release
153
+ ```
154
+
155
+ ## Contributing
156
+
157
+ Bug reports and pull requests for this project are welcome at its [GitHub page](https://github.com/kjleitz/named_imports). If you choose to contribute, please be nice so I don't have to run out of bubblegum, etc.
158
+
159
+ ## License
160
+
161
+ This project is open source, under the terms of the [MIT license.](https://github.com/kjleitz/named_imports/blob/master/LICENSE)
162
+
163
+ ## Code of Conduct
164
+
165
+ Everyone interacting in the NamedImports project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/kjleitz/named_imports/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "named_imports"
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require "irb"
15
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "named_imports/version"
4
+
5
+ module NamedImports
6
+ class Error < StandardError; end
7
+
8
+ class << self
9
+ def from(path, constants)
10
+ ext = %r{[^/]+\.[^/]+$}.match?(path) ? "" : ".rb"
11
+ path_with_ext = "#{path}#{ext}"
12
+ caller_dir = File.dirname(caller(2..2).first)
13
+ full_path = File.expand_path(path_with_ext, caller_dir)
14
+
15
+ constants.each do |constant_name|
16
+ Object.send(:remove_const, constant_name.to_sym)
17
+ Object.autoload constant_name.to_sym, full_path
18
+ end
19
+ end
20
+
21
+ def import
22
+ constants = []
23
+
24
+ begin
25
+ yield
26
+ rescue NameError => e
27
+ raise e unless /uninitialized constant /.match?(e.message)
28
+
29
+ constant_name = e.message.gsub(/uninitialized constant /, '').to_s
30
+ already_there = constants.include?(constant_name)
31
+
32
+ unless already_there
33
+ constants << constant_name
34
+ Object.const_set(constant_name, nil)
35
+ end
36
+
37
+ retry
38
+ end
39
+
40
+ constants
41
+ end
42
+ end
43
+
44
+ Kernel.define_method(:from) do |path, constants|
45
+ NamedImports.from(path, constants)
46
+ end
47
+
48
+ Kernel.define_method(:import) do |&block|
49
+ NamedImports.import(&block)
50
+ end
51
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module NamedImports
4
+ VERSION = "0.1.0"
5
+ end
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/named_imports/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "named_imports"
7
+ spec.version = NamedImports::VERSION
8
+ spec.authors = ["Keegan Leitz"]
9
+ spec.email = ["kjleitz@gmail.com"]
10
+
11
+ spec.summary = "Named imports for Ruby"
12
+ spec.description = "Stop asking where that thing came from."
13
+ spec.homepage = "https://github.com/kjleitz/named_imports"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
16
+
17
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
18
+ spec.metadata["homepage_uri"] = spec.homepage
19
+ spec.metadata["source_code_uri"] = "https://github.com/kjleitz/named_imports"
20
+ spec.metadata["changelog_uri"] = "https://github.com/kjleitz/named_imports/blob/main/CHANGELOG.md"
21
+
22
+ # Specify which files should be added to the gem when it is released.
23
+ # `git ls-files -z` loads the files in the RubyGem that are tracked in git.
24
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
25
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
26
+ end
27
+
28
+ spec.bindir = "exe"
29
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
30
+ spec.require_paths = ["lib"]
31
+
32
+ spec.add_development_dependency "bundler", "~> 2.2"
33
+ spec.add_development_dependency "rake", "~> 13.0"
34
+ spec.add_development_dependency "rspec", "~> 3.0"
35
+ spec.add_development_dependency "rubocop", "~> 1.10"
36
+ spec.add_development_dependency "rubocop-performance", "~> 1.9"
37
+ spec.add_development_dependency "rubocop-rake", "~> 0.5"
38
+ spec.add_development_dependency "rubocop-rspec", "~> 2.2"
39
+ spec.add_development_dependency "solargraph"
40
+ end
metadata ADDED
@@ -0,0 +1,174 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: named_imports
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Keegan Leitz
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2021-03-17 00:00:00.000000000 Z
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: '2.2'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '13.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '13.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.10'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.10'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop-performance
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.9'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.9'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop-rake
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.5'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.5'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop-rspec
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '2.2'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '2.2'
111
+ - !ruby/object:Gem::Dependency
112
+ name: solargraph
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ description: Stop asking where that thing came from.
126
+ email:
127
+ - kjleitz@gmail.com
128
+ executables: []
129
+ extensions: []
130
+ extra_rdoc_files: []
131
+ files:
132
+ - ".github/workflows/main.yml"
133
+ - ".gitignore"
134
+ - ".rspec"
135
+ - ".rubocop.yml"
136
+ - CHANGELOG.md
137
+ - CODE_OF_CONDUCT.md
138
+ - Gemfile
139
+ - LICENSE
140
+ - README.md
141
+ - Rakefile
142
+ - bin/console
143
+ - bin/setup
144
+ - lib/named_imports.rb
145
+ - lib/named_imports/version.rb
146
+ - named_imports.gemspec
147
+ homepage: https://github.com/kjleitz/named_imports
148
+ licenses:
149
+ - MIT
150
+ metadata:
151
+ allowed_push_host: https://rubygems.org
152
+ homepage_uri: https://github.com/kjleitz/named_imports
153
+ source_code_uri: https://github.com/kjleitz/named_imports
154
+ changelog_uri: https://github.com/kjleitz/named_imports/blob/main/CHANGELOG.md
155
+ post_install_message:
156
+ rdoc_options: []
157
+ require_paths:
158
+ - lib
159
+ required_ruby_version: !ruby/object:Gem::Requirement
160
+ requirements:
161
+ - - ">="
162
+ - !ruby/object:Gem::Version
163
+ version: 2.4.0
164
+ required_rubygems_version: !ruby/object:Gem::Requirement
165
+ requirements:
166
+ - - ">="
167
+ - !ruby/object:Gem::Version
168
+ version: '0'
169
+ requirements: []
170
+ rubygems_version: 3.1.4
171
+ signing_key:
172
+ specification_version: 4
173
+ summary: Named imports for Ruby
174
+ test_files: []