repla 0.9.1 → 0.9.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: '035941f5ebc68d4069856aa0c670cce9d27546ab'
4
- data.tar.gz: 06ecfbafea0e4b708ecc48bbe69dcede7d2db7fc
3
+ metadata.gz: 21744dfbfee19ce7cedb9d7d0ed4ee942590db10
4
+ data.tar.gz: 24dbbc1a06bf0a9b88e7c9394e4f82c0c3adb452
5
5
  SHA512:
6
- metadata.gz: 7163c302c1cbc2386af71009036d2732724d36415a30aebdbe85254d631fd9976e5ed477a16e92874b7ee2f0c5d320bce82adaaf3f827cea3fdf96b1420b8c60
7
- data.tar.gz: 3a862fc3194e21d0b1f0bc987d71a91b56c96a17e55a56df07895720e74bff602bc2908cb918a728ed9d9d048a3fbffef23c3129ff7e532a0993e75ae5d519ab
6
+ metadata.gz: f6b635152b0f01d07bb137f9d9943039ed6f1f92d9ecb43cfbf2e46406bbed0d28ce032a5436ceb89b77fecf418e5b667ac647911f41c1837c461bb2304604f4
7
+ data.tar.gz: f74245bdb5726fbd71ca81875ad54289cf4a658089376b6d68389c5e1128c05d3efe229004fc4f5d45a86085a10fca67196be0f116cb6f2d501ff1d1d62c83f8
@@ -87,8 +87,7 @@ module Repla
87
87
  # TODO: `self.run_applescript` should be private but now all of a sudden
88
88
  # instances method can't call private class methods?
89
89
  def self.run_applescript(script, arguments = nil)
90
- # command = "/usr/bin/osascript #{script.shell_escape}"
91
- command = "/usr/bin/osascript #{script}"
90
+ command = "/usr/bin/osascript #{script.shell_escape}"
92
91
 
93
92
  if arguments
94
93
  command += ' ' + arguments.compact.map(&:to_s).map do |x|
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>WCName</key>
6
+ <string>Echo</string>
7
+ <key>WCCommand</key>
8
+ <string>echo.sh</string>
9
+ <key>WCUUID</key>
10
+ <string>4647A34D-69CB-46D9-8905-4026025DA688</string>
11
+ <key>WCEditable</key>
12
+ <integer>0</integer>
13
+ </dict>
14
+ </plist>
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+
3
+ if [[ -n "$1" ]]; then
4
+ echo "$@"
5
+ else
6
+ echo "$ECHO_MESSAGE"
7
+ fi
8
+
@@ -8,11 +8,10 @@
8
8
  <string>cat.sh</string>
9
9
  <key>WCUUID</key>
10
10
  <string>C4B09ED5-ED60-44FF-A0BB-43EF6F8AF569</string>
11
- <key>WCEditable</key>
12
- <integer>0</integer>
13
11
  <key>WCFileExtensions</key>
14
12
  <array>
15
13
  <string>txt</string>
14
+ <string>html</string>
16
15
  </array>
17
16
  </dict>
18
17
  </plist>
@@ -1,3 +1,3 @@
1
1
  #!/bin/bash
2
2
 
3
- cat
3
+ cat "$@"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: repla
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roben Kleene
@@ -125,6 +125,8 @@ files:
125
125
  - lib/repla/test/lib/view_helper.rb
126
126
  - lib/repla/test/packages/Cat.replaplugin/Contents/Info.plist
127
127
  - lib/repla/test/packages/Cat.replaplugin/Contents/Resources/cat.sh
128
+ - lib/repla/test/packages/Echo.replaplugin/Contents/Info.plist
129
+ - lib/repla/test/packages/Echo.replaplugin/Contents/Resources/echo.sh
128
130
  - lib/repla/test/packages/FileExtension.replaplugin/Contents/Info.plist
129
131
  - lib/repla/test/packages/FileExtension.replaplugin/Contents/Resources/cat.sh
130
132
  - lib/repla/test/packages/HelloWorld.replaplugin/Contents/Info.plist