pod4 0.9.1 → 0.9.2

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
- SHA256:
3
- metadata.gz: 2136af8ee4ba964aecab03dc618b2573e3b2d13883d3ab6965db115922a6ed67
4
- data.tar.gz: 485443950826a519387cf740a0e6b7d8ebd3b3fa747e9fb8202f31e95f991362
2
+ SHA1:
3
+ metadata.gz: c3e03af8f6faa0007bcc7e510c3ab0d1df965796
4
+ data.tar.gz: a4a03e266622a1578f8c1051c1aa99de036a84c5
5
5
  SHA512:
6
- metadata.gz: aa2d550a2c50e9ec82a77e786b00b3f4250356964f946eb3a5235aecd0e76bc464f17176669baf40054db788fb81347c545ce2ce014d5459fadb9aceac1822b0
7
- data.tar.gz: cb2081a8903ffd66c2d67e98162875101da19480390ffb795042099f7352d5a3ef7b847ac59bc439113cf369d5ef0dc22269be38a481b92fd6e69e95824b2112
6
+ metadata.gz: 88894872f737e42c9a7530c83879887b508c45cc8442b9d3db37634f472465bc65de7c9cd75ba1ce02e29eb0d1f243d2075647b193a83962a004fac570dcbf19
7
+ data.tar.gz: fa641eae8d2c3bbf5b4d45e9887fb3ffa3858466ff697f5ef75f3f6323dc9c3ecb975a4edd8ba34e064eb1c3faf30a8817256afe30d8928fd1d46b965f6604a7
data/.hgtags CHANGED
@@ -24,3 +24,4 @@ ccb4a8711560725e358f7fb87c76f4787eac5ed5 0.8.0
24
24
  1c06f5b53ea3f3ff235f6e54fe412ec4396cd4b1 0.8.3
25
25
  9a241db13da0e043aae02cee2ed463beca38ed9a 0.9.0
26
26
  f1b3a814e7a8c7d818b57f6d35ce7ed749573d76 0.9.1
27
+ 93b68b850a52781e2f269cb073c77aab174282e5 0.9.2
@@ -351,7 +351,7 @@ module Pod4
351
351
  # if given
352
352
  #
353
353
  def param_string(action, hashParam, id=nil)
354
- hash = hashParam ? hashParam.dup : {}
354
+ hash = hashParam.nil? ? {} : hashParam.to_h
355
355
 
356
356
  hash[@id_fld] = id.to_s if id
357
357
 
data/lib/pod4/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pod4
2
- VERSION = '0.9.1'
2
+ VERSION = '0.9.2'
3
3
  end
@@ -305,15 +305,16 @@ describe "NebulousInterface" do
305
305
  let(:id) { interface.list.first[:id] }
306
306
 
307
307
  it 'updates the record at ID with record parameter' do
308
- rec = {price: 99.99}
308
+ rec = Octothorpe.new(price: 98.23)
309
309
  interface.update(id, rec)
310
310
 
311
- expect( interface.read(id).to_h ).to include(rec)
311
+ x = interface.read(id)
312
+ expect( x.>>.price ).to eq 98.23
312
313
  end
313
314
 
314
315
  it 'creates a non-caching request' do
315
316
  i = id # creates a request, so get it done now
316
- rec = {price: 99.99}
317
+ rec = Octothorpe.new(price: 99.99)
317
318
 
318
319
  FakeRequester.clear_method
319
320
  interface.update(i, rec)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pod4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jones
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  version: '0'
120
120
  requirements: []
121
121
  rubyforge_project:
122
- rubygems_version: 2.7.3
122
+ rubygems_version: 2.5.1
123
123
  signing_key:
124
124
  specification_version: 4
125
125
  summary: Totally not an ORM