xopen 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -14
- data/bin/xopen +3 -4
- data/lib/xopen/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4800eb2ccb4cdfe3a6432394efc38a4e12d17bef
|
4
|
+
data.tar.gz: 0643a2d175dccd6719e102a4ab62344c1178a5b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bf9543c79a688033058b1d5374ec02c07e56ed2c661ad8f5784ae4c61ef663551a7de266cbf223f96a4d7d227a7ab06a5a99269eb2ba55a729a22b58a608284
|
7
|
+
data.tar.gz: a06ddc422b3115b916558f140ccb94da02746031e998494278cd0ab76d54ba94fadf56215ba11e0d7b1b61260fd55c2d3d9340522190b6a4b093aaf562b2303e
|
data/README.md
CHANGED
@@ -1,31 +1,28 @@
|
|
1
1
|
# Xopen
|
2
2
|
|
3
|
-
|
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
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
```ruby
|
10
|
-
gem 'xopen'
|
11
|
-
```
|
12
|
-
|
13
|
-
And then execute:
|
14
|
-
|
15
|
-
$ bundle
|
16
|
-
|
17
|
-
Or install it yourself as:
|
7
|
+
Install from RubyGems:
|
18
8
|
|
19
9
|
$ gem install xopen
|
20
10
|
|
21
11
|
## Usage
|
22
12
|
|
23
|
-
|
13
|
+
Just run the command on the project's folder:
|
14
|
+
|
15
|
+
$ xopen
|
24
16
|
|
25
17
|
## Contributing
|
26
18
|
|
27
|
-
1. Fork it ( https://github.com/
|
19
|
+
1. Fork it ( https://github.com/madson/xopen/fork )
|
28
20
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
29
21
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
30
22
|
4. Push to the branch (`git push origin my-new-feature`)
|
31
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/)
|
data/bin/xopen
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
proj = Dir['
|
4
|
-
proj = Dir['
|
3
|
+
proj = Dir['**/*.xcworkspace'].first
|
4
|
+
proj = Dir['**/*.xcodeproj'].first unless proj
|
5
5
|
|
6
6
|
if proj
|
7
7
|
puts "Opening #{proj}"
|
8
8
|
`open #{proj}`
|
9
9
|
else
|
10
10
|
puts "No xcworkspace | xcproj file found"
|
11
|
-
end
|
12
|
-
|
11
|
+
end
|
data/lib/xopen/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xopen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Madson Cardoso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -76,8 +76,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
78
|
rubyforge_project:
|
79
|
-
rubygems_version: 2.4.
|
79
|
+
rubygems_version: 2.4.6
|
80
80
|
signing_key:
|
81
81
|
specification_version: 4
|
82
82
|
summary: Opens Xcode workspace or project on the current folder.
|
83
83
|
test_files: []
|
84
|
+
has_rdoc:
|