remarkable_paperclip 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +2 -2
- data/locale/en.yml +19 -19
- metadata +12 -5
data/README.markdown
CHANGED
@@ -18,10 +18,10 @@ Installation
|
|
18
18
|
### As a Gem
|
19
19
|
|
20
20
|
Use this if you prefer to use versioned releases of remarkable_paperclip.
|
21
|
-
Specify the gem dependency in your config/
|
21
|
+
Specify the gem dependency in your config/environments/test.rb file:
|
22
22
|
|
23
23
|
Rails::Initializer.run do |config|
|
24
|
-
config.gem "
|
24
|
+
config.gem "remarkable_paperclip", :lib => false, :source => "http://gemcutter.org"
|
25
25
|
end
|
26
26
|
|
27
27
|
Then:
|
data/locale/en.yml
CHANGED
@@ -2,36 +2,36 @@ en:
|
|
2
2
|
remarkable:
|
3
3
|
paperclip:
|
4
4
|
have_attached_file:
|
5
|
-
description: "have attached file {
|
5
|
+
description: "have attached file %{attribute}"
|
6
6
|
expectations:
|
7
|
-
defined: "{
|
8
|
-
has_column: "table {
|
9
|
-
styles_match: "{
|
10
|
-
default_style_match: "{
|
7
|
+
defined: "%{subject_name} has %{attribute} as an attached file"
|
8
|
+
has_column: "table %{table_name} to have column %{column_name}, but it does not"
|
9
|
+
styles_match: "%{subject_name} to have attached file %{attribute} with styles %{styles}, got %{actual}"
|
10
|
+
default_style_match: "%{subject_name} to have attached file %{attribute} with default style %{style}, got %{actual}"
|
11
11
|
optionals:
|
12
12
|
styles:
|
13
|
-
positive: "with styles {
|
13
|
+
positive: "with styles %{inspect}"
|
14
14
|
default_style:
|
15
|
-
positive: "with default style {
|
15
|
+
positive: "with default style %{value}"
|
16
16
|
validate_attachment_size:
|
17
|
-
description: "validate size for attached file {
|
17
|
+
description: "validate size for attached file %{attribute}"
|
18
18
|
expectations:
|
19
|
-
is_minimum: "{
|
20
|
-
less_than_minimum: "{
|
21
|
-
is_maximum: "{
|
22
|
-
more_than_maximum: "{
|
19
|
+
is_minimum: "%{subject_name} to be valid when size of attached file %{attribute} is %{minimum}"
|
20
|
+
less_than_minimum: "%{subject_name} to be invalid when size of attached file %{attribute} is less than %{minimum}"
|
21
|
+
is_maximum: "%{subject_name} to be valid when size of attached file %{attribute} is %{maximum}"
|
22
|
+
more_than_maximum: "%{subject_name} to be invalid when size of attached file %{attribute} is more than %{maximum}"
|
23
23
|
optionals:
|
24
24
|
in:
|
25
|
-
positive: "to be in {
|
25
|
+
positive: "to be in %{inspect}"
|
26
26
|
less_than:
|
27
|
-
positive: "to be less than {
|
27
|
+
positive: "to be less than %{value}"
|
28
28
|
greater_than:
|
29
|
-
positive: "to be greater than {
|
29
|
+
positive: "to be greater than %{value}"
|
30
30
|
validate_attachment_presence:
|
31
|
-
description: "validate attachment presence of attached file {
|
31
|
+
description: "validate attachment presence of attached file %{attribute}"
|
32
32
|
expectations:
|
33
|
-
invalid_when_not_present: "{
|
33
|
+
invalid_when_not_present: "%{subject_name} to be invalid when attached file %{attribute} is not present"
|
34
34
|
allow_attachment_content_type_for:
|
35
|
-
description: "allow {
|
35
|
+
description: "allow %{in} as content type for attachment %{attribute}"
|
36
36
|
expectations:
|
37
|
-
is_valid: "{
|
37
|
+
is_valid: "%{subject_name} to be valid when content type for attachment %{attribute} is set to %{value}"
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: remarkable_paperclip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 6
|
8
|
+
- 4
|
9
|
+
version: 0.6.4
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Lawrence Pit
|
@@ -9,7 +14,7 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date:
|
17
|
+
date: 2010-06-05 00:00:00 +10:00
|
13
18
|
default_executable:
|
14
19
|
dependencies: []
|
15
20
|
|
@@ -44,18 +49,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
44
49
|
requirements:
|
45
50
|
- - ">="
|
46
51
|
- !ruby/object:Gem::Version
|
52
|
+
segments:
|
53
|
+
- 0
|
47
54
|
version: "0"
|
48
|
-
version:
|
49
55
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
50
56
|
requirements:
|
51
57
|
- - ">="
|
52
58
|
- !ruby/object:Gem::Version
|
59
|
+
segments:
|
60
|
+
- 0
|
53
61
|
version: "0"
|
54
|
-
version:
|
55
62
|
requirements: []
|
56
63
|
|
57
64
|
rubyforge_project:
|
58
|
-
rubygems_version: 1.3.
|
65
|
+
rubygems_version: 1.3.6
|
59
66
|
signing_key:
|
60
67
|
specification_version: 3
|
61
68
|
summary: Remarkable matchers for Paperclip.
|