ruby2_keywords 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: d087f14622c751687a19b8ce94f37974cb4e891a2492ad23d6f488b739e41862
4
+ data.tar.gz: 85eb1294732469b1c8db4d0b4c77db3cc7fa69c6cb9bec46626f1a0b06e44775
5
+ SHA512:
6
+ metadata.gz: 22580d15c86cd7408a55624c114a8ecaa07cd6d3c083a9a9324216ae8736842aa08f0f54b0b15f1b77e51b77a16129e5b178ed5b439c58c14bf05f32fbe01f81
7
+ data.tar.gz: 7a64c067164bf3a352826a6c1aa381437328b926758591e6098b2af1f0862e94c88c5d2d7dce6b62ec19dc4447b72aec82232c2cffdf39c89893cca69831e89a
@@ -0,0 +1,39 @@
1
+ # ruby2_keywords
2
+
3
+ Provides empty `Module#ruby2_keywords` method, for the forward
4
+ source-level compatibility against ruby2.7 and ruby3.
5
+
6
+ ## Installation
7
+
8
+ Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem 'ruby2_keywords'
12
+ ```
13
+
14
+ And then execute:
15
+
16
+ $ bundle
17
+
18
+ Or install it yourself as:
19
+
20
+ $ gem install ruby2_keywords
21
+
22
+ ## Usage
23
+
24
+ ```ruby
25
+ require 'ruby2_keywords'
26
+
27
+ module YourModule
28
+ ruby2_keywords def oldstyle_keywords(options = {})
29
+ end
30
+ end
31
+ ```
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://bugs.ruby-lang.org.
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [2-Clause BSD License](https://opensource.org/licenses/BSD-2-Clause).
@@ -0,0 +1,8 @@
1
+ class Module
2
+ unless respond_to?(:ruby2_keywords, true)
3
+ private
4
+ def ruby2_keywords(*)
5
+ # nil
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,16 @@
1
+ version = "0.0.0"
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = "ruby2_keywords"
5
+ s.version = version
6
+ s.summary = "Shim library for Module#ruby2_keywords"
7
+ s.homepage = "https://www.ruby-rang.org/"
8
+ s.licenses = ["Ruby"]
9
+ s.authors = ["Nobuyoshi Nakada"]
10
+ s.require_paths = ["lib"]
11
+ s.files = [
12
+ "README.md",
13
+ "lib/ruby2_keywords.rb",
14
+ "ruby2_keywords.gemspec",
15
+ ]
16
+ end
metadata ADDED
@@ -0,0 +1,45 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ruby2_keywords
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Nobuyoshi Nakada
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-10-22 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email:
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - README.md
20
+ - lib/ruby2_keywords.rb
21
+ - ruby2_keywords.gemspec
22
+ homepage: https://www.ruby-rang.org/
23
+ licenses:
24
+ - Ruby
25
+ metadata: {}
26
+ post_install_message:
27
+ rdoc_options: []
28
+ require_paths:
29
+ - lib
30
+ required_ruby_version: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ required_rubygems_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ requirements: []
41
+ rubygems_version: 3.1.0.pre2
42
+ signing_key:
43
+ specification_version: 4
44
+ summary: Shim library for Module#ruby2_keywords
45
+ test_files: []