lexically 0.1.0 → 0.1.1
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 +4 -4
- data/.github/workflows/ruby.yml +20 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lexically.gemspec +2 -2
- data/lib/lexically/version.rb +1 -1
- data/lib/lexically.rb +3 -3
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0e94f20a0153f54b289dd51a1609523af8204b5341098951764632877de2676
|
4
|
+
data.tar.gz: a9a27aef0cd9d6f3dc1d5a50ff245814984973576c8a41b5258e35b2a5e2fe57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0121d52acaed009ff829f77bce9b642e2ebd99914a460e87f6b4ad8ab4956cc32b60649b26389ebb5e0be90798e887137cb71c5841147d6b2f66bf9d192ab6af
|
7
|
+
data.tar.gz: e867966820451a7af51f610f5e86438a6aac791f208649e3f0c0f2f97e8430f60243ffd18df03add2bbddac5ea5ef9640a613973bff9460b1796217c038b8e44
|
@@ -0,0 +1,20 @@
|
|
1
|
+
name: Ruby
|
2
|
+
|
3
|
+
on: [push]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
build:
|
7
|
+
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
|
10
|
+
steps:
|
11
|
+
- uses: actions/checkout@v1
|
12
|
+
- name: Set up Ruby 2.6
|
13
|
+
uses: actions/setup-ruby@v1
|
14
|
+
with:
|
15
|
+
ruby-version: 2.6.x
|
16
|
+
- name: Build and test with Rake
|
17
|
+
run: |
|
18
|
+
gem install bundler
|
19
|
+
bundle install --jobs 4 --retry 3
|
20
|
+
bundle exec rake
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Lexically
|
2
2
|
|
3
|
-
Using the refinements mechanism, This gem allows you to mark methods with the visibility like `private`, but it's more like Java's or PHP's `private`. i.e. `lexically`
|
3
|
+
Using the refinements mechanism, This gem allows you to mark methods with the visibility like `private`, but it's more like Java's or PHP's `private`. i.e. `lexically` defines methods cannot be called from derived class.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
data/lexically.gemspec
CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["nonowarn"]
|
10
10
|
spec.email = ["nonowarn@gmail.com"]
|
11
11
|
|
12
|
-
spec.summary = %q{
|
13
|
-
spec.description = %q{Using refinements
|
12
|
+
spec.summary = %q{Defining methods cannot be called from derived class.}
|
13
|
+
spec.description = %q{Using the refinements mechanism, This gem allows you to mark methods with the visibility like `private`, but it's more like Java's or PHP's `private`. i.e. `lexically` defines methods cannot be called from derived class.}
|
14
14
|
spec.homepage = "http://nonowarn.jp"
|
15
15
|
|
16
16
|
# Specify which files should be added to the gem when it is released.
|
data/lib/lexically/version.rb
CHANGED
data/lib/lexically.rb
CHANGED
@@ -2,7 +2,7 @@ require "lexically/version"
|
|
2
2
|
|
3
3
|
# Provides `lexically` method by including this module. Methods
|
4
4
|
# defined inside of `lexically`-block have similar visibility to
|
5
|
-
# private method, But it's not called fron derived classes
|
5
|
+
# private method, But it's not called fron derived classes.
|
6
6
|
#
|
7
7
|
# @example Basic usage
|
8
8
|
# class C
|
@@ -35,10 +35,10 @@ module Lexically
|
|
35
35
|
|
36
36
|
module ClassMethods
|
37
37
|
|
38
|
-
# Returns a refinement refines the class itself.
|
38
|
+
# Returns a refinement refines the class or the module itself.
|
39
39
|
#
|
40
40
|
# The refinement creates its scope cannot be visible from the
|
41
|
-
# outside of the class.
|
41
|
+
# outside of the class or the module.
|
42
42
|
#
|
43
43
|
# @return [Module]
|
44
44
|
def lexically(&block)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lexically
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nonowarn
|
@@ -52,14 +52,16 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '5.0'
|
55
|
-
description: Using refinements
|
56
|
-
|
55
|
+
description: Using the refinements mechanism, This gem allows you to mark methods
|
56
|
+
with the visibility like `private`, but it's more like Java's or PHP's `private`.
|
57
|
+
i.e. `lexically` defines methods cannot be called from derived class.
|
57
58
|
email:
|
58
59
|
- nonowarn@gmail.com
|
59
60
|
executables: []
|
60
61
|
extensions: []
|
61
62
|
extra_rdoc_files: []
|
62
63
|
files:
|
64
|
+
- ".github/workflows/ruby.yml"
|
63
65
|
- ".gitignore"
|
64
66
|
- Gemfile
|
65
67
|
- Gemfile.lock
|
@@ -91,5 +93,5 @@ requirements: []
|
|
91
93
|
rubygems_version: 3.0.3
|
92
94
|
signing_key:
|
93
95
|
specification_version: 4
|
94
|
-
summary:
|
96
|
+
summary: Defining methods cannot be called from derived class.
|
95
97
|
test_files: []
|