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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2d4aac4d5ffb689a1df08eb2ec6c6dc9bce2dcad59ef7b33d0645369fcece99c
4
- data.tar.gz: 61b0769a5b0cfcb36a6eed2c18b2cb4af057731a763a2cf67efa15941d90b7e0
3
+ metadata.gz: e0e94f20a0153f54b289dd51a1609523af8204b5341098951764632877de2676
4
+ data.tar.gz: a9a27aef0cd9d6f3dc1d5a50ff245814984973576c8a41b5258e35b2a5e2fe57
5
5
  SHA512:
6
- metadata.gz: 9cfa79bf3018987d99662361d03bb61e4487b659525469a83f5d7060b6b02d256b8cdb5d56e6f295c644c510a3c418740bb17916dde8777985f873290f1f9da7
7
- data.tar.gz: 113cd7bd53fbd620d798a304b7458865c7143cfecb023f7cf0c67cd1a16c17fd014f29edb25476422bf26e48c959867763d6fff745b50f35b81d19cdc4b3fbe4
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lexically (0.1.0)
4
+ lexically (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
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` defined class cannot be called from derived class.
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{Provides "lexically" visibility to classes or modules}
13
- spec.description = %q{Using refinements mechanisms, this module provides defning methods cannot be called from outside of the classes or modules}
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.
@@ -1,3 +1,3 @@
1
1
  module Lexically
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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 mechanisms, this module provides defning methods cannot
56
- be called from outside of the classes or modules
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: Provides "lexically" visibility to classes or modules
96
+ summary: Defining methods cannot be called from derived class.
95
97
  test_files: []