lite-command 2.1.2 → 2.1.3

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: a80b87ce018b8d2c4097c6a3c1e22869b51089e7bb1e040f8b4be33f72a0cc47
4
- data.tar.gz: 8db4399804fbdcd1ef0a42baa4ae902d864b8283cdb26ea0b8fdbac123f569c8
3
+ metadata.gz: 7d33153b2a39998b16565b6a486c71ac29ce975b784b9e7f0a0c1c053712d703
4
+ data.tar.gz: 261fa88f0032d58d169d35e141bc76ca0770486b8fe0bc7fd65a3dbc5e269905
5
5
  SHA512:
6
- metadata.gz: a00f4af0af22973c3ec4fa43e635d7bca891b97a3cebb264b52955dd1a9e9b963045297569cae7a6144820cb3cea0907044b73200f1f9a0781befded2fd1e0c1
7
- data.tar.gz: 7a0239e49c62c900b1df6c39e0d7a6c97ac7768bb0e6b8b1292b44726a59e5f336a9d562c20fd4979f9950c1e7c3a57528ae2d83e5e85aee34379a75fdfbe1ce
6
+ metadata.gz: 2899e8d37519cb9a896f5573f230323141f24b99598f4a0674580fd795d51e92f2c7bbd32b875e6755779f6cfead9aacd81851ba2cfbaa8652b318c2849a924e
7
+ data.tar.gz: f4e9b2bb0eaec8320c0e18f2c75768479369ae8f2cec0b1fce0812b0814b0e4e2a442189fb207fa34031557839b42aa4580590d39b8c87faaa8ca41b17803787
@@ -1,30 +1,21 @@
1
1
  name: CI
2
2
  on:
3
- push:
4
- branches:
5
- - master
6
3
  pull_request:
7
- branches:
8
- - master
4
+ branches: [ master ]
5
+ permissions:
6
+ contents: read
9
7
  jobs:
10
8
  test:
11
9
  runs-on: ubuntu-latest
12
- strategy:
13
- matrix:
14
- ruby:
15
- - '3.3'
16
- - '3.2'
17
10
  steps:
18
11
  - name: Checkout
19
12
  uses: actions/checkout@v4
20
13
  - name: Install
21
14
  uses: ruby/setup-ruby@v1
22
15
  with:
23
- ruby-version: ${{matrix.ruby}}
16
+ ruby-version: '3.3.5'
24
17
  bundler-cache: true
25
18
  - name: RSpec
26
- run: bundle exec rspec .
27
- - name: Fasterer
28
- run: bundle exec fasterer .
19
+ run: bundle exec rspec
29
20
  - name: Rubocop
30
- run: bundle exec rubocop .
21
+ run: bundle exec rubocop --parallel
data/.rubocop.yml CHANGED
@@ -6,6 +6,7 @@ AllCops:
6
6
  NewCops: enable
7
7
  DisplayCopNames: true
8
8
  DisplayStyleGuide: true
9
+ TargetRubyVersion: 3.3.5
9
10
  Gemspec/DevelopmentDependencies:
10
11
  EnforcedStyle: gemspec
11
12
  Gemspec/RequiredRubyVersion:
data/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [2.1.3] - 2024-10-08
10
+ ### Changed
11
+ - Move super in inheritance
12
+
9
13
  ## [2.1.2] - 2024-10-08
10
14
  ### Added
11
15
  - Allow `filled` to pass `{ empty: false }` to check if value is empty
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lite-command (2.1.2)
4
+ lite-command (2.1.3)
5
5
  ostruct
6
6
 
7
7
  GEM
@@ -45,8 +45,6 @@ GEM
45
45
  diff-lcs (1.5.1)
46
46
  drb (2.2.1)
47
47
  erubi (1.13.0)
48
- fasterer (0.11.0)
49
- ruby_parser (>= 3.19.1)
50
48
  generator_spec (0.10.0)
51
49
  activesupport (>= 3.0.0)
52
50
  railties (>= 3.0.0)
@@ -138,11 +136,7 @@ GEM
138
136
  rubocop-rspec (3.1.0)
139
137
  rubocop (~> 1.61)
140
138
  ruby-progressbar (1.13.0)
141
- ruby_parser (3.21.1)
142
- racc (~> 1.5)
143
- sexp_processor (~> 4.16)
144
139
  securerandom (0.3.1)
145
- sexp_processor (4.17.2)
146
140
  sqlite3 (2.1.0)
147
141
  mini_portile2 (~> 2.8.0)
148
142
  stringio (3.1.1)
@@ -159,7 +153,6 @@ PLATFORMS
159
153
 
160
154
  DEPENDENCIES
161
155
  bundler
162
- fasterer
163
156
  generator_spec
164
157
  lite-command!
165
158
  rake
@@ -84,8 +84,8 @@ module Lite
84
84
 
85
85
  def empty?
86
86
  r = Utils.try(options[:filled], :[], :empty)
87
- return if r.nil? || r == true
88
- return unless value.respond_to?(:empty?)
87
+ return false if r.nil? || r == true
88
+ return false unless value.respond_to?(:empty?)
89
89
 
90
90
  value.empty?
91
91
  end
@@ -5,6 +5,8 @@ module Lite
5
5
  class Base
6
6
 
7
7
  def self.inherited(base)
8
+ super
9
+
8
10
  base.include Lite::Command::Internals::Context
9
11
  base.include Lite::Command::Internals::Call
10
12
  base.include Lite::Command::Internals::Execute
@@ -21,8 +23,6 @@ module Lite
21
23
  #{base}::Failure = Class.new(#{base}::Fault)
22
24
  #{base}::Error = Class.new(#{base}::Fault)
23
25
  RUBY
24
-
25
- super
26
26
  end
27
27
 
28
28
  attr_reader :context
@@ -3,7 +3,7 @@
3
3
  module Lite
4
4
  module Command
5
5
 
6
- VERSION = "2.1.2"
6
+ VERSION = "2.1.3"
7
7
 
8
8
  end
9
9
  end
data/lite-command.gemspec CHANGED
@@ -40,7 +40,6 @@ Gem::Specification.new do |spec|
40
40
  spec.add_dependency "ostruct"
41
41
 
42
42
  spec.add_development_dependency "bundler"
43
- spec.add_development_dependency "fasterer"
44
43
  spec.add_development_dependency "generator_spec"
45
44
  spec.add_development_dependency "rake"
46
45
  spec.add_development_dependency "rspec"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lite-command
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: fasterer
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: generator_spec
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -171,7 +157,6 @@ executables: []
171
157
  extensions: []
172
158
  extra_rdoc_files: []
173
159
  files:
174
- - ".fasterer.yml"
175
160
  - ".gitattributes"
176
161
  - ".github/workflows/ci.yml"
177
162
  - ".gitignore"
data/.fasterer.yml DELETED
@@ -1,19 +0,0 @@
1
- speedups:
2
- block_vs_symbol_to_proc: true
3
- each_with_index_vs_while: false
4
- fetch_with_argument_vs_block: true
5
- for_loop_vs_each: true
6
- getter_vs_attr_reader: true
7
- gsub_vs_tr: true
8
- hash_merge_bang_vs_hash_brackets: true
9
- keys_each_vs_each_key: true
10
- map_flatten_vs_flat_map: true
11
- module_eval: true
12
- proc_call_vs_yield: true
13
- rescue_vs_respond_to: true
14
- reverse_each_vs_reverse_each: true
15
- select_first_vs_detect: true
16
- select_last_vs_reverse_detect: true
17
- setter_vs_attr_writer: true
18
- shuffle_first_vs_sample: true
19
- sort_vs_sort_by: true