applicious_utils 0.1.56 → 0.1.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
|
@@ -7,6 +7,9 @@ module AppliciousUtils
|
|
7
7
|
def applicious_uploader(options)
|
8
8
|
puts 'Options'
|
9
9
|
puts options.inspect
|
10
|
+
puts options[:filter_extentions]
|
11
|
+
puts options[:content_type]
|
12
|
+
puts options[:filter_title]
|
10
13
|
|
11
14
|
options[:s3_config_filename] ||= Rails.root.join('config', 'amazon_s3.yml')
|
12
15
|
config = YAML.load_file(options[:s3_config_filename])[Rails.env].symbolize_keys
|
@@ -18,9 +21,6 @@ module AppliciousUtils
|
|
18
21
|
options[:acl] ||= 'public-read'
|
19
22
|
options[:expiration_date] ||= 10.hours.from_now.utc.iso8601
|
20
23
|
options[:max_filesize] ||= 500.megabytes
|
21
|
-
options[:content_type] ||= 'image/' # Videos would be binary/octet-stream
|
22
|
-
options[:filter_title] ||= 'Images'
|
23
|
-
options[:filter_extentions] ||= 'jpg,jpeg,gif,png,bmp'
|
24
24
|
|
25
25
|
filename_token = "#{SecureRandom.hex(10)}_#{Time.now.to_i}"
|
26
26
|
|
@@ -81,9 +81,7 @@ module AppliciousUtils
|
|
81
81
|
file_data_name: 'file'
|
82
82
|
});
|
83
83
|
|
84
|
-
|
85
|
-
//window.applicious_uploader = applicious_uploader
|
86
|
-
|
84
|
+
window.applicious_uploader = applicious_uploader
|
87
85
|
AP.Uploader.init( applicious_uploader )
|
88
86
|
});")
|
89
87
|
|
@@ -2,21 +2,21 @@
|
|
2
2
|
# Uploader #
|
3
3
|
# # # # # # #
|
4
4
|
|
5
|
-
$(
|
5
|
+
$( window.applicious_uploader ).live 'FilesAdded', (up, files) =>
|
6
6
|
AP.log( up, files )
|
7
7
|
up.refresh() # Reposition Flash/Silverlight
|
8
8
|
|
9
|
-
$(
|
9
|
+
$( window.applicious_uploader ).live 'UploadProgress', (up, file) =>
|
10
10
|
AP.log( up, file )
|
11
11
|
|
12
|
-
$(
|
12
|
+
$( window.applicious_uploader ).live 'FileUploaded', (up, file) =>
|
13
13
|
AP.log( up, file )
|
14
14
|
|
15
|
-
$(
|
15
|
+
$( window.applicious_uploader ).live 'Error', (up, error) =>
|
16
16
|
AP.log( up, error )
|
17
17
|
up.refresh() # Reposition Flash/Silverlight
|
18
18
|
|
19
19
|
$('#upload_file').click (e) ->
|
20
|
-
|
20
|
+
window.applicious_uploader.start()
|
21
21
|
e.preventDefault()
|
22
22
|
# - - - #
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: applicious_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.58
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -76,6 +76,7 @@ files:
|
|
76
76
|
- app/assets/stylesheets/applicious_utils/FbMultiFriendSelector/README.md
|
77
77
|
- app/assets/stylesheets/applicious_utils/index.css
|
78
78
|
- applicious_utils-0.1.55.gem
|
79
|
+
- applicious_utils-0.1.56.gem
|
79
80
|
- applicious_utils.gemspec
|
80
81
|
- Gemfile
|
81
82
|
- lib/applicious_utils/engine.rb
|