erp_base_erp_svcs 3.1.5 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +7 -0
  2. data/app/controllers/erp_base_erp_svcs/shared/units_of_measurement_controller.rb +32 -0
  3. data/app/models/compass_ae_instance.rb +2 -0
  4. data/app/models/contact.rb +4 -0
  5. data/app/models/email_address.rb +4 -1
  6. data/app/models/facility.rb +12 -0
  7. data/app/models/facility_type.rb +8 -0
  8. data/app/models/fixed_asset.rb +8 -0
  9. data/app/models/fixed_asset_party_role.rb +8 -0
  10. data/app/models/fixed_asset_type.rb +9 -0
  11. data/app/models/individual.rb +10 -14
  12. data/app/models/party.rb +138 -51
  13. data/app/models/party_unit_of_measurement.rb +6 -0
  14. data/app/models/phone_number.rb +5 -1
  15. data/app/models/postal_address.rb +5 -1
  16. data/app/models/unit_of_measurement.rb +16 -0
  17. data/config/initializers/root_loader.rb +9 -0
  18. data/config/routes.rb +5 -0
  19. data/db/migrate/20080805000020_base_erp_services.rb +1 -29
  20. data/db/migrate/20130522125404_create_facilities.rb +114 -0
  21. data/db/migrate/20130621182047_create_unit_of_measurements.rb +18 -0
  22. data/db/migrate/20130909163912_add_iid_index_to_role_types.rb +9 -0
  23. data/db/migrate/20130926023541_add_domain_to_unit_of_measure.rb +13 -0
  24. data/db/migrate/20130929025342_add_type_semantics_to_uom.rb +54 -0
  25. data/db/migrate/20131112013047_add_primary_to_contacts.rb +13 -0
  26. data/db/migrate/20131112013048_add_erp_base_erp_svcs_missing_indexes.rb +33 -0
  27. data/db/migrate/20131211180831_add_postal_address_to_facility.rb +5 -0
  28. data/db/migrate/20140102154311_create_fixed_asset_party_roles.rb +12 -0
  29. data/db/migrate/20140401072612_add_custom_fields_to_party.rb +12 -0
  30. data/lib/erp_base_erp_svcs.rb +5 -5
  31. data/lib/erp_base_erp_svcs/engine.rb +5 -3
  32. data/lib/erp_base_erp_svcs/extensions.rb +3 -0
  33. data/lib/erp_base_erp_svcs/extensions/active_record/acts_as_facility.rb +54 -0
  34. data/lib/erp_base_erp_svcs/extensions/active_record/acts_as_fixed_asset.rb +54 -0
  35. data/lib/erp_base_erp_svcs/extensions/active_record/has_contact.rb +25 -12
  36. data/lib/erp_base_erp_svcs/extensions/active_record/has_notes.rb +25 -2
  37. data/lib/erp_base_erp_svcs/extensions/active_record/has_tracked_status.rb +58 -6
  38. data/lib/erp_base_erp_svcs/extensions/active_record/to_hash.rb +12 -12
  39. data/lib/erp_base_erp_svcs/extensions/core/acts_as_aspector_on.rb +73 -0
  40. data/lib/erp_base_erp_svcs/extensions/core/object.rb +7 -0
  41. data/lib/erp_base_erp_svcs/version.rb +7 -3
  42. data/lib/tasks/compass_backup.rake +11 -6
  43. data/lib/tasks/erp_base_erp_svcs_tasks.rake +22 -9
  44. data/spec/models/party_spec.rb +9 -1
  45. metadata +80 -113
  46. data/app/assets/javascripts/erp_base_erp_svcs/application.js +0 -9
  47. data/app/assets/stylesheets/erp_base_erp_svcs/application.css +0 -7
  48. data/app/controllers/erp_base_erp_svcs/application_controller.rb +0 -4
  49. data/app/views/layouts/erp_base_erp_svcs/application.html.erb +0 -14
  50. data/spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb +0 -12
  51. data/spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb +0 -19
  52. data/spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb +0 -12
  53. data/spec/dummy/db/data_migrations/20130422154233_upgrade_compass_ae_instances_data.erp_base_erp_svcs.rb +0 -19
  54. data/spec/dummy/db/data_migrations/20130422154234_add_guid_to_instances.erp_base_erp_svcs.rb +0 -10
  55. data/spec/dummy/db/migrate/20130105143821_base_erp_services.erp_base_erp_svcs.rb +0 -461
  56. data/spec/dummy/db/migrate/20130422154229_add_txn_status.erp_base_erp_svcs.rb +0 -37
  57. data/spec/dummy/db/migrate/20130422154230_upgrade_compass_ae_instances.erp_base_erp_svcs.rb +0 -34
  58. data/spec/dummy/db/migrate/20130422154231_add_uuid_compass_ae_instance.erp_base_erp_svcs.rb +0 -17
  59. data/spec/dummy/db/migrate/20130422154232_add_long_lat_to_address.erp_base_erp_svcs.rb +0 -16
  60. data/spec/dummy/db/schema.rb +0 -435
  61. data/spec/dummy/db/spec.sqlite3 +0 -0
@@ -3,4 +3,11 @@ Object.instance_eval do
3
3
  klasses = self.subclasses
4
4
  (klasses | klasses.collect do |klass| klass.all_subclasses end).flatten.uniq
5
5
  end
6
+
7
+ def class_exists?(class_name)
8
+ class_name.to_s.constantize
9
+ true
10
+ rescue NameError
11
+ false
12
+ end
6
13
  end
@@ -1,9 +1,13 @@
1
1
  module ErpBaseErpSvcs
2
2
  module VERSION #:nodoc:
3
- MAJOR = 3
4
- MINOR = 1
5
- TINY = 5
3
+ MAJOR = 4
4
+ MINOR = 0
5
+ TINY = 0
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].compact.join('.')
8
8
  end
9
+
10
+ def self.version
11
+ ErpBaseErpSvcs::VERSION::STRING
12
+ end
9
13
  end
@@ -8,13 +8,13 @@ namespace :compass_ae do
8
8
  TIMESTAMP_FORMAT = "%Y-%m-%d_%Hh%Mm%Ss" # keep a single underscore or the purge_old task will break
9
9
  @purge_dumps_older_than = 2.weeks.ago
10
10
 
11
- db_config = Rails.configuration.database_configuration[Rails.env]
12
- host = db_config['host'].blank? ? 'localhost' : db_config['host']
13
- username = db_config['username'].blank? ? 'postgres' : db_config['username']
14
- pgpw = ENV['PGPASSWORD'].nil? ? '' : "PGPASSWORD=#{ENV['PGPASSWORD']}"
15
-
16
11
  desc 'backup all postgres databases'
17
12
  task :postgres => :environment do
13
+ db_config = Rails.configuration.database_configuration[Rails.env]
14
+ host = db_config['host'].blank? ? 'localhost' : db_config['host']
15
+ username = db_config['username'].blank? ? 'postgres' : db_config['username']
16
+ pgpw = ENV['PGPASSWORD'].nil? ? '' : "PGPASSWORD=#{ENV['PGPASSWORD']}"
17
+
18
18
  create_directory(PG_BACKUP_DIR)
19
19
 
20
20
  databases = ActiveRecord::Base.connection.select_values('SELECT datname FROM pg_database;')
@@ -37,6 +37,11 @@ namespace :compass_ae do
37
37
  namespace :postgres do
38
38
  # age should be in days
39
39
  task :purge_old, [:age] => :environment do |t,args|
40
+ db_config = Rails.configuration.database_configuration[Rails.env]
41
+ host = db_config['host'].blank? ? 'localhost' : db_config['host']
42
+ username = db_config['username'].blank? ? 'postgres' : db_config['username']
43
+ pgpw = ENV['PGPASSWORD'].nil? ? '' : "PGPASSWORD=#{ENV['PGPASSWORD']}"
44
+
40
45
  age = (args.age.blank? ? @purge_dumps_older_than : args.age.to_i.days.ago)
41
46
  puts "Purging postgres dumps older than #{age}"
42
47
  puts green("Default is 2 weeks. You can pass in number of days if you want something different.") if args.age.blank?
@@ -77,7 +82,7 @@ namespace :compass_ae do
77
82
  FileUtils.mkdir_p(foldername) unless File.directory?(foldername)
78
83
  end
79
84
 
80
- def green(text);
85
+ def green(text)
81
86
  colorize(text, "\033[32m")
82
87
  end
83
88
 
@@ -1,4 +1,5 @@
1
1
  require 'fileutils'
2
+ require 'yaml'
2
3
 
3
4
  #redefine copy engine migrations rake task
