erp_tech_svcs 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. data/README.md +62 -0
  2. data/app/controllers/erp_tech_svcs/session_controller.rb +12 -7
  3. data/app/controllers/erp_tech_svcs/user_controller.rb +35 -14
  4. data/app/mailers/user_mailer.rb +8 -2
  5. data/app/models/attribute_type.rb +30 -0
  6. data/app/models/attribute_value.rb +41 -0
  7. data/app/models/file_asset.rb +58 -12
  8. data/app/models/secured_model.rb +4 -2
  9. data/app/models/user.rb +9 -7
  10. data/app/validators/password_strength_validator.rb +8 -0
  11. data/app/views/user_mailer/activation_needed_email.html.erb +1 -1
  12. data/config/initializers/erp_tech_svcs.rb +6 -1
  13. data/config/initializers/file_support.rb +9 -1
  14. data/config/initializers/sorcery.rb +3 -3
  15. data/config/routes.rb +2 -1
  16. data/db/data_migrations/20120109173616_create_download_capability_type.rb +13 -0
  17. data/db/migrate/20080805000010_base_tech_services.rb +12 -5
  18. data/db/migrate/20111117183144_create_has_attribute_tables.rb +38 -0
  19. data/db/migrate/{20111109161549_add_capabilites.rb → upgrade/20111109161549_add_capabilites.rb} +0 -0
  20. data/db/migrate/upgrade/20120329161641_add_file_asset_indexes.rb +22 -0
  21. data/lib/erp_tech_svcs/config.rb +20 -2
  22. data/lib/erp_tech_svcs/engine.rb +6 -0
  23. data/lib/erp_tech_svcs/extensions/active_record/has_capabilities.rb +18 -6
  24. data/lib/erp_tech_svcs/extensions/active_record/has_file_assets.rb +16 -3
  25. data/lib/erp_tech_svcs/extensions/active_record/has_relational_dynamic_attributes.rb +99 -0
  26. data/lib/erp_tech_svcs/extensions/active_record/has_roles.rb +3 -0
  27. data/lib/erp_tech_svcs/extensions/sorcery/user_activation.rb +13 -0
  28. data/lib/erp_tech_svcs/extensions.rb +5 -1
  29. data/lib/erp_tech_svcs/file_support/base.rb +1 -3
  30. data/lib/erp_tech_svcs/file_support/file_system_manager.rb +21 -19
  31. data/lib/erp_tech_svcs/file_support/manager.rb +29 -9
  32. data/lib/erp_tech_svcs/file_support/paperclip_patch.rb +13 -9
  33. data/lib/erp_tech_svcs/file_support/railties/s3_resolver.rb +24 -4
  34. data/lib/erp_tech_svcs/file_support/s3_manager.rb +133 -86
  35. data/lib/erp_tech_svcs/file_support.rb +5 -3
  36. data/lib/erp_tech_svcs/sms_wrapper/clickatell.rb +25 -0
  37. data/lib/erp_tech_svcs/sms_wrapper.rb +1 -0
  38. data/lib/erp_tech_svcs/utils/compass_access_negotiator.rb +12 -6
  39. data/lib/erp_tech_svcs/utils/default_nested_set_methods.rb +14 -1
  40. data/lib/erp_tech_svcs/version.rb +7 -1
  41. data/lib/erp_tech_svcs.rb +4 -2
  42. data/lib/tasks/erp_tech_svcs_tasks.rake +1 -1
  43. data/spec/controllers/erp_tech_svcs/user_controller_spec.rb +0 -0
  44. data/spec/lib/file_support/file_system_manager_spec.rb +82 -0
  45. data/spec/lib/file_support/s3_manager_spec.rb +92 -0
  46. data/spec/models/file_asset_spec.rb +78 -0
  47. data/spec/models/secured_model_spec.rb +22 -0
  48. data/spec/spec_helper.rb +9 -7
  49. metadata +146 -133
  50. data/README.rdoc +0 -2
  51. data/lib/erp_tech_svcs/file_support/aws_s3_patch.rb +0 -3
  52. data/spec/dummy/db/schema.rb +0 -571
  53. data/spec/dummy/db/spec.sqlite3 +0 -0
  54. data/spec/dummy/log/spec.log +0 -2862
