moysklad 0.2.1 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/rspec.yml +29 -0
- data/.gitignore +1 -0
- data/README.md +14 -3
- data/lib/moysklad/client/errors.rb +60 -30
- data/lib/moysklad/client.rb +39 -11
- data/lib/moysklad/entities/assortment.rb +4 -0
- data/lib/moysklad/entities/attribute.rb +111 -37
- data/lib/moysklad/entities/attribute_metadata.rb +7 -31
- data/lib/moysklad/entities/attribute_value.rb +18 -0
- data/lib/moysklad/entities/base.rb +23 -8
- data/lib/moysklad/entities/bundle.rb +39 -0
- data/lib/moysklad/entities/characteristic.rb +4 -0
- data/lib/moysklad/entities/characteristic_metadata.rb +4 -0
- data/lib/moysklad/entities/collection.rb +27 -7
- data/lib/moysklad/entities/collection_meta.rb +11 -0
- data/lib/moysklad/entities/company_settings_metadata.rb +26 -0
- data/lib/moysklad/entities/consignment.rb +16 -17
- data/lib/moysklad/entities/context.rb +7 -0
- data/lib/moysklad/entities/counterparty.rb +20 -0
- data/lib/moysklad/entities/country.rb +2 -8
- data/lib/moysklad/entities/currency.rb +27 -0
- data/lib/moysklad/entities/custom_entity.rb +17 -10
- data/lib/moysklad/entities/customer_order.rb +109 -23
- data/lib/moysklad/entities/customer_order_position.rb +6 -18
- data/lib/moysklad/entities/employee.rb +5 -0
- data/lib/moysklad/entities/entity.rb +39 -0
- data/lib/moysklad/entities/group.rb +10 -0
- data/lib/moysklad/entities/image.rb +16 -0
- data/lib/moysklad/entities/meta.rb +12 -0
- data/lib/moysklad/entities/organization.rb +17 -0
- data/lib/moysklad/entities/owner.rb +4 -0
- data/lib/moysklad/entities/price.rb +4 -8
- data/lib/moysklad/entities/price_type.rb +0 -8
- data/lib/moysklad/entities/product.rb +47 -0
- data/lib/moysklad/entities/productfolder.rb +11 -0
- data/lib/moysklad/entities/rate.rb +6 -0
- data/lib/moysklad/entities/resource_metadata.rb +8 -0
- data/lib/moysklad/entities/service.rb +23 -0
- data/lib/moysklad/entities/shortcut.rb +9 -0
- data/lib/moysklad/entities/store.rb +9 -0
- data/lib/moysklad/entities/time.rb +13 -0
- data/lib/moysklad/entities/uom.rb +5 -0
- data/lib/moysklad/entities/variant.rb +47 -0
- data/lib/moysklad/entities.rb +42 -39
- data/lib/moysklad/error.rb +1 -0
- data/lib/moysklad/resources/assortments.rb +13 -0
- data/lib/moysklad/resources/base.rb +35 -46
- data/lib/moysklad/resources/custom_entities.rb +29 -0
- data/lib/moysklad/resources/custom_entity_metadata.rb +12 -8
- data/lib/moysklad/resources/embedded_entity_metadata.rb +2 -3
- data/lib/moysklad/resources/indexed.rb +21 -37
- data/lib/moysklad/resources/indexed_cache.rb +36 -0
- data/lib/moysklad/resources/load_all.rb +21 -0
- data/lib/moysklad/resources/positions.rb +15 -0
- data/lib/moysklad/resources/products.rb +10 -0
- data/lib/moysklad/resources/stock.rb +1 -1
- data/lib/moysklad/resources/subresource.rb +0 -1
- data/lib/moysklad/resources/where_filter.rb +0 -1
- data/lib/moysklad/resources.rb +26 -11
- data/lib/moysklad/universe.rb +16 -2
- data/lib/moysklad/version.rb +1 -1
- data/lib/moysklad.rb +12 -7
- data/moysklad.gemspec +5 -3
- data/scripts/rest.sh +5 -2
- data/spec/lib/moysklad/entities/customer_order_position_spec.rb +4 -17
- data/spec/lib/moysklad/entities/customer_order_spec.rb +8 -33
- data/spec/lib/moysklad/resources/base_spec.rb +0 -54
- data/spec/lib/moysklad/resources_spec.rb +0 -2
- data/spec/lib/moysklad/universe_spec.rb +0 -23
- data/spec/lib/moysklad_spec.rb +0 -1
- data/spec/spec_helper.rb +2 -1
- data/spec/support/resource.rb +1 -66
- data/test.rb +177 -0
- metadata +89 -172
- data/.travis.yml +0 -4
- data/lib/moysklad/entities/barcode.rb +0 -13
- data/lib/moysklad/entities/common.rb +0 -15
- data/lib/moysklad/entities/common_object.rb +0 -29
- data/lib/moysklad/entities/company.rb +0 -20
- data/lib/moysklad/entities/company_concern.rb +0 -20
- data/lib/moysklad/entities/contact.rb +0 -15
- data/lib/moysklad/entities/custom_entity_metadata.rb +0 -36
- data/lib/moysklad/entities/embedded_entity_metadata.rb +0 -18
- data/lib/moysklad/entities/error.rb +0 -13
- data/lib/moysklad/entities/feature.rb +0 -20
- data/lib/moysklad/entities/good.rb +0 -34
- data/lib/moysklad/entities/good_folder.rb +0 -9
- data/lib/moysklad/entities/good_ref.rb +0 -12
- data/lib/moysklad/entities/my_company.rb +0 -12
- data/lib/moysklad/entities/sale_price.rb +0 -18
- data/lib/moysklad/entities/sale_prices.rb +0 -10
- data/lib/moysklad/entities/slot.rb +0 -10
- data/lib/moysklad/entities/stock_to.rb +0 -33
- data/lib/moysklad/entities/warehouse.rb +0 -15
- data/lib/moysklad/entities/xml_fix.rb +0 -15
- data/spec/fixtures/302.raw +0 -15
- data/spec/fixtures/400.raw +0 -8
- data/spec/fixtures/401.html +0 -1
- data/spec/fixtures/401_2.html +0 -1
- data/spec/fixtures/405.raw +0 -9
- data/spec/fixtures/500.raw +0 -8
- data/spec/fixtures/502.raw +0 -8
- data/spec/fixtures/Consignment_list_0.raw +0 -14
- data/spec/fixtures/Consignment_list_1000.raw +0 -14
- data/spec/fixtures/Country_list.raw +0 -14
- data/spec/fixtures/CustomEntityMetadata_list.raw +0 -14
- data/spec/fixtures/CustomEntity_list.raw +0 -14
- data/spec/fixtures/CustomEntity_list_bad_chars.raw +0 -17
- data/spec/fixtures/EmbeddedEntityMetadata_list.raw +0 -15
- data/spec/fixtures/Feature_list.raw +0 -14
- data/spec/fixtures/Feature_list_1000.raw +0 -14
- data/spec/fixtures/Good_e932ebe1-2e22-11e4-9406-002590a28eca.raw +0 -12
- data/spec/fixtures/Good_eb77ad57-2e22-11e4-4030-002590a28eca.raw +0 -12
- data/spec/fixtures/Goods_list.raw +0 -14
- data/spec/fixtures/Metadata_list.raw +0 -14
- data/spec/fixtures/PriceType_list.raw +0 -14
- data/spec/fixtures/Stock.raw +0 -11
- data/spec/fixtures/Stock_showConsignments.raw +0 -11
- data/spec/fixtures/Uom_list.raw +0 -14
- data/spec/fixtures/Warehouse_list.raw +0 -14
- data/spec/fixtures/attribute_boolean.xml +0 -6
- data/spec/fixtures/attribute_dictionary.xml +0 -5
- data/spec/fixtures/attribute_double.xml +0 -6
- data/spec/fixtures/attribute_file.xml +0 -12
- data/spec/fixtures/attribute_long.xml +0 -6
- data/spec/fixtures/attribute_text.xml +0 -5
- data/spec/fixtures/attribute_time.xml +0 -6
- data/spec/fixtures/attribute_url.xml +0 -6
- data/spec/fixtures/bad_chars.xml +0 -6
- data/spec/fixtures/customer_order.xml +0 -28
- data/spec/fixtures/good_with_attributes.raw +0 -12
- data/spec/fixtures/resource_forbidden.raw +0 -9
- data/spec/fixtures/wrong_password.raw +0 -9
- data/spec/fixtures/wrong_type.raw +0 -70
- data/spec/fixtures/wrong_user.raw +0 -9
- data/spec/lib/moysklad/client/errors_spec.rb +0 -102
- data/spec/lib/moysklad/entities/attribute_metadata_spec.rb +0 -30
- data/spec/lib/moysklad/entities/attribute_spec.rb +0 -36
- data/spec/lib/moysklad/entities/country_spec.rb +0 -25
- data/spec/lib/moysklad/entities/custom_entity_metadata_spec.rb +0 -34
- data/spec/lib/moysklad/entities/custom_entity_spec.rb +0 -34
- data/spec/lib/moysklad/entities/good_spec.rb +0 -46
- data/spec/lib/moysklad/resources/countries_spec.rb +0 -22
- data/spec/lib/moysklad/resources/custom_entity_metadata_spec.rb +0 -13
- data/spec/lib/moysklad/resources/embedded_entity_metadata_indexed_spec.rb +0 -20
- data/spec/lib/moysklad/resources/embedded_entity_metadata_spec.rb +0 -11
- data/spec/lib/moysklad/resources/good_folders_spec.rb +0 -17
- data/spec/lib/moysklad/resources/indexed_spec.rb +0 -61
- data/spec/lib/moysklad/resources/stock_spec.rb +0 -63
- data/spec/lib/moysklad/resources/warehouses_spec.rb +0 -20
@@ -1,18 +0,0 @@
|
|
1
|
-
module Moysklad::Entities
|
2
|
-
# https://online.moysklad.ru/exchange/rest/ms/xml/Metadata/list
|
3
|
-
class EmbeddedEntityMetadata < Base
|
4
|
-
include CommonObject
|
5
|
-
|
6
|
-
tag 'embeddedEntityMetadata'
|
7
|
-
|
8
|
-
attribute :uniqueCode, Boolean
|
9
|
-
attribute :codeValueType, Integer
|
10
|
-
attribute :independentNameGenerator, Boolean
|
11
|
-
attribute :partialReserve, Boolean
|
12
|
-
|
13
|
-
has_many :attributeMetadata, AttributeMetadata
|
14
|
-
|
15
|
-
element :code, String
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
@@ -1,20 +0,0 @@
|
|
1
|
-
module Moysklad::Entities
|
2
|
-
class Feature < Base
|
3
|
-
include CommonObject
|
4
|
-
|
5
|
-
tag 'feature'
|
6
|
-
|
7
|
-
attribute :goodUuid, String
|
8
|
-
|
9
|
-
attribute :archived, Boolean
|
10
|
-
|
11
|
-
has_many :attributes, Moysklad::Entities::Attribute
|
12
|
-
has_many :barcodes, Moysklad::Entities::Barcode
|
13
|
-
|
14
|
-
def good universe
|
15
|
-
cache :good, universe do
|
16
|
-
universe.good.find goodUuid
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
@@ -1,34 +0,0 @@
|
|
1
|
-
module Moysklad::Entities
|
2
|
-
class Good < Base
|
3
|
-
include CommonObject
|
4
|
-
include Moysklad::Entities::XmlFix
|
5
|
-
|
6
|
-
tag 'good'
|
7
|
-
|
8
|
-
attribute :isSerialTrackable, Boolean
|
9
|
-
attribute :buyPrice, Float
|
10
|
-
attribute :buyCurrencyUuid, String
|
11
|
-
attribute :minPrice, Float
|
12
|
-
attribute :salePrice, Float
|
13
|
-
attribute :saleCurrencyUuid, String
|
14
|
-
attribute :weight, Float
|
15
|
-
attribute :volume, Float
|
16
|
-
attribute :parentUuid, String
|
17
|
-
attribute :productCode, String
|
18
|
-
attribute :uomUuid, String
|
19
|
-
|
20
|
-
element :code, String
|
21
|
-
element :salePrices, Moysklad::Entities::SalePrices
|
22
|
-
|
23
|
-
has_many :attributes, Attribute
|
24
|
-
|
25
|
-
# preferences
|
26
|
-
# images
|
27
|
-
|
28
|
-
def features universe
|
29
|
-
cache :features, universe do
|
30
|
-
universe.features.where goodUuid: uuid
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
@@ -1,12 +0,0 @@
|
|
1
|
-
module Moysklad::Entities
|
2
|
-
# https://online.moysklad.ru/exchange/rest/ms/xml/MyCompany/list
|
3
|
-
class MyCompany < Base
|
4
|
-
include Moysklad::Entities::CompanyConcern
|
5
|
-
|
6
|
-
tag 'myCompany'
|
7
|
-
|
8
|
-
attribute :director, String
|
9
|
-
attribute :chiefAccountant, String
|
10
|
-
|
11
|
-
end
|
12
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
module Moysklad::Entities
|
2
|
-
class SalePrice < Base
|
3
|
-
include HappyMapper
|
4
|
-
include Moysklad::Entities::XmlFix
|
5
|
-
|
6
|
-
tag 'price'
|
7
|
-
|
8
|
-
attribute :currencyUuid, String
|
9
|
-
attribute :priceTypeUuid, String
|
10
|
-
attribute :value, Float
|
11
|
-
|
12
|
-
def priceType universe
|
13
|
-
cache :priceType, universe do
|
14
|
-
universe.price_types.find priceTypeUuid
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
@@ -1,33 +0,0 @@
|
|
1
|
-
module Moysklad::Entities
|
2
|
-
class StockTO < Base
|
3
|
-
include HappyMapper
|
4
|
-
include Moysklad::Entities::XmlFix
|
5
|
-
|
6
|
-
tag 'stockTO'
|
7
|
-
|
8
|
-
attribute :productCode, String
|
9
|
-
attribute :uomName, String
|
10
|
-
|
11
|
-
attribute :quantity, Float # Доступный остаток на склада
|
12
|
-
attribute :reserve, Float # Сколько в резерве
|
13
|
-
attribute :stock, Float # Остаток на складе не считая резерва
|
14
|
-
|
15
|
-
attribute :inTransit, Float
|
16
|
-
attribute :sumTotal, Float
|
17
|
-
attribute :saleAmount, Float
|
18
|
-
attribute :minimumBalance, Float
|
19
|
-
attribute :category, String
|
20
|
-
attribute :externalCode, String
|
21
|
-
attribute :parentUuid, String
|
22
|
-
attribute :defaultConsignment, Boolean
|
23
|
-
attribute :salePrice, Float
|
24
|
-
|
25
|
-
# Есть только при showConsignments
|
26
|
-
attribute :consignmentName, String
|
27
|
-
attribute :consignmentUuid, String
|
28
|
-
|
29
|
-
element :goodRef, Moysklad::Entities::GoodRef
|
30
|
-
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
@@ -1,15 +0,0 @@
|
|
1
|
-
module Moysklad::Entities
|
2
|
-
# https://online.moysklad.ru/exchange/rest/ms/xml/Warehouse/list
|
3
|
-
class Warehouse < Base
|
4
|
-
include CommonObject
|
5
|
-
|
6
|
-
tag 'warehouse'
|
7
|
-
|
8
|
-
attribute :agentUuid, String
|
9
|
-
attribute :archived, Boolean
|
10
|
-
attribute :code, String
|
11
|
-
|
12
|
-
element :contact, Contact
|
13
|
-
has_many :slots, Slot
|
14
|
-
end
|
15
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
module Moysklad::Entities::XmlFix
|
2
|
-
extend ::ActiveSupport::Concern
|
3
|
-
|
4
|
-
def to_xml builder = nil,default_namespace = nil,tag_from_parent = nil
|
5
|
-
unless builder
|
6
|
-
builder = Nokogiri::XML::Builder.new(encoding: 'utf-8')
|
7
|
-
write_out_to_xml = true
|
8
|
-
end
|
9
|
-
|
10
|
-
result = super builder, default_namespace, tag_from_parent
|
11
|
-
|
12
|
-
write_out_to_xml ? result.to_xml : result
|
13
|
-
end
|
14
|
-
|
15
|
-
end
|
data/spec/fixtures/302.raw
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
HTTP/1.1 302 Moved Temporarily
|
2
|
-
Server: nginx
|
3
|
-
Date: Thu, 13 Nov 2014 16:43:43 GMT
|
4
|
-
Content-Type: text/html
|
5
|
-
Content-Length: 154
|
6
|
-
Connection: keep-alive
|
7
|
-
Location: http://brandymint.ru/
|
8
|
-
|
9
|
-
<html>
|
10
|
-
<head><title>302 Found</title></head>
|
11
|
-
<body bgcolor="white">
|
12
|
-
<center><h1>302 Found</h1></center>
|
13
|
-
<hr><center>nginx</center>
|
14
|
-
</body>
|
15
|
-
</html>
|
data/spec/fixtures/400.raw
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
HTTP/1.1 400 Bad Request
|
2
|
-
Server: nginx/1.6.1
|
3
|
-
Date: Thu, 13 Nov 2014 14:40:41 GMT
|
4
|
-
Content-Type: text/html;charset=utf-8
|
5
|
-
Content-Length: 1801
|
6
|
-
Connection: close
|
7
|
-
|
8
|
-
<html><head><title>JBoss Web/7.2.0.Final - JBWEB000064: Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>JBWEB000065: HTTP Status 400 - Unable to extract parameter from http request: javax.ws.rs.QueryParam("start") value is '' for public abstract javax.ws.rs.core.StreamingOutput com.lognex.sklad.back.ejb.exchange.rest.IRestExchangeManagerUser.entityList(java.lang.String,java.lang.String,java.lang.Integer,java.lang.Integer,java.lang.String,java.lang.String,java.lang.Boolean,java.lang.Boolean)</h1><HR size="1" noshade="noshade"><p><b>JBWEB000309: type</b> JBWEB000067: Status report</p><p><b>JBWEB000068: message</b> <u>Unable to extract parameter from http request: javax.ws.rs.QueryParam("start") value is '' for public abstract javax.ws.rs.core.StreamingOutput com.lognex.sklad.back.ejb.exchange.rest.IRestExchangeManagerUser.entityList(java.lang.String,java.lang.String,java.lang.Integer,java.lang.Integer,java.lang.String,java.lang.String,java.lang.Boolean,java.lang.Boolean)</u></p><p><b>JBWEB000069: description</b> <u>JBWEB000120: The request sent by the client was syntactically incorrect.</u></p><HR size="1" noshade="noshade"><h3>JBoss Web/7.2.0.Final</h3></body></html>
|
data/spec/fixtures/401.html
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
<html><head><title>JBoss Web/7.2.0.Final - JBWEB000064: Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif; color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name{color : black;}HR {color : #525D76;}--></style> </head><body><h1>JBWEB000065: HTTP Status 401 - Request attempts limit exceeded, try later</h1><HR size="1" noshade="noshade"><p><b>JBWEB000309: type</b> JBWEB000067: Status report</p><p><b>JBWEB000068: message</b> <u>Request attempts limit exceeded, try later</u></p><p><b>JBWEB000069: description</b> <u>JBWEB000121: This requestrequires HTTP authentication.</u></p><HR size="1" noshade="noshade"><h3>JBoss Web/7.2.0.Final</h3></body></html>
|
data/spec/fixtures/401_2.html
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
<html><head><title>JBoss Web/7.2.0.Final - JBWEB000064: Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>JBWEB000065: HTTP Status 401 - </h1><HR size="1" noshade="noshade"><p><b>JBWEB000309: type</b> JBWEB000067: Status report</p><p><b>JBWEB000068: message</b> <u></u></p><p><b>JBWEB000069: description</b> <u>JBWEB000121: This request requires HTTP authentication.</u></p><HR size="1" noshade="noshade"><h3>JBoss Web/7.2.0.Final</h3></body></html>
|
data/spec/fixtures/405.raw
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
HTTP/1.1 405 Method Not Allowed
|
2
|
-
Server: nginx/1.6.1
|
3
|
-
Date: Thu, 13 Nov 2014 06:52:04 GMT
|
4
|
-
Content-Type: text/html;charset=utf-8
|
5
|
-
Content-Length: 1070
|
6
|
-
Connection: close
|
7
|
-
Allow: OPTIONS, PUT
|
8
|
-
|
9
|
-
<html><head><title>JBoss Web/7.2.0.Final - JBWEB000064: Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>JBWEB000065: HTTP Status 405 - </h1><HR size="1" noshade="noshade"><p><b>JBWEB000309: type</b> JBWEB000067: Status report</p><p><b>JBWEB000068: message</b> <u></u></p><p><b>JBWEB000069: description</b> <u>JBWEB000125: The specified HTTP method is not allowed for the requested resource.</u></p><HR size="1" noshade="noshade"><h3>JBoss Web/7.2.0.Final</h3></body></html>
|
data/spec/fixtures/500.raw
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
HTTP/1.5 500 Internal Server Error
|
2
|
-
Server: nginx/1.6.1
|
3
|
-
Date: Thu, 13 Nov 2014 14:40:41 GMT
|
4
|
-
Content-Type: text/html;charset=utf-8
|
5
|
-
Content-Length: 370
|
6
|
-
Connection: close
|
7
|
-
|
8
|
-
<html> <head><title>500 Internal Server Error</title></head> <body bgcolor="white"> <center><h1>500 Internal Server Error</h1></center> <hr><center>nginx/1.6.2</center> </body> </html> : <html> <head><title>500 Internal Server Error</title></head> <body bgcolor="white"> <center><h1>500 Internal Server Error</h1></center> <hr><center>nginx/1.6.2</center> </body> </html>
|
data/spec/fixtures/502.raw
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
HTTP/1.5 502 Bad Gateway
|
2
|
-
Server: nginx/1.6.1
|
3
|
-
Date: Thu, 13 Nov 2014 14:40:41 GMT
|
4
|
-
Content-Type: text/html;charset=utf-8
|
5
|
-
Content-Length: 164
|
6
|
-
Connection: close
|
7
|
-
|
8
|
-
<html> <head><title>502 Bad Gateway</title></head> <body bgcolor="white"> <center><h1>502 Bad Gateway</h1></center> <hr><center>nginx/1.6.1</center> </body> </html>
|