loquor 1.9.0 → 1.10.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b14ec844bf79eac498b70b9739422cdd7cbd0ed7
4
- data.tar.gz: f290db8cbc26f200838a8601d6c482cfbbcc67cc
3
+ metadata.gz: ce06b0b749cfa21d3d4f785b50cff2b975d166cb
4
+ data.tar.gz: 3d4db797d3e8a51fb463751922dc7d15a55a598e
5
5
  SHA512:
6
- metadata.gz: e7debfdd1ed58223f03019643d9e04f6bb4c0ee0e1a94dbc13dbe36a85d930b9a44b6ec1b6115a1a250318d80a08606e7940cfc66046147a7f2e96d9d567f705
7
- data.tar.gz: 5a40d2a8daa698f2bcee5e411e33dd1034fc4af6d255cfba760104092e28d28bfd311b51c59d51d475dcaa309ae8c1dc59d4c05a9facb4cf61a61a9c71697e48
6
+ metadata.gz: 89bfd95956816c3577513e97e6f37b71613bc2b6579a0c5ec54ba256efabea85fa0d8e044c6b9faaeff000fd820d40c6e8c6a687cb5f940f345746a4edbec7e2
7
+ data.tar.gz: 642f2fc972183d54dc6c95e7248685546cfe8f8bb70df6c064ce889914e6a3c7b8b825f97687dfc384dbbdd5aabb0075dc29262667bdd2953b232c43a8480a80
@@ -1,4 +1,7 @@
1
- # 1.9.0 / 2014-03-31
1
+ # 1.10.0 / 2014-04-30
2
+ * [FEATURE] Allow creation of custom_samples
3
+
4
+ # 1.9.0 / 2014-04-30
2
5
  * [FEATURE] Don't call back to SPI for find unless there is an id
3
6
 
4
7
  # 1.8.0 / 2014-03-31
@@ -34,6 +34,10 @@ module Loquor
34
34
  self.new(attributes.merge(overrides))
35
35
  end
36
36
 
37
+ def custom_sample(attrs = {})
38
+ self.new(attrs)
39
+ end
40
+
37
41
  def find(id)
38
42
  self.new(attributes.merge(id: id))
39
43
  end
@@ -1,3 +1,3 @@
1
1
  module Loquor
2
- VERSION = "1.9.0"
2
+ VERSION = "1.10.0"
3
3
  end
@@ -42,6 +42,11 @@ module Loquor
42
42
  assert_equal "undefined local variable or method 'cat' for Loquor::ResourceMockTest::Foobar", ex.message
43
43
  end
44
44
 
45
+ def test_should_allow_any_attributes_for_custom_sample
46
+ foobar = Foobar.custom_sample(foo: 'bar')
47
+ assert_equal "bar", foobar.foo
48
+ end
49
+
45
50
  def test_should_respond_to_create
46
51
  name = "foobar123"
47
52
  foobar = Foobar.create(name: name)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loquor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0
4
+ version: 1.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Walker
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
178
  version: '0'
179
179
  requirements: []
180
180
  rubyforge_project:
181
- rubygems_version: 2.2.1
181
+ rubygems_version: 2.1.9
182
182
  signing_key:
183
183
  specification_version: 4
184
184
  summary: This library dispatches requests to Meducation
@@ -199,3 +199,4 @@ test_files:
199
199
  - test/resource_mock_test.rb
200
200
  - test/resource_test.rb
201
201
  - test/test_helper.rb
202
+ has_rdoc: