blind_date 1.0.1 → 1.0.2

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.2
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{blind_date}
8
- s.version = "1.0.1"
8
+ s.version = "1.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ari Epstein"]
@@ -1,2 +1,25 @@
1
- require 'blind_date/active_record/connection_adapters/mysql_adapter.rb'
1
+ module BlindDate
2
+ module ActiveRecord
3
+ module ConnectionAdapters
4
+ module Mysql2Adapter
5
+ module ClassMethods
6
+ def date_add_sql( style, sql, interval, unit, operator )
7
+ "( #{sql} #{operator} INTERVAL #{interval} #{unit} )"
8
+ end
9
+ end
10
+
11
+ module InstanceMethods
12
+
13
+ end
14
+
15
+ def self.included(receiver)
16
+ receiver.extend ClassMethods
17
+ receiver.send :include, InstanceMethods
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
23
+
24
+ ActiveRecord::ConnectionAdapters::Mysql2Adapter.send :include, BlindDate::ActiveRecord::ConnectionAdapters::Mysql2Adapter
2
25
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 1
9
- version: 1.0.1
8
+ - 2
9
+ version: 1.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ari Epstein