4
5
  Rake::Task["railties:install:migrations"].clear
@@ -7,7 +8,7 @@ namespace :railties do
7
8
  namespace :install do
8
9
  # desc "Copies missing migrations from Railties (e.g. plugins, engines). You can specify Railties to use with FROM=railtie1,railtie2"
9
10
  task :migrations => :'db:load_config' do
10
- to_load = ENV['FROM'].blank? ? :all : ENV['FROM'].split(",").map {|n| n.strip }
11
+ to_load = ENV['FROM'].blank? ? :all : ENV['FROM'].split(",").map { |n| n.strip }
11
12
  #added to allow developer to perserve timestamps
12
13
  preserve_timestamp = ENV['PRESERVE_TIMESTAMPS'].blank? ? false : (ENV['PRESERVE_TIMESTAMPS'].to_s.downcase == "true")
13
14
  #refresh will replace migrations from engines
@@ -30,7 +31,7 @@ namespace :railties do
30
31
  end
31
32
 
32
33
  ActiveRecord::Migration.copy(ActiveRecord::Migrator.migrations_paths.first, railties,
33
- :on_skip => on_skip, :on_copy => on_copy, :preserve_timestamp => preserve_timestamp, :refresh => refresh)
34
+ :on_skip => on_skip, :on_copy => on_copy, :preserve_timestamp => preserve_timestamp, :refresh => refresh)
34
35
  end
35
36
  end
36
37
  end
@@ -40,32 +41,44 @@ namespace :db do
40
41
 
41
42
  desc "list pending migrations"
42
43
  task :list_pending => :environment do
43
- pending_migrations = ActiveRecord::Migrator.new('up', 'db/migrate/').pending_migrations.collect{|item| File.basename(item.filename)}
44
+ pending_migrations = ActiveRecord::Migrator.new('up', 'db/migrate/').pending_migrations.collect { |item| File.basename(item.filename) }
44
45
  puts "================Pending Migrations=========="
45
46
  puts pending_migrations
46
47
  puts "============================================"
47
48
  end
48
49
 
49
- end#migrate
50
- end#db
50
+ end #migrate
51
+ end #db
51
52
 
52
53
  namespace :compass_ae do
53
54
  namespace :install do
54
55
  desc "Install all CompassAE schema migrations"
55
56
  task :migrations => :environment do
56
- compass_ae_railties = Rails.application.config.erp_base_erp_svcs.compass_ae_engines.collect{|e| "#{e.name.split("::").first.underscore}"}.join(',')
57
+ compass_ae_railties = Rails.application.config.erp_base_erp_svcs.compass_ae_engines.collect { |e| "#{e.name.split("::").first.underscore}" }.join(',')
57
58
  task = "railties:install:migrations"
58
59
  ENV['FROM'] = compass_ae_railties
59
60
  Rake::Task[task].invoke
60
61
  end #migrations
61
-
62
+
62
63
  desc "Install all CompassAE data migrations"
63
64
  task :data_migrations => :environment do
64
- compass_ae_railties = Rails.application.config.erp_base_erp_svcs.compass_ae_engines.collect{|e| "#{e.name.split("::").first.underscore}"}.join(',')
65
+ compass_ae_railties = Rails.application.config.erp_base_erp_svcs.compass_ae_engines.collect { |e| "#{e.name.split("::").first.underscore}" }.join(',')
65
66
  task = "railties:install:data_migrations"
66
67
  ENV['FROM'] = compass_ae_railties
67
68
  Rake::Task[task].invoke
68
69
  end #data_migrations
70
+
71
+ desc "Install all CompassAE all migrations"
72
+ task :all_migrations => :environment do
73
+ compass_ae_railties = Rails.application.config.erp_base_erp_svcs.compass_ae_engines.collect { |e| "#{e.name.split("::").first.underscore}" }.join(',')
74
+ ENV['FROM'] = compass_ae_railties
75
+
76
+ task = "railties:install:migrations"
77
+ Rake::Task[task].invoke
78
+
79
+ task = "railties:install:data_migrations"
80
+ Rake::Task[task].invoke
81
+ end #migrations
69
82
  end #install
70
83
 
71
84
  desc "Upgrade you installation of Compass AE"
@@ -82,7 +95,7 @@ namespace :compass_ae do
82
95
 
83
96
  ActiveRecord::Migrator.cleanup_upgrade_migrations
