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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ffdab14abc2b396eed9e6263654efbc5fa3152d2
4
- data.tar.gz: 50ceca22cfe183bf087bc32b0d66c24bc98fb2d7
3
+ metadata.gz: 3e6d140c6753366a084fe3756daf5aad8a5fbfb4
4
+ data.tar.gz: 22c5452ddac3a265f024384a3b32da62bc23c969
5
5
  SHA512:
6
- metadata.gz: e9827af78eedcf01007e9d1c68fa4974dae375265d1d777e0ea63347554941bcde1fccae5cb7b58201f125b7fb1645857f07c557e455ee8285f73814a35a7a71
7
- data.tar.gz: 618de8def09c088e0dd6331e38f976cd37065774ffbe477adfee1878e5dc7de3a62652543e270e6d785245ff2292f46f2c2fe803cafc218f0dbf280ac6c1dcbd
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
File without changes
data/example/core.rb CHANGED
File without changes
File without changes
@@ -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
- buffer = default_engine.render(src_file)
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 "[Slight]" + err.message
22
+ STDERR.puts err.message
26
23
  #STDERR.puts [err.inspect, err.backtrace.join("\n")].join("\n")
27
24
  exit 1
28
25
  end
File without changes
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
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.1.6'
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.1.5 => Add CONST | 20180101
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.1.6
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-02-17 00:00:00.000000000 Z
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.5.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.