slight-lang 1.2.0 → 1.2.1.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
  SHA1:
3
- metadata.gz: 3e6d140c6753366a084fe3756daf5aad8a5fbfb4
4
- data.tar.gz: 22c5452ddac3a265f024384a3b32da62bc23c969
3
+ metadata.gz: 9adfa598a37c77d077cf4a4361e8515d2f878ced
4
+ data.tar.gz: 88dadb89d2d451a43bed8c96628963c81911145e
5
5
  SHA512:
6
- metadata.gz: 2ea0bad95210eaf64942c72f7d3713a4490b2847223aff054999d1c3cc2188eaa61d853b45a939489ee55be49bc511cd6dbac29ea9140379a7c25c65d45e9691
7
- data.tar.gz: eb47cfc0921a8a9fdcdf53d70136724965852efb82e4ef634b842c7f8e7dc3afac75d7359dd95722c82e6834c7f4a1910c621af5ec9853b7cd07cb3ad8b5e590
6
+ metadata.gz: a43f8ee15ddd66f619c4601001848d17f7cac9670d36d35c0bad7bd2789f09ed441f0b12c8097684cb90cc37e383be890f056dde35489860095ed24a88e2fab5
7
+ data.tar.gz: 955ca54e8b383cb1338744091297e210fc6a2d9da287ccc1cdfdcb09296d08e6d3af4e29be18b0b29bb52425281b555fc85a9af471338c72f7bbbe59635a69a9
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
@@ -15,11 +15,14 @@ module Slight
15
15
  else
16
16
  raise IOError, "source file was not given." if ARGV.length == 0
17
17
  src_file = ARGV[0]
18
- io_out = File.open("#{ARGV[1]}", 'w') if ARGV.size == 2
19
- io_out.puts default_engine.render(src_file)
18
+ buffer = default_engine.render(src_file)
19
+ if buffer != nil and buffer != "" then
20
+ io_out = File.open("#{ARGV[1]}", 'w') if ARGV.size == 2
21
+ io_out.puts buffer
22
+ end
20
23
  end
21
24
  rescue Exception => err
22
- STDERR.puts err.message
25
+ STDERR.puts "[Slight]" + err.message
23
26
  #STDERR.puts [err.inspect, err.backtrace.join("\n")].join("\n")
24
27
  exit 1
25
28
  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,9 +3,10 @@ require 'slight/engine'
3
3
  module Slight
4
4
  # Slight version string
5
5
  # @api public
6
- VERSION = '1.2.0'
6
+ VERSION = '1.2.1.1'
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
10
  # 1.2.0 => Add CONST | 20180101
11
+ # 1.2.1.1 => Fix CLI | 20180217
11
12
  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.2.0
4
+ version: 1.2.1.1
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-01-01 00:00:00.000000000 Z
11
+ date: 2018-02-17 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.6.14
68
+ rubygems_version: 2.5.2
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.