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 +4 -4
- data/lib/quote-only.rb +0 -1
- data/test/test-quote-only.rb +5 -5
- metadata +31 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01528a9bddcbb19300c13c9ffe4eb391d5bc81a4
|
4
|
+
data.tar.gz: 5e343bb3eb83d64028aee1c9a0fe4416d5e2d9e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bb074c4befaccdaeee89a03488b25df8515444f0b5f9808e0b0d15c6b2874e738a6ef88b3d594893d4917a7ef31c2b6eb861ffbd4a0d30ac5599d37506df6da
|
7
|
+
data.tar.gz: 99b87e9fd25fc07a611728e873f7664ec0eeee6f8a8667790ba0e87b5245d0765f9aea36850f6f69a38386220954b44811a68460c2970db7ac3f79dda1f23250
|
data/lib/quote-only.rb
CHANGED
data/test/test-quote-only.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'minitest/autorun'
|
2
|
-
|
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.
|
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-
|
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
|