erp_work_effort 3.0.4 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. data/app/models/cost.rb +2 -0
  2. data/app/models/party_resource_availability.rb +2 -0
  3. data/app/models/party_resource_availability_type.rb +2 -0
  4. data/app/models/valid_work_assignment.rb +2 -0
  5. data/app/models/valid_work_assignment_attribute.rb +2 -0
  6. data/app/models/work_effort.rb +2 -0
  7. data/app/models/work_effort_assignment.rb +2 -0
  8. data/app/models/work_effort_status.rb +2 -0
  9. data/app/models/work_effort_status_type.rb +2 -0
  10. data/app/models/work_requirement.rb +2 -0
  11. data/app/models/work_requirement_work_effort_status_type.rb +2 -0
  12. data/lib/erp_work_effort.rb +2 -0
  13. data/lib/erp_work_effort/version.rb +2 -2
  14. data/spec/dummy/config/application.rb +6 -0
  15. data/spec/dummy/config/environments/spec.rb +3 -0
  16. data/spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb +15 -0
  17. data/spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb +12 -0
  18. data/spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb +19 -0
  19. data/spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb +16 -0
  20. data/spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb +12 -0
  21. data/spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb +22 -0
  22. data/spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb +14 -0
  23. data/spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb +20 -0
  24. data/spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb +24 -0
  25. data/spec/dummy/db/migrate/20121219191143_base_erp_services.erp_base_erp_svcs.rb +461 -0
  26. data/spec/dummy/db/migrate/20121219191144_base_work_efforts.erp_work_effort.rb +211 -0
  27. data/spec/dummy/db/migrate/20121219191145_base_tech_services.erp_tech_svcs.rb +255 -0
  28. data/spec/dummy/db/migrate/20121219191146_create_has_attribute_tables.erp_tech_svcs.rb +39 -0
  29. data/spec/dummy/db/migrate/20130107180754_create_groups.erp_tech_svcs.rb +19 -0
  30. data/spec/dummy/db/migrate/20130107180755_upgrade_security.erp_tech_svcs.rb +54 -0
  31. data/spec/dummy/db/migrate/20130107180756_upgrade_security2.erp_tech_svcs.rb +270 -0
  32. data/spec/dummy/db/schema.rb +735 -0
  33. data/spec/dummy/db/spec.sqlite3 +0 -0
  34. data/spec/dummy/log/spec.log +6311 -0
  35. data/spec/spec_helper.rb +11 -3
  36. metadata +63 -10
  37. data/db/migrate/upgrade/20111216190747_add_work_effort_to_work_effort_assignment.rb +0 -13
data/spec/spec_helper.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'spork'
2
2
  require 'rake'
3
+ require 'factory_girl'
3
4
 
4
5
  Spork.prefork do
5
6
  # Loading more in this block will cause your tests to run faster. However,
@@ -31,6 +32,7 @@ Spork.prefork do
31
32
 
32
33
  RSpec.configure do |config|
33
34
  config.use_transactional_fixtures = true
35
+ config.include FactoryGirl::Syntax::Methods
34
36
  config.include Sorcery::TestHelpers::Rails
35
37
  config.include ErpDevSvcs
36
38
  config.include ErpDevSvcs::ControllerSupport, :type => :controller
@@ -40,12 +42,17 @@ end
40
42
  Spork.each_run do
41
43
  #We have to execute the migrations from dummy app directory
42
44
  Dir.chdir DUMMY_APP_ROOT
43
- `rake db:drop`
45
+ `rake db:drop RAILS_ENV=spec`
44
46
  Dir.chdir ENGINE_RAILS_ROOT
45
47
 
46
- #We have to execute the migrations from dummy app directory
48
+ #We have to execute the migratiapp:compass_ae:install:data_migrationsons from dummy app directory
47
49
  Dir.chdir DUMMY_APP_ROOT
48
- `rake db:migrate`
50
+
51
+
52
+ `rake compass_ae:install:migrations RAILS_ENV=spec`
53
+ `rake compass_ae:install:data_migrations RAILS_ENV=spec`
54
+ `rake db:migrate RAILS_ENV=spec`
55
+ `rake db:migrate_data RAILS_ENV=spec`
49
56
  Dir.chdir ENGINE_RAILS_ROOT
50
57
 
51
58
  ErpDevSvcs::FactorySupport.load_engine_factories
@@ -57,4 +64,5 @@ Spork.each_run do
57
64
  #Need to explictly load the files in lib/ until we figure out how to
58
65
  #get rails to autoload them for spec like it used to...
59
66
  Dir[File.join(ENGINE_RAILS_ROOT, "lib/**/*.rb")].each {|f| load f}
67
+ Dir[File.join(ENGINE_RAILS_ROOT, "app/models/extensions/**/*.rb")].each {|f| load f}
60
68
  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.4
4
+ version: 3.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,30 +9,40 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-10 00:00:00.000000000 Z
12
+ date: 2013-01-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: erp_tech_svcs
16
- requirement: &70280794569040 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: '3.0'
21
+ version: '3.1'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70280794569040
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '3.1'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: erp_dev_svcs
27
- requirement: &70280794568320 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ~>
31
36
  - !ruby/object:Gem::Version
32
- version: '3.0'
37
+ version: '3.1'
33
38
  type: :development
