rbsubst 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/rbsubst +2 -4
  3. data/rbsubst.gemspec +11 -1
  4. metadata +10 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 13eeef2aafe81496b5c5682eed2f2b6cd21e6853
4
- data.tar.gz: dba1b69931f538be048b39a64e2179a2db34ec5c
3
+ metadata.gz: 45bfe834e0eeb4ef825d312d8042aed4ec33649b
4
+ data.tar.gz: ad0d795c886d02d44f1f1ae7e1bbb7893a365ce9
5
5
  SHA512:
6
- metadata.gz: 9b9eb13a0cd6bc5350d624dc5b5b114f993dae1abfe06bad2dfbc13aab32e80c43439bb42ee40b06a62d84b9317706204c758b19afb701e16ae3eecafa4c812d
7
- data.tar.gz: 741f7868ba046ec0937cf0a74f3b611d95782c33e746e1246405e23a7fe312b77e2da072b5bb8aeb61ec7778e9470da66808d35154b191d688fb4e36c36d99c0
6
+ metadata.gz: e8cb2f18816aaac0257e701e09330b827debe71b65f23ee6a5d901de24ea1b10b8930a271404995c5f316c255a3f426b506f99bddf4d16dd83c2450cfcee3e8e
7
+ data.tar.gz: e2c24e87b467045f2ee29533f0c62ad8ed169cd3077d3869d46e8f723ed8ad2d612a6977ee7faa1c45c7a6c5fe99fb32696d2db3944fc0751885e5a76ec3d9ec
data/bin/rbsubst CHANGED
@@ -46,11 +46,9 @@ ARGF.each_line { |l|
46
46
  end
47
47
  end
48
48
  prog_input.print l
49
+ prog_input.puts unless l.end_with?("\n")
49
50
  }
50
- if intext then
51
- prog_input.puts unless prog_input.string.end_with?("\n")
52
- prog_input.puts string_marker if intext
53
- end
51
+ prog_input.puts string_marker if intext
54
52
 
55
53
  if options[:debug] then
56
54
  prog_input.rewind
data/rbsubst.gemspec CHANGED
@@ -1,10 +1,20 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'rbsubst'
3
- s.version = "1.0.0"
3
+ s.version = "1.0.1"
4
4
  s.author = "Brice Videau"
5
5
  s.email = "brice.videau@imag.fr"
6
6
  s.homepage = "https://github.com/Nanosim-LIG/rbsubst"
7
7
  s.summary = "Use ruby as a preprocessor."
8
+ s.description = <<EOF
9
+ Usage: rbsubst [options] [file1 file2 ...]
10
+ Process the standard input or given text files treating lines starting by PREFIX
11
+ as ruby script. Non ruby lines are treated using ruby string substitutions.
12
+ Options:
13
+ -d, --[no-]debug Print the generated script on standard error
14
+ --prefix PREFIX Prefix to be used (default #!RB!#)
15
+ --marker MARKER Marker to delimit strings (default EOF_RB)
16
+ -h, --help Show this message
17
+ EOF
8
18
  s.files = %w( rbsubst.gemspec LICENSE bin/rbsubst)
9
19
  s.executable = "rbsubst"
10
20
  s.has_rdoc = false
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbsubst
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brice Videau
@@ -10,7 +10,15 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2015-11-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description:
13
+ description: |
14
+ Usage: rbsubst [options] [file1 file2 ...]
15
+ Process the standard input or given text files treating lines starting by PREFIX
16
+ as ruby script. Non ruby lines are treated using ruby string substitutions.
17
+ Options:
18
+ -d, --[no-]debug Print the generated script on standard error
19
+ --prefix PREFIX Prefix to be used (default #!RB!#)
20
+ --marker MARKER Marker to delimit strings (default EOF_RB)
21
+ -h, --help Show this message
14
22
  email: brice.videau@imag.fr
15
23
  executables:
16
24
  - rbsubst