paper_cropper 0.0.2 → 0.0.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 765ec5c7bbb8a9db019e7c04a976c98a61d0b5ce
4
- data.tar.gz: db472297bc0ae0fe57f463d113141514198fefaa
3
+ metadata.gz: bb38a063d00da380ab37d233baac25f9823b7311
4
+ data.tar.gz: 03272e89f0479ac96037200e8232f1e014179e82
5
5
  SHA512:
6
- metadata.gz: 8005e706ae466fb0029f9c34aee3fe5929fbee660b7bd9486347267c1ad657a84717e3204fc2caf83338f709a57b2784659a3acdab82f9938f516a61ebe7f68e
7
- data.tar.gz: 81906bd23691a56d4617c5ebe2981efc16b9995c37315eca45adae02ced0d7a3137e8bea97dc2e0f03b669e789da56db4df93c5fcf6e62aabffa9d7a2eaebdb0
6
+ metadata.gz: 27d4ae20dee2532ab20ec09f55e11abf7b66f5b472eae48d6eb59a59ed5de62da1cd23a4d36a5e1b9c5e4a2c30be324c6eed97e50684541092b6484c7004e5a6
7
+ data.tar.gz: 4ae4577f753ab92c730333b995367560dab86fe4a0a116182637a2d168084f2ffc1dcd38b06b0c86418f23c254256a3fd0970ab6b7110b7985ccd149fbf808be
data/README.md CHANGED
@@ -30,7 +30,7 @@ crop_attached_file :cover, aspect: false
30
30
  Take care of permitted params. Add the following fields to ```permitted``` strong attributes:
31
31
 
32
32
  ```ruby
33
- :cover_crop_x, :cover_crop_y, :cover_crop_width, :cover_crop_height
33
+ params.require(:model).permit(:cover, :cover_crop_x, :cover_crop_y, :cover_crop_width, :cover_crop_height)
34
34
  ```
35
35
 
36
36
  ## javascripts
@@ -52,14 +52,14 @@ $('.crop-image-container').each(function(){
52
52
  @import "paper_cropper";
53
53
  ~~~
54
54
 
55
- The paper_cropper is not required, is only for a small changes. The only thing required from 'paper_cropper' is this rule:
55
+ ```paper_cropper``` is only required for this rule:
56
56
 
57
- ~~~
57
+ ```css
58
58
  /* Limit image width to avoid overflow the container */
59
59
  .crop-image-container img.crop-image {
60
60
  max-width: 100%; /* This rule is very important, please do not ignore this! */
61
61
  }
62
- ~~~
62
+ ```
63
63
 
64
64
  ---------------------------------------------
65
65
 
@@ -67,11 +67,11 @@ The paper_cropper is not required, is only for a small changes. The only thing r
67
67
 
68
68
  helper, with twitter bootstrap classes, custom formatted, and other things
69
69
 
70
- ~~~
71
- <%= form_for ..... %>
70
+ ```ruby
71
+ <%= form_for ..... do |f| %>
72
72
  <%= f.tws_cropper_box :cover %>
73
73
  <% end %>
74
- ~~~
74
+ ```
75
75
 
76
76
  **custom (without helper)**
77
77
 
@@ -2,11 +2,16 @@ module PaperCropper
2
2
  # Changelog based on Semantic Versioning: http://semver.org
3
3
  # REMEMBER: Major version zero (0.y.z) is for initial development. Anything may change at any time. The public API should not be considered stable.
4
4
 
5
+ # 0.0.3 PATCH
6
+ # [FIX] Invalid method call when invoking attachment_changed?.
7
+ # [DOC] Improve README.
8
+
9
+
5
10
  # 0.0.2 PATCH
6
- #- Added ActiveRecord extensions to force attachment updated_at field to be setted
11
+ # [FEATURE] Added ActiveRecord extensions to force attachment updated_at field to be setted
7
12
  # on every attachment change.
8
13
 
9
14
  unless defined?(PaperCropper::VERSION)
10
- VERSION = "0.0.2".freeze
15
+ VERSION = '0.0.3'.freeze
11
16
  end
12
17
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paper_cropper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Coditramuntana
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-26 00:00:00.000000000 Z
11
+ date: 2016-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails