ranNUM 1.0.1 → 1.0.2
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 +4 -4
- data/lib/ranNUM.rb +3 -3
- data/{bin → lib/textfiles}/SP500.txt +0 -0
- data/{bin → lib/textfiles}/owmid.txt +0 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a31b66a05b0d4298497053ec0b5fd6dd694385bf
|
|
4
|
+
data.tar.gz: 914f82bb5a92c62ab4574497339402c9a874f7df
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 96fd44cff9280de73b57e300e725c2e2d2bf9033a386d49bf5d05a56a372540c0fd11df0134eb66214171feb28794f9d92852601c73769c220f8213b2cef076b
|
|
7
|
+
data.tar.gz: 1768ed0dcefc8bf112905f2dc2b6bb6969480dec837cab63ba1c1ec5e9cc38ee2addb30e1aee69741e401b0e1090ad088b18c0a5aca1943e7e0d0bb29bca52f4
|
data/lib/ranNUM.rb
CHANGED
|
@@ -10,7 +10,7 @@ class RAN
|
|
|
10
10
|
end
|
|
11
11
|
def self.s_SYMBOL
|
|
12
12
|
random_string_stocks = rand(500)
|
|
13
|
-
IO.readlines("
|
|
13
|
+
IO.readlines("lib/textfiles/SP500.txt")[random_string_stocks]
|
|
14
14
|
end
|
|
15
15
|
#get weather data
|
|
16
16
|
def self.get_owm_data(city_id, api_key)
|
|
@@ -22,7 +22,7 @@ class RAN
|
|
|
22
22
|
end
|
|
23
23
|
def self.w_TEMP
|
|
24
24
|
random_string_weather = rand(10000)
|
|
25
|
-
city = IO.readlines("
|
|
25
|
+
city = IO.readlines("lib/textfiles/owmid.txt")[random_string_weather]
|
|
26
26
|
api_owm = "4610a14e77ea7d2522ef38eed4bbee0c"
|
|
27
27
|
output_weather = get_owm_data(city, api_owm)
|
|
28
28
|
output_weather["main"]["temp"]
|
|
@@ -60,4 +60,4 @@ end
|
|
|
60
60
|
#puts RAN.num(10)
|
|
61
61
|
|
|
62
62
|
#prints a random number equal to or below the number in parentheses rounded
|
|
63
|
-
puts RAN.num(10).round
|
|
63
|
+
#puts RAN.num(10).round
|
|
File without changes
|
|
File without changes
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ranNUM
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Colby Taperts
|
|
@@ -16,9 +16,9 @@ executables: []
|
|
|
16
16
|
extensions: []
|
|
17
17
|
extra_rdoc_files: []
|
|
18
18
|
files:
|
|
19
|
-
- bin/SP500.txt
|
|
20
|
-
- bin/owmid.txt
|
|
21
19
|
- lib/ranNUM.rb
|
|
20
|
+
- lib/textfiles/SP500.txt
|
|
21
|
+
- lib/textfiles/owmid.txt
|
|
22
22
|
homepage: http://rubygems.org/gems/ranNUM
|
|
23
23
|
licenses:
|
|
24
24
|
- MIT
|