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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 349bc454a3769eb125199cd8659cc11c79155bfb
4
- data.tar.gz: 1782d6ab5096a184226d485df86a88b126213ef1
3
+ metadata.gz: cf11781fd212fc40318ce31c01228cf483991e1d
4
+ data.tar.gz: 6339104e8d48c014165fdaa95d9681de1b1ead95
5
5
  SHA512:
6
- metadata.gz: 8fb142bc9c88a9565cc9577266caa3e204991c02986fedd15a4bcdfa8598ea3d09fdeeaaa43d2ccedf9fc828eda8fcd8661fb4adc981247dc49766580765a8b7
7
- data.tar.gz: 962c3b8ee9716bb90fd0366bb459e59f28a1ad2b45a0dd921bcbed368de99a864ee9107d8751a696014aa92a38872dccc25393a1aec9b5b5bac461480ac0441a
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.1
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