golomb 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3006e47bfd7f8284ec9a97bbc04b3fb583208ad8
4
- data.tar.gz: 0641044c55b5674cc32eefe4a5464e971a61b5a7
3
+ metadata.gz: 3c0a9c98982aa8115ee7293ee173115bb4b331a9
4
+ data.tar.gz: 272ae51e36b9709ccb4e58bf210d2ccfb463299a
5
5
  SHA512:
6
- metadata.gz: e4de6b663ad2c59416846f9d1b97cdb3747a8a43bc6bf0ed332d33725792ef91a511374f61227184bc0a543b36d9b7e092dab9d03f0c5f7b0735999bb1a24f3c
7
- data.tar.gz: 3a038c14452695393fbe31ea3e7ba88ad24baf0df5b2b77201ebd2a42179c89b4978a47341aeb7804dd637073667cc09b7652a87e29d8f0626b3fe049e8e2ea9
6
+ metadata.gz: 998ef1179ad83b0acd787eaaab6060d1ba601e0a73dde6cdd70a4014df450018286029de4aa753fbe3a7403e777abe0987d465f83291f71e6017f2001e0df4e7
7
+ data.tar.gz: 1cece48557468596d75a825880882b73dc6e08eab85d4981e585e3b5cd5aa92332c853c6c111c8ec74ef07f8c0f72ab8c99d68ba5f36ef39834aef363c6890fd
data/README.md CHANGED
@@ -8,18 +8,10 @@ Make sure that you have the Ruby's environment installed.
8
8
 
9
9
  #### Installing via Ruby Gems
10
10
 
11
- $ gem install golomb-cli
11
+ $ gem install golomb
12
12
 
13
13
  After installing you have access to the command `golomb` on your terminal.
14
14
 
15
- #### Manual installation
16
-
17
- Download the project and execute the command below. Make sure that you are on the project directory.
18
-
19
- $ bundle install
20
-
21
- This command will install all dependencies. After installed you can access the binary located in `bin/golomb`. Execute the binary based on the examples below.
22
-
23
15
  ## Usage
24
16
 
25
17
  The tool has the commands `encode` and `decode`.
data/bin/golomb CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'gli'
3
3
 
4
- require 'golomb'
4
+ require_relative '../lib/golomb'
5
5
  require 'terminal-table'
6
6
 
7
7
  include GLI::App
data/golomb.gemspec CHANGED
@@ -4,7 +4,7 @@ require File.join([File.dirname(__FILE__),'lib','golomb','encoder.rb'])
4
4
  spec = Gem::Specification.new do |s|
5
5
  s.name = 'golomb'
6
6
  s.version = Golomb::VERSION
7
- s.author = 'Bruno Flach Bohn / Cássio Ghilardi'
7
+ s.author = 'Bruno Flach Bohn / Cassio Ghilardi'
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.summary = 'Golomb command-line tool'
10
10
  s.files = `git ls-files`.split("
data/lib/golomb.rb CHANGED
@@ -1,3 +1,3 @@
1
- require 'golomb/version.rb'
2
- require 'golomb/encoder.rb'
3
- require 'golomb/decoder.rb'
1
+ require_relative 'golomb/version.rb'
2
+ require_relative 'golomb/encoder.rb'
3
+ require_relative 'golomb/decoder.rb'
@@ -22,7 +22,7 @@ module Golomb
22
22
 
23
23
  # checks if the divisor is power of 2 (Rice coding)
24
24
  if @divisor.to_s(2).scan(/1/).size == 1
25
- remainder_code = "0" << remainder.to_s(2)
25
+ remainder_code = remainder.to_s(2)
26
26
  else
27
27
  b = Math.log2(@divisor).ceil
28
28
 
@@ -1,3 +1,3 @@
1
1
  module Golomb
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: golomb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
- - Bruno Flach Bohn / Cássio Ghilardi
7
+ - Bruno Flach Bohn / Cassio Ghilardi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  version: '0'
128
128
  requirements: []
129
129
  rubyforge_project:
130
- rubygems_version: 2.4.3
130
+ rubygems_version: 2.4.6
131
131
  signing_key:
132
132
  specification_version: 4
133
133
  summary: Golomb command-line tool