seedy 0.6.4 → 0.6.5

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
- 0.6.4
1
+ 0.6.5
@@ -45,6 +45,7 @@ module Seedy
45
45
 
46
46
  def create_user
47
47
  user = Users.build
48
+ puts user.to_sql
48
49
  buffer << user
49
50
  add(:users, user)
50
51
  end
@@ -26,7 +26,7 @@ class SimpleGraph < AbstractGraph
26
26
  create_opportunities
27
27
  create_calls
28
28
  create_leads
29
- Seedy::DatabaseBuffer.flush
29
+ @@buffer.flush
30
30
  end
31
31
 
32
32
  end
@@ -38,7 +38,7 @@ module Seedy
38
38
  def quote(object)
39
39
  case object
40
40
  when String:
41
- return "'#{object}'"
41
+ return "'#{object.gsub(/\\/, '\&\&').gsub(/'/, "''")}'"
42
42
  when Fixnum:
43
43
  return object
44
44
  when Array:
@@ -12,7 +12,7 @@ module Seedy
12
12
  :assigned_user_id => :association,
13
13
  :team_id => :association,
14
14
  :duration_hours => :duration,
15
- :durection_minutes => :duration,
15
+ :duration_minutes => :duration,
16
16
  :date_start => :date_time,
17
17
  :status => :status,
18
18
  :direction => :direction,
@@ -22,7 +22,6 @@ module Seedy
22
22
  def build(user, team, account)
23
23
  opportunity = Opportunities.new
24
24
  opportunity.associate(user,team,account)
25
- puts opportunity
26
25
  opportunity
27
26
  end
28
27
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{seedy}
8
- s.version = "0.6.4"
8
+ s.version = "0.6.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Carl Hicks"]
@@ -8,11 +8,9 @@ class TestSeedy < Test::Unit::TestCase
8
8
  end
9
9
 
10
10
  should "create a User object graph when SimpleGraph#new" do
11
- Seedy::SimpleGraph.new
11
+ 100.times {Seedy::SimpleGraph.new}
12
12
  end
13
13
 
14
14
  end
15
15
 
16
-
17
-
18
16
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seedy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 4
10
- version: 0.6.4
9
+ - 5
10
+ version: 0.6.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Carl Hicks