biscuit 0.0.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9fb7d20356d6517a22b2c67ea7fae54dff1bf89c
4
+ data.tar.gz: 288b9342149d9d3299d7f5feec870fa5aaacbc50
5
+ SHA512:
6
+ metadata.gz: 63f92b49f8e1f257c57e632c4992c0210a8895c55a071fadeed3fc7af3c96d3c6ffa0e8b9635fff28a411f5ac38501f6e8f8e3b0baa5b5d0d3ce07fa627b8d54
7
+ data.tar.gz: 541571b4f3dc66683e154aa966aafad23c503132bbda00a62cc656dfdd9b3af5e007060bf3e5552fd3451978727820918b88b27fc03fd98e09c7b543055c2194
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in biscuit.gemspec
4
+ gemspec
@@ -0,0 +1,39 @@
1
+ # Biscuit
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/biscuit`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'biscuit'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install biscuit
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, 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` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ 1. Fork it ( https://github.com/[my-github-username]/biscuit/fork )
36
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
37
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
38
+ 4. Push to the branch (`git push origin my-new-feature`)
39
+ 5. Create a new Pull Request
@@ -0,0 +1,31 @@
1
+ require "bundler/gem_tasks"
2
+ require 'open-uri'
3
+ require_relative 'lib/biscuit/version'
4
+
5
+ def fetch(release_url)
6
+ tgz_path = download_file(release_url)
7
+
8
+ system("tar -xzf #{tgz_path} -C #{File.dirname(tgz_path)}") || raise
9
+ system("mv #{File.dirname(tgz_path)}/biscuit #{__dir__}/bin/_biscuit") || raise
10
+ end
11
+
12
+ def download_file(url)
13
+ filename = URI(url).path.split('/').last
14
+
15
+ IO.copy_stream(open(url), "/tmp/#{filename}")
16
+
17
+ "/tmp/#{filename}"
18
+ end
19
+
20
+ task :default do
21
+ platform = Gem::Platform.local
22
+ base_release_url = "https://github.com/dcoker/biscuit/releases/download/v#{Biscuit::VERSION}/biscuit"
23
+
24
+ if platform.os == 'darwin' && platform.cpu == 'x86_64'
25
+ fetch("#{base_release_url}-darwin_amd64.tgz")
26
+ elsif platform.os == 'linux' && platform.cpu == 'x86_64'
27
+ fetch("#{base_release_url}-linux_amd64.tgz")
28
+ else
29
+ puts "Unsupported platform #{platform}"
30
+ end
31
+ end
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ this_gems_root = Gem::Specification.find_by_name("biscuit").gem_dir
4
+ system("#{this_gems_root}/bin/_biscuit", *ARGV)
5
+ exit $?.exitstatus
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "biscuit"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,32 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'biscuit/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "biscuit"
8
+ spec.version = '0.0.1'
9
+ spec.authors = ["Suan-Aik Yeo"]
10
+ spec.email = ["yeosuanaik@gmail.com"]
11
+
12
+ spec.summary = %q{Ruby wrapper for biscuit (https://github.com/dcoker/biscuit).}
13
+ spec.description = %q{Ruby wrapper for biscuit (https://github.com/dcoker/biscuit).}
14
+ spec.homepage = "https://github.com/usertesting/biscuit"
15
+
16
+ # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
17
+ # delete this section to allow pushing this gem to any host.
18
+ if spec.respond_to?(:metadata)
19
+ spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
20
+ else
21
+ raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
22
+ end
23
+
24
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
25
+ spec.bindir = "bin"
26
+ spec.executables = 'biscuit'
27
+ spec.require_paths = ["lib"]
28
+ spec.extensions = ["Rakefile"]
29
+
30
+ spec.add_development_dependency "bundler", "~> 1.9"
31
+ spec.add_development_dependency "rake", "~> 10.0"
32
+ end
@@ -0,0 +1,5 @@
1
+ require "biscuit/version"
2
+
3
+ module Biscuit
4
+ # Your code goes here...
5
+ end
@@ -0,0 +1,3 @@
1
+ module Biscuit
2
+ VERSION = "0.1.2"
3
+ end
metadata ADDED
@@ -0,0 +1,85 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: biscuit
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Suan-Aik Yeo
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-11-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.9'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.9'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ description: Ruby wrapper for biscuit (https://github.com/dcoker/biscuit).
42
+ email:
43
+ - yeosuanaik@gmail.com
44
+ executables:
45
+ - biscuit
46
+ extensions:
47
+ - Rakefile
48
+ extra_rdoc_files: []
49
+ files:
50
+ - .gitignore
51
+ - Gemfile
52
+ - README.md
53
+ - Rakefile
54
+ - bin/biscuit
55
+ - bin/console
56
+ - bin/setup
57
+ - biscuit.gemspec
58
+ - lib/biscuit.rb
59
+ - lib/biscuit/version.rb
60
+ homepage: https://github.com/usertesting/biscuit
61
+ licenses: []
62
+ metadata:
63
+ allowed_push_host: 'TODO: Set to ''http://mygemserver.com'''
64
+ post_install_message:
65
+ rdoc_options: []
66
+ require_paths:
67
+ - lib
68
+ required_ruby_version: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - '>='
71
+ - !ruby/object:Gem::Version
72
+ version: '0'
73
+ required_rubygems_version: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ requirements: []
79
+ rubyforge_project:
80
+ rubygems_version: 2.0.14
81
+ signing_key:
82
+ specification_version: 4
83
+ summary: Ruby wrapper for biscuit (https://github.com/dcoker/biscuit).
84
+ test_files: []
85
+ has_rdoc: