text_tunnel 0.1.0 → 0.1.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/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2012 Jack Christensen
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,8 @@
1
+ # backport IO.write to older Rubies
2
+ unless IO.respond_to?(:write)
3
+ class IO
4
+ def self.write(name, string)
5
+ open(name, "wb") { |f| f.write string }
6
+ end
7
+ end
8
+ end
@@ -3,6 +3,8 @@
3
3
  gem 'rest-client', '~> 1.6.7'
4
4
  require "rest_client"
5
5
 
6
+ require "text_tunnel/backport"
7
+
6
8
  # Interface is compatible with RestClient exception
7
9
  class UnexpectedResponseError < StandardError
8
10
  attr_reader :response
@@ -1,5 +1,6 @@
1
1
  gem "sinatra", "~> 1.3.2"
2
2
  require "sinatra/base"
3
+ require "text_tunnel/backport"
3
4
 
4
5
  class Server < Sinatra::Base
5
6
  post '/files' do
@@ -1,3 +1,3 @@
1
1
  module TextTunnel
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/readme.md CHANGED
@@ -14,6 +14,7 @@ server for changes and downloads them whenever they occur.
14
14
  ## Installation
15
15
 
16
16
  The text_tunnel gem needs to be installed on both the local and remote hosts.
17
+ Ruby 1.9.2+ required.
17
18
 
18
19
  gem install text_tunnel
19
20
 
@@ -47,3 +48,14 @@ remote hosts. This will let you use a local text editor for git commit
47
48
  messages, crontabs, etc.
48
49
 
49
50
  text_tunneld supports a background daemon mode. Run text_tunneld -h for full options.
51
+
52
+ ## Version History
53
+
54
+ * **0.1.1**
55
+ * Add compatibility with older patch versions of Ruby 1.9.2.
56
+ * **0.1.0**
57
+ * Initial release
58
+
59
+ ## License
60
+
61
+ Copyright (c) 2012 Jack Christensen, released under the MIT license
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: text_tunnel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-21 00:00:00.000000000 Z
12
+ date: 2012-07-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client
@@ -168,10 +168,12 @@ files:
168
168
  - Gemfile
169
169
  - Gemfile.lock
170
170
  - Guardfile
171
+ - MIT-LICENSE
171
172
  - Rakefile
172
173
  - bin/text_tunnel
173
174
  - bin/text_tunneld
174
175
  - lib/text_tunnel.rb
176
+ - lib/text_tunnel/backport.rb
175
177
  - lib/text_tunnel/client.rb
176
178
  - lib/text_tunnel/server.rb
177
179
  - lib/text_tunnel/version.rb