comptroller 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/comptroller/claim_error.rb +8 -0
- data/lib/comptroller/version.rb +1 -1
- data/lib/spec/fake_server.rb +4 -0
- data/spec/claim_error_spec.rb +4 -0
- metadata +2 -2
@@ -5,6 +5,14 @@ module Comptroller
|
|
5
5
|
collection_path '/duxware_errors'
|
6
6
|
include_root_in_json true
|
7
7
|
|
8
|
+
attributes :error_message, :created_at, :external_id
|
9
|
+
|
10
|
+
def self.count
|
11
|
+
get_raw(:count) do |parsed_data, response|
|
12
|
+
parsed_data[:data][:count]
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
8
16
|
def eql?(other)
|
9
17
|
id.eql? other.id
|
10
18
|
end
|
data/lib/comptroller/version.rb
CHANGED
data/lib/spec/fake_server.rb
CHANGED
@@ -88,6 +88,10 @@ Mimic.mimic(:port => Comptroller::Configuration::PORT) do
|
|
88
88
|
[ 200, {}, deleted_practice.to_json ]
|
89
89
|
end
|
90
90
|
|
91
|
+
get '/duxware_errors/count' do
|
92
|
+
[ 200, {}, { :count => 1 }.to_json ]
|
93
|
+
end
|
94
|
+
|
91
95
|
get '/duxware_errors' do
|
92
96
|
[ 200, {}, DataManager.claim_errors.values.to_json ]
|
93
97
|
end
|
data/spec/claim_error_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: comptroller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-08-
|
12
|
+
date: 2013-08-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: her
|