xcopen 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b9e366f60f3ebac704a11371d653544519e3992d
4
+ data.tar.gz: 5f3e0c5a30933a34e24b3b1731d103aca719ac02
5
+ SHA512:
6
+ metadata.gz: 2bd669ae4b49af8ed5b6721d560257e94f22686933a85faac0192db60cac7c2be53a9405ab19f4c89cb9dadf522b750371933cd148319715349b59729d619995
7
+ data.tar.gz: 251348f9fd0593bbe88895ad6e565546294ef995ad7ddfe768b1edc3bd7e174682d8d9b4c7441628ebb51b168901bf1e17d0ef04ca3202a8c44cc4f27f2bb1e8
@@ -0,0 +1,14 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ *.bundle
11
+ *.so
12
+ *.o
13
+ *.a
14
+ mkmf.log
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in xcopen.gemspec
4
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2015 Madson Cardoso
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.
@@ -0,0 +1,28 @@
1
+ # Xopen
2
+
3
+ Xopen is a command line that opens the first .xcworkspace found on the current folder, or the first .xcodeproj found (if no workspace was found).
4
+
5
+ ## Installation
6
+
7
+ Install from RubyGems:
8
+
9
+ $ gem install xcopen
10
+
11
+ ## Usage
12
+
13
+ Just run the command on the project's folder:
14
+
15
+ $ xcopen
16
+
17
+ ## Contributing
18
+
19
+ 1. Fork it ( https://github.com/madson/xcopen/fork )
20
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
21
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
22
+ 4. Push to the branch (`git push origin my-new-feature`)
23
+ 5. Create a new Pull Request
24
+
25
+ ## Credits
26
+
27
+ * Marcelo Fabri (Original code) - [http://www.marcelofabri.com/xopen/](http://www.marcelofabri.com/xopen/)
28
+ * Madson Cardoso (Ruby gem) - [http://www.madsonmac.com/](http://www.madsonmac.com/)
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ proj = Dir['*.xcworkspace'].first
4
+ proj = Dir['*.xcodeproj'].first unless proj
5
+
6
+ if proj
7
+ puts "Opening #{proj}"
8
+ `open "#{proj}"`
9
+ else
10
+ puts "No xcworkspace | xcproj file found"
11
+ end
12
+
@@ -0,0 +1,10 @@
1
+ require "xcopen/version"
2
+
3
+ module Xcopen
4
+ class Runner
5
+ def self.run!
6
+
7
+ end
8
+ end
9
+ end
10
+
@@ -0,0 +1,4 @@
1
+ module Xcopen
2
+ VERSION = "0.0.5"
3
+ end
4
+
data/rebuild ADDED
@@ -0,0 +1,8 @@
1
+ #!/bin/bash
2
+
3
+ gem_name=$(ruby -e "puts File.basename(Dir.pwd)")
4
+
5
+ gem uninstall $gem_name --force --quiet
6
+ rm *.gem
7
+ gem build $gem_name.gemspec
8
+ gem install $gem_name*.gem
@@ -0,0 +1,24 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'xcopen/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "xcopen"
8
+ spec.version = Xcopen::VERSION
9
+ spec.authors = ["Madson Cardoso"]
10
+ spec.email = ["madsonmac@gmail.com"]
11
+ spec.summary = "Opens Xcode workspace or project on the current folder."
12
+ spec.description = "Script that opens the first .xcworkspace found on the current folder or the first .xcodeproj found (if no workspace was found)."
13
+ spec.homepage = "http://github.com/madson/xcopen"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.7"
22
+ spec.add_development_dependency "rake", "~> 10.0"
23
+ end
24
+
metadata ADDED
@@ -0,0 +1,84 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: xcopen
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.5
5
+ platform: ruby
6
+ authors:
7
+ - Madson Cardoso
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-09-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.7'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ description: Script that opens the first .xcworkspace found on the current folder
42
+ or the first .xcodeproj found (if no workspace was found).
43
+ email:
44
+ - madsonmac@gmail.com
45
+ executables:
46
+ - xcopen
47
+ extensions: []
48
+ extra_rdoc_files: []
49
+ files:
50
+ - ".gitignore"
51
+ - Gemfile
52
+ - LICENSE.txt
53
+ - README.md
54
+ - Rakefile
55
+ - bin/xcopen
56
+ - lib/xcopen.rb
57
+ - lib/xcopen/version.rb
58
+ - rebuild
59
+ - xcopen.gemspec
60
+ homepage: http://github.com/madson/xcopen
61
+ licenses:
62
+ - MIT
63
+ metadata: {}
64
+ post_install_message:
65
+ rdoc_options: []
66
+ require_paths:
67
+ - lib
68
+ required_ruby_version: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: '0'
73
+ required_rubygems_version: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ requirements: []
79
+ rubyforge_project:
80
+ rubygems_version: 2.4.8
81
+ signing_key:
82
+ specification_version: 4
83
+ summary: Opens Xcode workspace or project on the current folder.
84
+ test_files: []