slight-lang 1.1.6 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -0
- data/Gemfile +0 -0
- data/LICENSE +0 -0
- data/README.md +0 -0
- data/bin/repl/repl.rb +0 -0
- data/bin/repl/utils.rb +0 -0
- data/bin/slight +0 -0
- data/bin/slsh +0 -0
- data/example/component.slight.rb +0 -0
- data/example/core.rb +0 -0
- data/example/custom_engine.rb +0 -0
- data/example/default_engine.rb +2 -5
- data/example/index.slight.rb +0 -0
- data/example/tilt_example.rb +0 -0
- data/lib/slight/config.rb +0 -0
- data/lib/slight/const.rb +0 -0
- data/lib/slight/dsl.rb +0 -0
- data/lib/slight/engine.rb +0 -0
- data/lib/slight/template.rb +0 -0
- data/lib/slight/tilt.rb +0 -0
- data/lib/slight/utils.rb +0 -0
- data/lib/slight.rb +2 -3
- data/slight.gemspec +0 -0
- data/spec/bin_spec.rb +0 -0
- data/spec/dsl_spec.rb +0 -0
- data/spec/engine_spec.rb +0 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e6d140c6753366a084fe3756daf5aad8a5fbfb4
|
4
|
+
data.tar.gz: 22c5452ddac3a265f024384a3b32da62bc23c969
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ea0bad95210eaf64942c72f7d3713a4490b2847223aff054999d1c3cc2188eaa61d853b45a939489ee55be49bc511cd6dbac29ea9140379a7c25c65d45e9691
|
7
|
+
data.tar.gz: eb47cfc0921a8a9fdcdf53d70136724965852efb82e4ef634b842c7f8e7dc3afac75d7359dd95722c82e6834c7f4a1910c621af5ec9853b7cd07cb3ad8b5e590
|
data/.gitignore
CHANGED
File without changes
|
data/Gemfile
CHANGED
File without changes
|
data/LICENSE
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/bin/repl/repl.rb
CHANGED
File without changes
|
data/bin/repl/utils.rb
CHANGED
File without changes
|
data/bin/slight
CHANGED
File without changes
|
data/bin/slsh
CHANGED
File without changes
|
data/example/component.slight.rb
CHANGED
File without changes
|
data/example/core.rb
CHANGED
File without changes
|
data/example/custom_engine.rb
CHANGED
File without changes
|
data/example/default_engine.rb
CHANGED
@@ -16,13 +16,10 @@ module Slight
|
|
16
16
|
raise IOError, "source file was not given." if ARGV.length == 0
|
17
17
|
src_file = ARGV[0]
|
18
18
|
io_out = File.open("#{ARGV[1]}", 'w') if ARGV.size == 2
|
19
|
-
|
20
|
-
if buffer != nil and buffer != "" then
|
21
|
-
io_out.puts buffer
|
22
|
-
end
|
19
|
+
io_out.puts default_engine.render(src_file)
|
23
20
|
end
|
24
21
|
rescue Exception => err
|
25
|
-
STDERR.puts
|
22
|
+
STDERR.puts err.message
|
26
23
|
#STDERR.puts [err.inspect, err.backtrace.join("\n")].join("\n")
|
27
24
|
exit 1
|
28
25
|
end
|
data/example/index.slight.rb
CHANGED
File without changes
|
data/example/tilt_example.rb
CHANGED
File without changes
|
data/lib/slight/config.rb
CHANGED
File without changes
|
data/lib/slight/const.rb
CHANGED
File without changes
|
data/lib/slight/dsl.rb
CHANGED
File without changes
|
data/lib/slight/engine.rb
CHANGED
File without changes
|
data/lib/slight/template.rb
CHANGED
File without changes
|
data/lib/slight/tilt.rb
CHANGED
File without changes
|
data/lib/slight/utils.rb
CHANGED
File without changes
|
data/lib/slight.rb
CHANGED
@@ -3,10 +3,9 @@ require 'slight/engine'
|
|
3
3
|
module Slight
|
4
4
|
# Slight version string
|
5
5
|
# @api public
|
6
|
-
VERSION = '1.
|
6
|
+
VERSION = '1.2.0'
|
7
7
|
# 1.0.0 => Basic Template features | 201703
|
8
8
|
# 1.0.5 => Support Tilt | 201704
|
9
9
|
# 1.1.0 => Doc Update | 201705
|
10
|
-
# 1.
|
11
|
-
# 1.1.6 => Fix CLI | 20180217
|
10
|
+
# 1.2.0 => Add CONST | 20180101
|
12
11
|
end
|
data/slight.gemspec
CHANGED
File without changes
|
data/spec/bin_spec.rb
CHANGED
File without changes
|
data/spec/dsl_spec.rb
CHANGED
File without changes
|
data/spec/engine_spec.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slight-lang
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- oliver.yu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-01-01 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A light and sweet template language
|
14
14
|
email:
|
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
65
65
|
version: '0'
|
66
66
|
requirements: []
|
67
67
|
rubyforge_project:
|
68
|
-
rubygems_version: 2.
|
68
|
+
rubygems_version: 2.6.14
|
69
69
|
signing_key:
|
70
70
|
specification_version: 4
|
71
71
|
summary: The goal of this is to use pure ruby syntax to write template.
|