tradier 0.5.1 → 0.5.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/tradier/version.rb +1 -1
- data/lib/tradier/watchlist_item.rb +1 -1
- data/spec/tradier/watchlist_item_spec.rb +11 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e7498b5316394cc6c9736d2cd7c32951770a1ca
|
4
|
+
data.tar.gz: db585a53c0eabe989e85cfecdd7004186b70a6b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79084872a468126be3df6206fd33741a3f8930a055244917dbe74972ccca24f98eacf08ef08d61642fd94114c6c515b92ef10851ece392ebb69c446603d29b92
|
7
|
+
data.tar.gz: afd7413b93d60acd239da91982357a2a56fc759a84293611e770f2f09b93334c3ae7f240be0c452afa3ece9707c5d374e68fd7768885a80f3cdd756b6cd185a6
|
data/lib/tradier/version.rb
CHANGED
@@ -1,6 +1,17 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe Tradier::WatchlistItem do
|
4
|
+
describe '#id' do
|
5
|
+
it "returns the id when set" do
|
6
|
+
item = Tradier::WatchlistItem.new({ :id => 'brk-b', :symbol => 'BRK.B' })
|
7
|
+
expect(item.id).to eq('brk-b')
|
8
|
+
end
|
9
|
+
it "returns nil when id is not set" do
|
10
|
+
item = Tradier::WatchlistItem.new({ :price => 1.00 })
|
11
|
+
expect(item.id).to be_nil
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
4
15
|
describe '#symbol' do
|
5
16
|
it "returns the symbol when set" do
|
6
17
|
item = Tradier::WatchlistItem.new({ :symbol => 'AAPL' })
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tradier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Agalloco
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-12-
|
12
|
+
date: 2014-12-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|