cstock 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/lib/cstock/stock.rb +1 -0
- data/lib/cstock/version.rb +1 -1
- data/spec/cstock_spec.rb +4 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c54a8315a819fcdfe54cb6205b854d9a8b32fae6
|
4
|
+
data.tar.gz: 67a8dd677577ee9fed09f88437622361bb5b36f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 400344ed7670eb06ecfa69c0106a7f186e63e4c9d31f5734c6eea3c795e19684e1625a9310fbe12958a90dea3a10d1fbc2a67f3f0e4595828c91e5c303deccd3
|
7
|
+
data.tar.gz: 0e5529cf4236e2fb598408ccececa86e03163117d859fe1cd374acfa22f2b8320d5e659438a9f057973a5bc327021a6647d09fd57adc0ca2d607fd6c35a5e9f3
|
data/.gitignore
ADDED
data/lib/cstock/stock.rb
CHANGED
data/lib/cstock/version.rb
CHANGED
data/spec/cstock_spec.rb
CHANGED
@@ -47,7 +47,10 @@ describe CStock::Stock do
|
|
47
47
|
it "refresh muti stocks at one quote" do
|
48
48
|
expect(@s.name).to eq("name")
|
49
49
|
expect(@s2.name).to eq("name")
|
50
|
-
CStock::Stock.refresh(@stocks)
|
50
|
+
CStock::Stock.refresh(@stocks).each do |stock|
|
51
|
+
expect(@s.name).to eq("浦发银行")
|
52
|
+
expect(@s2.name).to eq("大北农")
|
53
|
+
end
|
51
54
|
expect(@s.name).to eq("浦发银行")
|
52
55
|
expect(@s2.name).to eq("大北农")
|
53
56
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cstock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aston Fu
|
@@ -59,6 +59,7 @@ executables:
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
+
- .gitignore
|
62
63
|
- .rspec
|
63
64
|
- LICENSE
|
64
65
|
- README.md
|