ranNUM 1.2.0 → 1.2.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 +4 -4
- data/lib/ranNUM.rb +6 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a9e2ef93b56a8b38487c0f50355ac52dfeeb6ad5
|
|
4
|
+
data.tar.gz: 11c03dba0f46c5dc8424b6bde4070f451ebe881b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3460c3cb3dccb599953e36d4e7efa038c0f955a2ae15ce4ca43cad2104ececa001292fb73277f626221a6f117320fbafd049ae820a4302f927cf659199a4ea31
|
|
7
|
+
data.tar.gz: f09ca3db2669a0bb4303895a435ff7e078ae762674dfa3afe4e41d72044f0334a812daa5986dc4ec945cfc998c2cb442d47f2166d09c6ad66a1dd179002fbb7f
|
data/lib/ranNUM.rb
CHANGED
|
@@ -26,8 +26,8 @@ end
|
|
|
26
26
|
apis.each do |api|
|
|
27
27
|
api if options[:owmapistore]
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
File.open(
|
|
29
|
+
owm_path = File.join( File.dirname(__FILE__), './textfiles/owmapi.txt' )
|
|
30
|
+
File.open(owm_path, "w") do |f|
|
|
31
31
|
f.write api
|
|
32
32
|
end
|
|
33
33
|
end
|
|
@@ -46,7 +46,9 @@ class RAN
|
|
|
46
46
|
File.open( owm_path )
|
|
47
47
|
end
|
|
48
48
|
def self.owmapi
|
|
49
|
-
|
|
49
|
+
|
|
50
|
+
owm_path2 = File.join( File.dirname(__FILE__), './textfiles/owmapi.txt' )
|
|
51
|
+
File.read( owm_path2)
|
|
50
52
|
end
|
|
51
53
|
#get stock data
|
|
52
54
|
def self.get_yql_data(ticker)
|
|
@@ -116,4 +118,5 @@ end
|
|
|
116
118
|
#puts RAN.num(10)
|
|
117
119
|
|
|
118
120
|
#prints a random number equal to or below the number in parentheses rounded
|
|
121
|
+
|
|
119
122
|
#puts RAN.num(10).round
|