stock-markit 0.0.1 → 0.0.2

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: 41eb5980e6189fac8d4739c449b2eb2ac5a82401
4
- data.tar.gz: 12d67a6a27900fe624b553e7d02b06b070c128e8
3
+ metadata.gz: 3d5ff42a4c5de8bb7d5a00d03861ef6e8773e126
4
+ data.tar.gz: bf1badc16df6ca5d48cc6315a4430700e8b96486
5
5
  SHA512:
6
- metadata.gz: da557ef3702ad11d5cb3bb9cc1029e22bcc44e3c5dd335483543f2737f5e8478bc3e29ac2e68dd7b13462feb2d83f3200ffcf898d7c9a9be8f13cd10a23a0b15
7
- data.tar.gz: 547aa5837ec339ad15ba87026722c362b216d683b69cf98cb70ab1615bc3abe2f39f2c8df2c33388aaedbed7768581f6139f17ed3b2051bd29a88d067fa71db5
6
+ metadata.gz: 44f9fe55f660dc40f4f9468a7622d0f518328eed40c22dff7c3967d68ca1f5b7c2f869a5fd402c082e216dcf5098a0498bdad9490552ba1cf79f12f0067b2958
7
+ data.tar.gz: c7bd6af48f6a705daada8db86b2c0cd8810c539dd7a0fca0ff44355604b905cc7e7c1555841840804c3c75c6bc24357ef92e5a08e996424b0c6808bdac6115f0
@@ -1,4 +1,7 @@
1
1
  require 'active_support/time'
2
+ require 'httparty'
3
+ require 'oj'
4
+ require 'stock-markit/api_exception'
2
5
 
3
6
  module StockMarkit
4
7
 
@@ -1,3 +1,8 @@
1
+ require 'httparty'
2
+ require 'oj'
3
+ require 'stock-markit/stock'
4
+ require 'stock-markit/api_exception'
5
+
1
6
  module StockMarkit
2
7
 
3
8
  # Lookup a Stock by Symbol
@@ -1,4 +1,7 @@
1
1
  require 'active_support/time'
2
+ require 'httparty'
3
+ require 'oj'
4
+ require 'stock-markit/api_exception'
2
5
 
3
6
  module StockMarkit
4
7
 
@@ -5,5 +5,5 @@
5
5
  # License:: MIT
6
6
 
7
7
  module StockMarkit
8
- VERSION = "0.0.1"
8
+ VERSION = "0.0.2"
9
9
  end