@@ -0,0 +1,78 @@
1
+ require 'spec_helper'
2
+
3
+ describe FileAsset do
4
+
5
+ it "should allow to create a file when a file_asset is created via paperclip and the file should be removed when the model is destroyed" do
6
+ path = Rails.root.to_s
7
+ name = 'file_asset_spec_text.txt'
8
+ base_path = File.join(path,name)
9
+ contents = '#Empty File'
10
+
11
+ File.exists?(base_path).should eq false
12
+
13
+ file_asset = FileAsset.create!(:base_path => base_path, :data => contents)
14
+
15
+ File.exists?(base_path).should eq true
16
+ file_data = IO.read(base_path)
17
+
18
+ file_data.should eq contents
19
+
20
+ file_asset.destroy
21
+ File.exists?(base_path).should eq false
22
+ end
23
+
24
+ describe "class methods" do
25
+
26
+ it "should have method to get valid extensions based on subclass" do
27
+ TextFile.valid_extensions.should eq %w(.txt .text)
28
+ end
29
+
30
+ it "should have method to get all valid extensions for all subclasses" do
31
+ FileAsset.all_valid_extensions.should eq [".jpg", ".jpeg", ".gif", ".png", ".ico", ".PNG", ".JPEG", ".JPG", ".txt", ".text", ".js", ".css", ".erb", ".haml", ".liquid", ".builder", ".html", ".pdf"]
32
+ end
33
+
34
+ it "should be able to lookup subclass based on extension" do
35
+ FileAsset.type_by_extension('.txt').should eq TextFile
36
+ end
37
+
38
+ end
39
+
40
+ describe "instance methods" do
41
+
42
+ before(:all) do
43
+ path = Rails.root.to_s
44
+ @name = 'file_asset_spec_text.txt'
45
+ @base_path = File.join(path,@name)
46
+ contents = '#Empty File'
47
+
48
+ @file_asset = FileAsset.create!(:base_path => @base_path, :data => contents)
49
+ end
50
+
51
+ it "should have helper method to get basename" do
52
+ @file_asset.basename.should eq 'file_asset_spec_text'
53
+ end
54
+
55
+ it "should have helper method to get extname" do
56
+ @file_asset.extname.should eq 'txt'
57
+ end
58
+
59
+ it "should allow you to move a file" do
60
+ new_path = File.join(Rails.root.to_s, 'move_test_tmp')
61
+
62
+ File.exists?(@base_path).should eq true
63
+
64
+ result, message = @file_asset.move(new_path)
65
+ result.should eq true
66
+ File.exists?(@base_path).should eq false
67
+ File.exists?(File.join(new_path,@name)).should eq true
68
+
69
+ FileUtils.rm_rf(new_path)
70
+ end
71
+
72
+ after(:all) do
73
+ @file_asset.destroy
74
+ end
75
+
76
+ end
77
+
78
+ end
@@ -0,0 +1,22 @@
1
+ require 'spec_helper'
2
+
3
+ describe SecuredModel do
4
+
5
+ it "can find models by Class and role" do
6
+ admin_role = Role.create(:description => 'Admin', :internal_identifier => 'admin')
7
+ admin_user = User.create(:username => "admin",:email => "admin@portablemind.com")
8
+ admin_user.add_role('admin')
9
+
10
+ admin_user.has_role?('admin').should eq true
11
+
12
+ model = SecuredModel.find_models_by_klass_and_role(User, 'admin').first
13
+ model.username.should eq 'admin'
14
+
15
+ model = SecuredModel.find_models_by_klass_and_role('User', admin_role).first
16
+ model.username.should eq 'admin'
17
+
18
+ admin_user.destroy
19
+ admin_role.destroy
20
+ end
21
+
22
+ end
data/spec/spec_helper.rb CHANGED
@@ -39,15 +39,15 @@ end
39
39
 
40
40
  Spork.each_run do
41
41
  #We have to execute the migrations from dummy app directory
