lite-command 1.0.9 → 1.0.10
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/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +4 -3
- data/lib/generators/rails/command_generator.rb +0 -1
- data/lib/generators/rails/templates/command.rb.tt +1 -1
- data/lib/lite/command/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6feebc5e78cac74077531519297ff22b363fb2222b25f81e7a9b8c19c2762ac7
|
|
4
|
+
data.tar.gz: 21cd5b42655e169af48f0081c7cf63196c4779f9a0d07b74be8d9cc77eb3f8d8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5cb3f7fa8726bea8569e565a4c567f08a696b72d53bd85fe4a68dd0f4869be90cc60ef22e3968ab7cff314f97797d76ff0efc254112000282d0581b37eed634b
|
|
7
|
+
data.tar.gz: 4bf282682cf120881ea8d30fabf3b1f87e9f612cc2ed7f1c0d16d397d4f82e881c86198f6e18b8452a12b7ffd706ed5eb12f133c5dad9038ca6bce943ed3dcb5
|
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
|
+
## [1.0.10] - 2019-12-21
|
|
10
|
+
### Removed
|
|
11
|
+
- Removed generator empty directory check
|
|
12
|
+
|
|
9
13
|
## [1.0.9] - 2019-12-20
|
|
10
14
|
### Removed
|
|
11
15
|
- Removed lite-command generator
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -37,6 +37,10 @@ Or install it yourself as:
|
|
|
37
37
|
app/commands/[NAME]_command.rb
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
+
If a `ApplicationCommand` file in the `app/commands` directory is available, the
|
|
41
|
+
generator will create file that inherit from `ApplicationCommand` if not it will
|
|
42
|
+
fallback to `Lite::Command::Complex`.
|
|
43
|
+
|
|
40
44
|
## Simple
|
|
41
45
|
|
|
42
46
|
Simple commands build quick class based calls but cannot be extended.
|
|
@@ -65,9 +69,6 @@ command.call
|
|
|
65
69
|
Complex commands can be used in instance and class based calls and
|
|
66
70
|
extended with access to errors and memoization.
|
|
67
71
|
|
|
68
|
-
Use `rails g decorator NAME` will generate the following file:
|
|
69
|
-
`../app/decorators/[name]_decorator.rb`
|
|
70
|
-
|
|
71
72
|
You will then need to fill this class with the required `execute` method as shown below:
|
|
72
73
|
|
|
73
74
|
```ruby
|
data/lib/lite/command/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lite-command
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Juan Gomez
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-12-
|
|
11
|
+
date: 2019-12-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: lite-errors
|