simple_calcu 0.0.2 → 0.0.3
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 +5 -5
- data/README.md +12 -5
- data/lib/simple_calcu/version.rb +1 -1
- data/simple_calcu.gemspec +3 -3
- data/test/calculator_test.rb +1 -1
- metadata +23 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5c713ac4314b308b8204831cae38376c5b78628032abe7146b0d4788fb0e0c18
|
4
|
+
data.tar.gz: 9f7e80d3d45f7b71df07628e03c0744b6b4cbf344428c94f0291c8c1f7155a42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e28b4fef52901c8f10bce39dac082a71d545835850687743ad674ce4f1188ba21af64ee9af4d90a1b22790a5c31477181b712db23c365d14c8323aca2e0db3d
|
7
|
+
data.tar.gz: 5739a3e1953e81d85465fc4b07ed5e6a78c9430ae991382a1a6fd9cfcfb3874e937426366f1ea496b7a6944d284882a4fa5800bbdf02b5e480bbca23593d2c44
|
data/README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1
|
+
[](http://badge.fury.io/rb/simple_calcu)
|
2
|
+
|
1
3
|
# SimpleCalcu
|
2
4
|
|
3
5
|
Very simple calculator function for [my blog post][1]!
|
4
6
|
|
5
7
|
## Installation
|
6
8
|
|
7
|
-
Add this line to your application's Gemfile
|
9
|
+
Add this line to your application's `Gemfile`:
|
8
10
|
|
9
11
|
```ruby
|
10
12
|
gem 'simple_calcu'
|
@@ -12,11 +14,16 @@ gem 'simple_calcu'
|
|
12
14
|
|
13
15
|
And then execute:
|
14
16
|
|
15
|
-
|
17
|
+
```bash
|
18
|
+
$ bundle config set path 'vendor/bundle'
|
19
|
+
$ bundle
|
20
|
+
```
|
16
21
|
|
17
22
|
Or install it yourself as:
|
18
23
|
|
19
|
-
|
24
|
+
```bash
|
25
|
+
$ gem install simple_calcu
|
26
|
+
```
|
20
27
|
|
21
28
|
## Usage
|
22
29
|
|
@@ -27,11 +34,11 @@ SimpleCalcu::calculate(2, "+", 3)
|
|
27
34
|
|
28
35
|
## Contributing
|
29
36
|
|
30
|
-
1. Fork it ( https://github.com/
|
37
|
+
1. Fork it ( https://github.com/vigo/simple_calcu/fork )
|
31
38
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
32
39
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
33
40
|
4. Push to the branch (`git push origin my-new-feature`)
|
34
41
|
5. Create a new Pull Request
|
35
42
|
|
36
43
|
|
37
|
-
[1]:
|
44
|
+
[1]: https://ugur.ozyilmazel.com/blog/tr/2014/09/23/rubygem-hazirliyoruz/
|
data/lib/simple_calcu/version.rb
CHANGED
data/simple_calcu.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_development_dependency
|
22
|
-
spec.add_development_dependency
|
23
|
-
spec.add_development_dependency
|
21
|
+
spec.add_development_dependency 'bundler', '~> 2.1', '>= 2.1.4'
|
22
|
+
spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.1'
|
23
|
+
spec.add_development_dependency 'minitest', '~> 5.14'
|
24
24
|
end
|
data/test/calculator_test.rb
CHANGED
@@ -24,7 +24,7 @@ class CalculatorTest < Minitest::Test
|
|
24
24
|
assert_equal 5, SimpleCalcu::calculate(2, "+", 3)
|
25
25
|
assert_equal 8, SimpleCalcu::calculate(5, "+", 3)
|
26
26
|
assert_equal 2, SimpleCalcu::calculate(5, "-", 3)
|
27
|
-
assert_equal -1, SimpleCalcu::calculate(0, "-", 1)
|
27
|
+
assert_equal (-1), SimpleCalcu::calculate(0, "-", 1)
|
28
28
|
assert_equal 25, SimpleCalcu::calculate(5, "*", 5)
|
29
29
|
assert_equal 44, SimpleCalcu::calculate(2, "*", 22)
|
30
30
|
assert_equal 2, SimpleCalcu::calculate(4, "/", 2)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_calcu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Uğur Özyılmazel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,42 +16,54 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1
|
19
|
+
version: '2.1'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.1.4
|
20
23
|
type: :development
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - "~>"
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1
|
29
|
+
version: '2.1'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 2.1.4
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: rake
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
37
|
- - "~>"
|
32
38
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
39
|
+
version: '13.0'
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 13.0.1
|
34
43
|
type: :development
|
35
44
|
prerelease: false
|
36
45
|
version_requirements: !ruby/object:Gem::Requirement
|
37
46
|
requirements:
|
38
47
|
- - "~>"
|
39
48
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
49
|
+
version: '13.0'
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 13.0.1
|
41
53
|
- !ruby/object:Gem::Dependency
|
42
54
|
name: minitest
|
43
55
|
requirement: !ruby/object:Gem::Requirement
|
44
56
|
requirements:
|
45
|
-
- - "
|
57
|
+
- - "~>"
|
46
58
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
59
|
+
version: '5.14'
|
48
60
|
type: :development
|
49
61
|
prerelease: false
|
50
62
|
version_requirements: !ruby/object:Gem::Requirement
|
51
63
|
requirements:
|
52
|
-
- - "
|
64
|
+
- - "~>"
|
53
65
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
66
|
+
version: '5.14'
|
55
67
|
description: Make 4 basic calculations like addition/subtraction/multiplication and
|
56
68
|
division via 2 numbers.
|
57
69
|
email:
|
@@ -88,8 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
100
|
- !ruby/object:Gem::Version
|
89
101
|
version: '0'
|
90
102
|
requirements: []
|
91
|
-
|
92
|
-
rubygems_version: 2.2.2
|
103
|
+
rubygems_version: 3.0.3
|
93
104
|
signing_key:
|
94
105
|
specification_version: 4
|
95
106
|
summary: Simple Calculator.
|