iterm2-protocol 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f68add32491bd9b05616013a4f4577f7442ff20
4
- data.tar.gz: 71b87bc1064f370df81ea6eecf05cf9f66a0159c
3
+ metadata.gz: 9e21ca6c8561fd4eaba3a4b4bf0334c896a6f874
4
+ data.tar.gz: 6c94cacf0f69d6ee683c45023de10238c9faa23f
5
5
  SHA512:
6
- metadata.gz: 43d03d1fbe9238d24a2cd433cf0892b8fb1e48e9eb3bd13feb7e8dff3a25d9185c184a7ead36de176a9f2cd71fe1cd74a59f68ce56d2273fc7f1bae995fdd6da
7
- data.tar.gz: aca4e5074d4dc3c7fcf87045adc2440d393752693bd3c95d863e31ed6f68560a2d24d56840db2763fb3b74ac516bf7a80c51805434f8f41406286695ae460b99
6
+ metadata.gz: d4f714424f1afda0851425da3144efb3966c671ef28ec0a90d2785a7f4a91aa4d8ce12cc9695df5d2f7bda06702117cd065d319ebde6b7346ebb379173a77e98
7
+ data.tar.gz: 11bb2a6f9cea329050064d2eeb1e75184aab8c5f2df20a00b8fb9751c9b4ad00b6fc5133dc230854f0fd1077753ca94c1e1035f02a2b5d59d03bd2f7b2c68806
@@ -0,0 +1,7 @@
1
+ Copyright (c) 2016 Ryan Scott Lewis <ryan@rynet.us>
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,36 +1,25 @@
1
1
  # ITerm2::Protocol
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/iterm2/protocol`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ A wrapper for the iTerm2 xterm protocol extensions.
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
5
+ ## Install
6
6
 
7
- ## Installation
7
+ ### Bundler: `gem "iterm2-protocol"`
8
8
 
9
- Add this line to your application's Gemfile:
10
-
11
- ```ruby
12
- gem 'iterm2-protocol'
13
- ```
14
-
15
- And then execute:
16
-
17
- $ bundle
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install iterm2-protocol
9
+ ### RubyGems: `gem install iterm2-protocol`
22
10
 
23
11
  ## Usage
24
12
 
25
- TODO: Write usage instructions here
13
+ ### Print an Image to Standard Output
26
14
 
27
- ## Development
15
+ ```rb
16
+ require "iterm2/protocol"
28
17
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
18
+ puts ITerm2::Protocol.image(path: path)
19
+ ```
32
20
 
33
- ## Contributing
21
+ ## Copyright
34
22
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/iterm2-protocol.
23
+ Copyright © 2016 Ryan Scott Lewis <ryan@rynet.us>.
36
24
 
25
+ The MIT License (MIT) - See `LICENSE.md` for further details.
@@ -33,7 +33,7 @@ module ITerm2
33
33
  #
34
34
  # @param [#to_s] value
35
35
  # @return [String]
36
- attribute(:width) { |value| value.to_s }
36
+ attribute(:width) { |value| value.nil? ? "auto" : value.to_s }
37
37
 
38
38
  # @method height
39
39
  # Get the height.
@@ -52,7 +52,7 @@ module ITerm2
52
52
  #
53
53
  # @param [#to_s] value
54
54
  # @return [String]
55
- attribute(:height) { |value| value.to_s }
55
+ attribute(:height) { |value| value.nil? ? "auto" : value.to_s }
56
56
 
57
57
  # @method preserve_aspect_ratio
58
58
  # Get whether to preserve the aspect ratio.
@@ -1,5 +1,5 @@
1
1
  module ITerm2
2
2
  module Protocol
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iterm2-protocol
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Scott Lewis
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-06-21 00:00:00.000000000 Z
11
+ date: 2016-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aspect
@@ -90,9 +90,9 @@ extra_rdoc_files: []
90
90
  files:
91
91
  - ".gitignore"
92
92
  - ".rspec"
93
- - ".travis.yml"
94
93
  - Gemfile
95
94
  - Guardfile
95
+ - LICENSE.md
96
96
  - README.md
97
97
  - Rakefile
98
98
  - TODO.md
@@ -1,5 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.3.0
5
- before_install: gem install bundler -v 1.12.4