84
97
  RussellEdge::DataMigrator.cleanup_upgrade_migrations
85
- rescue Exception => ex
98
+ rescue => ex
86
99
  ActiveRecord::Migrator.cleanup_migrations
87
100
  ActiveRecord::Migrator.cleanup_upgrade_migrations
88
101
  RussellEdge::DataMigrator.cleanup_upgrade_migrations
@@ -94,5 +94,13 @@ describe Party do
94
94
  new_contact.id.should eq current_contact.id
95
95
  end
96
96
 
97
+ it "should have a custom_fields field which is used to store and retrive custom data" do
98
+ party = FactoryGirl.build(:party)
99
+ party.custom_fields["some_field"] = "Some Value"
100
+ party.save
101
+ party.reload.custom_fields["some_field"].should eq "Some Value"
102
+ end
103
+
104
+
97
105
 
98
- end
106
+ end
metadata CHANGED
@@ -1,84 +1,74 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erp_base_erp_svcs
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.5
5
- prerelease:
4
+ version: 4.0.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Rick Koloski, Russell Holmes
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-07-26 00:00:00.000000000 Z
11
+ date: 2014-11-19 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: attr_encrypted
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
- version: 1.2.0
19
+ version: '1.2'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: 1.2.0
26
+ version: '1.2'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: awesome_nested_set
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
- version: 2.1.3
33
+ version: '2.1'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - "~>"
44
39
  - !ruby/object:Gem::Version
45
- version: 2.1.3
40
+ version: '2.1'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: data_migrator
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ~>
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
47
  version: '2.0'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ~>
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
54
  version: '2.0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: has_many_polymorphic
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - "~>"
68
60
  - !ruby/object:Gem::Version
69
- version: 2.0.1
61
+ version: '2.0'
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - "~>"
76
67
  - !ruby/object:Gem::Version
77
- version: 2.0.1
68
+ version: '2.0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: uuid
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
73
  - - '='
84
74
  - !ruby/object:Gem::Version
@@ -86,7 +76,6 @@ dependencies:
86
76
  type: :runtime
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
80
  - - '='
92
81
  - !ruby/object:Gem::Version
@@ -94,129 +83,113 @@ dependencies:
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: cucumber-rails
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ~>
87
+ - - "~>"
100
88
  - !ruby/object:Gem::Version
101
- version: 1.3.0
89
+ version: '1.3'
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ~>
94
+ - - "~>"
108
95
  - !ruby/object:Gem::Version
109
- version: 1.3.0
96
+ version: '1.3'
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: database_cleaner
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
- - - ! '>='
101
+ - - "~>"
116
102
  - !ruby/object:Gem::Version
117
103
  version: '0'
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
- - - ! '>='
108
+ - - "~>"
124
109
  - !ruby/object:Gem::Version
125
110
  version: '0'
126
111
  - !ruby/object:Gem::Dependency
127
112
  name: factory_girl_rails
128
113
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
114
  requirements:
131
- - - ~>
115
+ - - "~>"
132
116
  - !ruby/object:Gem::Version
133
- version: 4.1.0
117
+ version: '4.1'
134
118
  type: :development
135
119
  prerelease: false
136
120
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
121
  requirements:
139
- - - ~>
122
+ - - "~>"
140
123
  - !ruby/object:Gem::Version
141
- version: 4.1.0
124
+ version: '4.1'
142
125
  - !ruby/object:Gem::Dependency
143
126
  name: rspec-rails
144
127
  requirement: !ruby/object:Gem::Requirement
145
- none: false
146
128
  requirements:
147
- - - ~>
129
+ - - "~>"
148
130
  - !ruby/object:Gem::Version
149
- version: 2.12.0
131
+ version: '2.12'
150
132
  type: :development
151
133
  prerelease: false
152
134
  version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
135
  requirements:
155
- - - ~>
136
+ - - "~>"
156
137
  - !ruby/object:Gem::Version
157
- version: 2.12.0
138
+ version: '2.12'
158
139
  - !ruby/object:Gem::Dependency
159
140
  name: simplecov
160
141
  requirement: !ruby/object:Gem::Requirement
161
- none: false
162
142
  requirements:
163
- - - ~>
143
+ - - "~>"
164
144
  - !ruby/object:Gem::Version
165
- version: 0.7.1
145
+ version: '0.7'
166
146
  type: :development
167
147
  prerelease: false
