dyci 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +29 -0
- data/Rakefile +2 -0
- data/bin/dyci +7 -0
- data/dyci.gemspec +18 -0
- data/lib/dyci/commands/install_command.rb +27 -0
- data/lib/dyci/version.rb +3 -0
- data/lib/dyci.rb +32 -0
- data/lib/plugins/.DS_Store +0 -0
- data/lib/plugins/DyCIFakeClang.xcplugin/Contents/Info.plist +26 -0
- data/lib/plugins/DyCIFakeClang.xcplugin/Contents/Resources/DyCIFakeClang.xcspec +32 -0
- data/lib/plugins/DyCIHelper.xcplugin/Contents/Info.plist +46 -0
- data/lib/plugins/DyCIHelper.xcplugin/Contents/MacOS/SFDCIHelper +0 -0
- metadata +95 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2012 Alex Denisov
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# Dyci
|
2
|
+
|
3
|
+
TODO: Write a gem description
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'dyci'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install dyci
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
TODO: Write usage instructions here
|
22
|
+
|
23
|
+
## Contributing
|
24
|
+
|
25
|
+
1. Fork it
|
26
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
|
+
3. Commit your changes (`git commit -am 'Added some feature'`)
|
28
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
29
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
data/bin/dyci
ADDED
data/dyci.gemspec
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/dyci/version', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.authors = ["Alex Denisov"]
|
6
|
+
gem.email = ["1101.debian@gmail.com"]
|
7
|
+
gem.description = %q{: Write a gem description}
|
8
|
+
gem.summary = %q{: Write a gem summary}
|
9
|
+
gem.homepage = ""
|
10
|
+
|
11
|
+
gem.files = `git ls-files`.split($\)
|
12
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
13
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
|
+
gem.name = "dyci"
|
15
|
+
gem.require_paths = ["lib"]
|
16
|
+
gem.version = DyCI::VERSION
|
17
|
+
gem.add_runtime_dependency 'dyci-compiler', '0.0.2'
|
18
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
|
3
|
+
module DyCI
|
4
|
+
class InstallCommand
|
5
|
+
def run
|
6
|
+
dyci_helper_plugin = "DyCIHelper"
|
7
|
+
dyci_fake_clang_plugin = "DyCIFakeClang"
|
8
|
+
self.install_plugin dyci_helper_plugin
|
9
|
+
self.install_plugin dyci_fake_clang_plugin
|
10
|
+
end
|
11
|
+
|
12
|
+
def plugins_dir
|
13
|
+
user_dir = File.expand_path("~")
|
14
|
+
plugins_dir = "#{user_dir}/Library/Application Support/Developer/Shared/Xcode/Plug-ins"
|
15
|
+
FileUtils.mkdir_p plugins_dir
|
16
|
+
plugins_dir
|
17
|
+
end
|
18
|
+
|
19
|
+
def install_plugin plugin_name
|
20
|
+
puts "Install #{plugin_name}"
|
21
|
+
FileUtils.cp_r "lib/plugins/#{plugin_name}.xcplugin", "#{self.plugins_dir}/"
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
|
data/lib/dyci/version.rb
ADDED
data/lib/dyci.rb
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'dyci/version'
|
2
|
+
require 'dyci/commands/install_command'
|
3
|
+
|
4
|
+
module DyCI
|
5
|
+
class Runner
|
6
|
+
def initialize args
|
7
|
+
command_class = self.command_klass args
|
8
|
+
if command_class
|
9
|
+
command = command_class.new
|
10
|
+
command.run
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def command_klass args
|
15
|
+
case args[0]
|
16
|
+
# when 'setup'
|
17
|
+
# Setup
|
18
|
+
when 'install'
|
19
|
+
InstallCommand
|
20
|
+
# when 'uninstall'
|
21
|
+
# Uninstall
|
22
|
+
# when 'cleanup'
|
23
|
+
# Cleanup
|
24
|
+
else
|
25
|
+
# TODO: add usage
|
26
|
+
puts "print usage"
|
27
|
+
nil
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
32
|
+
end
|
Binary file
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>CFBundleDevelopmentRegion</key>
|
6
|
+
<string>English</string>
|
7
|
+
<key>CFBundleIdentifier</key>
|
8
|
+
<string>com.stanfy.compilers.llvm.dyci</string>
|
9
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
10
|
+
<string>6.0</string>
|
11
|
+
<key>CFBundleName</key>
|
12
|
+
<string>DyCI Fake Clang LLVM</string>
|
13
|
+
<key>CFBundlePackageType</key>
|
14
|
+
<string>BNDL</string>
|
15
|
+
<key>CFBundleShortVersionString</key>
|
16
|
+
<string>1.0</string>
|
17
|
+
<key>CFBundleSignature</key>
|
18
|
+
<string>????</string>
|
19
|
+
<key>CFBundleVersion</key>
|
20
|
+
<string>1.0</string>
|
21
|
+
<key>XCGCReady</key>
|
22
|
+
<string>YES</string>
|
23
|
+
<key>XCPluginHasUI</key>
|
24
|
+
<string>NO</string>
|
25
|
+
</dict>
|
26
|
+
</plist>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
(
|
2
|
+
{
|
3
|
+
Identifier = "com.stanfy.compilers.llvm.dyci";
|
4
|
+
BasedOn = "default:com.apple.compilers.llvm.clang.1_0";
|
5
|
+
Type = Compiler;
|
6
|
+
Name = "DyCI Fake Clang LLVM";
|
7
|
+
Description = "DyCI Fake Clang LLVM";
|
8
|
+
Version = "com.stanfy.compilers.llvm.dyci";
|
9
|
+
Vendor = "StanfyLabs";
|
10
|
+
ExecPath = "dyci-compiler";
|
11
|
+
Options = (
|
12
|
+
{
|
13
|
+
Name = GCC_ENABLE_EXCEPTIONS;
|
14
|
+
Type = Boolean;
|
15
|
+
DefaultValue = YES;
|
16
|
+
CommandLineFlag = "-fexceptions";
|
17
|
+
},
|
18
|
+
{
|
19
|
+
Name = LD_NO_IMPLICIT_DYLIBS;
|
20
|
+
Type = Boolean;
|
21
|
+
DefaultValue = YES;
|
22
|
+
AdditionalLinkerArgs = ( "-Xlinker", "-no_implicit_dylibs" );
|
23
|
+
},
|
24
|
+
{ Name = GCC_IPHONEOS_VERSION_MIN;
|
25
|
+
Type = String;
|
26
|
+
DefaultValue = "$(IPHONEOS_DEPLOYMENT_TARGET)";
|
27
|
+
CommandLinePrefixFlag = "-mios-simulator-version-min=";
|
28
|
+
},
|
29
|
+
);
|
30
|
+
},
|
31
|
+
)
|
32
|
+
|
@@ -0,0 +1,46 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>BuildMachineOSBuild</key>
|
6
|
+
<string>11G63</string>
|
7
|
+
<key>CFBundleDevelopmentRegion</key>
|
8
|
+
<string>English</string>
|
9
|
+
<key>CFBundleExecutable</key>
|
10
|
+
<string>SFDCIHelper</string>
|
11
|
+
<key>CFBundleIdentifier</key>
|
12
|
+
<string>com.stanfy.SFDCIHelper</string>
|
13
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
14
|
+
<string>6.0</string>
|
15
|
+
<key>CFBundleName</key>
|
16
|
+
<string>SFDCIHelper</string>
|
17
|
+
<key>CFBundlePackageType</key>
|
18
|
+
<string>BNDL</string>
|
19
|
+
<key>CFBundleShortVersionString</key>
|
20
|
+
<string>1.0.1</string>
|
21
|
+
<key>CFBundleVersion</key>
|
22
|
+
<string>1.0.1</string>
|
23
|
+
<key>DTCompiler</key>
|
24
|
+
<string></string>
|
25
|
+
<key>DTPlatformBuild</key>
|
26
|
+
<string>4G2008a</string>
|
27
|
+
<key>DTPlatformVersion</key>
|
28
|
+
<string>GM</string>
|
29
|
+
<key>DTSDKBuild</key>
|
30
|
+
<string>12C37</string>
|
31
|
+
<key>DTSDKName</key>
|
32
|
+
<string>macosx10.8</string>
|
33
|
+
<key>DTXcode</key>
|
34
|
+
<string>0452</string>
|
35
|
+
<key>DTXcodeBuild</key>
|
36
|
+
<string>4G2008a</string>
|
37
|
+
<key>NSPrincipalClass</key>
|
38
|
+
<string>SFDCIHelper</string>
|
39
|
+
<key>XC4Compatible</key>
|
40
|
+
<true/>
|
41
|
+
<key>XCGCReady</key>
|
42
|
+
<true/>
|
43
|
+
<key>XCPluginHasUI</key>
|
44
|
+
<false/>
|
45
|
+
</dict>
|
46
|
+
</plist>
|
Binary file
|
metadata
ADDED
@@ -0,0 +1,95 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: dyci
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 27
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Alex Denisov
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2012-11-11 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: dyci-compiler
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - "="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 27
|
29
|
+
segments:
|
30
|
+
- 0
|
31
|
+
- 0
|
32
|
+
- 2
|
33
|
+
version: 0.0.2
|
34
|
+
type: :runtime
|
35
|
+
version_requirements: *id001
|
36
|
+
description: ": Write a gem description"
|
37
|
+
email:
|
38
|
+
- 1101.debian@gmail.com
|
39
|
+
executables:
|
40
|
+
- dyci
|
41
|
+
extensions: []
|
42
|
+
|
43
|
+
extra_rdoc_files: []
|
44
|
+
|
45
|
+
files:
|
46
|
+
- .gitignore
|
47
|
+
- Gemfile
|
48
|
+
- LICENSE
|
49
|
+
- README.md
|
50
|
+
- Rakefile
|
51
|
+
- bin/dyci
|
52
|
+
- dyci.gemspec
|
53
|
+
- lib/dyci.rb
|
54
|
+
- lib/dyci/commands/install_command.rb
|
55
|
+
- lib/dyci/version.rb
|
56
|
+
- lib/plugins/.DS_Store
|
57
|
+
- lib/plugins/DyCIFakeClang.xcplugin/Contents/Info.plist
|
58
|
+
- lib/plugins/DyCIFakeClang.xcplugin/Contents/Resources/DyCIFakeClang.xcspec
|
59
|
+
- lib/plugins/DyCIHelper.xcplugin/Contents/Info.plist
|
60
|
+
- lib/plugins/DyCIHelper.xcplugin/Contents/MacOS/SFDCIHelper
|
61
|
+
homepage: ""
|
62
|
+
licenses: []
|
63
|
+
|
64
|
+
post_install_message:
|
65
|
+
rdoc_options: []
|
66
|
+
|
67
|
+
require_paths:
|
68
|
+
- lib
|
69
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
70
|
+
none: false
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
hash: 3
|
75
|
+
segments:
|
76
|
+
- 0
|
77
|
+
version: "0"
|
78
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
|
+
none: false
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
hash: 3
|
84
|
+
segments:
|
85
|
+
- 0
|
86
|
+
version: "0"
|
87
|
+
requirements: []
|
88
|
+
|
89
|
+
rubyforge_project:
|
90
|
+
rubygems_version: 1.8.24
|
91
|
+
signing_key:
|
92
|
+
specification_version: 3
|
93
|
+
summary: ": Write a gem summary"
|
94
|
+
test_files: []
|
95
|
+
|