biscuit 0.0.6 → 0.0.7

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: 89cfe84c2adff5bec92c6ee2115b750d0e90e43d
4
- data.tar.gz: 30cc9968fbb5fc40931fc5e9f31985138da7ea2c
3
+ metadata.gz: 67a2dd92f873d5ac7e7ca2b8464fcd8e6b49d6b0
4
+ data.tar.gz: 135d6b22c9cbb9ae526df66a6a539c52f5740e5f
5
5
  SHA512:
6
- metadata.gz: 13adacec09a420a82cc0f1e0d4fb91b895e0a5f57b933404cfe731853976c804bc583e9a2318947fb402c282de71541efd7536be99bc05dfd12fcb312441bc73
7
- data.tar.gz: 09130a203e416fb3e8019ef676b47a072e0076c3a707392374af88ced4158b4fd793e2cfb329693ec23addc8e2c8386f718c6dc4e1e62e39084237410d98bc76
6
+ metadata.gz: 51479480b630c1f95bd73a52ba0cc0ca0e7dd20c1e0f168ee6878f116301163b14c9ec608e5583ade08aa5eb9a6b97a281db0c271f4e9572fbe2c67a57cb3e46
7
+ data.tar.gz: 60e4c3c4ea99e3e8e7248ad927581754077b4baa1cac138cfe7b9388d1c4d82750d480aed153c99e8c6e295fb72ba961dcac16b666bc43f40b3b30f0f1b32281
data/LICENSE ADDED
@@ -0,0 +1,17 @@
1
+ The MIT License (MIT)
2
+ Copyright (c) 2016 User Testing, Inc.
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software
5
+ and associated documentation files (the "Software"), to deal in the Software without restriction,
6
+ including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
7
+ and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
8
+ subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all copies or substantial
11
+ portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
14
+ LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
15
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
16
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
17
+ OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'open-uri'
2
2
 
3
- UPSTREAM_VERSION = '0.1.2'
3
+ UPSTREAM_VERSION = '0.1.3'
4
4
 
5
5
  def fetch(release_url)
6
6
  tgz_path = download_file(release_url)
@@ -1,5 +1,9 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  this_gems_root = Gem::Specification.find_by_name("biscuit").gem_dir
4
+
5
+ # We aren't using Biscuit.run! here because we want output to be streamed as it arrives for interactive use,
6
+ # and we don't care about capturing the result
4
7
  system("#{this_gems_root}/bin/_biscuit", *ARGV)
8
+
5
9
  exit $?.exitstatus
@@ -1,5 +1,9 @@
1
1
  require "biscuit/version"
2
2
 
3
3
  module Biscuit
4
- # Your code goes here...
4
+ def self.run!(command)
5
+ result = `#{__dir__}/../bin/_biscuit #{command}`
6
+ raise(result.slice(0, 200)) unless $?.success?
7
+ result
8
+ end
5
9
  end
@@ -1,3 +1,3 @@
1
1
  module Biscuit
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: biscuit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Suan-Aik Yeo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-09 00:00:00.000000000 Z
11
+ date: 2016-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -63,6 +63,7 @@ extra_rdoc_files: []
63
63
  files:
64
64
  - .gitignore
65
65
  - Gemfile
66
+ - LICENSE
66
67
  - README.md
67
68
  - Rakefile
68
69
  - bin/biscuit