keybase-unofficial-core 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b1a0bd4b2b29622744ba64f2aff7ce377ad5c3a0
4
+ data.tar.gz: bce9e515d07d838894b31ba50c6294e39feb039d
5
+ SHA512:
6
+ metadata.gz: 18b59946df2a01c61ff84b805b29b797b73741294b6011908ad9210244e2c058a9f219bdb02d0707e5ba3c68569ec71eaab80811cb371f39bdae847bb345e345
7
+ data.tar.gz: f966af378da766a691fcedf61b624af9d63fbbf8393d44c22fd0b631e5960ccc832ee648f8c0a998baf15bfda503f6a1666a4781f9749835a194846626653975
@@ -0,0 +1 @@
1
+ --no-private --markup-provider=redcarpet --markup=markdown - *.md LICENSE
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 William Woodruff <william @ yossarian.net>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,18 @@
1
+ keybase-unofficial-core
2
+ =======================
3
+
4
+ Core definitions for [keybase-unofficial-api](https://github.com/woodruffw/keybase-unofficial-api)
5
+ and keybase[-unofficial-local](https://github.com/woodruffw/keybase-unofficial-local).
6
+
7
+ Not very useful on its own.
8
+
9
+ ### Installation
10
+
11
+ ```bash
12
+ gem install keybase-unofficial-core
13
+ ```
14
+
15
+ ### Documentation
16
+
17
+ Documentation for the current release can be found on
18
+ [RubyDoc](http://www.rubydoc.info/gems/keybase-unofficial-core/).
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "core/exceptions"
4
+ require_relative "core/u"
5
+
6
+ # The primary namespace.
7
+ module Keybase
8
+ # The namespace for `keybase-unofficial-core`.
9
+ module Core
10
+ # The current version of `keybase-unofficial-core`.
11
+ VERSION = "0.0.1"
12
+ end
13
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Keybase
4
+ module Core
5
+ # A namespace for all exceptions defined by {Keybase::Core}.
6
+ module Exceptions
7
+ # The top level exception class.
8
+ class KeybaseError < RuntimeError
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Keybase
4
+ module Core
5
+ # A class for converting arrays of users into Keybase-style strings.
6
+ module U
7
+ # @param args [Array<String>] the list of users to merge
8
+ # @return [String] the Keybase-style user string
9
+ # @example
10
+ # Keybase::U["a", "b"] # => "a,b"
11
+ def self.[](*args)
12
+ args.join(",")
13
+ end
14
+ end
15
+ end
16
+ end
metadata ADDED
@@ -0,0 +1,51 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: keybase-unofficial-core
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - William Woodruff
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-09-20 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: |
14
+ This library provides core definitions for keybase-unofficial-local
15
+ and keybase-unofficial-api. It isn't very useful alone.
16
+ email: william@tuffbizz.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - ".yardopts"
22
+ - LICENSE
23
+ - README.md
24
+ - lib/keybase/core.rb
25
+ - lib/keybase/core/exceptions.rb
26
+ - lib/keybase/core/u.rb
27
+ homepage: https://github.com/woodruffw/keybase-unofficial-core
28
+ licenses:
29
+ - MIT
30
+ metadata: {}
31
+ post_install_message:
32
+ rdoc_options: []
33
+ require_paths:
34
+ - lib
35
+ required_ruby_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: 2.3.0
40
+ required_rubygems_version: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ requirements: []
46
+ rubyforge_project:
47
+ rubygems_version: 2.6.13
48
+ signing_key:
49
+ specification_version: 4
50
+ summary: keybase-unofficial-core - Core definitions for keybase-unofficial-*
51
+ test_files: []