168
148
  version_requirements: !ruby/object:Gem::Requirement
169
- none: false
170
149
  requirements:
171
- - - ~>
150
+ - - "~>"
172
151
  - !ruby/object:Gem::Version
173
- version: 0.7.1
152
+ version: '0.7'
174
153
  - !ruby/object:Gem::Dependency
175
154
  name: spork
176
155
  requirement: !ruby/object:Gem::Requirement
177
- none: false
178
156
  requirements:
179
- - - ~>
157
+ - - "~>"
180
158
  - !ruby/object:Gem::Version
181
- version: 0.9.2
159
+ version: '0.9'
182
160
  type: :development
183
161
  prerelease: false
184
162
  version_requirements: !ruby/object:Gem::Requirement
185
- none: false
186
163
  requirements:
187
- - - ~>
164
+ - - "~>"
188
165
  - !ruby/object:Gem::Version
189
- version: 0.9.2
166
+ version: '0.9'
190
167
  - !ruby/object:Gem::Dependency
191
168
  name: sqlite3
192
169
  requirement: !ruby/object:Gem::Requirement
193
- none: false
194
170
  requirements:
195
- - - ~>
171
+ - - "~>"
196
172
  - !ruby/object:Gem::Version
197
- version: 1.3.6
173
+ version: '1.3'
198
174
  type: :development
199
175
  prerelease: false
200
176
  version_requirements: !ruby/object:Gem::Requirement
201
- none: false
202
177
  requirements:
203
- - - ~>
178
+ - - "~>"
204
179
  - !ruby/object:Gem::Version
205
- version: 1.3.6
180
+ version: '1.3'
206
181
  - !ruby/object:Gem::Dependency
207
182
  name: watchr
208
183
  requirement: !ruby/object:Gem::Requirement
209
- none: false
210
184
  requirements:
211
- - - ~>
185
+ - - "~>"
212
186
  - !ruby/object:Gem::Version
213
187
  version: '0.7'
214
188
  type: :development
215
189
  prerelease: false
216
190
  version_requirements: !ruby/object:Gem::Requirement
217
- none: false
218
191
  requirements:
219
- - - ~>
192
+ - - "~>"
220
193
  - !ruby/object:Gem::Version
221
194
  version: '0.7'
222
195
  description: contains an implementation of the ubiquitous 'party model' for managing
@@ -229,9 +202,10 @@ executables: []
229
202
  extensions: []
230
203
  extra_rdoc_files: []
231
204
  files:
232
- - app/assets/javascripts/erp_base_erp_svcs/application.js
233
- - app/assets/stylesheets/erp_base_erp_svcs/application.css
234
- - app/controllers/erp_base_erp_svcs/application_controller.rb
205
+ - GPL-3-LICENSE
206
+ - README.md
207
+ - Rakefile
208
+ - app/controllers/erp_base_erp_svcs/shared/units_of_measurement_controller.rb
235
209
  - app/helpers/erp_base_erp_svcs/application_helper.rb
236
210
  - app/models/category.rb
237
211
  - app/models/category_classification.rb
@@ -243,6 +217,11 @@ files:
243
217
  - app/models/currency.rb
244
218
  - app/models/descriptive_asset.rb
245
219
  - app/models/email_address.rb
220
+ - app/models/facility.rb
221
+ - app/models/facility_type.rb
222
+ - app/models/fixed_asset.rb
223
+ - app/models/fixed_asset_party_role.rb
224
+ - app/models/fixed_asset_type.rb
246
225
  - app/models/geo_country.rb
247
226
  - app/models/geo_zone.rb
248
227
  - app/models/individual.rb
@@ -254,15 +233,17 @@ files:
254
233
  - app/models/party.rb
255
234
  - app/models/party_relationship.rb
256
235
  - app/models/party_role.rb
236
+ - app/models/party_unit_of_measurement.rb
257
237
  - app/models/phone_number.rb
258
238
  - app/models/postal_address.rb
259
239
  - app/models/relationship_type.rb
260
240
  - app/models/role_type.rb
261
241
  - app/models/status_application.rb
262
242
  - app/models/tracked_status_type.rb
243
+ - app/models/unit_of_measurement.rb
263
244
  - app/models/valid_note_type.rb
264
245
  - app/models/view_type.rb
265
- - app/views/layouts/erp_base_erp_svcs/application.html.erb
246
+ - config/initializers/root_loader.rb
266
247
  - config/routes.rb
267
248
  - db/data_migrations/20110525001935_add_usd_currency.rb
268
249
  - db/data_migrations/20110609150135_add_iso_codes.rb
@@ -276,11 +257,25 @@ files:
276
257
  - db/migrate/20130211444444_upgrade_compass_ae_instances.rb
277
258
  - db/migrate/20130404171435_add_uuid_compass_ae_instance.rb
278
259
  - db/migrate/20130411125210_add_long_lat_to_address.rb
260
+ - db/migrate/20130522125404_create_facilities.rb
261
+ - db/migrate/20130621182047_create_unit_of_measurements.rb
262
+ - db/migrate/20130909163912_add_iid_index_to_role_types.rb
263
+ - db/migrate/20130926023541_add_domain_to_unit_of_measure.rb
264
+ - db/migrate/20130929025342_add_type_semantics_to_uom.rb
265
+ - db/migrate/20131112013047_add_primary_to_contacts.rb
266
+ - db/migrate/20131112013048_add_erp_base_erp_svcs_missing_indexes.rb
267
+ - db/migrate/20131211180831_add_postal_address_to_facility.rb
268
+ - db/migrate/20140102154311_create_fixed_asset_party_roles.rb
269
+ - db/migrate/20140401072612_add_custom_fields_to_party.rb
270
+ - lib/erp_base_erp_svcs.rb
279
271
  - lib/erp_base_erp_svcs/ar_fixtures.rb
280
272
  - lib/erp_base_erp_svcs/config.rb
281
273
  - lib/erp_base_erp_svcs/engine.rb
274
+ - lib/erp_base_erp_svcs/extensions.rb
282
275
  - lib/erp_base_erp_svcs/extensions/active_record/acts_as_category.rb
283
276
  - lib/erp_base_erp_svcs/extensions/active_record/acts_as_erp_type.rb
277
+ - lib/erp_base_erp_svcs/extensions/active_record/acts_as_facility.rb
278
+ - lib/erp_base_erp_svcs/extensions/active_record/acts_as_fixed_asset.rb
284
279
  - lib/erp_base_erp_svcs/extensions/active_record/acts_as_note_type.rb
285
280
  - lib/erp_base_erp_svcs/extensions/active_record/has_contact.rb
286
281
  - lib/erp_base_erp_svcs/extensions/active_record/has_notes.rb
@@ -289,25 +284,23 @@ files:
289
284
  - lib/erp_base_erp_svcs/extensions/active_record/migration.rb
290
285
  - lib/erp_base_erp_svcs/extensions/active_record/sti_instantiation.rb
291
286
  - lib/erp_base_erp_svcs/extensions/active_record/to_hash.rb
287
+ - lib/erp_base_erp_svcs/extensions/core/acts_as_aspector_on.rb
292
288
  - lib/erp_base_erp_svcs/extensions/core/array.rb
293
289
  - lib/erp_base_erp_svcs/extensions/core/hash.rb
294
290
  - lib/erp_base_erp_svcs/extensions/core/numbers.rb
295
291
  - lib/erp_base_erp_svcs/extensions/core/object.rb
296
- - lib/erp_base_erp_svcs/extensions.rb
297
292
  - lib/erp_base_erp_svcs/non_escape_json_string.rb
298
293
  - lib/erp_base_erp_svcs/version.rb
299
- - lib/erp_base_erp_svcs.rb
300
294
  - lib/tasks/compass_backup.rake
301
295
  - lib/tasks/erp_base_erp_svcs_tasks.rake
302
296
  - lib/tasks/release_notes/NOTES
303
- - GPL-3-LICENSE
304
- - Rakefile
305
- - README.md
297
+ - spec/dummy/Rakefile
306
298
  - spec/dummy/app/assets/javascripts/application.js
307
299
  - spec/dummy/app/assets/stylesheets/application.css
308
300
  - spec/dummy/app/controllers/application_controller.rb
309
301
  - spec/dummy/app/helpers/application_helper.rb
310
302
  - spec/dummy/app/views/layouts/application.html.erb
303
+ - spec/dummy/config.ru
311
304
  - spec/dummy/config/application.rb
312
305
  - spec/dummy/config/boot.rb
313
306
  - spec/dummy/config/database.yml
@@ -321,24 +314,10 @@ files:
321
314
  - spec/dummy/config/initializers/wrap_parameters.rb
322
315
  - spec/dummy/config/locales/en.yml
323
316
  - spec/dummy/config/routes.rb
324
- - spec/dummy/config.ru
325
- - spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb
326
- - spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
327
- - spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb
328
- - spec/dummy/db/data_migrations/20130422154233_upgrade_compass_ae_instances_data.erp_base_erp_svcs.rb
329
- - spec/dummy/db/data_migrations/20130422154234_add_guid_to_instances.erp_base_erp_svcs.rb
330
- - spec/dummy/db/migrate/20130105143821_base_erp_services.erp_base_erp_svcs.rb
331
- - spec/dummy/db/migrate/20130422154229_add_txn_status.erp_base_erp_svcs.rb
332
- - spec/dummy/db/migrate/20130422154230_upgrade_compass_ae_instances.erp_base_erp_svcs.rb
333
- - spec/dummy/db/migrate/20130422154231_add_uuid_compass_ae_instance.erp_base_erp_svcs.rb
334
- - spec/dummy/db/migrate/20130422154232_add_long_lat_to_address.erp_base_erp_svcs.rb
335
- - spec/dummy/db/schema.rb
336
- - spec/dummy/db/spec.sqlite3
337
317
  - spec/dummy/public/404.html
338
318
  - spec/dummy/public/422.html
339
319
  - spec/dummy/public/500.html
340
320
  - spec/dummy/public/favicon.ico
341
- - spec/dummy/Rakefile
342
321
  - spec/dummy/script/rails
343
322
  - spec/factories/basic.rb
344
323
  - spec/factories/business_party.rb
@@ -374,28 +353,28 @@ files:
374
353
  - spec/models/view_type_spec.rb
375
354
  - spec/spec_helper.rb
376
355
  homepage: http://development.compassagile.com
377
- licenses: []
356
+ licenses:
357
+ - GPL-3-LICENSE
358
+ metadata: {}
378
359
  post_install_message:
379
360
  rdoc_options: []
380
361
  require_paths:
381
362
  - lib
382
363
  required_ruby_version: !ruby/object:Gem::Requirement
383
- none: false
384
364
  requirements:
385
- - - ! '>='
365
+ - - ">="
386
366
  - !ruby/object:Gem::Version
387
367
  version: '0'
388
368
  required_rubygems_version: !ruby/object:Gem::Requirement
389
- none: false
390
369
  requirements:
391
- - - ! '>='
370
+ - - ">="
392
371
  - !ruby/object:Gem::Version
393
372
  version: '0'
394
373
  requirements: []
395
374
  rubyforge_project:
396
- rubygems_version: 1.8.23
375
+ rubygems_version: 2.2.2
397
376
  signing_key:
398
- specification_version: 3
377
+ specification_version: 4
399
378
  summary: contains an implementation of the ubiquitous 'party model' for managing people,
400
379
  organizations, roles, relationships and contact information.
401
380
  test_files:
@@ -418,18 +397,6 @@ test_files:
418
397
  - spec/dummy/config/locales/en.yml
419
398
  - spec/dummy/config/routes.rb
420
399
  - spec/dummy/config.ru
421
- - spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb
422
- - spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
423
- - spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb
424
- - spec/dummy/db/data_migrations/20130422154233_upgrade_compass_ae_instances_data.erp_base_erp_svcs.rb
425
- - spec/dummy/db/data_migrations/20130422154234_add_guid_to_instances.erp_base_erp_svcs.rb
426
- - spec/dummy/db/migrate/20130105143821_base_erp_services.erp_base_erp_svcs.rb
427
- - spec/dummy/db/migrate/20130422154229_add_txn_status.erp_base_erp_svcs.rb
428
- - spec/dummy/db/migrate/20130422154230_upgrade_compass_ae_instances.erp_base_erp_svcs.rb
429
- - spec/dummy/db/migrate/20130422154231_add_uuid_compass_ae_instance.erp_base_erp_svcs.rb
430
- - spec/dummy/db/migrate/20130422154232_add_long_lat_to_address.erp_base_erp_svcs.rb
431
- - spec/dummy/db/schema.rb
432
- - spec/dummy/db/spec.sqlite3
433
400
  - spec/dummy/public/404.html
434
401
  - spec/dummy/public/422.html
435
402
  - spec/dummy/public/500.html