xqcoretools 0.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. data/LICENSE.txt +20 -0
  2. data/README.rdoc +13 -0
  3. data/bin/xqcoretools +41 -0
  4. metadata +49 -0
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2013 Mark Wong
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,13 @@
1
+ = xqcoretools
2
+
3
+ Tools for using the XQ.Core framework.
4
+
5
+ Tools for synchronizing multiple CSharp projects and deploying to several platform
6
+
7
+ == Usage
8
+
9
+ * xqcoretools
10
+
11
+ == Copyright
12
+
13
+ Copyright (c) 2013 Mark Wong. See LICENSE.txt for further details.
data/bin/xqcoretools ADDED
@@ -0,0 +1,41 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'rubygems'
4
+ require 'thor'
5
+ require 'cross_platform_csproj'
6
+ require 'zip/zip'
7
+
8
+ class XQCoreTools < Thor
9
+ desc "archive [OUTPUT] [PATHS]", "Generates a compressed archive"
10
+ def archive(output, paths)
11
+ FileUtils.rm(output, :force=>true)
12
+
13
+ pathList = paths.split(';')
14
+
15
+ currentPath = Dir.pwd
16
+ puts "PACKFILE: #{currentPath}/#{output}"
17
+
18
+ Zip::ZipFile.open(output, Zip::ZipFile::CREATE) do |zipfile|
19
+ pathList.each do |path|
20
+ XQCoreTools::archiveFilesRecursive(zipfile, path);
21
+ end
22
+ end
23
+ end
24
+
25
+ def self.archiveFilesRecursive(zipfile, path, base = '')
26
+ Dir.foreach(path) do |item|
27
+ subPath = "#{path}/#{item}"
28
+ relPath = base == '' ? item : "#{base}/#{item}"
29
+ if File.file? subPath
30
+ puts "PACKING: #{relPath}"
31
+ zipfile.add(relPath, subPath)
32
+ else
33
+ if item != '.' && item != '..'
34
+ XQCoreTools::archiveFilesRecursive(zipfile, subPath, relPath)
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
40
+
41
+ XQCoreTools.start
metadata ADDED
@@ -0,0 +1,49 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: xqcoretools
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Mark Wong
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-02-20 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: Tools for synchronizing multiple CSharp projects and deploying to several
15
+ platform
16
+ email: mark.sl.wong@gmail.com
17
+ executables:
18
+ - xqcoretools
19
+ extensions: []
20
+ extra_rdoc_files: []
21
+ files:
22
+ - bin/xqcoretools
23
+ - README.rdoc
24
+ - LICENSE.txt
25
+ homepage: http://github.com/markslwong/XQ.Core.Tools
26
+ licenses: []
27
+ post_install_message:
28
+ rdoc_options: []
29
+ require_paths:
30
+ - lib
31
+ required_ruby_version: !ruby/object:Gem::Requirement
32
+ none: false
33
+ requirements:
34
+ - - ! '>='
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ required_rubygems_version: !ruby/object:Gem::Requirement
38
+ none: false
39
+ requirements:
40
+ - - ! '>='
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ requirements: []
44
+ rubyforge_project:
45
+ rubygems_version: 1.8.23
46
+ signing_key:
47
+ specification_version: 3
48
+ summary: Tools for using the XQ.Core framework.
49
+ test_files: []