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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '09a450cbc4d4a536b55bee031d9b76345aee45e82d112563d83cdadc1476a82c'
4
- data.tar.gz: 781931ba445275b0bc24157df457dde36e49f74b7c48afedcbfa8cb279c6a401
3
+ metadata.gz: b6e85f64f0d3aeb959f34ab6c7779a1e355fcf03d660f1b91aea2ef77cbf3c34
4
+ data.tar.gz: a61600677c85e6eebd57d5d58b8c47fe6669487a88f1398e9f641972ad6dd603
5
5
  SHA512:
6
- metadata.gz: 3810040838f6d5eaf636326eaa4021edd62a810d508b41efe7f27a29702c444a783cd2f0bfbd9dedc535d52738bc2446c55df08e6a6e0acee3cb3743ae7798f8
7
- data.tar.gz: 625e3d9bd3be61d376364388f6ef86f555fe9065a73d802e907fcb1a6238d4707d42a5d4597acc05794d6e46d4623ebb01007836b2b8bb5ae2884158e3d16ad1
6
+ metadata.gz: eee6c48c7c8ae0270ce25c24ed8f0061c4656b4f0df3802f8536700f566a795f91f233a9a0eeda856829fb7143d35c426d31b02f77118d658950024dd4458949
7
+ data.tar.gz: 779ac85207a4ebd2511d868322281e30fe8f2364d49b77eff380dc7f93513905bfd5a8bd6253c2d6062525d8bacabf455f9a1164281e253df7098c0b54bfb23e
data/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.7.1 - 2022-01-18
6
+
7
+ ### Fixed
8
+
9
+ - Fix error handling on unexpected line ending.
10
+ - Fix missing some metadata in gemspec.
11
+
5
12
  ## 0.7.0 - 2022-01-04
6
13
 
7
14
  ### Added
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- slimi (0.7.0)
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.0)
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? || raise(LineEndingNotFoundError)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Slimi
4
- VERSION = '0.7.0'
4
+ VERSION = '0.7.1'
5
5
  end
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.0
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-03 00:00:00.000000000 Z
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
- rubygems_mfa_required: 'true'
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: