quote-only 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 727366627edce9fea3d608a92cddca959c5bc9ee
4
- data.tar.gz: 95537ec529c53bc0143935e66d32b879ae3fe40c
3
+ metadata.gz: 01528a9bddcbb19300c13c9ffe4eb391d5bc81a4
4
+ data.tar.gz: 5e343bb3eb83d64028aee1c9a0fe4416d5e2d9e5
5
5
  SHA512:
6
- metadata.gz: b0a7a322f8eaaa52d51e62f4aaf2d3367f4c439b2f4088b981814b30555beaf7559bd0b3eaf0f37a5246ecc1a606f402292db0c72b3a21a8b1355f04d0ac706e
7
- data.tar.gz: a94d6820e0652fd4942e8c61c739409e505ad73744fd967785701c8325d1811cef34e1a1e0a1b263d0ce9cfd1d233d669e4563184164bb2ca44e087c3eb7b1f0
6
+ metadata.gz: 8bb074c4befaccdaeee89a03488b25df8515444f0b5f9808e0b0d15c6b2874e738a6ef88b3d594893d4917a7ef31c2b6eb861ffbd4a0d30ac5599d37506df6da
7
+ data.tar.gz: 99b87e9fd25fc07a611728e873f7664ec0eeee6f8a8667790ba0e87b5245d0765f9aea36850f6f69a38386220954b44811a68460c2970db7ac3f79dda1f23250
@@ -1,4 +1,3 @@
1
- require 'rubygems'
2
1
  require 'nokogiri'
3
2
  require 'open-uri'
4
3
 
@@ -1,5 +1,5 @@
1
1
  require 'minitest/autorun'
2
- require 'quote-only'
2
+ require_relative '../lib/quote-only'
3
3
 
4
4
  class QuoteOnlyTest < Minitest::Test
5
5
  def test_
@@ -13,10 +13,6 @@ class QuoteOnlyTest < Minitest::Test
13
13
  assert f.quote.is_a? Float
14
14
  end
15
15
 
16
- f = CnnQuoteOnly.new({ :symbol => 'XBT', :friendly_name => 'Bitcoin', :decimal_places => -2 })
17
- puts f
18
- assert f.quote.is_a? Float
19
-
20
16
  f = BloombergQuoteOnly.new({ :symbol => 'USGG10YR:IND', :friendly_name => '10 Year', :decimal_places => 0 })
21
17
  puts f
22
18
  assert f.quote.is_a? Float
@@ -28,5 +24,9 @@ class QuoteOnlyTest < Minitest::Test
28
24
  f = ApmexSilverQuoteOnly.new({ :symbol => 'oz', :friendly_name => 'Silver', :decimal_places => 0 })
29
25
  puts f
30
26
  assert f.quote.is_a? Float
27
+
28
+ f = CnnQuoteOnly.new({ :symbol => 'XBT', :friendly_name => 'Bitcoin', :decimal_places => -2 })
29
+ puts f
30
+ assert f.quote.is_a? Float
31
31
  end
32
32
  end
metadata CHANGED
@@ -1,15 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quote-only
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - cscribn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-07 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2015-12-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: minitest
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: nokogiri
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
13
41
  description: Most finincial websites show the daily change of a financial asset, along
14
42
  with its quote. This can be distracting to long-term investors attempting to "stay
15
43
  the course". The purpose of this gem is to provide only the quote. Markets and