erp_tech_svcs 3.1.8 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -14
- data/README.md +15 -9
- data/app/controllers/erp_tech_svcs/session_controller.rb +21 -8
- data/app/controllers/erp_tech_svcs/user_controller.rb +15 -10
- data/app/mailers/user_mailer.rb +3 -0
- data/app/models/audit_log.rb +0 -2
- data/app/models/extensions/note.rb +1 -2
- data/app/models/extensions/party.rb +6 -1
- data/app/models/file_asset.rb +80 -38
- data/app/models/group.rb +1 -1
- data/app/models/notification.rb +49 -0
- data/app/models/notification_type.rb +5 -0
- data/app/models/user.rb +2 -2
- data/app/models/user_defined_data.rb +6 -0
- data/app/models/user_defined_field.rb +8 -0
- data/app/views/user_mailer/activation_needed_email.html.erb +17 -7
- data/config/initializers/file_support.rb +2 -2
- data/config/routes.rb +2 -1
- data/db/migrate/20130610163240_create_notifications.rb +37 -0
- data/db/migrate/20131113213843_add_audit_log_item_old_value.rb +13 -0
- data/db/migrate/20131113213844_add_erp_tech_svcs_missing_indexes.rb +31 -0
- data/db/migrate/20131129203603_add_user_defined_fields.rb +43 -0
- data/db/migrate/20141013060204_add_custom_fields_to_notifications.rb +12 -0
- data/db/migrate/20141108182427_add_scoped_by_to_file_assets.rb +14 -0
- data/lib/erp_tech_svcs.rb +4 -1
- data/lib/erp_tech_svcs/config.rb +5 -2
- data/lib/erp_tech_svcs/engine.rb +3 -1
- data/lib/erp_tech_svcs/extensions.rb +3 -1
- data/lib/erp_tech_svcs/extensions/active_record/has_user_defined_data.rb +147 -0
- data/lib/erp_tech_svcs/extensions/active_record/is_json.rb +55 -0
- data/lib/erp_tech_svcs/extensions/active_record/scoped_by.rb +64 -0
- data/lib/erp_tech_svcs/file_support/file_system_manager.rb +7 -0
- data/lib/erp_tech_svcs/file_support/manager.rb +1 -1
- data/lib/erp_tech_svcs/file_support/s3_manager.rb +13 -6
- data/lib/erp_tech_svcs/utils/default_nested_set_methods.rb +3 -5
- data/lib/erp_tech_svcs/version.rb +7 -3
- data/lib/tasks/erp_tech_svcs_tasks.rake +23 -4
- data/spec/lib/erp_tech_svcs/extensions/active_record/is_json_spec.rb +13 -0
- metadata +109 -78
- data/app/assets/javascripts/erp_tech_svcs/application.js +0 -9
- data/app/assets/stylesheets/erp_tech_svcs/application.css +0 -7
- data/app/helpers/erp_tech_svcs/application_helper.rb +0 -4
- data/app/views/layouts/application.html.erb +0 -14
- data/app/views/layouts/erp_tech_svcs/application.html.erb +0 -14
- data/config/initializers/erp_tech_svcs.rb +0 -16
- data/db/migrate/20111117183144_create_has_attribute_tables.rb +0 -38
- data/lib/erp_tech_svcs/extensions/active_record/has_relational_dynamic_attributes.rb +0 -128
- data/spec/dummy/db/data_migrations/20130220143304_add_usd_currency.erp_base_erp_svcs.rb +0 -12
- data/spec/dummy/db/data_migrations/20130220143305_add_iso_codes.erp_base_erp_svcs.rb +0 -19
- data/spec/dummy/db/data_migrations/20130220143306_setup_compass_ae_instance.erp_base_erp_svcs.rb +0 -21
- data/spec/dummy/db/data_migrations/20130220143307_upgrade_compass_ae_instances_data.erp_base_erp_svcs.rb +0 -19
- data/spec/dummy/db/data_migrations/20130220143308_create_capability_scope_types.erp_tech_svcs.rb +0 -15
- data/spec/dummy/db/data_migrations/20130220143309_schedule_delete_expired_sessions_job.erp_tech_svcs.rb +0 -16
- data/spec/dummy/db/data_migrations/20130220143310_setup_audit_log_types.erp_tech_svcs.rb +0 -22
- data/spec/dummy/db/data_migrations/20130220143311_create_group_relationship_and_role_types.erp_tech_svcs.rb +0 -20
- data/spec/dummy/db/data_migrations/20130220143312_note_capabilities.erp_tech_svcs.rb +0 -24
- data/spec/dummy/db/data_migrations/20130422151256_add_guid_to_instances.erp_base_erp_svcs.rb +0 -10
- data/spec/dummy/db/migrate/20130220143259_base_erp_services.erp_base_erp_svcs.rb +0 -486
- data/spec/dummy/db/migrate/20130220143260_add_txn_status.erp_base_erp_svcs.rb +0 -37
- data/spec/dummy/db/migrate/20130220143261_upgrade_compass_ae_instances.erp_base_erp_svcs.rb +0 -34
- data/spec/dummy/db/migrate/20130220143262_base_tech_services.erp_tech_svcs.rb +0 -271
- data/spec/dummy/db/migrate/20130220143263_create_has_attribute_tables.erp_tech_svcs.rb +0 -39
- data/spec/dummy/db/migrate/20130220143264_create_groups.erp_tech_svcs.rb +0 -19
- data/spec/dummy/db/migrate/20130220143265_upgrade_security.erp_tech_svcs.rb +0 -54
- data/spec/dummy/db/migrate/20130220143266_upgrade_security2.erp_tech_svcs.rb +0 -275
- data/spec/dummy/db/migrate/20130422151250_add_uuid_compass_ae_instance.erp_base_erp_svcs.rb +0 -17
- data/spec/dummy/db/migrate/20130422151251_add_long_lat_to_address.erp_base_erp_svcs.rb +0 -16
- data/spec/dummy/db/migrate/20130422151252_add_queue_to_delayed_jobs.erp_tech_svcs.rb +0 -14
- data/spec/dummy/db/schema.rb +0 -665
- data/spec/dummy/db/spec.sqlite3 +0 -0
@@ -0,0 +1,55 @@
|
|
1
|
+
module ErpTechSvcs
|
2
|
+
module Extensions
|
3
|
+
module ActiveRecord
|
4
|
+
module IsJson
|
5
|
+
|
6
|
+
module Errors
|
7
|
+
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.included(base)
|
11
|
+
base.extend(ClassMethods)
|
12
|
+
end
|
13
|
+
|
14
|
+
module ClassMethods
|
15
|
+
|
16
|
+
def is_json(attr_name, class_name=nil)
|
17
|
+
class_name = if class_name
|
18
|
+
class_name
|
19
|
+
else
|
20
|
+
case ::ActiveRecord::Base.connection.instance_values["config"][:adapter]
|
21
|
+
when 'postgresql'
|
22
|
+
::ActiveRecord::Coders::NestedHstore
|
23
|
+
else
|
24
|
+
JSON
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
|
29
|
+
serialize attr_name, class_name
|
30
|
+
|
31
|
+
extend SingletonMethods
|
32
|
+
include InstanceMethods
|
33
|
+
|
34
|
+
# create method to initialize the json field with an empty hash
|
35
|
+
define_method("initialize_#{attr_name}_json") do
|
36
|
+
if self.new_record?
|
37
|
+
send("#{attr_name}=", {})
|
38
|
+
end
|
39
|
+
end
|
40
|
+
after_initialize "initialize_#{attr_name}_json"
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
44
|
+
|
45
|
+
module SingletonMethods
|
46
|
+
end
|
47
|
+
|
48
|
+
module InstanceMethods
|
49
|
+
end
|
50
|
+
|
51
|
+
end # IsJson
|
52
|
+
end # ActiveRecord
|
53
|
+
end # Extensions
|
54
|
+
end # ErpTechSvcs
|
55
|
+
|
@@ -0,0 +1,64 @@
|
|
1
|
+
module ErpTechSvcs
|
2
|
+
module Extensions
|
3
|
+
module ActiveRecord
|
4
|
+
module ScopedBy
|
5
|
+
|
6
|
+
module Errors
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.included(base)
|
10
|
+
base.extend(ClassMethods)
|
11
|
+
end
|
12
|
+
|
13
|
+
module ClassMethods
|
14
|
+
|
15
|
+
def add_scoped_by(attr_name)
|
16
|
+
# serialize Scope attributes
|
17
|
+
is_json attr_name
|
18
|
+
|
19
|
+
extend SingletonMethods
|
20
|
+
include InstanceMethods
|
21
|
+
|
22
|
+
# create method to initialize the json field with an empty hash
|
23
|
+
define_method("initialize_#{attr_name}_scoped_by_json") do
|
24
|
+
if self.new_record?
|
25
|
+
send("#{attr_name}=", {})
|
26
|
+
end
|
27
|
+
end
|
28
|
+
after_initialize "initialize_#{attr_name}_scoped_by_json"
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
32
|
+
|
33
|
+
module SingletonMethods
|
34
|
+
def scoped_by(scope_name, scope_value)
|
35
|
+
if ::ActiveRecord::Base.connection.instance_values["config"][:adapter] == 'postgresql'
|
36
|
+
where("(scoped_by @> '\"#{scope_name}\"=>\"#{scope_value}\"'::hstore )")
|
37
|
+
else
|
38
|
+
where(arel_table[:scoped_by].matches("%\"#{scope_name}\":\"#{scope_value}\"%")
|
39
|
+
.or(arel_table[:scoped_by].matches("%\"#{scope_name}\":#{scope_value}%")))
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
module InstanceMethods
|
45
|
+
def add_scope(scope_name, scope_value)
|
46
|
+
scoped_by[scope_name.to_s] = scope_value
|
47
|
+
save
|
48
|
+
end
|
49
|
+
|
50
|
+
def remove_scope(scope_name)
|
51
|
+
scoped_by[scope_name.to_s] = nil
|
52
|
+
save
|
53
|
+
end
|
54
|
+
|
55
|
+
def get_scope(scope_name)
|
56
|
+
scoped_by[scope_name.to_s]
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
end # ScopedBy
|
61
|
+
end # ActiveRecord
|
62
|
+
end # Extensions
|
63
|
+
end # ErpTechSvcs
|
64
|
+
|
@@ -16,6 +16,13 @@ module ErpTechSvcs
|
|
16
16
|
File.open(File.join(path,name), 'wb+') {|f| f.write(contents) }
|
17
17
|
end
|
18
18
|
|
19
|
+
# copy a file
|
20
|
+
def copy_file(origination_file, path, name)
|
21
|
+
contents = get_contents(origination_file)
|
22
|
+
|
23
|
+
create_file(path, name, contents)
|
24
|
+
end
|
25
|
+
|
19
26
|
def create_folder(path, name)
|
20
27
|
FileUtils.mkdir_p File.join(path,name) unless File.directory? File.join(path,name)
|
21
28
|
end
|
@@ -11,10 +11,10 @@ module ErpTechSvcs
|
|
11
11
|
@@configuration = YAML::load_file(File.join(Rails.root, 'config', 's3.yml'))[Rails.env]
|
12
12
|
|
13
13
|
# S3 debug logging
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
14
|
+
AWS.config(
|
15
|
+
:logger => Rails.logger,
|
16
|
+
:log_level => :info
|
17
|
+
)
|
18
18
|
|
19
19
|
@@s3_connection = AWS::S3.new(
|
20
20
|
:access_key_id => @@configuration['access_key_id'],
|
@@ -56,6 +56,13 @@ module ErpTechSvcs
|
|
56
56
|
bucket.objects[full_filename].write(content, {:acl => :public_read})
|
57
57
|
end
|
58
58
|
|
59
|
+
# copy a file
|
60
|
+
def copy_file(origination_file, path, name)
|
61
|
+
contents = get_contents(origination_file)
|
62
|
+
|
63
|
+
create_file(path, name, contents)
|
64
|
+
end
|
65
|
+
|
59
66
|
def create_folder(path, name)
|
60
67
|
path = path.sub(%r{^/}, '')
|
61
68
|
full_filename = (path.blank? ? name : File.join(path, name))
|
@@ -132,9 +139,9 @@ module ErpTechSvcs
|
|
132
139
|
else
|
133
140
|
message = FOLDER_IS_NOT_EMPTY
|
134
141
|
end
|
135
|
-
rescue
|
142
|
+
rescue => ex
|
136
143
|
result = false
|
137
|
-
message =
|
144
|
+
message = ex
|
138
145
|
end
|
139
146
|
|
140
147
|
return result, message, is_directory
|
@@ -19,15 +19,13 @@ module ErpTechSvcs
|
|
19
19
|
alias_method_chain :to_json, :leaf
|
20
20
|
|
21
21
|
def to_tree_hash(options={})
|
22
|
-
|
23
|
-
options[:additional_values] = additional_values.merge({
|
22
|
+
options = options.merge({
|
24
23
|
:text => self.to_label,
|
25
24
|
:leaf => self.leaf,
|
26
25
|
:children => self.children.collect{|child| child.to_tree_hash(options)}
|
27
26
|
})
|
28
|
-
|
29
|
-
|
30
|
-
tree_hash
|
27
|
+
|
28
|
+
self.to_hash(options)
|
31
29
|
end
|
32
30
|
|
33
31
|
module ClassMethods
|
@@ -3,7 +3,7 @@ namespace :erp_tech_svcs do
|
|
3
3
|
namespace :file_support do
|
4
4
|
|
5
5
|
desc "Sync storage between database and storage location ie (s3 or file system), taskes storage option"
|
6
|
-
task :sync_storage, [:storage] => :environment do |t,args|
|
6
|
+
task :sync_storage, [:storage] => :environment do |t, args|
|
7
7
|
file_support = ErpTechSvcs::FileSupport::Base.new(:storage => args.storage.to_sym)
|
8
8
|
|
9
9
|
#sync shared
|
@@ -19,7 +19,7 @@ namespace :erp_tech_svcs do
|
|
19
19
|
file_support.sync(File.join(file_support.root, "/sites/site-#{website.id}/files"), website)
|
20
20
|
end
|
21
21
|
puts "Complete"
|
22
|
-
|
22
|
+
|
23
23
|
#sync themes
|
24
24
|
puts "Syncing Themes..."
|
25
25
|
Theme.all.each do |theme|
|
@@ -30,9 +30,28 @@ namespace :erp_tech_svcs do
|
|
30
30
|
|
31
31
|
end
|
32
32
|
|
33
|
-
namespace :
|
33
|
+
namespace :database_support do
|
34
|
+
|
35
|
+
desc "List missing indexes"
|
36
|
+
task :list_missing_indexes => :environment do
|
37
|
+
|
38
|
+
connection = ActiveRecord::Base.connection
|
39
|
+
connection.tables.collect do |table|
|
40
|
+
columns = connection.columns(table).collect(&:name).select { |x| x.ends_with?("_id" || x.ends_with("_type")) || x == 'internal_identifier' }
|
41
|
+
indexed_columns = connection.indexes(table).collect(&:columns).flatten.uniq
|
42
|
+
unindexed = columns - indexed_columns
|
43
|
+
unless unindexed.empty?
|
44
|
+
unindexed.each do |column|
|
45
|
+
name = "#{table}_#{column}_idx"
|
34
46
|
|
35
|
-
|
47
|
+
puts "Missing index on #{table} : #{column}"
|
48
|
+
puts "Suggested Index"
|
49
|
+
puts "add_index :#{table}, :#{column}, :name => '#{name}'"
|
50
|
+
puts ""
|
51
|
+
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
36
55
|
|
37
56
|
end
|
38
57
|
|
metadata
CHANGED
@@ -1,57 +1,127 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: erp_tech_svcs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rick Koloski, Russell Holmes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: erp_base_erp_svcs
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '4.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '4.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: erp_dev_svcs
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '4.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '4.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: chronic
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.10.2
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.10.2
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: aasm
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 3.0.14
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 3.0.14
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: activerecord-postgres-hstore
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.7.7
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.7.7
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: nested-hstore
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 0.0.5
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.0.5
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: httparty
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0.12'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0.12'
|
41
111
|
- !ruby/object:Gem::Dependency
|
42
112
|
name: aws-sdk
|
43
113
|
requirement: !ruby/object:Gem::Requirement
|
44
114
|
requirements:
|
45
115
|
- - '='
|
46
116
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
117
|
+
version: 1.35.0
|
48
118
|
type: :runtime
|
49
119
|
prerelease: false
|
50
120
|
version_requirements: !ruby/object:Gem::Requirement
|
51
121
|
requirements:
|
52
122
|
- - '='
|
53
123
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
124
|
+
version: 1.35.0
|
55
125
|
- !ruby/object:Gem::Dependency
|
56
126
|
name: delayed_job_active_record
|
57
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -133,11 +203,11 @@ executables: []
|
|
133
203
|
extensions: []
|
134
204
|
extra_rdoc_files: []
|
135
205
|
files:
|
136
|
-
-
|
137
|
-
-
|
206
|
+
- GPL-3-LICENSE
|
207
|
+
- README.md
|
208
|
+
- Rakefile
|
138
209
|
- app/controllers/erp_tech_svcs/session_controller.rb
|
139
210
|
- app/controllers/erp_tech_svcs/user_controller.rb
|
140
|
-
- app/helpers/erp_tech_svcs/application_helper.rb
|
141
211
|
- app/mailers/user_mailer.rb
|
142
212
|
- app/models/attribute_type.rb
|
143
213
|
- app/models/attribute_value.rb
|
@@ -160,15 +230,16 @@ files:
|
|
160
230
|
- app/models/extensions/role_type.rb
|
161
231
|
- app/models/file_asset.rb
|
162
232
|
- app/models/group.rb
|
233
|
+
- app/models/notification.rb
|
234
|
+
- app/models/notification_type.rb
|
163
235
|
- app/models/scope_type.rb
|
164
236
|
- app/models/security_role.rb
|
165
237
|
- app/models/user.rb
|
238
|
+
- app/models/user_defined_data.rb
|
239
|
+
- app/models/user_defined_field.rb
|
166
240
|
- app/validators/password_strength_validator.rb
|
167
|
-
- app/views/layouts/application.html.erb
|
168
|
-
- app/views/layouts/erp_tech_svcs/application.html.erb
|
169
241
|
- app/views/user_mailer/activation_needed_email.html.erb
|
170
242
|
- app/views/user_mailer/reset_password_email.html.erb
|
171
|
-
- config/initializers/erp_tech_svcs.rb
|
172
243
|
- config/initializers/file_support.rb
|
173
244
|
- config/initializers/pdfkit.rb
|
174
245
|
- config/initializers/sorcery.rb
|
@@ -179,26 +250,35 @@ files:
|
|
179
250
|
- db/data_migrations/20121116155018_create_group_relationship_and_role_types.rb
|
180
251
|
- db/data_migrations/20121130212146_note_capabilities.rb
|
181
252
|
- db/migrate/20080805000010_base_tech_services.rb
|
182
|
-
- db/migrate/20111117183144_create_has_attribute_tables.rb
|
183
253
|
- db/migrate/20121116151510_create_groups.rb
|
184
254
|
- db/migrate/20121126171612_upgrade_security.rb
|
185
255
|
- db/migrate/20121126173506_upgrade_security2.rb
|
186
256
|
- db/migrate/20130410135419_add_queue_to_delayed_jobs.rb
|
257
|
+
- db/migrate/20130610163240_create_notifications.rb
|
187
258
|
- db/migrate/20130725212647_add_party_id_idx_to_users.rb
|
259
|
+
- db/migrate/20131113213843_add_audit_log_item_old_value.rb
|
260
|
+
- db/migrate/20131113213844_add_erp_tech_svcs_missing_indexes.rb
|
261
|
+
- db/migrate/20131129203603_add_user_defined_fields.rb
|
262
|
+
- db/migrate/20141013060204_add_custom_fields_to_notifications.rb
|
263
|
+
- db/migrate/20141108182427_add_scoped_by_to_file_assets.rb
|
264
|
+
- lib/erp_tech_svcs.rb
|
188
265
|
- lib/erp_tech_svcs/config.rb
|
189
266
|
- lib/erp_tech_svcs/engine.rb
|
190
267
|
- lib/erp_tech_svcs/erp_tech_svcs_audit_log.rb
|
268
|
+
- lib/erp_tech_svcs/extensions.rb
|
191
269
|
- lib/erp_tech_svcs/extensions/active_record/acts_as_versioned.rb
|
192
270
|
- lib/erp_tech_svcs/extensions/active_record/base.rb
|
193
271
|
- lib/erp_tech_svcs/extensions/active_record/has_capability_accessors.rb
|
194
272
|
- lib/erp_tech_svcs/extensions/active_record/has_file_assets.rb
|
195
|
-
- lib/erp_tech_svcs/extensions/active_record/has_relational_dynamic_attributes.rb
|
196
273
|
- lib/erp_tech_svcs/extensions/active_record/has_security_roles.rb
|
274
|
+
- lib/erp_tech_svcs/extensions/active_record/has_user_defined_data.rb
|
275
|
+
- lib/erp_tech_svcs/extensions/active_record/is_json.rb
|
197
276
|
- lib/erp_tech_svcs/extensions/active_record/protected_with_capabilities.rb
|
277
|
+
- lib/erp_tech_svcs/extensions/active_record/scoped_by.rb
|
198
278
|
- lib/erp_tech_svcs/extensions/railties/action_view/base.rb
|
199
279
|
- lib/erp_tech_svcs/extensions/railties/action_view/helpers/include_helper.rb
|
200
280
|
- lib/erp_tech_svcs/extensions/sorcery/user_activation.rb
|
201
|
-
- lib/erp_tech_svcs/
|
281
|
+
- lib/erp_tech_svcs/file_support.rb
|
202
282
|
- lib/erp_tech_svcs/file_support/base.rb
|
203
283
|
- lib/erp_tech_svcs/file_support/file_manipulator.rb
|
204
284
|
- lib/erp_tech_svcs/file_support/file_system_manager.rb
|
@@ -206,26 +286,23 @@ files:
|
|
206
286
|
- lib/erp_tech_svcs/file_support/paperclip_patch.rb
|
207
287
|
- lib/erp_tech_svcs/file_support/railties/s3_resolver.rb
|
208
288
|
- lib/erp_tech_svcs/file_support/s3_manager.rb
|
209
|
-
- lib/erp_tech_svcs/file_support.rb
|
210
289
|
- lib/erp_tech_svcs/sessions/delete_expired_sessions_job.rb
|
211
290
|
- lib/erp_tech_svcs/sessions/delete_expired_sessions_service.rb
|
212
|
-
- lib/erp_tech_svcs/sms_wrapper/clickatell.rb
|
213
291
|
- lib/erp_tech_svcs/sms_wrapper.rb
|
292
|
+
- lib/erp_tech_svcs/sms_wrapper/clickatell.rb
|
214
293
|
- lib/erp_tech_svcs/utils/compass_access_negotiator.rb
|
215
294
|
- lib/erp_tech_svcs/utils/compass_logger.rb
|
216
295
|
- lib/erp_tech_svcs/utils/default_nested_set_methods.rb
|
217
296
|
- lib/erp_tech_svcs/version.rb
|
218
|
-
- lib/erp_tech_svcs.rb
|
219
297
|
- lib/tasks/erp_tech_svcs_tasks.rake
|
220
|
-
- GPL-3-LICENSE
|
221
|
-
- Rakefile
|
222
|
-
- README.md
|
223
298
|
- spec/controllers/erp_tech_svcs/user_controller_spec.rb
|
299
|
+
- spec/dummy/Rakefile
|
224
300
|
- spec/dummy/app/assets/javascripts/application.js
|
225
301
|
- spec/dummy/app/assets/stylesheets/application.css
|
226
302
|
- spec/dummy/app/controllers/application_controller.rb
|
227
303
|
- spec/dummy/app/helpers/application_helper.rb
|
228
304
|
- spec/dummy/app/views/layouts/application.html.erb
|
305
|
+
- spec/dummy/config.ru
|
229
306
|
- spec/dummy/config/application.rb
|
230
307
|
- spec/dummy/config/boot.rb
|
231
308
|
- spec/dummy/config/database.yml
|
@@ -240,40 +317,16 @@ files:
|
|
240
317
|
- spec/dummy/config/locales/en.yml
|
241
318
|
- spec/dummy/config/routes.rb
|
242
319
|
- spec/dummy/config/s3.yml
|
243
|
-
- spec/dummy/config.ru
|
244
|
-
- spec/dummy/db/data_migrations/20130220143304_add_usd_currency.erp_base_erp_svcs.rb
|
245
|
-
- spec/dummy/db/data_migrations/20130220143305_add_iso_codes.erp_base_erp_svcs.rb
|
246
|
-
- spec/dummy/db/data_migrations/20130220143306_setup_compass_ae_instance.erp_base_erp_svcs.rb
|
247
|
-
- spec/dummy/db/data_migrations/20130220143307_upgrade_compass_ae_instances_data.erp_base_erp_svcs.rb
|
248
|
-
- spec/dummy/db/data_migrations/20130220143308_create_capability_scope_types.erp_tech_svcs.rb
|
249
|
-
- spec/dummy/db/data_migrations/20130220143309_schedule_delete_expired_sessions_job.erp_tech_svcs.rb
|
250
|
-
- spec/dummy/db/data_migrations/20130220143310_setup_audit_log_types.erp_tech_svcs.rb
|
251
|
-
- spec/dummy/db/data_migrations/20130220143311_create_group_relationship_and_role_types.erp_tech_svcs.rb
|
252
|
-
- spec/dummy/db/data_migrations/20130220143312_note_capabilities.erp_tech_svcs.rb
|
253
|
-
- spec/dummy/db/data_migrations/20130422151256_add_guid_to_instances.erp_base_erp_svcs.rb
|
254
|
-
- spec/dummy/db/migrate/20130220143259_base_erp_services.erp_base_erp_svcs.rb
|
255
|
-
- spec/dummy/db/migrate/20130220143260_add_txn_status.erp_base_erp_svcs.rb
|
256
|
-
- spec/dummy/db/migrate/20130220143261_upgrade_compass_ae_instances.erp_base_erp_svcs.rb
|
257
|
-
- spec/dummy/db/migrate/20130220143262_base_tech_services.erp_tech_svcs.rb
|
258
|
-
- spec/dummy/db/migrate/20130220143263_create_has_attribute_tables.erp_tech_svcs.rb
|
259
|
-
- spec/dummy/db/migrate/20130220143264_create_groups.erp_tech_svcs.rb
|
260
|
-
- spec/dummy/db/migrate/20130220143265_upgrade_security.erp_tech_svcs.rb
|
261
|
-
- spec/dummy/db/migrate/20130220143266_upgrade_security2.erp_tech_svcs.rb
|
262
|
-
- spec/dummy/db/migrate/20130422151250_add_uuid_compass_ae_instance.erp_base_erp_svcs.rb
|
263
|
-
- spec/dummy/db/migrate/20130422151251_add_long_lat_to_address.erp_base_erp_svcs.rb
|
264
|
-
- spec/dummy/db/migrate/20130422151252_add_queue_to_delayed_jobs.erp_tech_svcs.rb
|
265
|
-
- spec/dummy/db/schema.rb
|
266
|
-
- spec/dummy/db/spec.sqlite3
|
267
320
|
- spec/dummy/move_test_tmp/file_asset_spec_text.txt
|
268
321
|
- spec/dummy/public/404.html
|
269
322
|
- spec/dummy/public/422.html
|
270
323
|
- spec/dummy/public/500.html
|
271
324
|
- spec/dummy/public/favicon.ico
|
272
|
-
- spec/dummy/Rakefile
|
273
325
|
- spec/dummy/script/rails
|
274
326
|
- spec/factories/capability_type.rb
|
275
327
|
- spec/factories/users.rb
|
276
328
|
- spec/lib/erp_tech_svcs/extensions/active_record/has_roles_spec.rb
|
329
|
+
- spec/lib/erp_tech_svcs/extensions/active_record/is_json_spec.rb
|
277
330
|
- spec/lib/file_support/file_system_manager_spec.rb
|
278
331
|
- spec/lib/file_support/s3_manager_spec.rb
|
279
332
|
- spec/models/audit_log_spec.rb
|
@@ -293,17 +346,17 @@ require_paths:
|
|
293
346
|
- lib
|
294
347
|
required_ruby_version: !ruby/object:Gem::Requirement
|
295
348
|
requirements:
|
296
|
-
- -
|
349
|
+
- - ">="
|
297
350
|
- !ruby/object:Gem::Version
|
298
351
|
version: '0'
|
299
352
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
300
353
|
requirements:
|
301
|
-
- -
|
354
|
+
- - ">="
|
302
355
|
- !ruby/object:Gem::Version
|
303
356
|
version: '0'
|
304
357
|
requirements: []
|
305
358
|
rubyforge_project:
|
306
|
-
rubygems_version: 2.
|
359
|
+
rubygems_version: 2.2.2
|
307
360
|
signing_key:
|
308
361
|
specification_version: 4
|
309
362
|
summary: This engine is implemented with the premise that services like logging, tracing
|
@@ -331,29 +384,6 @@ test_files:
|
|
331
384
|
- spec/dummy/config/routes.rb
|
332
385
|
- spec/dummy/config/s3.yml
|
333
386
|
- spec/dummy/config.ru
|
334
|
-
- spec/dummy/db/data_migrations/20130220143304_add_usd_currency.erp_base_erp_svcs.rb
|
335
|
-
- spec/dummy/db/data_migrations/20130220143305_add_iso_codes.erp_base_erp_svcs.rb
|
336
|
-
- spec/dummy/db/data_migrations/20130220143306_setup_compass_ae_instance.erp_base_erp_svcs.rb
|
337
|
-
- spec/dummy/db/data_migrations/20130220143307_upgrade_compass_ae_instances_data.erp_base_erp_svcs.rb
|
338
|
-
- spec/dummy/db/data_migrations/20130220143308_create_capability_scope_types.erp_tech_svcs.rb
|
339
|
-
- spec/dummy/db/data_migrations/20130220143309_schedule_delete_expired_sessions_job.erp_tech_svcs.rb
|
340
|
-
- spec/dummy/db/data_migrations/20130220143310_setup_audit_log_types.erp_tech_svcs.rb
|
341
|
-
- spec/dummy/db/data_migrations/20130220143311_create_group_relationship_and_role_types.erp_tech_svcs.rb
|
342
|
-
- spec/dummy/db/data_migrations/20130220143312_note_capabilities.erp_tech_svcs.rb
|
343
|
-
- spec/dummy/db/data_migrations/20130422151256_add_guid_to_instances.erp_base_erp_svcs.rb
|
344
|
-
- spec/dummy/db/migrate/20130220143259_base_erp_services.erp_base_erp_svcs.rb
|
345
|
-
- spec/dummy/db/migrate/20130220143260_add_txn_status.erp_base_erp_svcs.rb
|
346
|
-
- spec/dummy/db/migrate/20130220143261_upgrade_compass_ae_instances.erp_base_erp_svcs.rb
|
347
|
-
- spec/dummy/db/migrate/20130220143262_base_tech_services.erp_tech_svcs.rb
|
348
|
-
- spec/dummy/db/migrate/20130220143263_create_has_attribute_tables.erp_tech_svcs.rb
|
349
|
-
- spec/dummy/db/migrate/20130220143264_create_groups.erp_tech_svcs.rb
|
350
|
-
- spec/dummy/db/migrate/20130220143265_upgrade_security.erp_tech_svcs.rb
|
351
|
-
- spec/dummy/db/migrate/20130220143266_upgrade_security2.erp_tech_svcs.rb
|
352
|
-
- spec/dummy/db/migrate/20130422151250_add_uuid_compass_ae_instance.erp_base_erp_svcs.rb
|
353
|
-
- spec/dummy/db/migrate/20130422151251_add_long_lat_to_address.erp_base_erp_svcs.rb
|
354
|
-
- spec/dummy/db/migrate/20130422151252_add_queue_to_delayed_jobs.erp_tech_svcs.rb
|
355
|
-
- spec/dummy/db/schema.rb
|
356
|
-
- spec/dummy/db/spec.sqlite3
|
357
387
|
- spec/dummy/move_test_tmp/file_asset_spec_text.txt
|
358
388
|
- spec/dummy/public/404.html
|
359
389
|
- spec/dummy/public/422.html
|
@@ -364,6 +394,7 @@ test_files:
|
|
364
394
|
- spec/factories/capability_type.rb
|
365
395
|
- spec/factories/users.rb
|
366
396
|
- spec/lib/erp_tech_svcs/extensions/active_record/has_roles_spec.rb
|
397
|
+
- spec/lib/erp_tech_svcs/extensions/active_record/is_json_spec.rb
|
367
398
|
- spec/lib/file_support/file_system_manager_spec.rb
|
368
399
|
- spec/lib/file_support/s3_manager_spec.rb
|
369
400
|
- spec/models/audit_log_spec.rb
|