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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ranNUM.rb +6 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3da4371c65cbe3cddcc06ad2009e6aacb7750a2f
4
- data.tar.gz: 459be765f280e98bc181742d18a18ba9497d7d9f
3
+ metadata.gz: a9e2ef93b56a8b38487c0f50355ac52dfeeb6ad5
4
+ data.tar.gz: 11c03dba0f46c5dc8424b6bde4070f451ebe881b
5
5
  SHA512:
6
- metadata.gz: cb7c088dcc671884ea6386b80bcb8b405da63c8d81f0268d17df7c5ee4f6241024d6e4f6a171d679312569c2b113d83edc453279ea858b573c07dd3cd3f52e45
7
- data.tar.gz: f88b1961e5ba08b9599f17f96a867267193930fead5b70069b3da6d41efb722982ada58fe3b078dccddd1762a82e1bcd5ad107940eedc7da6fa290779b9a2b81
6
+ metadata.gz: 3460c3cb3dccb599953e36d4e7efa038c0f955a2ae15ce4ca43cad2104ececa001292fb73277f626221a6f117320fbafd049ae820a4302f927cf659199a4ea31
7
+ data.tar.gz: f09ca3db2669a0bb4303895a435ff7e078ae762674dfa3afe4e41d72044f0334a812daa5986dc4ec945cfc998c2cb442d47f2166d09c6ad66a1dd179002fbb7f
@@ -26,8 +26,8 @@ end
26
26
  apis.each do |api|
27
27
  api if options[:owmapistore]
28
28
 
29
- #puts api
30
- File.open('./textfiles/owmapi.txt', "w") do |f|
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
- File.read('./textfiles/owmapi.txt')
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
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.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Colby Taperts