coda 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/coda +20 -0
- metadata +67 -0
data/bin/coda
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'fileutils'
|
3
|
+
|
4
|
+
CODAPATH = ENV['CODAPATH'] || "/Applications/Coda.app"
|
5
|
+
|
6
|
+
def help
|
7
|
+
puts "Usage: #{$0} [filename(s) / directory name(s)]"
|
8
|
+
exit
|
9
|
+
end
|
10
|
+
|
11
|
+
help if ARGV.size == 0 || ["-h", "--help"].include?(ARGV[0])
|
12
|
+
|
13
|
+
files = ARGV.map do |file|
|
14
|
+
File.directory?(file) ? Dir.glob(file + "/*") : [file]
|
15
|
+
end
|
16
|
+
files.flatten!
|
17
|
+
|
18
|
+
FileUtils.touch files
|
19
|
+
|
20
|
+
`open -a #{CODAPATH} #{files.join(" ")}`
|
metadata
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: coda
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 29
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 1
|
10
|
+
version: 0.0.1
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Aditya Bhargava
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2012-03-09 00:00:00 -08:00
|
19
|
+
default_executable:
|
20
|
+
dependencies: []
|
21
|
+
|
22
|
+
description: Open files with Coda from the command line.
|
23
|
+
email: batman@scribd.com
|
24
|
+
executables:
|
25
|
+
- coda
|
26
|
+
extensions: []
|
27
|
+
|
28
|
+
extra_rdoc_files: []
|
29
|
+
|
30
|
+
files:
|
31
|
+
- bin/coda
|
32
|
+
has_rdoc: true
|
33
|
+
homepage: https://github.com/egonSchiele/Command-Line-Coda
|
34
|
+
licenses: []
|
35
|
+
|
36
|
+
post_install_message:
|
37
|
+
rdoc_options: []
|
38
|
+
|
39
|
+
require_paths:
|
40
|
+
- lib
|
41
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
hash: 3
|
47
|
+
segments:
|
48
|
+
- 0
|
49
|
+
version: "0"
|
50
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
51
|
+
none: false
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
hash: 3
|
56
|
+
segments:
|
57
|
+
- 0
|
58
|
+
version: "0"
|
59
|
+
requirements: []
|
60
|
+
|
61
|
+
rubyforge_project:
|
62
|
+
rubygems_version: 1.3.7
|
63
|
+
signing_key:
|
64
|
+
specification_version: 3
|
65
|
+
summary: Open files with Coda from the command line.
|
66
|
+
test_files: []
|
67
|
+
|