tobinary 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +8 -4
- data/lib/tobinary.rb +1 -1
- data/lib/tobinary/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4121fc579f29a249d26de1b11dac6c3f9b46829
|
4
|
+
data.tar.gz: 78574f310be2a14d30d35dfd7450a1bed847ecea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30b7b37d3bb6690200b88dcaaa480a23e6c94add568d518412af524a189a774572fe3a213143c4d8f184c3d7d09eb1aa415aca6557d4a2921211b23b3f57462a
|
7
|
+
data.tar.gz: b794fda64e045dec3e74c4869de9079877b06d4d08550d4c2d154fa2de67ef98401e6d687f313408410dbbadbfde82266f1dc28b7262db303d57ee89a4e59d37
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
#
|
1
|
+
# tobinary
|
2
2
|
|
3
3
|
Ruby Gem that allows you to convert any number into binary easily.
|
4
4
|
|
5
5
|
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/tobinary`. To experiment with that code, run `bin/console` for an interactive prompt.
|
6
6
|
|
7
|
-
|
7
|
+
You can also check the rubygems.org link https://rubygems.org/gems/tobinary
|
8
8
|
|
9
9
|
## Installation
|
10
10
|
|
@@ -24,7 +24,11 @@ Or install it yourself as:
|
|
24
24
|
|
25
25
|
## Usage
|
26
26
|
|
27
|
-
|
27
|
+
Just call `.to_binary`on any decimal number lower than 65536 (will be enchanced :) ) and it will return you the binary version of it.
|
28
|
+
|
29
|
+
` 3.to_binary ` will give you ` 11 `
|
30
|
+
` 30.to_binary ` will give you ` 00011110 `
|
31
|
+
` 65535.to_binary ` will give you ` 1111111111111111 `
|
28
32
|
|
29
33
|
## Development
|
30
34
|
|
@@ -34,4 +38,4 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
34
38
|
|
35
39
|
## Contributing
|
36
40
|
|
37
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
41
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/recepinanc/tobinary. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
data/lib/tobinary.rb
CHANGED
data/lib/tobinary/version.rb
CHANGED