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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 95101fc84e73758d2e022550e9d91face99c6471
4
- data.tar.gz: d867d0340c70fcf95ca40a2dc6273418ee8328d8
3
+ metadata.gz: c54a8315a819fcdfe54cb6205b854d9a8b32fae6
4
+ data.tar.gz: 67a8dd677577ee9fed09f88437622361bb5b36f7
5
5
  SHA512:
6
- metadata.gz: 0f56da5d58e739a88d19e3921d54f95d59a61dafd31f3db1aa4aa4536375ae424cb27457316fc32bff09ed9146a8d1965be755ac4c93722a923dd039f81486ad
7
- data.tar.gz: ed169c60b6f3d127bbc4ddfd23dc07b35b3bb69e1a7b026eae80fe6f58e95619f9f2c9dfc592b0838fab0a358efaf645b89c42849f98667b805803b552402f33
6
+ metadata.gz: 400344ed7670eb06ecfa69c0106a7f186e63e4c9d31f5734c6eea3c795e19684e1625a9310fbe12958a90dea3a10d1fbc2a67f3f0e4595828c91e5c303deccd3
7
+ data.tar.gz: 0e5529cf4236e2fb598408ccececa86e03163117d859fe1cd374acfa22f2b8320d5e659438a9f057973a5bc327021a6647d09fd57adc0ca2d607fd6c35a5e9f3
@@ -0,0 +1,2 @@
1
+ *.gem
2
+
@@ -55,6 +55,7 @@ module CStock
55
55
  stocks[index].set_fields data
56
56
  end
57
57
  end
58
+ stocks
58
59
  end
59
60
 
60
61
  PREFIX_URL = "http://hq.sinajs.cn/list="
@@ -1,4 +1,4 @@
1
1
  # =>CStock::VERSION
2
2
  module CStock
3
- VERSION = '0.4.0'
3
+ VERSION = '0.4.1'
4
4
  end
@@ -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.0
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