slimi 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +2 -2
- data/README.md +14 -0
- data/lib/slimi/parser.rb +1 -1
- data/lib/slimi/version.rb +1 -1
- data/slimi.gemspec +0 -3
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6e85f64f0d3aeb959f34ab6c7779a1e355fcf03d660f1b91aea2ef77cbf3c34
|
4
|
+
data.tar.gz: a61600677c85e6eebd57d5d58b8c47fe6669487a88f1398e9f641972ad6dd603
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eee6c48c7c8ae0270ce25c24ed8f0061c4656b4f0df3802f8536700f566a795f91f233a9a0eeda856829fb7143d35c426d31b02f77118d658950024dd4458949
|
7
|
+
data.tar.gz: 779ac85207a4ebd2511d868322281e30fe8f2364d49b77eff380dc7f93513905bfd5a8bd6253c2d6062525d8bacabf455f9a1164281e253df7098c0b54bfb23e
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
slimi (0.7.
|
4
|
+
slimi (0.7.1)
|
5
5
|
temple
|
6
6
|
thor
|
7
7
|
tilt
|
@@ -75,7 +75,7 @@ GEM
|
|
75
75
|
rubocop (~> 1.19)
|
76
76
|
ruby-progressbar (1.11.0)
|
77
77
|
temple (0.8.2)
|
78
|
-
thor (1.1
|
78
|
+
thor (1.2.1)
|
79
79
|
tilt (2.0.10)
|
80
80
|
tzinfo (2.0.4)
|
81
81
|
concurrent-ruby (~> 1.0)
|
data/README.md
CHANGED
@@ -25,6 +25,20 @@ gem 'slimi'
|
|
25
25
|
|
26
26
|
This will cause `app/views/**/*.slim` files to be rendered by Slimi.
|
27
27
|
|
28
|
+
### CLI
|
29
|
+
|
30
|
+
Slimi can be tested from command line by `slimi` executable. This takes Slim code from STDIN and converts it into another form.
|
31
|
+
|
32
|
+
```console
|
33
|
+
$ slimi --help
|
34
|
+
Commands:
|
35
|
+
slimi compile # Convert Slim into Ruby
|
36
|
+
slimi erb # Convert Slim into ERB
|
37
|
+
slimi help [COMMAND] # Describe available commands or one specific command
|
38
|
+
slimi parse # Convert Slim into Temple expression
|
39
|
+
slimi render # Convert Slim into HTML
|
40
|
+
```
|
41
|
+
|
28
42
|
## Compatibility
|
29
43
|
|
30
44
|
- Line indicators
|
data/lib/slimi/parser.rb
CHANGED
@@ -473,7 +473,7 @@ module Slimi
|
|
473
473
|
|
474
474
|
# @raise
|
475
475
|
def expect_line_ending
|
476
|
-
parse_line_ending || @scanner.eos? ||
|
476
|
+
parse_line_ending || @scanner.eos? || syntax_error!(Errors::LineEndingNotFoundError)
|
477
477
|
end
|
478
478
|
|
479
479
|
# @return [Integer] Indent level.
|
data/lib/slimi/version.rb
CHANGED
data/slimi.gemspec
CHANGED
@@ -27,9 +27,6 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.bindir = 'exe'
|
28
28
|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
29
29
|
spec.require_paths = ['lib']
|
30
|
-
spec.metadata = {
|
31
|
-
'rubygems_mfa_required' => 'true'
|
32
|
-
}
|
33
30
|
|
34
31
|
spec.add_dependency 'temple'
|
35
32
|
spec.add_dependency 'thor'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slimi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryo Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: temple
|
@@ -99,7 +99,9 @@ homepage: https://github.com/r7kamura/slimi
|
|
99
99
|
licenses:
|
100
100
|
- MIT
|
101
101
|
metadata:
|
102
|
-
|
102
|
+
homepage_uri: https://github.com/r7kamura/slimi
|
103
|
+
source_code_uri: https://github.com/r7kamura/slimi
|
104
|
+
changelog_uri: https://github.com/r7kamura/slimi/blob/main/CHANGELOG.md
|
103
105
|
post_install_message:
|
104
106
|
rdoc_options: []
|
105
107
|
require_paths:
|