@@ -0,0 +1,46 @@
1
+ require 'spec_helper'
2
+ require 'stock-markit/chart_result'
3
+
4
+ RSpec.describe StockMarkit::ChartResult do
5
+
6
+ let(:json) {
7
+ {
8
+ "Labels" => nil,
9
+ "Positions" => [1, 2],
10
+ "Dates" => ["2016-09-06T19:13:20-07:00", "2016-09-05T19:13:20-07:00"],
11
+ "Elements" => [ :element ]
12
+ }
13
+ }
14
+
15
+ let(:result) { StockMarkit::ChartResult.new(json) }
16
+
17
+ it "maps labels" do
18
+ expect(result.labels).to be_nil
19
+ end
20
+
21
+ it "maps positions" do
22
+ expect(result.positions).to be_a(Array)
23
+ expect(result.positions).to include(1)
24
+ end
25
+
26
+ it "maps dates" do
27
+ expect(result.dates).to be_a(Array)
28
+ end
29
+
30
+ it "maps elements" do
31
+ expect(result.elements).to be_a(Array)
32
+ expect(result.elements).to include(:element)
33
+ end
34
+
35
+ describe "#dates" do
36
+
37
+ it "returns parsed timestamps" do
38
+ expect(result.dates.first).to be_a(Time)
39
+ end
40
+
41
+ it "returns timestamps in UTC" do
42
+ expect(result.dates.first.zone).to eq("UTC")
43
+ end
44
+
45
+ end
46
+ end
@@ -0,0 +1,32 @@
1
+ require 'spec_helper'
2
+ require 'stock-markit/chart'
3
+
4
+ RSpec.describe StockMarkit::Chart do
5
+
6
+ let(:element) { StockMarkit::Element.new(:aapl, :price) }
7
+ let(:options) {
8
+ {
9
+ normalized: false,
10
+ number_of_days: 365,
11
+ data_period: :day,
12
+ elements: [element]
13
+ }
14
+ }
15
+ let(:chart) { StockMarkit::Chart.new(options) }
16
+
17
+ it 'fetches a chart from the api' do
18
+ VCR.use_cassette 'chart/aapl' do
19
+ expect( chart.fetch ).to be_a(StockMarkit::ChartResult)
20
+ expect( chart.results ).not_to be_nil
21
+ end
22
+ end
23
+
24
+ it 'raises a StockMarkit::ApiException when there is an error' do
25
+ VCR.use_cassette 'chart/error' do
26
+ element = StockMarkit::Element.new(:aapll, :price)
27
+ options[:elements] = [element]
28
+ chart = StockMarkit::Chart.new(options)
29
+ expect{ chart.fetch }.to raise_error(StockMarkit::ApiException)
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,21 @@
1
+ require 'spec_helper'
2
+ require 'stock-markit/element'
3
+
4
+ RSpec.describe StockMarkit::Element do
5
+
6
+ let(:element_price) { StockMarkit::Element.new(:twtr, :price)}
7
+ let(:element_average) { StockMarkit::Element.new(:twtr, :sma)}
8
+ let(:element_avg_custom) { StockMarkit::Element.new(:twtr, :sma, :day)}
9
+
10
+ it "has default params" do
11
+ expect(element_price.params).to eq("c")
12
+ end
13
+
14
+ it "sets the default period for sma to week" do
15
+ expect(element_average.params).to eq(:week)
16
+ end
17
+
18
+ it 'accepts custom params' do
19
+ expect(element_avg_custom.params).to eq(:day)
20
+ end
21
+ end
@@ -1,4 +1,5 @@
1
1
  require 'spec_helper'
2
+ require 'stock-markit/lookup'
2
3
 
3
4
  RSpec.describe 'StockMarkit::Lookup' do
4
5
  describe '#initialize' do
@@ -1,4 +1,5 @@
1
1
  require 'spec_helper'
2
+ require 'stock-markit/quote'
2
3
 
3
4
  RSpec.describe 'StockMarkit::Quote' do
4
5
  describe '#initialize' do
@@ -1,4 +1,5 @@
1
1
  require 'spec_helper'
2
+ require 'stock-markit/version'
2
3
 
3
4
  RSpec.describe 'StockMarkit::VERSION' do
4
5
  it 'returns a version string' do
@@ -6,16 +6,15 @@ require 'pry'
6
6
 
7
7
  require_relative './support/vcr.rb'
8
8
 
9
- require 'stock-markit'
10
-
11
9
  SimpleCov.start do
12
10
  add_filter '/spec/'
13
- add_group 'lib', 'lib'
14
- #SimpleCov.minimum_coverage 75
11
+ add_group 'lib', 'lib/stock-markit'
12
+ SimpleCov.minimum_coverage 75
15
13
  SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
16
14
  SimpleCov::Formatter::HTMLFormatter,
17
- SimpleCov::Formatter::RcovFormatter
15
+ SimpleCov::Formatter::RcovFormatter,
16
+ Coveralls::SimpleCov::Formatter
18
17
  ]
19
- end if ENV["COVERAGE"]
18
+ end
20
19
 