42
- Dir.chdir DUMMY_APP_ROOT
43
- `rake db:drop`
44
- Dir.chdir ENGINE_RAILS_ROOT
42
+ #Dir.chdir DUMMY_APP_ROOT
43
+ #`rake db:drop`
44
+ #Dir.chdir ENGINE_RAILS_ROOT
45
45
 
46
46
  #We have to execute the migrations from dummy app directory
47
- Dir.chdir DUMMY_APP_ROOT
48
- `rake db:migrate`
49
- `rake db:migrate_data`
50
- Dir.chdir ENGINE_RAILS_ROOT
47
+ #Dir.chdir DUMMY_APP_ROOT
48
+ #`rake db:migrate`
49
+ #`rake db:migrate_data`
50
+ #Dir.chdir ENGINE_RAILS_ROOT
51
51
 
52
52
  ErpDevSvcs::FactorySupport.load_engine_factories
53
53
 
@@ -58,4 +58,6 @@ Spork.each_run do
58
58
  #Need to explictly load the files in lib/ until we figure out how to
59
59
  #get rails to autoload them for spec like it used to...
60
60
  Dir[File.join(ENGINE_RAILS_ROOT, "lib/**/*.rb")].each {|f| load f}
61
+ #we need to load initializers too
62
+ Dir[File.join(ENGINE_RAILS_ROOT, "config/**/*.rb")].each {|f| load f}
61
63
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erp_tech_svcs
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,85 +9,85 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-06 00:00:00.000000000Z
12
+ date: 2012-05-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: aws-s3
16
- requirement: &2161000660 !ruby/object:Gem::Requirement
15
+ name: erp_base_erp_svcs
16
+ requirement: &81424340 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - =
20
20
  - !ruby/object:Gem::Version
21
- version: 0.6.2
21
+ version: 3.0.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2161000660
24
+ version_requirements: *81424340
25
25
  - !ruby/object:Gem::Dependency
26
- name: delayed_job
27
- requirement: &2160999400 !ruby/object:Gem::Requirement
26
+ name: erp_dev_svcs
27
+ requirement: &81423180 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - =
31
31
  - !ruby/object:Gem::Version
32
- version: 2.1.4
33
- type: :runtime
32
+ version: 3.0.1
33
+ type: :development
34
34
  prerelease: false
35
- version_requirements: *2160999400
35
+ version_requirements: *81423180
36
36
  - !ruby/object:Gem::Dependency
37
- name: paperclip
38
- requirement: &2160998540 !ruby/object:Gem::Requirement
37
+ name: aws-sdk
38
+ requirement: &81421220 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - =
42
42
  - !ruby/object:Gem::Version
43
- version: 2.4.5
43
+ version: 1.5.2
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2160998540
46
+ version_requirements: *81421220
47
47
  - !ruby/object:Gem::Dependency
48
- name: pdfkit
49
- requirement: &2160997260 !ruby/object:Gem::Requirement
48
+ name: delayed_job
49
+ requirement: &81420290 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - =
53
53
  - !ruby/object:Gem::Version
54
- version: 0.4.6
54
+ version: 2.1.4
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *2160997260
57
+ version_requirements: *81420290
58
58
  - !ruby/object:Gem::Dependency
59
- name: sorcery
60
- requirement: &2160995720 !ruby/object:Gem::Requirement
59
+ name: paperclip
60
+ requirement: &81419180 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - =
64
64
  - !ruby/object:Gem::Version
65
- version: 0.7.5
65
+ version: 3.0.2
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *2160995720
68
+ version_requirements: *81419180
69
69
  - !ruby/object:Gem::Dependency
70
- name: erp_base_erp_svcs
71
- requirement: &2160994860 !ruby/object:Gem::Requirement
70
+ name: pdfkit
71
+ requirement: &81418200 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
- - - ! '>='
74
+ - - =
75
75
  - !ruby/object:Gem::Version
76
- version: '0'
76
+ version: 0.4.6
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *2160994860
79
+ version_requirements: *81418200
80
80
  - !ruby/object:Gem::Dependency
