crun 0.0.2 → 0.0.3

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 (5) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.rdoc +2 -0
  3. data/bin/crun +6 -1
  4. data/lib/version.rb +1 -1
  5. metadata +25 -32
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 673e146fb17b31e94d8c3eb0b07211588037ccac
4
+ data.tar.gz: 37512566a420652eaf9eb98dd7a18e2b493e05b7
5
+ SHA512:
6
+ metadata.gz: 7b9040aaed86d5d3c831c7b57d8a86d7ac839661ee025c974975debf6be6a9f828386489b8a583d1973b18acffdecc8ab5847d3c8ad01f3da53af801c5db9cc3
7
+ data.tar.gz: 0b2a5e8cc7c95c871a8b6d2fd8f0d0cab547dd4c4b09d4ea5c5d784dabe6a267fa22101d1af6ebe52dc0ddccfbb5f872d432efcfdded29728049c692beb5c8b8
@@ -1,5 +1,7 @@
1
1
  = Version history
2
2
 
3
+ [0.0.3] Option to save the binary.
4
+
3
5
  [0.0.2] Option prepend feature.
4
6
  Small update on option priority.
5
7
  Testcases.
data/bin/crun CHANGED
@@ -20,6 +20,7 @@ Spec.command( 'crun', 'Tero Isannainen', '2016',
20
20
  [ :opt_multi, 'opts', '-o', "Set/add crun option." ],
21
21
  [ :opt_multi, 'conf', '-c', "Crun option file(s)." ],
22
22
  [ :switch, 'input', '-i', "Read stdin for C-code." ],
23
+ [ :opt_single, 'save', '-s', "Save compiled file." ],
23
24
  [ :exclusive, 'template','-t', "Output a template file for program." ],
24
25
  [ :switch, 'verbose', '-v', "Verbose (to stderr)." ],
25
26
  ] )
@@ -181,7 +182,11 @@ cmds.push "#{@crun['compprog'].crun} #{@crun['crunopts'].crun} #{@crun['compopts
181
182
 
182
183
  # In order to avoid the "text file busy" issue, copy back and forth the exefile.
183
184
  cmds.push "cp #{exepath} #{exepath}-tmp"
184
- cmds.push "rm -f #{exepath}"
185
+ if Opt['save'].given
186
+ cmds.push "cp #{exepath} #{Opt['save'].value}"
187
+ else
188
+ cmds.push "rm -f #{exepath}"
189
+ end
185
190
  cmds.push "mv #{exepath}-tmp #{exepath}"
186
191
 
187
192
  if Opt['debug'].given
@@ -1,5 +1,5 @@
1
1
  module Crun
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  def Crun.version
4
4
  Crun::VERSION
5
5
  end
metadata CHANGED
@@ -1,44 +1,37 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
5
- prerelease:
4
+ version: 0.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Tero Isannainen
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2016-12-26 00:00:00.000000000 Z
11
+ date: 2017-02-22 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: como
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: 0.2.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: 0.2.0
30
- description: ! 'Crun is an utility for compiling and running C-programs straight from
31
-
27
+ description: |-
28
+ Crun is an utility for compiling and running C-programs straight from
32
29
  C source files. Crun supports compile-run and compile-debug flows.
33
30
 
34
-
35
31
  You can embed custom compile options into the main c-file, if you
36
-
37
32
  need, for example, an external library for the program. You can also
38
-
39
33
  control the command line parameters passed to the program through
40
-
41
- Crun.'
34
+ Crun.
42
35
  email: tero.isannainen@gmail.com
43
36
  executables:
44
37
  - crun
@@ -47,51 +40,51 @@ extra_rdoc_files:
47
40
  - README.rdoc
48
41
  - CHANGELOG.rdoc
49
42
  files:
50
- - README.rdoc
51
43
  - CHANGELOG.rdoc
52
44
  - LICENSE
53
- - lib/version.rb
54
- - examples/hello.c
45
+ - README.rdoc
46
+ - bin/crun
47
+ - examples/crun_conf.rb
55
48
  - examples/greeting.c
49
+ - examples/hello.c
56
50
  - examples/sizeof.c
57
- - examples/crun_conf.rb
58
- - test/golden/override.txt
59
- - test/golden/override3.txt
51
+ - lib/version.rb
60
52
  - test/golden/basic.txt
61
- - test/golden/override2.txt
62
53
  - test/golden/conf.txt
54
+ - test/golden/override.txt
55
+ - test/golden/override2.txt
56
+ - test/golden/override3.txt
63
57
  - test/golden/template.txt
64
- - test/test_crun.rb
65
- - test/result/override.txt
66
- - test/result/override3.txt
67
58
  - test/result/basic.txt
68
- - test/result/override2.txt
69
59
  - test/result/conf.txt
60
+ - test/result/override.txt
61
+ - test/result/override2.txt
62
+ - test/result/override3.txt
70
63
  - test/result/template.txt
71
- - bin/crun
64
+ - test/test_crun.rb
72
65
  homepage:
73
66
  licenses:
74
67
  - Ruby
68
+ metadata: {}
75
69
  post_install_message: Check README...
76
70
  rdoc_options: []
77
71
  require_paths:
78
72
  - lib
79
73
  required_ruby_version: !ruby/object:Gem::Requirement
80
- none: false
81
74
  requirements:
82
- - - ! '>='
75
+ - - ">="
83
76
  - !ruby/object:Gem::Version
84
77
  version: 1.9.3
85
78
  required_rubygems_version: !ruby/object:Gem::Requirement
86
- none: false
87
79
  requirements:
88
- - - ! '>='
80
+ - - ">="
89
81
  - !ruby/object:Gem::Version
90
82
  version: '0'
91
83
  requirements: []
92
84
  rubyforge_project:
93
- rubygems_version: 1.8.23
85
+ rubygems_version: 2.5.2
94
86
  signing_key:
95
- specification_version: 3
87
+ specification_version: 4
96
88
  summary: C-program prototyping environment.
97
89
  test_files: []
90
+ has_rdoc: