sequel-active_record 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sequel/plugins/active_record/last.rb +8 -0
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf11781fd212fc40318ce31c01228cf483991e1d
|
4
|
+
data.tar.gz: 6339104e8d48c014165fdaa95d9681de1b1ead95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e6b26e5419c3cbf39fd8ee4bde008f670b2696392049508a9088286360b5e6f9908e155acab7f070c6f436fcc15aeea9d2311cc69e9d7e4adfb572cb0494eea
|
7
|
+
data.tar.gz: 4c2ffb451aff53052ede09e74d4309e23eff7d153a40c55038036ab1c0663557435b33bfb85b5079402786d42bc6455c2f8f6f4ee9544b4d5ece23112214590a
|
@@ -2,6 +2,14 @@ module Sequel
|
|
2
2
|
module Plugins
|
3
3
|
module ActiveRecord
|
4
4
|
module Last
|
5
|
+
module DatasetMethods
|
6
|
+
def last! *args, &block
|
7
|
+
last(*args, &block) || raise(Sequel::NoMatchingRow.new(dataset))
|
8
|
+
end
|
9
|
+
end
|
10
|
+
module ClassMethods
|
11
|
+
Sequel::Plugins.def_dataset_methods(self, :last!)
|
12
|
+
end
|
5
13
|
end
|
6
14
|
end
|
7
15
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sequel-active_record
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kenaniah Cerny
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: minitest-reporters
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: rake
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|