ruby2_keywords 0.0.0 → 0.0.1

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
2
  SHA256:
3
- metadata.gz: d087f14622c751687a19b8ce94f37974cb4e891a2492ad23d6f488b739e41862
4
- data.tar.gz: 85eb1294732469b1c8db4d0b4c77db3cc7fa69c6cb9bec46626f1a0b06e44775
3
+ metadata.gz: d8a4b61fa69c93ceb15436b2cf8c00d69317d42dde1311c5c6f03665047d18cb
4
+ data.tar.gz: 6d6d0948ba2c9e2e3541dd8e250afb3b66a6c325ce2b8ec5ca5d4edc8e18c814
5
5
  SHA512:
6
- metadata.gz: 22580d15c86cd7408a55624c114a8ecaa07cd6d3c083a9a9324216ae8736842aa08f0f54b0b15f1b77e51b77a16129e5b178ed5b439c58c14bf05f32fbe01f81
7
- data.tar.gz: 7a64c067164bf3a352826a6c1aa381437328b926758591e6098b2af1f0862e94c88c5d2d7dce6b62ec19dc4447b72aec82232c2cffdf39c89893cca69831e89a
6
+ metadata.gz: 619d7f7699e5b1535e928068c05634ffd85bcb64e95fda9b40a9d686128b56c25d239e7878adfaf76db31b1f1177a7bd2747ae5f6c1a554c759e5d2c9e533d5e
7
+ data.tar.gz: 10e9583bef2197cfcadc1b5ef35c375429c85750d200ac15a2010c5a3f97e724238bde3c462fcc6827135c06af48a8fe98616b49f449c3139040a51cf78a2c31
data/README.md CHANGED
@@ -21,6 +21,8 @@ Or install it yourself as:
21
21
 
22
22
  ## Usage
23
23
 
24
+ For class/module instance methods:
25
+
24
26
  ```ruby
25
27
  require 'ruby2_keywords'
26
28
 
@@ -30,6 +32,15 @@ module YourModule
30
32
  end
31
33
  ```
32
34
 
35
+ For global methods:
36
+
37
+ ```ruby
38
+ require 'ruby2_keywords'
39
+
40
+ ruby2_keywords def oldstyle_keywords(options = {})
41
+ end
42
+ ```
43
+
33
44
  ## Contributing
34
45
 
35
46
  Bug reports and pull requests are welcome on GitHub at https://bugs.ruby-lang.org.
@@ -6,3 +6,10 @@ class Module
6
6
  end
7
7
  end
8
8
  end
9
+
10
+ main = TOPLEVEL_BINDING.receiver
11
+ unless main.respond_to?(:ruby2_keywords, true)
12
+ def main.ruby2_keywords(*)
13
+ # nil
14
+ end
15
+ end
@@ -1,4 +1,4 @@
1
- version = "0.0.0"
1
+ version = "0.0.1"
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "ruby2_keywords"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby2_keywords
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nobuyoshi Nakada
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-22 00:00:00.000000000 Z
11
+ date: 2019-12-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -38,7 +38,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
38
38
  - !ruby/object:Gem::Version
39
39
  version: '0'
40
40
  requirements: []
41
- rubygems_version: 3.1.0.pre2
41
+ rubygems_version: 3.1.0.pre3
42
42
  signing_key:
43
43
  specification_version: 4
44
44
  summary: Shim library for Module#ruby2_keywords