multibases 0.1.0

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,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Multibases
4
+ VERSION = '0.1.0'
5
+ end
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'multibases/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'multibases'
9
+ spec.version = Multibases::VERSION
10
+ spec.authors = ['Derk-Jan Karrenbeld']
11
+ spec.email = ['derk-jan+github@karrenbeld.info']
12
+
13
+ spec.summary = 'Ruby implementation of the multibase specification'
14
+ spec.description = %q(
15
+ This is a low-level library, but high level implementations are provided.
16
+ You can also bring your own encoder/decoder. This gem can be used _both_ for
17
+ encoding into or decoding from multibase packed strings, as well as serve as
18
+ a _general purpose_ library to do `BaseX` encoding and decoding _without_
19
+ adding the prefix.
20
+ ).strip
21
+ spec.homepage = 'https://github.com/SleeplessByte/ruby-multibase'
22
+
23
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the
24
+ # 'allowed_push_host' to allow pushing to a single host or delete this section
25
+ # to allow pushing to any host.
26
+ if spec.respond_to?(:metadata)
27
+ spec.metadata['homepage_uri'] = spec.homepage
28
+ spec.metadata['source_code_uri'] = 'https://github.com/SleeplessByte/ruby-multibase'
29
+ spec.metadata['changelog_uri'] = spec.metadata['source_code_uri'] +
30
+ '/blog/master/CHANGELOG.md'
31
+ else
32
+ raise 'RubyGems 2.0 or newer is required to protect against ' \
33
+ 'public gem pushes.'
34
+ end
35
+
36
+ # Specify which files should be added to the gem when it is released.
37
+ # The `git ls-files -z` loads the files in the RubyGem that have been added
38
+ # into git.
39
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
40
+ `git ls-files -z`.split("\x0").reject do |f|
41
+ f.match(%r{^(test|spec|features)/})
42
+ end
43
+ end
44
+ spec.bindir = 'exe'
45
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
46
+ spec.require_paths = ['lib']
47
+
48
+ spec.add_development_dependency 'bundler', '~> 2'
49
+ spec.add_development_dependency 'minitest', '~> 5.0'
50
+ spec.add_development_dependency 'rake', '~> 10.0'
51
+ end
metadata ADDED
@@ -0,0 +1,112 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: multibases
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Derk-Jan Karrenbeld
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-06-19 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: '2'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: minitest
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '5.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '5.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ description: |-
56
+ This is a low-level library, but high level implementations are provided.
57
+ You can also bring your own encoder/decoder. This gem can be used _both_ for
58
+ encoding into or decoding from multibase packed strings, as well as serve as
59
+ a _general purpose_ library to do `BaseX` encoding and decoding _without_
60
+ adding the prefix.
61
+ email:
62
+ - derk-jan+github@karrenbeld.info
63
+ executables: []
64
+ extensions: []
65
+ extra_rdoc_files: []
66
+ files:
67
+ - ".gitignore"
68
+ - ".rubocop.yml"
69
+ - ".travis.yml"
70
+ - Gemfile
71
+ - README.md
72
+ - Rakefile
73
+ - bin/console
74
+ - bin/setup
75
+ - lib/multibases.rb
76
+ - lib/multibases/bare.rb
77
+ - lib/multibases/base16.rb
78
+ - lib/multibases/base2.rb
79
+ - lib/multibases/base32.rb
80
+ - lib/multibases/base64.rb
81
+ - lib/multibases/base_x.rb
82
+ - lib/multibases/byte_array.rb
83
+ - lib/multibases/ord_table.rb
84
+ - lib/multibases/registry.rb
85
+ - lib/multibases/version.rb
86
+ - multibases.gemspec
87
+ homepage: https://github.com/SleeplessByte/ruby-multibase
88
+ licenses: []
89
+ metadata:
90
+ homepage_uri: https://github.com/SleeplessByte/ruby-multibase
91
+ source_code_uri: https://github.com/SleeplessByte/ruby-multibase
92
+ changelog_uri: https://github.com/SleeplessByte/ruby-multibase/blog/master/CHANGELOG.md
93
+ post_install_message:
94
+ rdoc_options: []
95
+ require_paths:
96
+ - lib
97
+ required_ruby_version: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ required_rubygems_version: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ version: '0'
107
+ requirements: []
108
+ rubygems_version: 3.0.2
109
+ signing_key:
110
+ specification_version: 4
111
+ summary: Ruby implementation of the multibase specification
112
+ test_files: []