pod4 0.8.3 → 0.9.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.
@@ -86,6 +86,9 @@ class FakeRequester
86
86
  subset.select!{|x| x[:name] == array[0] } if (!paramstr.empty? && !array[0].empty?)
87
87
  hash2 = { stompBody: subset.to_json }
88
88
 
89
+ when 'custbad'
90
+ hash2 = { verb: 'error', description: 'error verb description' }
91
+
89
92
  end
90
93
 
91
94
  hash1.merge(hash2)
@@ -102,7 +105,7 @@ describe "NebulousInterface" do
102
105
  # In order to conform with 'acts_like an interface', our CRUDL routines must
103
106
  # pass a single value as the record, which we are making an array. When you
104
107
  # subclass NebulousInterface for your model, you don't have to follow that; you
105
- # can have a parameter per nebulous parameter, if you want, buy overriding the
108
+ # can have a parameter per nebulous parameter, if you want, by overriding the
106
109
  # CRUDL methods.
107
110
  #
108
111
  let(:nebulous_interface_class) do
@@ -274,9 +277,9 @@ describe "NebulousInterface" do
274
277
  interface.list.find {|x| x[interface.id_fld] == id }
275
278
  end
276
279
 
277
- it 'raises CantContinue if anything hinky happens with the ID' do
278
- expect{ interface.delete(:foo) }.to raise_exception CantContinue
279
- expect{ interface.delete(99) }.to raise_exception CantContinue
280
+ it 'raises WeakError if anything hinky happens with the ID' do
281
+ expect{ interface.delete(:foo) }.to raise_exception WeakError
282
+ expect{ interface.delete(99) }.to raise_exception WeakError
280
283
  end
281
284
 
282
285
  it 'makes the record at ID go away' do
@@ -289,4 +292,16 @@ describe "NebulousInterface" do
289
292
  ##
290
293
 
291
294
 
295
+ describe "#send_message" do
296
+
297
+ context "when nebulous returns an error verb" do
298
+
299
+ it "raises a Pod4::WeakError" do
300
+ expect{ interface.send_message("custbad", nil) }.to raise_exception Pod4::WeakError
301
+ end
302
+
303
+ end
304
+
305
+ end
306
+
292
307
  end
@@ -9,7 +9,8 @@ require 'date'
9
9
  require 'time'
10
10
  require 'bigdecimal'
11
11
 
12
- # Note that Sequel insists on *THIS* JDBC driver for MSSQL access.
12
+ # Note that this call seems to have changed recently. YMMV.
13
+ require 'jdbc/mssqlserver'
13
14
  require 'sqljdbc4.jar' # from jdbc-mssqlserver
14
15
 
15
16
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pod4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.3
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jones
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-22 00:00:00.000000000 Z
11
+ date: 2017-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: devnull
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.3'
33
+ version: '0.4'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.3'
40
+ version: '0.4'
41
41
  description: |
42
42
  Provides a simple, common framework to talk to a bunch of data sources,
43
43
  using model classes which consist of a bare minimum of DSL plus vanilla Ruby
@@ -53,7 +53,6 @@ files:
53
53
  - ".hgignore"
54
54
  - ".hgtags"
55
55
  - ".rspec"
56
- - ".ruby-version"
57
56
  - Gemfile
58
57
  - LICENSE.md
59
58
  - README.md
@@ -80,6 +79,7 @@ files:
80
79
  - spec/README.md
81
80
  - spec/common/alert_spec.rb
82
81
  - spec/common/basic_model_spec.rb
82
+ - spec/common/model_new_validate_spec.rb
83
83
  - spec/common/model_plus_typecasting_spec.rb
84
84
  - spec/common/model_spec.rb
85
85
  - spec/common/nebulous_interface_spec.rb
@@ -127,6 +127,7 @@ test_files:
127
127
  - spec/README.md
128
128
  - spec/common/alert_spec.rb
129
129
  - spec/common/basic_model_spec.rb
130
+ - spec/common/model_new_validate_spec.rb
130
131
  - spec/common/model_plus_typecasting_spec.rb
131
132
  - spec/common/model_spec.rb
132
133
  - spec/common/nebulous_interface_spec.rb
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 2.3.2