theusual 0.0.9 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8629daa0932bdfb27fd4a6f0e6f7bce26f32b35d
4
- data.tar.gz: 7873c20aa75d350cbea8cf3fd481dc14e86fcae6
3
+ metadata.gz: 396ea2a41a0d569f3cbaed64f3d5c36e96727917
4
+ data.tar.gz: b325ef45fe603c0c3e31373d7dc703f2cb03f818
5
5
  SHA512:
6
- metadata.gz: 9b410fb90e5d42aed3cbfbfcda5574cec5383d944409c01ae2cf8dc42c3f3f4ef326ca6b1f0b43a7d0a30d9cda6c5709155eb1427edb625d1e6b093027d42e84
7
- data.tar.gz: 73dc1e57c27bb0df0446d7b1d0688777676f4117074b94b3137fcf2562a5bb8604b718157278ba4c5330043c16ee8f678f4e1c401c7a2600ccc2d6790d5a5de5
6
+ metadata.gz: 44023b0a8ea6ef4869c0c177cecce6fc7db20526fdd39230dbd10c22512918fefe7e2c5995f8e9b9e17d6b483055438ad60cb76d2451f4cecd233be2da9cb914
7
+ data.tar.gz: 33ca39b213e667ce31430b0be7f38db89f5d2fa4ebe580b7bc7cbc073b0c88b7f8ab2adb6ea7bd021f5062bba6faf8b11fca6a718dd2f64092492a55811a3b9e
@@ -11,6 +11,7 @@ module TheUsual
11
11
  'mongoid',
12
12
  'net/ssh',
13
13
  'numeric',
14
+ 'sequel',
14
15
  'string',
15
16
  'time',
16
17
  ]
@@ -26,6 +27,7 @@ module TheUsual
26
27
  'ipaddr',
27
28
  'mongoid',
28
29
  'net/ssh',
30
+ 'sequel',
29
31
  ]
30
32
 
31
33
  # some of our filenames need to be remapped
@@ -0,0 +1,17 @@
1
+ # force the loading of Postgres adapter
2
+ Sequel.postgres
3
+
4
+ class Sequel::Postgres::Dataset
5
+
6
+ def each &block
7
+ block ||=
8
+ Proc.new do |row|
9
+ Enumerator.new do |e|
10
+ e.yield row
11
+ end
12
+ end
13
+
14
+ super &block
15
+ end
16
+
17
+ end
@@ -1,3 +1,3 @@
1
1
  module TheUsual
2
- VERSION = '0.0.9'
2
+ VERSION = '0.1.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: theusual
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Pepper
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-23 00:00:00.000000000 Z
11
+ date: 2017-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -51,6 +51,7 @@ files:
51
51
  - lib/theusual/ipaddr.rb
52
52
  - lib/theusual/mongoid.rb
53
53
  - lib/theusual/numeric.rb
54
+ - lib/theusual/sequel.rb
54
55
  - lib/theusual/ssh.rb
55
56
  - lib/theusual/string.rb
56
57
  - lib/theusual/time.rb