constable 0.2.0 → 0.2.1
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.
- data/README.md +7 -7
- data/bin/constable-install +17 -0
- data/lib/constable/version.rb +1 -1
- metadata +7 -4
data/README.md
CHANGED
@@ -14,18 +14,18 @@ Up and running fast
|
|
14
14
|
I've provided a Vagrant setup that will get you up and running fast. Install
|
15
15
|
the necessary gems using bundler:
|
16
16
|
|
17
|
-
cd /path/to/checkout/of/constable
|
18
|
-
bundle
|
17
|
+
$ cd /path/to/checkout/of/constable
|
18
|
+
$ bundle
|
19
19
|
|
20
20
|
Ask Vagrant to bring up the server components for you:
|
21
21
|
|
22
|
-
cd /path/to/checkout/of/constable
|
23
|
-
bundle exec vagrant up
|
22
|
+
$ cd /path/to/checkout/of/constable
|
23
|
+
$ bundle exec vagrant up
|
24
24
|
|
25
25
|
Ask Constable to do some work:
|
26
26
|
|
27
|
-
cd /path/to/checkout/of/constable
|
28
|
-
bundle exec ./bin/constable-identify -- /path/to/input.png -verbose
|
27
|
+
$ cd /path/to/checkout/of/constable
|
28
|
+
$ bundle exec ./bin/constable-identify -- /path/to/input.png -verbose
|
29
29
|
|
30
30
|
That's it, you just used ImageMagick as a service.
|
31
31
|
|
@@ -40,7 +40,7 @@ Installing
|
|
40
40
|
|
41
41
|
The server needs ImageMagick installed. Mostly I do this using `apt-get`:
|
42
42
|
|
43
|
-
apt-get install imagemagick
|
43
|
+
$ apt-get install imagemagick
|
44
44
|
|
45
45
|
You'll need a broker that talks Stomp somewhere on your network. I use Apache
|
46
46
|
Apollo, and I'm not totally sure if the code uses anything that's specific to
|
@@ -0,0 +1,17 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
|
3
|
+
prefix = '/usr/bin'
|
4
|
+
argv = ARGV.join ' '
|
5
|
+
argv += ' -- '
|
6
|
+
%w(
|
7
|
+
identify
|
8
|
+
convert
|
9
|
+
).each do |wrapper|
|
10
|
+
wrapper_path = File.join prefix, wrapper
|
11
|
+
puts "Installing #{wrapper_path} -> constable-#{wrapper} #{argv}"
|
12
|
+
File.open wrapper_path, 'w+' do |f|
|
13
|
+
f.puts "#!/usr/bin/env bash"
|
14
|
+
f.puts "constable-#{wrapper} #{argv} -- $@"
|
15
|
+
f.chmod 0755
|
16
|
+
end
|
17
|
+
end
|
data/lib/constable/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: constable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-10-03 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: stomp
|
16
|
-
requirement: &
|
16
|
+
requirement: &70289842148660 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,14 +21,16 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70289842148660
|
25
25
|
description: Installing ImageMagick and RMagick everywhere sucks, right? So install
|
26
26
|
it in one place and have everything else use that one install.
|
27
27
|
email:
|
28
28
|
- craig@barkingiguana.com
|
29
29
|
executables:
|
30
|
-
-
|
30
|
+
- constable-convert
|
31
31
|
- constable-identify
|
32
|
+
- constable-install
|
33
|
+
- constabled
|
32
34
|
extensions: []
|
33
35
|
extra_rdoc_files: []
|
34
36
|
files:
|
@@ -36,6 +38,7 @@ files:
|
|
36
38
|
- lib/constable.rb
|
37
39
|
- bin/constable-convert
|
38
40
|
- bin/constable-identify
|
41
|
+
- bin/constable-install
|
39
42
|
- bin/constabled
|
40
43
|
- README.md
|
41
44
|
homepage:
|