ragamuffins 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f2d7183e404968d0b1af61fdf9d98e17dfee79d
4
- data.tar.gz: c859e711102bf549167027eb0b446a80d8495e1c
3
+ metadata.gz: 074a4646bd4731c8c7275704b3d18f4538fb02c6
4
+ data.tar.gz: badc80df977fad7eb4ce08a7a49fe0bfe3650f61
5
5
  SHA512:
6
- metadata.gz: f4ad58fd003e24f84c49da00ee8ad8ebf640f8b01ebc50a1d957e1294acd706f8515a36d25ea8d709ae2cf5fa7fb064e624d8513536e95937963e916bfb94ccc
7
- data.tar.gz: eed07c3f4d0fc61eed5f7fd4d6758265a994757b79fa0f893db10959a4c83abd1c0b42aad247784c556d01d318c489d9cc357c2b24369ff4f7321948220b651c
6
+ metadata.gz: 348cb5c2f226800a74b0f3ddd66d37d9cec2eaa9e9276e80af02f46811a98ba503e87511f4b7909753d501447a7b6dde28bcb285cc9352abcb4ce77139ac9264
7
+ data.tar.gz: e97fa8799b064dcab13a2820fbde9320c7f3be9c6623c6857aa3787a7b32029133932c844b690e3fdf517fe88edb0412e87022a668cc8304d372f2f9fed5691b
@@ -10,6 +10,13 @@ module Ragamuffins
10
10
  return [] if ids == nil
11
11
 
12
12
  ids.collect{|s| s.to_i} - self.where("#{table_name}.id IN (?)", ids).map(&:id)
13
+
14
+ #
15
+ # if we were passed some ids that forms a bad query,
16
+ # just return them all as deleted instead of causing a 500.
17
+ # for example using "asdf" as an id.
18
+ rescue ActiveRecord::StatementInvalid
19
+ ids
13
20
  end
14
21
  end
15
22
  end
@@ -1,3 +1,3 @@
1
1
  module Ragamuffins
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ragamuffins
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Isaac Norman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-26 00:00:00.000000000 Z
11
+ date: 2014-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 4.0.0
19
+ version: 3.2.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 4.0.0
26
+ version: 3.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sqlite3
29
29
  requirement: !ruby/object:Gem::Requirement