funky-tlv 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +2 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +27 -0
- data/README.md +30 -0
- data/Rakefile +13 -0
- data/funky-tlv.gemspec +23 -0
- data/lib/funky-tlv.rb +4 -0
- data/out/funky-tlv/main.mrb +0 -0
- metadata +81 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 581cd5ebf7ff938eddcef30ffcc2db896e9a3ede
|
4
|
+
data.tar.gz: 696ee6d6b27ec8e075085cc46d9bbbe7ad091e0a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e94b97b4592560c4fc96ca0e69051f7953b878abc0fa99466bfdd30c11f662e1fadd859f435f68e1e69ccdbdf2eca3c057114ca6ead00406bd844a6c05b43600
|
7
|
+
data.tar.gz: 7576be5935ec9fd8c7bd9c8ff04775112a43d845183209521c107e99ee42750d76be048b5d0206d48ed3998cb280a292f841574dd9a7115d6ac2df8a4dc5f5bc
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
funky-tlv (0.2.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
cloudwalk_handshake (0.5.4)
|
10
|
+
da_funk (0.7.3)
|
11
|
+
bundler (~> 1.7)
|
12
|
+
cloudwalk_handshake (~> 0.5)
|
13
|
+
posxml_parser (~> 0.6)
|
14
|
+
rake (~> 10.4)
|
15
|
+
yard (~> 0.8)
|
16
|
+
posxml_parser (0.7.11)
|
17
|
+
rake (10.5.0)
|
18
|
+
yard (0.8.7.6)
|
19
|
+
|
20
|
+
PLATFORMS
|
21
|
+
ruby
|
22
|
+
|
23
|
+
DEPENDENCIES
|
24
|
+
bundler (~> 1.7)
|
25
|
+
da_funk
|
26
|
+
funky-tlv!
|
27
|
+
rake (~> 10.0)
|
data/README.md
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# Funky TLV
|
2
|
+
|
3
|
+
Extend Hash class with ability to parse and convert BER TLV format. Forked from [hash-ber-tlv gem](https://rubygems.org/gems/hash-ber-tlv).
|
4
|
+
|
5
|
+
# Usage
|
6
|
+
|
7
|
+
```
|
8
|
+
# To Ber TLV
|
9
|
+
{40759=>"u\xCB\x11\xD1"}.to_ber_tlv
|
10
|
+
=> "\x9F7\x04u\xCB\x11\xD1"
|
11
|
+
|
12
|
+
# From Ber TLV
|
13
|
+
hash.from_ber_tlv("\x9F7\x04u\xCB\x11\xD1")
|
14
|
+
=> {40759 => "u\xCB\x11\xD1"}
|
15
|
+
|
16
|
+
```
|
17
|
+
|
18
|
+
|
19
|
+
## Contributing
|
20
|
+
|
21
|
+
1. Fork it
|
22
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
23
|
+
3. Commit your changes (`git commit -am 'Added some feature'`)
|
24
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
25
|
+
5. Create new Pull Request
|
26
|
+
|
27
|
+
# License
|
28
|
+
under the MIT License:
|
29
|
+
|
30
|
+
* http://www.opensource.org/licenses/mit-license.php
|
data/Rakefile
ADDED
data/funky-tlv.gemspec
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'funky-tlv.rb'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "funky-tlv"
|
8
|
+
spec.version = FunkyTlv::VERSION
|
9
|
+
spec.authors = ["Thiago Scalone"]
|
10
|
+
spec.email = ["thiago@cloudwalk.io"]
|
11
|
+
spec.summary = "Hash Ber TLV implementation"
|
12
|
+
spec.description = "Implements Hash Ber TLV on funk environment"
|
13
|
+
spec.homepage = "https://github.com/scalone/funky-tlv"
|
14
|
+
spec.license = "MIT"
|
15
|
+
spec.files = %w(.gitignore Gemfile Gemfile.lock README.md Rakefile funky-tlv.gemspec lib/funky-tlv.rb out/funky-tlv/main.mrb)
|
16
|
+
spec.extensions = []
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.7"
|
22
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
23
|
+
end
|
data/lib/funky-tlv.rb
ADDED
Binary file
|
metadata
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: funky-tlv
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Thiago Scalone
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-06-29 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.7'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.7'
|
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: Implements Hash Ber TLV on funk environment
|
42
|
+
email:
|
43
|
+
- thiago@cloudwalk.io
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- .gitignore
|
49
|
+
- Gemfile
|
50
|
+
- Gemfile.lock
|
51
|
+
- README.md
|
52
|
+
- Rakefile
|
53
|
+
- funky-tlv.gemspec
|
54
|
+
- lib/funky-tlv.rb
|
55
|
+
- out/funky-tlv/main.mrb
|
56
|
+
homepage: https://github.com/scalone/funky-tlv
|
57
|
+
licenses:
|
58
|
+
- MIT
|
59
|
+
metadata: {}
|
60
|
+
post_install_message:
|
61
|
+
rdoc_options: []
|
62
|
+
require_paths:
|
63
|
+
- lib
|
64
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - '>='
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0'
|
74
|
+
requirements: []
|
75
|
+
rubyforge_project:
|
76
|
+
rubygems_version: 2.2.2
|
77
|
+
signing_key:
|
78
|
+
specification_version: 4
|
79
|
+
summary: Hash Ber TLV implementation
|
80
|
+
test_files: []
|
81
|
+
has_rdoc:
|