81
- name: erp_dev_svcs
82
- requirement: &2160993780 !ruby/object:Gem::Requirement
81
+ name: sorcery
82
+ requirement: &81443020 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
- - - ! '>='
85
+ - - =
86
86
  - !ruby/object:Gem::Version
87
- version: '0'
88
- type: :development
87
+ version: 0.7.7
88
+ type: :runtime
89
89
  prerelease: false
90
- version_requirements: *2160993780
90
+ version_requirements: *81443020
91
91
  description: This engine is implemented with the premise that services like logging,
92
92
  tracing and encryption would likely already exist in many organizations, so they
93
93
  are factored here so they can easily be re-implemented. There are default implementations
@@ -99,114 +99,125 @@ executables: []
99
99
  extensions: []
100
100
  extra_rdoc_files: []
101
101
  files:
102
- - app/assets/javascripts/erp_tech_svcs/application.js
103
102
  - app/assets/stylesheets/erp_tech_svcs/application.css
104
- - app/controllers/erp_tech_svcs/session_controller.rb
105
- - app/controllers/erp_tech_svcs/user_controller.rb
106
- - app/helpers/erp_tech_svcs/application_helper.rb
107
- - app/mailers/user_mailer.rb
103
+ - app/assets/javascripts/erp_tech_svcs/application.js
104
+ - app/views/user_mailer/activation_needed_email.html.erb
105
+ - app/views/user_mailer/reset_password_email.html.erb
106
+ - app/views/layouts/erp_tech_svcs/application.html.erb
107
+ - app/views/layouts/application.html.erb
108
+ - app/validators/password_strength_validator.rb
109
+ - app/models/capability.rb
110
+ - app/models/attribute_value.rb
111
+ - app/models/file_asset.rb
112
+ - app/models/role.rb
113
+ - app/models/audit_log_item_type.rb
108
114
  - app/models/audit_log.rb
115
+ - app/models/secured_model.rb
109
116
  - app/models/audit_log_item.rb
110
- - app/models/audit_log_item_type.rb
111
117
  - app/models/audit_log_type.rb
112
- - app/models/capability.rb
113
- - app/models/capability_type.rb
118
+ - app/models/user.rb
119
+ - app/models/attribute_type.rb
114
120
  - app/models/capable_model.rb
121
+ - app/models/capability_type.rb
115
122
  - app/models/encryption_key.rb
123
+ - app/models/extensions/role_type.rb
124
+ - app/models/extensions/party.rb
125
+ - app/models/extensions/note_type.rb
116
126
  - app/models/extensions/contact_purpose.rb
117
127
  - app/models/extensions/contact_type.rb
118
- - app/models/extensions/note.rb
119
- - app/models/extensions/note_type.rb
120
- - app/models/extensions/party.rb
121
128
  - app/models/extensions/relationship_type.rb
122
- - app/models/extensions/role_type.rb
123
- - app/models/file_asset.rb
124
- - app/models/role.rb
125
- - app/models/secured_model.rb
126
- - app/models/user.rb
127
- - app/views/layouts/application.html.erb
128
- - app/views/layouts/erp_tech_svcs/application.html.erb
129
- - app/views/user_mailer/activation_needed_email.html.erb
130
- - app/views/user_mailer/reset_password_email.html.erb
129
+ - app/models/extensions/note.rb
130
+ - app/mailers/user_mailer.rb
131
+ - app/helpers/erp_tech_svcs/application_helper.rb
132
+ - app/controllers/erp_tech_svcs/session_controller.rb
133
+ - app/controllers/erp_tech_svcs/user_controller.rb
134
+ - config/routes.rb
135
+ - config/initializers/pdfkit.rb
131
136
  - config/initializers/erp_tech_svcs.rb
132
137
  - config/initializers/file_support.rb
133
- - config/initializers/pdfkit.rb
134
138
  - config/initializers/sorcery.rb
135
- - config/routes.rb
136
- - db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.rb
137
- - db/data_migrations/20111111144706_setup_audit_log_types.rb
138
139
  - db/migrate/20080805000010_base_tech_services.rb
139
- - db/migrate/20111109161549_add_capabilites.rb
140
- - db/migrate/upgrade/20111109161550_update_roles.rb
140
+ - db/migrate/20111117183144_create_has_attribute_tables.rb
141
141
  - db/migrate/upgrade/20111109161551_update_user.rb
142
- - lib/erp_tech_svcs/application_installer.rb
143
- - lib/erp_tech_svcs/config.rb
142
+ - db/migrate/upgrade/20111109161550_update_roles.rb
143
+ - db/migrate/upgrade/20120329161641_add_file_asset_indexes.rb
144
+ - db/migrate/upgrade/20111109161549_add_capabilites.rb
145
+ - db/data_migrations/20120109173616_create_download_capability_type.rb
146
+ - db/data_migrations/20111111144706_setup_audit_log_types.rb
147
+ - db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.rb
144
148
  - lib/erp_tech_svcs/engine.rb
145
- - lib/erp_tech_svcs/extensions/active_record/acts_as_versioned.rb
146
- - lib/erp_tech_svcs/extensions/active_record/has_capabilities.rb
147
- - lib/erp_tech_svcs/extensions/active_record/has_file_assets.rb
148
- - lib/erp_tech_svcs/extensions/active_record/has_roles.rb
149
- - lib/erp_tech_svcs/extensions.rb
150
- - lib/erp_tech_svcs/file_support/aws_s3_patch.rb
151
- - lib/erp_tech_svcs/file_support/base.rb
152
- - lib/erp_tech_svcs/file_support/file_manipulator.rb
153
- - lib/erp_tech_svcs/file_support/file_system_manager.rb
154
- - lib/erp_tech_svcs/file_support/manager.rb
149
+ - lib/erp_tech_svcs/config.rb
155
150
  - lib/erp_tech_svcs/file_support/paperclip_patch.rb
156
151
  - lib/erp_tech_svcs/file_support/railties/s3_resolver.rb
152
+ - lib/erp_tech_svcs/file_support/file_system_manager.rb
153
+ - lib/erp_tech_svcs/file_support/base.rb
154
+ - lib/erp_tech_svcs/file_support/file_manipulator.rb
157
155
  - lib/erp_tech_svcs/file_support/s3_manager.rb
156
+ - lib/erp_tech_svcs/file_support/manager.rb
157
+ - lib/erp_tech_svcs/sms_wrapper/clickatell.rb
158
+ - lib/erp_tech_svcs/sms_wrapper.rb
158
159
  - lib/erp_tech_svcs/file_support.rb
159
- - lib/erp_tech_svcs/sessions/delete_expired_sessions_job.rb
160
+ - lib/erp_tech_svcs/application_installer.rb
160
161
  - lib/erp_tech_svcs/sessions/delete_expired_sessions_service.rb
161
- - lib/erp_tech_svcs/utils/attachment_fu_patch.rb
162
- - lib/erp_tech_svcs/utils/compass_access_negotiator.rb
163
- - lib/erp_tech_svcs/utils/compass_logger.rb
162
+ - lib/erp_tech_svcs/sessions/delete_expired_sessions_job.rb
164
163
  - lib/erp_tech_svcs/utils/compass_pdf.rb
164
+ - lib/erp_tech_svcs/utils/compass_access_negotiator.rb
165
165
  - lib/erp_tech_svcs/utils/default_nested_set_methods.rb
166
+ - lib/erp_tech_svcs/utils/attachment_fu_patch.rb
166
167
  - lib/erp_tech_svcs/utils/pdf_processor.rb
168
+ - lib/erp_tech_svcs/utils/compass_logger.rb
169
+ - lib/erp_tech_svcs/extensions.rb
170
+ - lib/erp_tech_svcs/extensions/sorcery/user_activation.rb
171
+ - lib/erp_tech_svcs/extensions/active_record/has_capabilities.rb
172
+ - lib/erp_tech_svcs/extensions/active_record/acts_as_versioned.rb
173
+ - lib/erp_tech_svcs/extensions/active_record/has_relational_dynamic_attributes.rb
174
+ - lib/erp_tech_svcs/extensions/active_record/has_roles.rb
175
+ - lib/erp_tech_svcs/extensions/active_record/has_file_assets.rb
167
176
  - lib/erp_tech_svcs/version.rb
168
177
  - lib/erp_tech_svcs.rb
169
178
  - lib/tasks/erp_tech_svcs_tasks.rake
170
179
  - GPL-3-LICENSE
171
180
  - Rakefile
172
- - README.rdoc
173
- - spec/dummy/app/assets/javascripts/application.js
181
+ - README.md
182
+ - spec/factories/role.rb
183
+ - spec/factories/users.rb
184
+ - spec/factories/capability_type.rb
185
+ - spec/spec_helper.rb
186
+ - spec/lib/erp_tech_svcs/extensions/active_record/has_roles_spec.rb
187
+ - spec/lib/file_support/s3_manager_spec.rb
188
+ - spec/lib/file_support/file_system_manager_spec.rb
189
+ - spec/models/user_spec.rb
190
+ - spec/models/audit_log_type_spec.rb
191
+ - spec/models/secured_model_spec.rb
192
+ - spec/models/file_asset_spec.rb
193
+ - spec/models/audit_log_spec.rb
194
+ - spec/models/role_spec.rb
195
+ - spec/dummy/public/422.html
196
+ - spec/dummy/public/404.html
197
+ - spec/dummy/public/500.html
198
+ - spec/dummy/public/favicon.ico
199
+ - spec/dummy/config.ru
174
200
  - spec/dummy/app/assets/stylesheets/application.css
175
- - spec/dummy/app/controllers/application_controller.rb
176
- - spec/dummy/app/helpers/application_helper.rb
201
+ - spec/dummy/app/assets/javascripts/application.js
177
202
  - spec/dummy/app/views/layouts/application.html.erb
178
- - spec/dummy/config/application.rb
203
+ - spec/dummy/app/helpers/application_helper.rb
204
+ - spec/dummy/app/controllers/application_controller.rb
205
+ - spec/dummy/config/routes.rb
206
+ - spec/dummy/config/locales/en.yml
179
207
  - spec/dummy/config/boot.rb
180
- - spec/dummy/config/database.yml
181
- - spec/dummy/config/environment.rb
208
+ - spec/dummy/config/application.rb
182
209
  - spec/dummy/config/environments/spec.rb
183
- - spec/dummy/config/initializers/backtrace_silencers.rb
184
- - spec/dummy/config/initializers/inflections.rb
185
210
  - spec/dummy/config/initializers/mime_types.rb
186
- - spec/dummy/config/initializers/secret_token.rb
187
211
  - spec/dummy/config/initializers/session_store.rb
212
+ - spec/dummy/config/initializers/backtrace_silencers.rb
188
213
  - spec/dummy/config/initializers/wrap_parameters.rb
189
- - spec/dummy/config/locales/en.yml
190
- - spec/dummy/config/routes.rb
191
- - spec/dummy/config.ru
192
- - spec/dummy/db/schema.rb
193
- - spec/dummy/db/spec.sqlite3
194
- - spec/dummy/log/spec.log
195
- - spec/dummy/public/404.html
196
- - spec/dummy/public/422.html
197
- - spec/dummy/public/500.html
198
- - spec/dummy/public/favicon.ico
214
+ - spec/dummy/config/initializers/inflections.rb
215
+ - spec/dummy/config/initializers/secret_token.rb
216
+ - spec/dummy/config/environment.rb
217
+ - spec/dummy/config/database.yml
199
218
  - spec/dummy/Rakefile
200
219
  - spec/dummy/script/rails
201
- - spec/factories/capability_type.rb
202
- - spec/factories/role.rb
203
- - spec/factories/users.rb
204
- - spec/lib/erp_tech_svcs/extensions/active_record/has_roles_spec.rb
205
- - spec/models/audit_log_spec.rb
206
- - spec/models/audit_log_type_spec.rb
207
- - spec/models/role_spec.rb
208
- - spec/models/user_spec.rb
209
- - spec/spec_helper.rb
220
+ - spec/controllers/erp_tech_svcs/user_controller_spec.rb
210
221
  homepage: http://development.compassagile.com
211
222
  licenses: []
212
223
  post_install_message:
@@ -234,40 +245,42 @@ summary: This engine is implemented with the premise that services like logging,
234
245
  and encryption would likely already exist in many organizations, so they are factored
235
246
  here so they can easily be re-implemented.
236
247
  test_files:
237
- - spec/dummy/app/assets/javascripts/application.js
248
+ - spec/factories/role.rb
249
+ - spec/factories/users.rb
250
+ - spec/factories/capability_type.rb
251
+ - spec/spec_helper.rb
252
+ - spec/lib/erp_tech_svcs/extensions/active_record/has_roles_spec.rb
253
+ - spec/lib/file_support/s3_manager_spec.rb
254
+ - spec/lib/file_support/file_system_manager_spec.rb
255
+ - spec/models/user_spec.rb
256
+ - spec/models/audit_log_type_spec.rb
257
+ - spec/models/secured_model_spec.rb
258
+ - spec/models/file_asset_spec.rb
259
+ - spec/models/audit_log_spec.rb
260
+ - spec/models/role_spec.rb
261
+ - spec/dummy/public/422.html
262
+ - spec/dummy/public/404.html
263
+ - spec/dummy/public/500.html
264
+ - spec/dummy/public/favicon.ico
265
+ - spec/dummy/config.ru
238
266
  - spec/dummy/app/assets/stylesheets/application.css
239
- - spec/dummy/app/controllers/application_controller.rb
240
- - spec/dummy/app/helpers/application_helper.rb
267
+ - spec/dummy/app/assets/javascripts/application.js
241
268
  - spec/dummy/app/views/layouts/application.html.erb
242
- - spec/dummy/config/application.rb
269
+ - spec/dummy/app/helpers/application_helper.rb
270
+ - spec/dummy/app/controllers/application_controller.rb
271
+ - spec/dummy/config/routes.rb
272
+ - spec/dummy/config/locales/en.yml
243
273
  - spec/dummy/config/boot.rb
244
- - spec/dummy/config/database.yml
245
- - spec/dummy/config/environment.rb
274
+ - spec/dummy/config/application.rb
246
275
  - spec/dummy/config/environments/spec.rb
247
- - spec/dummy/config/initializers/backtrace_silencers.rb
248
- - spec/dummy/config/initializers/inflections.rb
249
276
  - spec/dummy/config/initializers/mime_types.rb
250
- - spec/dummy/config/initializers/secret_token.rb
251
277
  - spec/dummy/config/initializers/session_store.rb
278
+ - spec/dummy/config/initializers/backtrace_silencers.rb
252
279
  - spec/dummy/config/initializers/wrap_parameters.rb
253
- - spec/dummy/config/locales/en.yml
254
- - spec/dummy/config/routes.rb
255
- - spec/dummy/config.ru
256
- - spec/dummy/db/schema.rb
257
- - spec/dummy/db/spec.sqlite3
258
- - spec/dummy/log/spec.log
259
- - spec/dummy/public/404.html
260
- - spec/dummy/public/422.html
261
- - spec/dummy/public/500.html
262
- - spec/dummy/public/favicon.ico
280
+ - spec/dummy/config/initializers/inflections.rb
281
+ - spec/dummy/config/initializers/secret_token.rb
282
+ - spec/dummy/config/environment.rb
283
+ - spec/dummy/config/database.yml
263
284
  - spec/dummy/Rakefile
264
285
  - spec/dummy/script/rails
265
- - spec/factories/capability_type.rb
266
- - spec/factories/role.rb
267
- - spec/factories/users.rb
268
- - spec/lib/erp_tech_svcs/extensions/active_record/has_roles_spec.rb
269
- - spec/models/audit_log_spec.rb
270
- - spec/models/audit_log_type_spec.rb
271
- - spec/models/role_spec.rb
272
- - spec/models/user_spec.rb
273
- - spec/spec_helper.rb
286
+ - spec/controllers/erp_tech_svcs/user_controller_spec.rb
data/README.rdoc DELETED
@@ -1,2 +0,0 @@
1
- = ErpTechSvcs
2
-
@@ -1,3 +0,0 @@
1
- Module.class_eval do
2
- alias_method :const_missing, :const_missing_not_from_s3_library
3
- end