arkaan 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f30e89d73e43459af413a4d09135f515d59f5e4
4
- data.tar.gz: 5bef14473522ac997a9bf49d0a624718b2942cfe
3
+ metadata.gz: 1421f9b29b1a34819afe826ac72a4599644381c1
4
+ data.tar.gz: 5835dde200cc11c279637ab10fd2db1fc1f21ff4
5
5
  SHA512:
6
- metadata.gz: 8207dab2feb2e28b8297627e2fd00922afa3337fd1e49943cc9832a635c67ae6222b720747ed916acb7b75e150c025719ebf3d154de32c5f2238391e939aa310
7
- data.tar.gz: a553a6ad51f691d16c28019977ecaf290538fff6dfab405372df6a46d8bc424ad16a7daeba10f70cb4b1409574243b8297ed1c7ee3571249145a282b05e17d27
6
+ metadata.gz: ef6a293b1b11a01c0abcb834de89bc1e4723b87885099ccf6e427d175fa1e894abd7366c72989d6cd350c9a49571cb8ea918a95877123fb0d4b3cbd774f91d81
7
+ data.tar.gz: 3e793f2fc1170ff3fbc0be21505a11f4a4a5ed4c9647ee59326dc5c998a741eebb8c44c9cf5ffb69165f71407d509eecbd22b913406973b5ee44fb5a524673b4
@@ -8,13 +8,20 @@ module Arkaan
8
8
 
9
9
  # @!attribute [rw] filename
10
10
  # @return [String] the name of the file, corresponding to the AWS name.
11
- field :filename, type: String
11
+ field :name, type: String
12
+ # @!attribute [rw] size
13
+ # @return [Integer] the size of the file in bytes.
14
+ field :size, type: Integer, default: 0
15
+ # @!attribute [rw] mime_type
16
+ # @return [String] the MIME type of the file, obtained from the uploaded file.
17
+ field :mime_type, type: String
12
18
 
13
19
  # @!attribute [rw] invitation
14
20
  # @return [Arkaan::Campaigns::Invitation] the link to the user creator of the file and the campaign it's created in.
15
21
  embedded_in :invitation, class_name: 'Arkaan::Campaigns::Invitation', inverse_of: :files
16
22
 
17
- validates 'filename', presence: {message: 'required'}
23
+ validates 'name' , presence: {message: 'required'}
24
+ validates 'mime_type', presence: {message: 'required'}
18
25
  end
19
26
  end
20
27
  end
@@ -52,6 +52,7 @@ module Arkaan
52
52
  instance_eval(&block)
53
53
  end
54
54
  else
55
+ logger.info "#{verb} #{complete_path}"
55
56
  self.public_send(verb, complete_path, &block)
56
57
  end
57
58
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arkaan
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent Courtois