dyci-compiler 0.1.1 → 0.1.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.
@@ -4,16 +4,17 @@ module DyCI
4
4
  class ClangRunner
5
5
 
6
6
  def compile args
7
+ developer_path = %x[ xcode-select -print-path ].chomp
8
+ clang_path = "#{developer_path}/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
9
+ if File.exists? "#{clang_path}.backup"
10
+ clang_path = "#{clang_path}.backup"
11
+ else # this mean that we use DyCi as proxy
12
+ args = args.delete_if { |arg| arg =~ /\A-mmacosx-version-min/ }
13
+ end
14
+
7
15
  args = args.map do |arg|
8
- # TODO: find way to fix this issue
9
- if arg =~ /\A-mmacosx-version-min/
10
- ""
11
- else
12
- arg.gsub /(.+)/, '"\0"'
13
- end
16
+ arg.gsub /(.+)/, '"\0"'
14
17
  end
15
- developer_path = %x[ xcode-select -print-path ].chomp
16
- clang_path = "#{developer_path}/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang.backup"
17
18
 
18
19
  cmd = "#{clang_path} #{args.join(" ")}"
19
20
  Kernel.exec(cmd)
@@ -1,5 +1,5 @@
1
1
  module DyCI
2
2
  module Compiler
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dyci-compiler
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 29
5
+ prerelease:
5
6
  segments:
6
7
  - 0
7
8
  - 1
8
- - 1
9
- version: 0.1.1
9
+ - 3
10
+ version: 0.1.3
10
11
  platform: ruby
11
12
  authors:
12
13
  - Alex Denisov
@@ -14,16 +15,17 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2012-11-13 00:00:00 +02:00
18
- default_executable:
18
+ date: 2012-11-18 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rspec
22
22
  prerelease: false
23
23
  requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
24
25
  requirements:
25
26
  - - ">="
26
27
  - !ruby/object:Gem::Version
28
+ hash: 3
27
29
  segments:
28
30
  - 0
29
31
  version: "0"
@@ -56,7 +58,6 @@ files:
56
58
  - spec/factory.rb
57
59
  - spec/fixtures/params.txt
58
60
  - spec/spec_helper.rb
59
- has_rdoc: true
60
61
  homepage: https://github.com/DyCI/dyci-compiler-rb
61
62
  licenses: []
62
63
 
@@ -66,23 +67,27 @@ rdoc_options: []
66
67
  require_paths:
67
68
  - lib
68
69
  required_ruby_version: !ruby/object:Gem::Requirement
70
+ none: false
69
71
  requirements:
70
72
  - - ">="
71
73
  - !ruby/object:Gem::Version
74
+ hash: 3
72
75
  segments:
73
76
  - 0
74
77
  version: "0"
75
78
  required_rubygems_version: !ruby/object:Gem::Requirement
79
+ none: false
76
80
  requirements:
77
81
  - - ">="
78
82
  - !ruby/object:Gem::Version
83
+ hash: 3
79
84
  segments:
80
85
  - 0
81
86
  version: "0"
82
87
  requirements: []
83
88
 
84
89
  rubyforge_project:
85
- rubygems_version: 1.3.6
90
+ rubygems_version: 1.8.24
86
91
  signing_key:
87
92
  specification_version: 3
88
93
  summary: DyCI fake compiler, that used as a proxy.