binary 0.1.1 → 1.0.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7aea0a9e122f5815c78ee5d186eacc19162a08b6bcfd4e31aabe724fb646903
4
- data.tar.gz: 4c9adaa9ee31905ebe31b39f6f08c3b6000698c2c9f379436fc56fcd6c015329
3
+ metadata.gz: dbd78632136fb758014344e3b6155eb7bfc706f0f5b014748370784f49d82845
4
+ data.tar.gz: 52a8c5384269d925611dbf7b8c8876308c0de241ceac54006e17f9a486d29d53
5
5
  SHA512:
6
- metadata.gz: be22f4282c26d008503775d1e9ea815ca48be732007fe804f7510262258271e2464274049a2f365029146cb289ab0320d7bb58e67d4a09b275c08ef5f64fb847
7
- data.tar.gz: dd40123cc95e3a82d887549cf970f64018a115116dbef8705ed934fb4f471146f3ebe7efbaee8c5eee343a93be4e0c1b9ce8493987b3f0902b0c622e0056f627
6
+ metadata.gz: d9f87c42a7289da21d750ecdc8522162c148ea1ed1e160b12536b3bc89ea07d20ca6e7df421e8dde9348929ce03ed641d275ecae9ec52cf250d71a2d2b2aaae3
7
+ data.tar.gz: 1ea3653879ced8485a53e980fa382309bebd5c2b69e2993f814577522c372e55b94c0518bf51733edf7ecc52f495b9150fa9a185bc4d8ee546a11831ca5c4bc4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- binary (0.0.1)
4
+ binary (1.0.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -7,22 +7,13 @@ Gem::Specification.new do |spec|
7
7
  spec.name = "binary"
8
8
  spec.version = Binary::VERSION
9
9
  spec.authors = ["Mo Almishkawi"]
10
- spec.email = ["mo.almishkawi@gmail.com"]
10
+ spec.email = ["mo@almishkawi.me"]
11
11
 
12
- spec.summary = "Convert integer into a binary"
13
- spec.description = "Takes integer input and returns binary representation"
12
+ spec.summary = "Convert number into a binary"
13
+ spec.description = "Takes integer/array of integers and returns binary representation/s"
14
14
  spec.homepage = ""
15
15
  spec.license = "MIT"
16
16
 
17
- # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
- # to allow pushing to a single host or delete this section to allow pushing to any host.
19
- # if spec.respond_to?(:metadata)
20
- # spec.metadata["allowed_push_host"] = ""
21
- # else
22
- # raise "RubyGems 2.0 or newer is required to protect against " \
23
- # "public gem pushes."
24
- # end
25
-
26
17
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
18
  f.match(%r{^(test|spec|features)/})
28
19
  end
@@ -3,7 +3,7 @@ require "binary/version"
3
3
  module Binary
4
4
  def self.binary(input=nil)
5
5
  if input.class == Array
6
- input.map { |num| num.to_s(2) }
6
+ input.map { |num| num.class == Integer ? num.to_s(2) : nil }
7
7
  elsif input.class == Integer
8
8
  input.to_s(2)
9
9
  end
@@ -1,3 +1,3 @@
1
1
  module Binary
2
- VERSION = "0.1.1"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: binary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mo Almishkawi
@@ -52,9 +52,9 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
- description: Takes integer input and returns binary representation
55
+ description: Takes integer/array of integers and returns binary representation/s
56
56
  email:
57
- - mo.almishkawi@gmail.com
57
+ - mo@almishkawi.me
58
58
  executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
@@ -95,5 +95,5 @@ rubyforge_project:
95
95
  rubygems_version: 2.7.4
96
96
  signing_key:
97
97
  specification_version: 4
98
- summary: Convert integer into a binary
98
+ summary: Convert number into a binary
99
99
  test_files: []