21
20
  Coveralls.wear!
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://dev.markitondemand.com/MODApis/Api/v2/InteractiveChart/json?parameters=%7B%22Normalized%22:false,%22NumberOfDays%22:365,%22DataPeriod%22:%22Day%22,%22Elements%22:%5B%7B%22Symbol%22:%22AAPL%22,%22Type%22:%22price%22,%22Params%22:%5B%22c%22%5D%7D%5D%7D
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Cache-Control:
22
+ - private
23
+ Content-Type:
24
+ - text/javascript; charset=UTF-8
25
+ Vary:
26
+ - Accept-Encoding
27
+ Server:
28
+ - ''
29
+ X-Aspnet-Version:
30
+ - ''
31
+ P3p:
32
+ - CP="NON PHY ONL UNI PUR FIN COM NAV INT DEM STA HEA CUR ADM DEV OUR IND",
33
+ policyref="/w3c/p3p.xml"
34
+ Set-Cookie:
35
+ - 3481%5F0=977A881AF4B21ED5F52919B9355634653F6AFCDFD8D0584C7827C09B50451946;
36
+ path=/; HttpOnly
37
+ - GZIP=1; expires=Tue, 07-Sep-2021 05:13:34 GMT; path=/
38
+ X-Powered-By:
39
+ - ASP.NET
40
+ Date:
41
+ - Thu, 08 Sep 2016 05:13:33 GMT
42
+ Content-Length:
43
+ - '2819'
44
+ body:
45
+ encoding: ASCII-8BIT
46
+ string: '{"Labels":null,"Positions":[0,0.004,0.008,0.012,0.016,0.02,0.023,0.027,0.031,0.035,0.039,0.043,0.047,0.051,0.055,0.059,0.063,0.066,0.07,0.074,0.078,0.082,0.086,0.09,0.094,0.098,0.102,0.105,0.109,0.113,0.117,0.121,0.125,0.129,0.133,0.137,0.141,0.145,0.148,0.152,0.156,0.16,0.164,0.168,0.172,0.176,0.18,0.184,0.188,0.191,0.195,0.199,0.203,0.207,0.211,0.215,0.223,0.227,0.23,0.234,0.238,0.242,0.246,0.25,0.254,0.258,0.262,0.266,0.27,0.273,0.277,0.281,0.285,0.289,0.293,0.297,0.305,0.309,0.313,0.316,0.324,0.328,0.332,0.336,0.34,0.344,0.348,0.352,0.355,0.359,0.367,0.371,0.375,0.379,0.383,0.387,0.391,0.395,0.398,0.402,0.406,0.41,0.414,0.418,0.422,0.426,0.43,0.434,0.438,0.445,0.449,0.453,0.457,0.461,0.465,0.469,0.473,0.477,0.48,0.484,0.488,0.492,0.496,0.5,0.504,0.508,0.512,0.516,0.52,0.523,0.527,0.531,0.535,0.539,0.543,0.547,0.551,0.555,0.559,0.563,0.566,0.57,0.574,0.578,0.582,0.586,0.59,0.594,0.598,0.602,0.605,0.609,0.613,0.617,0.621,0.625,0.629,0.633,0.637,0.641,0.645,0.648,0.652,0.656,0.66,0.664,0.668,0.672,0.676,0.68,0.684,0.688,0.691,0.695,0.699,0.703,0.707,0.711,0.715,0.719,0.723,0.727,0.73,0.734,0.738,0.742,0.746,0.75,0.754,0.758,0.762,0.766,0.77,0.773,0.777,0.781,0.785,0.789,0.793,0.797,0.801,0.805,0.809,0.813,0.816,0.82,0.824,0.828,0.832,0.836,0.84,0.844,0.848,0.852,0.855,0.859,0.863,0.867,0.871,0.875,0.879,0.883,0.887,0.891,0.895,0.898,0.902,0.906,0.91,0.914,0.918,0.922,0.926,0.93,0.934,0.938,0.941,0.945,0.949,0.953,0.957,0.961,0.965,0.969,0.973,0.977,0.98,0.984,0.988,0.992,0.996,1],"Dates":["2015-09-09T00:00:00","2015-09-10T00:00:00","2015-09-11T00:00:00","2015-09-14T00:00:00","2015-09-15T00:00:00","2015-09-16T00:00:00","2015-09-17T00:00:00","2015-09-18T00:00:00","2015-09-21T00:00:00","2015-09-22T00:00:00","2015-09-23T00:00:00","2015-09-24T00:00:00","2015-09-25T00:00:00","2015-09-28T00:00:00","2015-09-29T00:00:00","2015-09-30T00:00:00","2015-10-01T00:00:00","2015-10-02T00:00:00","2015-10-05T00:00:00","2015-10-06T00:00:00","2015-10-07T00:00:00","2015-10-08T00:00:00","2015-10-09T00:00:00","2015-10-12T00:00:00","2015-10-13T00:00:00","2015-10-14T00:00:00","2015-10-15T00:00:00","2015-10-16T00:00:00","2015-10-19T00:00:00","2015-10-20T00:00:00","2015-10-21T00:00:00","2015-10-22T00:00:00","2015-10-23T00:00:00","2015-10-26T00:00:00","2015-10-27T00:00:00","2015-10-28T00:00:00","2015-10-29T00:00:00","2015-10-30T00:00:00","2015-11-02T00:00:00","2015-11-03T00:00:00","2015-11-04T00:00:00","2015-11-05T00:00:00","2015-11-06T00:00:00","2015-11-09T00:00:00","2015-11-10T00:00:00","2015-11-11T00:00:00","2015-11-12T00:00:00","2015-11-13T00:00:00","2015-11-16T00:00:00","2015-11-17T00:00:00","2015-11-18T00:00:00","2015-11-19T00:00:00","2015-11-20T00:00:00","2015-11-23T00:00:00","2015-11-24T00:00:00","2015-11-25T00:00:00","2015-11-27T00:00:00","2015-11-30T00:00:00","2015-12-01T00:00:00","2015-12-02T00:00:00","2015-12-03T00:00:00","2015-12-04T00:00:00","2015-12-07T00:00:00","2015-12-08T00:00:00","2015-12-09T00:00:00","2015-12-10T00:00:00","2015-12-11T00:00:00","2015-12-14T00:00:00","2015-12-15T00:00:00","2015-12-16T00:00:00","2015-12-17T00:00:00","2015-12-18T00:00:00","2015-12-21T00:00:00","2015-12-22T00:00:00","2015-12-23T00:00:00","2015-12-24T00:00:00","2015-12-28T00:00:00","2015-12-29T00:00:00","2015-12-30T00:00:00","2015-12-31T00:00:00","2016-01-04T00:00:00","2016-01-05T00:00:00","2016-01-06T00:00:00","2016-01-07T00:00:00","2016-01-08T00:00:00","2016-01-11T00:00:00","2016-01-12T00:00:00","2016-01-13T00:00:00","2016-01-14T00:00:00","2016-01-15T00:00:00","2016-01-19T00:00:00","2016-01-20T00:00:00","2016-01-21T00:00:00","2016-01-22T00:00:00","2016-01-25T00:00:00","2016-01-26T00:00:00","2016-01-27T00:00:00","2016-01-28T00:00:00","2016-01-29T00:00:00","2016-02-01T00:00:00","2016-02-02T00:00:00","2016-02-03T00:00:00","2016-02-04T00:00:00","2016-02-05T00:00:00","2016-02-08T00:00:00","2016-02-09T00:00:00","2016-02-10T00:00:00","2016-02-11T00:00:00","2016-02-12T00:00:00","2016-02-16T00:00:00","2016-02-17T00:00:00","2016-02-18T00:00:00","2016-02-19T00:00:00","2016-02-22T00:00:00","2016-02-23T00:00:00","2016-02-24T00:00:00","2016-02-25T00:00:00","2016-02-26T00:00:00","2016-02-29T00:00:00","2016-03-01T00:00:00","2016-03-02T00:00:00","2016-03-03T00:00:00","2016-03-04T00:00:00","2016-03-07T00:00:00","2016-03-08T00:00:00","2016-03-09T00:00:00","2016-03-10T00:00:00","2016-03-11T00:00:00","2016-03-14T00:00:00","2016-03-15T00:00:00","2016-03-16T00:00:00","2016-03-17T00:00:00","2016-03-18T00:00:00","2016-03-21T00:00:00","2016-03-22T00:00:00","2016-03-23T00:00:00","2016-03-24T00:00:00","2016-03-28T00:00:00","2016-03-29T00:00:00","2016-03-30T00:00:00","2016-03-31T00:00:00","2016-04-01T00:00:00","2016-04-04T00:00:00","2016-04-05T00:00:00","2016-04-06T00:00:00","2016-04-07T00:00:00","2016-04-08T00:00:00","2016-04-11T00:00:00","2016-04-12T00:00:00","2016-04-13T00:00:00","2016-04-14T00:00:00","2016-04-15T00:00:00","2016-04-18T00:00:00","2016-04-19T00:00:00","2016-04-20T00:00:00","2016-04-21T00:00:00","2016-04-22T00:00:00","2016-04-25T00:00:00","2016-04-26T00:00:00","2016-04-27T00:00:00","2016-04-28T00:00:00","2016-04-29T00:00:00","2016-05-02T00:00:00","2016-05-03T00:00:00","2016-05-04T00:00:00","2016-05-05T00:00:00","2016-05-06T00:00:00","2016-05-09T00:00:00","2016-05-10T00:00:00","2016-05-11T00:00:00","2016-05-12T00:00:00","2016-05-13T00:00:00","2016-05-16T00:00:00","2016-05-17T00:00:00","2016-05-18T00:00:00","2016-05-19T00:00:00","2016-05-20T00:00:00","2016-05-23T00:00:00","2016-05-24T00:00:00","2016-05-25T00:00:00","2016-05-26T00:00:00","2016-05-27T00:00:00","2016-05-31T00:00:00","2016-06-01T00:00:00","2016-06-02T00:00:00","2016-06-03T00:00:00","2016-06-06T00:00:00","2016-06-07T00:00:00","2016-06-08T00:00:00","2016-06-09T00:00:00","2016-06-10T00:00:00","2016-06-13T00:00:00","2016-06-14T00:00:00","2016-06-15T00:00:00","2016-06-16T00:00:00","2016-06-17T00:00:00","2016-06-20T00:00:00","2016-06-21T00:00:00","2016-06-22T00:00:00","2016-06-23T00:00:00","2016-06-24T00:00:00","2016-06-27T00:00:00","2016-06-28T00:00:00","2016-06-29T00:00:00","2016-06-30T00:00:00","2016-07-01T00:00:00","2016-07-05T00:00:00","2016-07-06T00:00:00","2016-07-07T00:00:00","2016-07-08T00:00:00","2016-07-11T00:00:00","2016-07-12T00:00:00","2016-07-13T00:00:00","2016-07-14T00:00:00","2016-07-15T00:00:00","2016-07-18T00:00:00","2016-07-19T00:00:00","2016-07-20T00:00:00","2016-07-21T00:00:00","2016-07-22T00:00:00","2016-07-25T00:00:00","2016-07-26T00:00:00","2016-07-27T00:00:00","2016-07-28T00:00:00","2016-07-29T00:00:00","2016-08-01T00:00:00","2016-08-02T00:00:00","2016-08-03T00:00:00","2016-08-04T00:00:00","2016-08-05T00:00:00","2016-08-08T00:00:00","2016-08-09T00:00:00","2016-08-10T00:00:00","2016-08-11T00:00:00","2016-08-12T00:00:00","2016-08-15T00:00:00","2016-08-16T00:00:00","2016-08-17T00:00:00","2016-08-18T00:00:00","2016-08-19T00:00:00","2016-08-22T00:00:00","2016-08-23T00:00:00","2016-08-24T00:00:00","2016-08-25T00:00:00","2016-08-26T00:00:00","2016-08-29T00:00:00","2016-08-30T00:00:00","2016-08-31T00:00:00","2016-09-01T00:00:00","2016-09-02T00:00:00","2016-09-06T00:00:00","2016-09-07T00:00:00"],"Elements":[{"Currency":"USD","TimeStamp":null,"Symbol":"AAPL","Type":"price","DataSeries":{"close":{"min":90.34,"max":122.57,"maxDate":"2015-11-03T00:00:00","minDate":"2016-05-12T00:00:00","values":[110.15,112.57,114.21,115.31,116.28,116.41,113.92,113.45,115.21,113.4,114.32,115,114.71,112.44,109.06,110.3,109.58,110.38,110.78,111.31,110.78,109.5,112.12,111.6,111.79,110.21,111.86,111.04,111.73,113.77,113.76,115.5,119.08,115.28,114.55,119.27,120.53,119.5,121.18,122.57,122,120.92,121.06,120.57,116.77,116.11,115.72,112.34,114.175,113.69,117.29,118.78,119.3,117.75,118.88,118.03,117.81,118.3,117.34,116.28,115.2,119.03,118.28,118.23,115.62,116.17,113.18,112.48,110.49,111.34,108.98,106.03,107.33,107.23,108.61,108.03,106.82,108.74,107.32,105.26,105.35,102.71,100.7,96.45,96.96,98.53,99.96,97.39,99.52,97.13,96.66,96.79,96.3,101.42,99.44,99.99,93.42,94.09,97.34,96.43,94.48,96.35,96.6,94.02,95.01,94.99,94.27,93.7,93.99,96.64,98.12,96.26,96.04,96.88,94.69,96.1,96.76,96.91,96.69,100.53,100.75,101.5,103.01,101.87,101.03,101.12,101.17,102.26,102.52,104.58,105.97,105.8,105.92,105.91,106.72,106.13,105.67,105.19,107.68,109.56,108.99,109.99,111.12,109.81,110.96,108.54,108.66,109.02,110.44,112.04,112.1,109.85,107.48,106.91,107.13,105.97,105.68,105.08,104.35,97.82,94.83,93.74,93.64,95.18,94.19,93.24,92.72,92.79,93.42,92.51,90.34,90.52,93.88,93.49,94.56,94.2,95.22,96.43,97.9,99.62,100.41,100.35,99.86,98.46,97.72,97.92,98.63,99.03,98.94,99.65,98.83,97.34,97.46,97.14,97.55,95.33,95.1,95.91,95.55,96.1,93.4,92.04,93.59,94.4,95.6,95.89,94.99,95.53,95.94,96.68,96.98,97.42,96.87,98.79,98.78,99.83,99.87,99.96,99.43,98.66,97.34,96.67,102.95,104.34,104.21,106.05,104.48,105.79,105.87,107.48,108.37,108.81,108,107.93,108.18,109.48,109.38,109.22,109.08,109.36,108.51,108.85,108.03,107.57,106.94,106.82,106,106.1,106.73,107.73,107.7,108.39]}}}]}'
47
+ http_version:
48
+ recorded_at: Thu, 08 Sep 2016 05:13:34 GMT
49
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,61 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://dev.markitondemand.com/MODApis/Api/v2/InteractiveChart/json?parameters=%7B%22Normalized%22:false,%22NumberOfDays%22:365,%22DataPeriod%22:%22Day%22,%22Elements%22:%5B%7B%22Symbol%22:%22AAPLL%22,%22Type%22:%22price%22,%22Params%22:%5B%22c%22%5D%7D%5D%7D
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 500
19
+ message: Internal Server Error
20
+ headers:
21
+ Cache-Control:
22
+ - private
23
+ Content-Length:
24
+ - '1155'
25
+ Content-Type:
26
+ - text/html; charset=utf-8
27
+ Server:
28
+ - ''
29
+ X-Aspnet-Version:
30
+ - ''
31
+ P3p:
32
+ - CP="NON PHY ONL UNI PUR FIN COM NAV INT DEM STA HEA CUR ADM DEV OUR IND",
33
+ policyref="/w3c/p3p.xml"
34
+ Set-Cookie:
35
+ - 3481%5F0=BCE56DCEDF17A00A14CAA2DAA317FA491A71B91CB558638DECDB1DA92CCB68B6;
36
+ path=/; HttpOnly
37
+ - GZIP=1; expires=Tue, 07-Sep-2021 05:43:26 GMT; path=/
38
+ X-Powered-By:
39
+ - ASP.NET
40
+ Date:
41
+ - Thu, 08 Sep 2016 05:43:26 GMT
42
+ body:
43
+ encoding: UTF-8
44
+ string: "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n\r\n<html
45
+ xmlns=\"http://www.w3.org/1999/xhtml\" >\r\n<head id=\"header\" runat=\"server\">\r\n
46
+ \ <title>Site Error</title>\r\n <style type=\"text/css\">\r\n body
47
+ {\r\n\t\tbackground:#fff;\r\n\t\tmargin: 0;\r\n\t\tpadding: 0;\r\n\t\tcolor:
48
+ #808080;\r\n\t\tfont-family: arial, helvetica, sans-serif ;\r\n\t\tfont-size:
49
+ 80%;\r\n\t\tpadding: 20px;\r\n\t }\r\n\t \r\n\t.idstyle \r\n\t{\r\n\t font-size:
50
+ x-small;\r\n\t color: #909090;\r\n\t}\r\n </style>\r\n</head>\r\n\r\n<body>\r\n\r\n<div
51
+ id=\"ErrorBody\" style=\"width: 600px; padding-left: 20px;\">\r\n <h2 class=\"noborder
52
+ ValidationErrors\">Site Error</h2>\r\n <p>\r\n An unexpected error
53
+ has occurred in the web application. The appropriate people have been notified
54
+ of this error,\r\n and will be working to correct the problem as soon
55
+ as possible.\r\n </p>\r\n <p>\r\n To return to the page where
56
+ the error occurred use your browser's Back button. If you were entering data
57
+ on that page, \r\n\t\tit will still be there, and you may retry the action.\r\n
58
+ \ </p>\r\n <p class=\"idstyle\">ID: #9EE80727</p>\r\n</div>\r\n</body>\r\n</html>\r\n"
59
+ http_version:
60
+ recorded_at: Thu, 08 Sep 2016 05:43:26 GMT
61
+ recorded_with: VCR 3.0.3
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stock-markit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Heijmans
@@ -82,11 +82,16 @@ files:
82
82
  - lib/stock-markit/quote.rb
83
83
  - lib/stock-markit/stock.rb
84
84
  - lib/stock-markit/version.rb
85
+ - spec/lib/stock-markit/chart_result_spec.rb
86
+ - spec/lib/stock-markit/chart_spec.rb
87
+ - spec/lib/stock-markit/element_spec.rb
85
88
  - spec/lib/stock-markit/lookup_spec.rb
86
89
  - spec/lib/stock-markit/quote_spec.rb
87
90
  - spec/lib/stock-markit/version_spec.rb
88
91
  - spec/spec_helper.rb
89
92
  - spec/support/vcr.rb
93
+ - spec/vcr/chart/aapl.yml
94
+ - spec/vcr/chart/error.yml
90
95
  - spec/vcr/lookup/twtr.yml
91
96
  - spec/vcr/quote/twtr.yml
92
97
  - spec/vcr/quote/twtr_update.yml
@@ -102,7 +107,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
102
107
  requirements:
103
108
  - - ">="
104
109
  - !ruby/object:Gem::Version
105
- version: '0'
110
+ version: 2.3.0
106
111
  required_rubygems_version: !ruby/object:Gem::Requirement
107
112
  requirements:
108
113
  - - ">="
@@ -115,11 +120,16 @@ signing_key:
115
120
  specification_version: 4
116
121
  summary: stock-markit is the ruby interface for Markit on Demand.
117
122
  test_files:
123
+ - spec/lib/stock-markit/chart_result_spec.rb
124
+ - spec/lib/stock-markit/chart_spec.rb
125
+ - spec/lib/stock-markit/element_spec.rb
118
126
  - spec/lib/stock-markit/lookup_spec.rb
119
127
  - spec/lib/stock-markit/quote_spec.rb
120
128
  - spec/lib/stock-markit/version_spec.rb
121
129
  - spec/spec_helper.rb
122
130
  - spec/support/vcr.rb
131
+ - spec/vcr/chart/aapl.yml
132
+ - spec/vcr/chart/error.yml
123
133
  - spec/vcr/lookup/twtr.yml
124
134
  - spec/vcr/quote/twtr.yml
125
135
  - spec/vcr/quote/twtr_update.yml