closx 0.0.1 → 0.0.2
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.
- checksums.yaml +8 -8
- data/README.md +9 -2
- data/bin/closx +5 -1
- data/lib/closx.rb +2 -2
- data/test/closx_test.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjVjYjdkZWE1MzFkY2FjOTgzODg2ODIyY2JlNTcxZGUxMmNjYTRkOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTIwNGY4YTk1YWYzMGRmNzZkZGE2NTRkY2Q3ZjdkYmNkZWI0ZGU3Nw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Y2EzNTlhMTc3ZDE1MDdjYTQ1MTQ3NzRmNWEzMTM5Njc0ZGM2ODVhOTk5YmE5
|
10
|
+
ZTA4YTMyYzBjNTRlODdkMTkyYjQxM2QxNjRkOGU2M2I4YjVmNjEzN2E0ZmVi
|
11
|
+
NDU1ZDJmZjU5YTFhZDZjNTEyN2JhYTcwOGE5MzU2NzE4MWYxNzQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjIzMzE0MTczNmJlNWUzYTg2NTNiZGM4ZGUxYTY2ODYzMWQ4OWYwZDA5ZGUz
|
14
|
+
NTkyNjI5MTc3ZGZhOTQ3NmU1ZjI4NzY3ODA2NTdhZjNjOTZmMWExMjU1ODVi
|
15
|
+
MjIyNzE4MTI3ZWQwZjZkZWRhMmM0MTRkYTg1NWVlOWJlNWZjZDY=
|
data/README.md
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# Closx
|
2
|
+
[](https://travis-ci.org/metamorfos/closx)
|
2
3
|
|
3
4
|
A dumb, really dumb, hack that creates scripts for your apps
|
4
5
|
|
@@ -22,11 +23,17 @@ Or install it yourself as:
|
|
22
23
|
|
23
24
|
This is just stupid...
|
24
25
|
|
25
|
-
|
26
|
+
```bash
|
27
|
+
$ closx 'iA Writer'
|
28
|
+
$ closx iA Writer
|
29
|
+
$ closx ia WRITER
|
30
|
+
```
|
31
|
+
|
32
|
+
Eveything works
|
26
33
|
|
27
34
|
or
|
28
35
|
|
29
|
-
$ closx
|
36
|
+
$ closx /Applications/iA Writer.app
|
30
37
|
|
31
38
|
Will output a script that you should add to your path
|
32
39
|
|
data/bin/closx
CHANGED
data/lib/closx.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
class Closx
|
2
|
-
VERSION = "0.0.
|
2
|
+
VERSION = "0.0.2"
|
3
3
|
|
4
4
|
class << self
|
5
5
|
def from_path path
|
@@ -16,7 +16,7 @@ class Closx
|
|
16
16
|
attr_reader :full_name, :name
|
17
17
|
|
18
18
|
def initialize full_name
|
19
|
-
@full_name = full_name
|
19
|
+
@full_name = full_name
|
20
20
|
@name = full_name.gsub(' ', '').downcase
|
21
21
|
end
|
22
22
|
|
data/test/closx_test.rb
CHANGED
@@ -20,6 +20,7 @@ class TestClosx < MiniTest::Unit::TestCase
|
|
20
20
|
def test_from_path
|
21
21
|
app_from_path = Closx.from_path(app_path)
|
22
22
|
assert app_from_path.name, "iawriter"
|
23
|
+
assert app_from_path.full_name, "iA Writer"
|
23
24
|
assert app_from_path.script, /open\ -a \"#{app_name}\" \"\$1\"/
|
24
25
|
end
|
25
26
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: closx
|
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
|
- Teo Ljungberg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-04-
|
11
|
+
date: 2013-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
prerelease: false
|