mbonii_bizarre_things 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.
- checksums.yaml +7 -0
- data/.rspec +1 -0
- data/Gemfile +10 -0
- data/Gemfile.lock +34 -0
- data/README.md +52 -0
- data/Rakefile +4 -0
- data/lib/mbonii_bizarre_things/version.rb +5 -0
- data/lib/mbonii_bizarre_things.rb +23 -0
- data/sig/mbonii_bizarre_things.rbs +4 -0
- metadata +53 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5af1ccd8a44d18a8dfaa0d8a5c4e400c36ca3d66b7b631720afca01bc8dd7e64
|
4
|
+
data.tar.gz: 9365e18d317dea0166f8c22cb4494b2977024f357960e22b26e9629464ccc316
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d185c39a4f29bd4a08d2dcdf6d3f3c14513b637d413315a7d3bd40d8f89ca4adf714e1861cfe1008126fcdedd7eedf5e7b38d46f9475fc739a84707c35466377
|
7
|
+
data.tar.gz: 1ad400cc99e41092e8659df22ecc4085cda2a7a43b25114d3f5de1eddf6c2be921cf3b940e55a0f4dc234cda5fd0404673dafa8b771250b923853acd7b4986d2
|
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--require spec_helper --format doc
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
mbonii_bizarre_things (0.1.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
diff-lcs (1.5.0)
|
10
|
+
rake (13.0.6)
|
11
|
+
rspec (3.11.0)
|
12
|
+
rspec-core (~> 3.11.0)
|
13
|
+
rspec-expectations (~> 3.11.0)
|
14
|
+
rspec-mocks (~> 3.11.0)
|
15
|
+
rspec-core (3.11.0)
|
16
|
+
rspec-support (~> 3.11.0)
|
17
|
+
rspec-expectations (3.11.1)
|
18
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
19
|
+
rspec-support (~> 3.11.0)
|
20
|
+
rspec-mocks (3.11.1)
|
21
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
22
|
+
rspec-support (~> 3.11.0)
|
23
|
+
rspec-support (3.11.1)
|
24
|
+
|
25
|
+
PLATFORMS
|
26
|
+
arm64-darwin-21
|
27
|
+
|
28
|
+
DEPENDENCIES
|
29
|
+
mbonii_bizarre_things!
|
30
|
+
rake (~> 13.0)
|
31
|
+
rspec
|
32
|
+
|
33
|
+
BUNDLED WITH
|
34
|
+
2.3.9
|
data/README.md
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
<h1 align="center">
|
2
|
+
MboniiBizarreThings
|
3
|
+
</h1>
|
4
|
+
|
5
|
+
<h6 align="center">
|
6
|
+
Welcome to my pretty yet unuseful calculator that contains the four basics math operations: add, subtract, multiply and divide
|
7
|
+
</h6>
|
8
|
+
|
9
|
+
# Table of contents
|
10
|
+
|
11
|
+
- [Installation](#installation)
|
12
|
+
- [Usage](#usage)
|
13
|
+
- [Contributing](#contributing)
|
14
|
+
|
15
|
+
## Installation
|
16
|
+
|
17
|
+
Install the gem and add to the application's Gemfile by executing:
|
18
|
+
|
19
|
+
$ bundle add mbonii_bizarre_things
|
20
|
+
|
21
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
22
|
+
|
23
|
+
$ gem install mbonii_bizarre_things
|
24
|
+
|
25
|
+
## Usage
|
26
|
+
|
27
|
+
First of all require the gem
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
require "mbonii_bizarre_things"
|
31
|
+
```
|
32
|
+
|
33
|
+
And that's it, start using it like the following
|
34
|
+
|
35
|
+
```ruby
|
36
|
+
MboniiBizarreThings::Calculator.add 1,2,3,4
|
37
|
+
MboniiBizarreThings::Calculator.substract 1,2,3,4
|
38
|
+
MboniiBizarreThings::Calculator.multiply 1,2,3,4
|
39
|
+
MboniiBizarreThings::Calculator.divide 1,2,3,4
|
40
|
+
```
|
41
|
+
|
42
|
+
## Contributing
|
43
|
+
|
44
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/mbonii/mbonii_bizarre_things.
|
45
|
+
|
46
|
+
|
47
|
+
---------
|
48
|
+
<p align="center">
|
49
|
+
Built with :blue-heart: by
|
50
|
+
<strong>Marcos Bonifasi</strong>
|
51
|
+
at his home :)
|
52
|
+
</p>
|
data/Rakefile
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "mbonii_bizarre_things/version"
|
4
|
+
|
5
|
+
module MboniiBizarreThings
|
6
|
+
class Calculator
|
7
|
+
def self.add *args
|
8
|
+
args.inject(:+)
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.substract *args
|
12
|
+
args.inject(:-)
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.multiply *args
|
16
|
+
args.inject(:*)
|
17
|
+
end
|
18
|
+
|
19
|
+
def self.divide *args
|
20
|
+
args.inject(:/)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
metadata
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mbonii_bizarre_things
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Marcos Bonifasi
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-09-26 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Homework :(
|
14
|
+
email:
|
15
|
+
- marcosbonifasi19@gmail.com
|
16
|
+
executables: []
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- ".rspec"
|
21
|
+
- Gemfile
|
22
|
+
- Gemfile.lock
|
23
|
+
- README.md
|
24
|
+
- Rakefile
|
25
|
+
- lib/mbonii_bizarre_things.rb
|
26
|
+
- lib/mbonii_bizarre_things/version.rb
|
27
|
+
- sig/mbonii_bizarre_things.rbs
|
28
|
+
homepage: https://github.com/mbonii
|
29
|
+
licenses: []
|
30
|
+
metadata:
|
31
|
+
homepage_uri: https://github.com/mbonii
|
32
|
+
source_code_uri: https://github.com/mbonii/mbonii_bizarre_things
|
33
|
+
changelog_uri: https://github.com/mbonii/mbonii_bizarre_things
|
34
|
+
post_install_message:
|
35
|
+
rdoc_options: []
|
36
|
+
require_paths:
|
37
|
+
- lib
|
38
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 2.6.0
|
43
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
requirements: []
|
49
|
+
rubygems_version: 3.1.4
|
50
|
+
signing_key:
|
51
|
+
specification_version: 4
|
52
|
+
summary: Homework :(
|
53
|
+
test_files: []
|