Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Initial commit

commit 1357a97fd71d7b5a20c98f3f53979bc27b02cfba 0 parents
@whatupdave authored
4 .gitignore
@@ -0,0 +1,4 @@
+*.gem
+.bundle
+Gemfile.lock
+pkg/*
4 Gemfile
@@ -0,0 +1,4 @@
+source "http://rubygems.org"
+
+# Specify your gem's dependencies in wox.gemspec
+gemspec
2  Rakefile
@@ -0,0 +1,2 @@
+require 'bundler'
+Bundler::GemHelper.install_tasks
30 lib/wox.rb
@@ -0,0 +1,30 @@
+require 'thor'
+
+module Wox
+ class Tasks
+ def self.install(opts = {})
+ resource_file = opts[:resource_file] || 'Resources/Info.plist'
+ app_name = opts[:app_name] || File.split(Dir.pwd).last
+ version = Plist::parse_xml(resource_file)['CFBundleVersion']
+ self.new(app_name, version)
+ end
+
+ attr_reader :app_name, :version
+
+ def initialize(app_name, version)
+ @app_name = app_name
+ @version = version
+ end
+
+ def install
+ desc "Builds #{app_name}"
+ task :build do
+ build_app
+ end
+ end
+
+ def build_app
+ sh "xcodebuild -target '#{app_name}' -configuration Release > build/build.log"
+ end
+ end
+end
3  lib/wox/version.rb
@@ -0,0 +1,3 @@
+module Wox
+ VERSION = "0.0.1"
+end
21 wox.gemspec
@@ -0,0 +1,21 @@
+# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "wox/version"
+
+Gem::Specification.new do |s|
+ s.name = "wox"
+ s.version = Wox::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["TODO: Write your name"]
+ s.email = ["TODO: Write your email address"]
+ s.homepage = ""
+ s.summary = %q{TODO: Write a gem summary}
+ s.description = %q{TODO: Write a gem description}
+
+ s.rubyforge_project = "wox"
+
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ s.require_paths = ["lib"]
+end
Please sign in to comment.
Something went wrong with that request. Please try again.