power_yann 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 +7 -0
- data/lib/power_yann.rb +21 -0
- metadata +44 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 8c3b15490a375d000232e91f507681a82aa846c8
|
4
|
+
data.tar.gz: 48ee02817a709f4b2a183369ff49d90657737f93
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 3c9aaf119d93f8cc35f9c11e06ecab61d736a590b84b7d2f5f79dd754ebc9f8861af5c2ee3fbaf414beda8f9c39f3c1bcee22cf3dbfb30d9b09229a6fb6a201f
|
7
|
+
data.tar.gz: 8e35c8f8233291881af3129b21f9feea345d21da34eb6990e268ff1ecec35c40200b9278c5210f66ab106878c36a60eeed415977d55dddd87279efd8d67ac2a8
|
data/lib/power_yann.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
class Power
|
2
|
+
|
3
|
+
def self.find_power(x, y,search_string)
|
4
|
+
power = x** y
|
5
|
+
powerfinal = power
|
6
|
+
if power == search_string
|
7
|
+
ans = "WELL DONE"
|
8
|
+
else
|
9
|
+
ans = "WRONG"
|
10
|
+
end
|
11
|
+
return ans
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.value_power(x, y)
|
15
|
+
power = x**y
|
16
|
+
return power
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
|
21
|
+
|
metadata
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: power_yann
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.3
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Yann Nogueira
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-03-25 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: this gem will generate the power of 2 random number and will check with
|
14
|
+
the user input
|
15
|
+
email: smytyann@gmail.com
|
16
|
+
executables: []
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- lib/power_yann.rb
|
21
|
+
homepage: http://rubygems.org/gems/power_yann
|
22
|
+
licenses: []
|
23
|
+
metadata: {}
|
24
|
+
post_install_message:
|
25
|
+
rdoc_options: []
|
26
|
+
require_paths:
|
27
|
+
- lib
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
34
|
+
requirements:
|
35
|
+
- - ">="
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
requirements: []
|
39
|
+
rubyforge_project:
|
40
|
+
rubygems_version: 2.2.2
|
41
|
+
signing_key:
|
42
|
+
specification_version: 4
|
43
|
+
summary: Generates the power of the 2 radom number and checks with the user input!
|
44
|
+
test_files: []
|