34
39
  prerelease: false
35
- version_requirements: *70280794568320
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '3.1'
36
46
  description: Description of ErpWorkEffort.
37
47
  email:
38
48
  - russonrails@gmail.com
@@ -63,7 +73,6 @@ files:
63
73
  - app/views/layouts/erp_work_effort/application.html.erb
64
74
  - config/routes.rb
65
75
  - db/migrate/20100220000000_base_work_efforts.rb
66
- - db/migrate/upgrade/20111216190747_add_work_effort_to_work_effort_assignment.rb
67
76
  - lib/erp_work_effort/engine.rb
68
77
  - lib/erp_work_effort/extensions/active_record/acts_as_project_effort.rb
69
78
  - lib/erp_work_effort/extensions/active_record/acts_as_project_requirement.rb
@@ -95,6 +104,25 @@ files:
95
104
  - spec/dummy/config/locales/en.yml
96
105
  - spec/dummy/config/routes.rb
97
106
  - spec/dummy/config.ru
107
+ - spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
108
+ - spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb
109
+ - spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
110
+ - spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb
111
+ - spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb
112
+ - spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
113
+ - spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb
114
+ - spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
115
+ - spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb
116
+ - spec/dummy/db/migrate/20121219191143_base_erp_services.erp_base_erp_svcs.rb
117
+ - spec/dummy/db/migrate/20121219191144_base_work_efforts.erp_work_effort.rb
118
+ - spec/dummy/db/migrate/20121219191145_base_tech_services.erp_tech_svcs.rb
119
+ - spec/dummy/db/migrate/20121219191146_create_has_attribute_tables.erp_tech_svcs.rb
120
+ - spec/dummy/db/migrate/20130107180754_create_groups.erp_tech_svcs.rb
121
+ - spec/dummy/db/migrate/20130107180755_upgrade_security.erp_tech_svcs.rb
122
+ - spec/dummy/db/migrate/20130107180756_upgrade_security2.erp_tech_svcs.rb
123
+ - spec/dummy/db/schema.rb
124
+ - spec/dummy/db/spec.sqlite3
125
+ - spec/dummy/log/spec.log
98
126
  - spec/dummy/public/404.html
99
127
  - spec/dummy/public/422.html
100
128
  - spec/dummy/public/500.html
@@ -129,15 +157,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
129
157
  - - ! '>='
130
158
  - !ruby/object:Gem::Version
131
159
  version: '0'
160
+ segments:
161
+ - 0
162
+ hash: -4587745674460819857
132
163
  required_rubygems_version: !ruby/object:Gem::Requirement
133
164
  none: false
134
165
  requirements:
135
166
  - - ! '>='
136
167
  - !ruby/object:Gem::Version
137
168
  version: '0'
169
+ segments:
170
+ - 0
171
+ hash: -4587745674460819857
138
172
  requirements: []
139
173
  rubyforge_project:
140
- rubygems_version: 1.8.11
174
+ rubygems_version: 1.8.24
141
175
  signing_key:
142
176
  specification_version: 3
143
177
  summary: Summary of ErpWorkEffort.
@@ -161,6 +195,25 @@ test_files:
161
195
  - spec/dummy/config/locales/en.yml
162
196
  - spec/dummy/config/routes.rb
163
197
  - spec/dummy/config.ru
198
+ - spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
199
+ - spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb
200
+ - spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
201
+ - spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb
202
+ - spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb
203
+ - spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
204
+ - spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb
205
+ - spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
206
+ - spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb
207
+ - spec/dummy/db/migrate/20121219191143_base_erp_services.erp_base_erp_svcs.rb
208
+ - spec/dummy/db/migrate/20121219191144_base_work_efforts.erp_work_effort.rb
209
+ - spec/dummy/db/migrate/20121219191145_base_tech_services.erp_tech_svcs.rb
210
+ - spec/dummy/db/migrate/20121219191146_create_has_attribute_tables.erp_tech_svcs.rb
211
+ - spec/dummy/db/migrate/20130107180754_create_groups.erp_tech_svcs.rb
212
+ - spec/dummy/db/migrate/20130107180755_upgrade_security.erp_tech_svcs.rb
213
+ - spec/dummy/db/migrate/20130107180756_upgrade_security2.erp_tech_svcs.rb
214
+ - spec/dummy/db/schema.rb
215
+ - spec/dummy/db/spec.sqlite3
216
+ - spec/dummy/log/spec.log
164
217
  - spec/dummy/public/404.html
165
218
  - spec/dummy/public/422.html
166
219
  - spec/dummy/public/500.html
@@ -1,13 +0,0 @@
1
- class AddWorkEffortToWorkEffortAssignment < ActiveRecord::Migration
2
- def change
3
- unless columns(:work_effort_assignments).collect {|c| c.name}.include?('work_effort_id')
4
- add_column :work_effort_assignments, :work_effort_id, :integer
5
-
6
- # migrate data
7
- execute "UPDATE work_effort_assignments SET work_effort_assignments.work_effort_id=work_efforts.id
8
- FROM work_effort_assignments JOIN work_efforts ON work_effort_assignments.id=work_efforts.work_effort_assignment_id"
9
-
10
- remove_column :work_efforts, :work_effort_assignment_id
11
- end
12
- end
13
- end