dolly 0.5.4 → 0.5.5
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/dolly/request.rb +3 -1
- data/lib/dolly/version.rb +1 -1
- data/test/dummy/log/test.log +87 -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: 10d7b16823e7257cea3aa54d306b932d50fbc5a6
|
4
|
+
data.tar.gz: 6af968ec8a3b98ff9888d0a32ccf7e2285da5266
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91819c57f03e5050147348b61432c3e709296066b0787f4950dd0fcb3f79cce54a24a84634f30187e5bb97e6ecae85b3a3b083e185170ff1041cea33b8ef62a2
|
7
|
+
data.tar.gz: 6fc661f55dc1184f540e10a63d95f5522eec008ab04785f072d3967a5f82e75bf55dc8a3f936f44ef4d58ec7b8dc450b71aed525d2f2e9c1d01e4a0015a911ba
|
data/lib/dolly/request.rb
CHANGED
@@ -49,8 +49,10 @@ module Dolly
|
|
49
49
|
|
50
50
|
private
|
51
51
|
def tools path, opts = nil
|
52
|
+
data = {}
|
52
53
|
q = "?#{CGI.unescape(opts.to_query)}" unless opts.blank?
|
53
|
-
|
54
|
+
data.merge!(basic_auth: auth_info) if auth_info.present?
|
55
|
+
JSON::parse self.class.get("/#{path}#{q}", data)
|
54
56
|
end
|
55
57
|
|
56
58
|
def auth_info
|
data/lib/dolly/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -31120,3 +31120,90 @@ DocumentTest: test_with_default_will_return_default_value_on_nil
|
|
31120
31120
|
-----------------------------------
|
31121
31121
|
DocumentTest: test_with_timestamps!
|
31122
31122
|
-----------------------------------
|
31123
|
+
--------------------------------------------------
|
31124
|
+
BulkDocumentTest: test_adding_document_to_bulk_doc
|
31125
|
+
--------------------------------------------------
|
31126
|
+
-----------------------------------------------------------------
|
31127
|
+
BulkDocumentTest: test_bulk_document_intialize_with_empty_payload
|
31128
|
+
-----------------------------------------------------------------
|
31129
|
+
------------------------------------------------------------------
|
31130
|
+
BulkDocumentTest: test_save_document_will_remove_docs_from_payload
|
31131
|
+
------------------------------------------------------------------
|
31132
|
+
--------------------------------------------------------------
|
31133
|
+
DocumentTest: test_Dolly::Document_have_bulk_document_instance
|
31134
|
+
--------------------------------------------------------------
|
31135
|
+
-------------------------------------------
|
31136
|
+
DocumentTest: test_all_first_returns_FooBar
|
31137
|
+
-------------------------------------------
|
31138
|
+
------------------------------------------
|
31139
|
+
DocumentTest: test_all_last_returns_FooBar
|
31140
|
+
------------------------------------------
|
31141
|
+
--------------------------------------
|
31142
|
+
DocumentTest: test_all_will_get_2_docs
|
31143
|
+
--------------------------------------
|
31144
|
+
------------------------------------------------
|
31145
|
+
DocumentTest: test_all_will_get_FooBar_documents
|
31146
|
+
------------------------------------------------
|
31147
|
+
----------------------------------------------
|
31148
|
+
DocumentTest: test_default_will_be_avoerwriten
|
31149
|
+
----------------------------------------------
|
31150
|
+
--------------------------------------------
|
31151
|
+
DocumentTest: test_delete_method_on_document
|
31152
|
+
--------------------------------------------
|
31153
|
+
------------------------------------------------
|
31154
|
+
DocumentTest: test_empty_find_should_raise_error
|
31155
|
+
------------------------------------------------
|
31156
|
+
------------------------------------------------------------
|
31157
|
+
DocumentTest: test_error_on_server_raises_Dolly::ServerError
|
31158
|
+
------------------------------------------------------------
|
31159
|
+
--------------------------------------------------
|
31160
|
+
DocumentTest: test_find_will_get_a_FooBar_document
|
31161
|
+
--------------------------------------------------
|
31162
|
+
----------------------------------------------------------------
|
31163
|
+
DocumentTest: test_find_with_multiple_ids_will_return_Collection
|
31164
|
+
----------------------------------------------------------------
|
31165
|
+
--------------------------------------------------------
|
31166
|
+
DocumentTest: test_first_class_method_returns_collection
|
31167
|
+
--------------------------------------------------------
|
31168
|
+
---------------------------------------------------------
|
31169
|
+
DocumentTest: test_first_class_method_returns_single_item
|
31170
|
+
---------------------------------------------------------
|
31171
|
+
---------------------------------------------
|
31172
|
+
DocumentTest: test_getting_not_found_document
|
31173
|
+
---------------------------------------------
|
31174
|
+
-------------------------------------------------------
|
31175
|
+
DocumentTest: test_last_class_method_returns_collection
|
31176
|
+
-------------------------------------------------------
|
31177
|
+
--------------------------------------------------------
|
31178
|
+
DocumentTest: test_last_class_method_returns_single_item
|
31179
|
+
--------------------------------------------------------
|
31180
|
+
-------------------------------------------------
|
31181
|
+
DocumentTest: test_multi_response_with_right_data
|
31182
|
+
-------------------------------------------------
|
31183
|
+
---------------------------------------
|
31184
|
+
DocumentTest: test_new_document_have_id
|
31185
|
+
---------------------------------------
|
31186
|
+
-----------------------------------------
|
31187
|
+
DocumentTest: test_new_in_memory_document
|
31188
|
+
-----------------------------------------
|
31189
|
+
------------------------------------
|
31190
|
+
DocumentTest: test_query_custom_view
|
31191
|
+
------------------------------------
|
31192
|
+
------------------------------------------
|
31193
|
+
DocumentTest: test_soft_delete_on_document
|
31194
|
+
------------------------------------------
|
31195
|
+
-------------------------------------------
|
31196
|
+
DocumentTest: test_will_have_key_properties
|
31197
|
+
-------------------------------------------
|
31198
|
+
--------------------------------------------------------
|
31199
|
+
DocumentTest: test_will_have_object_with_boolean?_method
|
31200
|
+
--------------------------------------------------------
|
31201
|
+
------------------------------------------------
|
31202
|
+
DocumentTest: test_will_have_only_set_properties
|
31203
|
+
------------------------------------------------
|
31204
|
+
----------------------------------------------------------------
|
31205
|
+
DocumentTest: test_with_default_will_return_default_value_on_nil
|
31206
|
+
----------------------------------------------------------------
|
31207
|
+
-----------------------------------
|
31208
|
+
DocumentTest: test_with_timestamps!
|
31209
|
+
-----------------------------------
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dolly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- javierg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|