cxxproject 0.5.72 → 0.5.73
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/cxxproject/buildingblocks/building_block.rb +1 -1
- data/lib/cxxproject/buildingblocks/command_line.rb +2 -2
- data/lib/cxxproject/buildingblocks/makefile.rb +2 -2
- data/lib/cxxproject/utils/cleanup.rb +3 -2
- data/lib/cxxproject/version.rb +1 -1
- data/spec/ide_interface_spec.rb +1 -1
- metadata +50 -52
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: cee3318392e946c83e4ddfb7a748bfbb0198ea58
|
4
|
+
data.tar.gz: 07cb839396852259f2d1fcb0afd9866a91b34a89
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: cc63f445b28d391f82494046f07cb0b0877e061c704e4788780972a2662c62c627e9b06f788f14fb45d362bb95ef90ddf520841cd60c7fb56ea58a107fb69ddb
|
7
|
+
data.tar.gz: 5fb3b6ca912eae3da729672e67b846c04a134692c235c8b3ea79064f7c4706d7efcc8a1f00e6736030c84ae7137a897e057d0a8c6f8c935d381b70129f11ad78
|
@@ -164,7 +164,7 @@ module Cxxproject
|
|
164
164
|
if showPath or RakeFileUtils.verbose or (alternate.nil? and not Rake::application.options.silent)
|
165
165
|
@printedCmdAlternate = false
|
166
166
|
exedIn = ""
|
167
|
-
exedIn = "
|
167
|
+
exedIn = "\n(executed in '#{@project_dir}')" if (showPath or RakeFileUtils.verbose)
|
168
168
|
puts "" if Rake::application.addEmptyLine
|
169
169
|
if cmd.is_a?(Array)
|
170
170
|
puts cmd.join(' ') + exedIn
|
@@ -47,7 +47,7 @@ module Cxxproject
|
|
47
47
|
Dir.chdir(@project_dir) do
|
48
48
|
check_config_file
|
49
49
|
cmd = get_command_line
|
50
|
-
puts cmd + (RakeFileUtils.verbose ? "
|
50
|
+
puts cmd + (RakeFileUtils.verbose ? "\n(executed in '#{@project_dir}')" : "")
|
51
51
|
cmd_result = false
|
52
52
|
begin
|
53
53
|
rd, wr = IO.pipe
|
@@ -69,7 +69,7 @@ module Cxxproject
|
|
69
69
|
err_res.message = "Command \"#{get_command_line}\" failed"
|
70
70
|
Rake.application.idei.set_errors([err_res])
|
71
71
|
end
|
72
|
-
Printer.printError "Error: command \"#{get_command_line}\" failed" + (RakeFileUtils.verbose ? "" : "
|
72
|
+
Printer.printError "Error: command \"#{get_command_line}\" failed" + (RakeFileUtils.verbose ? "" : "\n(executed in '#{@project_dir}')")
|
73
73
|
raise SystemCommandFailed.new
|
74
74
|
end
|
75
75
|
end
|
@@ -74,7 +74,7 @@ module Cxxproject
|
|
74
74
|
def executeCmd(cmd)
|
75
75
|
Dir.chdir(@project_dir) do
|
76
76
|
check_config_file
|
77
|
-
puts cmd + (RakeFileUtils.verbose ? "
|
77
|
+
puts cmd + (RakeFileUtils.verbose ? "\n(executed in '#{@project_dir}')" : "")
|
78
78
|
cmd_result = false
|
79
79
|
begin
|
80
80
|
cmd_result = ProcessHelper.spawnProcess(cmd + " 2>&1")
|
@@ -93,7 +93,7 @@ module Cxxproject
|
|
93
93
|
end
|
94
94
|
Rake.application.idei.set_errors([err_res])
|
95
95
|
end
|
96
|
-
Printer.printError "Error: command \"#{cmd}\" failed" + (RakeFileUtils.verbose ? "" : "
|
96
|
+
Printer.printError "Error: command \"#{cmd}\" failed" + (RakeFileUtils.verbose ? "" : "\n(executed in '#{@project_dir}')")
|
97
97
|
raise SystemCommandFailed.new
|
98
98
|
end
|
99
99
|
end
|
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'rake'
|
2
2
|
require 'rake/clean'
|
3
3
|
require 'cxxproject/ext/filelist'
|
4
|
+
require 'fileutils'
|
4
5
|
|
5
6
|
module Cxxproject
|
6
7
|
module Utils
|
@@ -12,10 +13,10 @@ module Cxxproject
|
|
12
13
|
CLEAN.pending_add.clear
|
13
14
|
CLEAN.items.clear
|
14
15
|
task :clean do
|
15
|
-
CLEAN.each { |fn|
|
16
|
+
CLEAN.each { |fn| FileUtils.rm_rf fn rescue nil }
|
16
17
|
end
|
17
18
|
task :clobber => [:clean] do
|
18
|
-
CLOBBER.each { |fn|
|
19
|
+
CLOBBER.each { |fn| FileUtils.rm_rf fn rescue nil }
|
19
20
|
end
|
20
21
|
end
|
21
22
|
|
data/lib/cxxproject/version.rb
CHANGED
data/spec/ide_interface_spec.rb
CHANGED
@@ -27,7 +27,7 @@ describe Cxxproject::IDEInterface do
|
|
27
27
|
packet = ide.create_error_packet(error)
|
28
28
|
|
29
29
|
if not Cxxproject::Utils.old_ruby? # in Ruby 1.8.6 there is no bytes methods...
|
30
|
-
e = packet.bytes
|
30
|
+
e = packet.bytes.to_enum
|
31
31
|
e.next.should eq(1)
|
32
32
|
check_long(e, 22)
|
33
33
|
check_long(e, 8)
|
metadata
CHANGED
@@ -1,48 +1,52 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: cxxproject
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 0.5.72
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.5.73
|
6
5
|
platform: ruby
|
7
|
-
authors:
|
6
|
+
authors:
|
8
7
|
- oliver mueller
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2014-05-02 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
16
14
|
name: highline
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
- - ">="
|
22
|
-
- !ruby/object:Gem::Version
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
23
19
|
version: 1.6.0
|
24
20
|
type: :runtime
|
25
|
-
version_requirements: *id001
|
26
|
-
- !ruby/object:Gem::Dependency
|
27
|
-
name: colored
|
28
21
|
prerelease: false
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.6.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: colored
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
35
34
|
type: :runtime
|
36
|
-
|
37
|
-
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: |2
|
42
|
+
Some more high level building blocks for cpp projects.
|
38
43
|
email: oliver.mueller@gmail.com
|
39
|
-
executables:
|
44
|
+
executables:
|
40
45
|
- cxx
|
41
46
|
extensions: []
|
42
|
-
|
43
47
|
extra_rdoc_files: []
|
44
|
-
|
45
|
-
|
48
|
+
files:
|
49
|
+
- lib/cxxproject.rb
|
46
50
|
- lib/cxxproject/buildingblocks/binary_library.rb
|
47
51
|
- lib/cxxproject/buildingblocks/building_block.rb
|
48
52
|
- lib/cxxproject/buildingblocks/command_line.rb
|
@@ -103,7 +107,6 @@ files:
|
|
103
107
|
- lib/cxxproject/utils/utils.rb
|
104
108
|
- lib/cxxproject/utils/valgrind.rb
|
105
109
|
- lib/cxxproject/version.rb
|
106
|
-
- lib/cxxproject.rb
|
107
110
|
- lib/tools/project_wizard.rb
|
108
111
|
- Rakefile.rb
|
109
112
|
- spec/building_block_spec.rb
|
@@ -121,38 +124,33 @@ files:
|
|
121
124
|
- spec/testdata/multiple_levels/libs/lib1/project.rb
|
122
125
|
- spec/testdata/multiple_levels/libs/lib2/project.rb
|
123
126
|
- spec/testdata/multiple_levels/mainproject/basic/project.rb
|
124
|
-
- spec/testdata/onlyOneHeader/project.rb
|
125
127
|
- spec/testdata/onlyOneHeader/Rakefile.rb
|
128
|
+
- spec/testdata/onlyOneHeader/project.rb
|
126
129
|
- spec/toolchain_spec.rb
|
127
|
-
- lib/tools/project.rb.template
|
128
130
|
- lib/tools/Rakefile.rb.template
|
131
|
+
- lib/tools/project.rb.template
|
129
132
|
- bin/cxx
|
130
133
|
homepage: https://github.com/marcmo/cxxproject
|
131
134
|
licenses: []
|
132
|
-
|
135
|
+
metadata: {}
|
133
136
|
post_install_message:
|
134
137
|
rdoc_options: []
|
135
|
-
|
136
|
-
require_paths:
|
138
|
+
require_paths:
|
137
139
|
- lib
|
138
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
- !ruby/object:Gem::Version
|
149
|
-
version: "0"
|
140
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - '>='
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
145
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
146
|
+
requirements:
|
147
|
+
- - '>='
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
150
150
|
requirements: []
|
151
|
-
|
152
151
|
rubyforge_project:
|
153
|
-
rubygems_version:
|
152
|
+
rubygems_version: 2.0.14
|
154
153
|
signing_key:
|
155
|
-
specification_version:
|
154
|
+
specification_version: 4
|
156
155
|
summary: Cpp Support for Rake.
|
157
156
|
test_files: []
|
158
|
-
|