erp_work_effort 3.0.2 → 3.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ class AddWorkEffortToWorkEffortAssignment < ActiveRecord::Migration
4
4
  add_column :work_effort_assignments, :work_effort_id, :integer
5
5
 
6
6
  # migrate data
7
- execute "UPDATE work_effort_assignments SET work_effort_assignments.work_effort_id=work_efforts.work_effort_assignment_id
7
+ execute "UPDATE work_effort_assignments SET work_effort_assignments.work_effort_id=work_efforts.id
8
8
  FROM work_effort_assignments JOIN work_efforts ON work_effort_assignments.id=work_efforts.work_effort_assignment_id"
9
9
 
10
10
  remove_column :work_efforts, :work_effort_assignment_id
@@ -53,7 +53,7 @@ module ErpWorkEffort
53
53
  end
54
54
 
55
55
  def new_project_effort
56
- if (self.project_effort.nil?)
56
+ if self.new_record? and self.project_effort.nil?
57
57
  project_effort = ProjectEffort.new
58
58
  self.project_effort = project_effort
59
59
  project_effort.work_effort_record = self
@@ -48,7 +48,7 @@ module ErpWorkEffort
48
48
  end
49
49
 
50
50
  def new_support_effort
51
- if (self.support_effort.nil?)
51
+ if self.new_record? and self.support_effort.nil?
52
52
  support_effort = SupportEffort.new
53
53
  self.support_effort = support_effort
54
54
  support_effort.work_effort_record = self
@@ -55,7 +55,7 @@ module ErpWorkEffort
55
55
  end
56
56
 
57
57
  def new_support_requirement
58
- if (self.support_requirement.nil?)
58
+ if self.new_record? and self.support_requirement.nil?
59
59
  support_requirement = SupportEffort.new
60
60
  self.support_requirement = support_requirement
61
61
  support_requirement.work_requirement_record = self
@@ -2,7 +2,7 @@ module ErpWorkEffort
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 3
4
4
  MINOR = 0
5
- TINY = 2
5
+ TINY = 3
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erp_work_effort
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-25 00:00:00.000000000 Z
12
+ date: 2012-09-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: erp_tech_svcs
16
- requirement: &2153539220 !ruby/object:Gem::Requirement
16
+ requirement: &70229725418400 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2153539220
24
+ version_requirements: *70229725418400
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: erp_dev_svcs
27
- requirement: &2153538720 !ruby/object:Gem::Requirement
27
+ requirement: &70229725417880 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '3.0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *2153538720
35
+ version_requirements: *70229725417880
36
36
  description: Description of ErpWorkEffort.
37
37
  email:
38
38
  - russonrails@gmail.com
@@ -137,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
137
  version: '0'
138
138
  requirements: []
139
139
  rubyforge_project:
140
- rubygems_version: 1.8.15
140
+ rubygems_version: 1.8.11
141
141
  signing_key:
142
142
  specification_version: 3
143
143
  summary: Summary of ErpWorkEffort.