g5_sibling_deployer_engine 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/models/sibling.rb +2 -1
- data/lib/g5_sibling_deployer_engine/version.rb +1 -1
- data/spec/models/sibling_spec.rb +1 -1
- 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: 244c259c827a32d335f6c25ebc03a4ca5d4c340d
|
4
|
+
data.tar.gz: 4639a8b1f8602bba137b78797626799b080fc9fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e206383198f16e02a6cdc69fb85e78086807d0011a7f204cda3c4df08827a852172bfd0e59c3cf0d4433f5d684fed25ae46c87c8ac9c6b2953c93ba5490ad8f
|
7
|
+
data.tar.gz: 9dc37ef8a14cb806d0397dd5e2e9cdcbcac78cf51ccaa353e2ad38e2da4c64db6ce7e95dfe7f76030060da5664228f49546a6ce1bc42fc631fee47956fb4289c
|
data/README.md
CHANGED
data/app/models/sibling.rb
CHANGED
@@ -21,7 +21,8 @@ class Sibling < ActiveRecord::Base
|
|
21
21
|
main_app_hcard.g5_siblings.map do |sibling|
|
22
22
|
find_or_create_from_hcard(sibling.format)
|
23
23
|
end.compact if main_app_hcard
|
24
|
-
rescue OpenURI::HTTPError
|
24
|
+
rescue OpenURI::HTTPError => e
|
25
|
+
raise e unless /304 Not Modified/ =~ e.message
|
25
26
|
end
|
26
27
|
|
27
28
|
def async_consume
|
data/spec/models/sibling_spec.rb
CHANGED
@@ -20,7 +20,7 @@ describe Sibling do
|
|
20
20
|
end
|
21
21
|
it "swallows 304 errors" do
|
22
22
|
error = OpenURI::HTTPError.new("304 Not Modified", nil)
|
23
|
-
Sibling.stub(:
|
23
|
+
Sibling.stub(:main_app_hcard).and_raise(error)
|
24
24
|
Sibling.consume_main_app_hcard.should be_nil
|
25
25
|
end
|
26
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: g5_sibling_deployer_engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jessica Lynn Suttles
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|