activeadmin_file_input_on_steroids 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,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MWM5NTEyOTk0MWYzZjZkY2M4OTg5MGViOTQyYzE1NzExMTlhZTYxMg==
5
- data.tar.gz: !binary |-
6
- ZWZmNTFhMGU4ODc2Yzg1Nzg4NDdjMGQ3MTc4NWNkOTFhOTBkMjI5OQ==
2
+ SHA1:
3
+ metadata.gz: b08a246e9a7f91eaa44b977a68c3f143c4ae23dd
4
+ data.tar.gz: 026c69bb5d2676d12a6ab9aee005ecf26898cea7
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- YjUzYWQ3YTJhZDRhYWY2YjdhNmMzMjM4MjVhMGJlZjBhZGE2OWZlNmZlOGQz
10
- ODI2MjM1ZDZiMTBiNTczNzIwOTNiY2ZmZTBlYjlkMmY0MTEzNDJkZGQxZjU0
11
- ZTY3ZmFmNDdlNzgyZjA4MWQ2OTMzZTgzYTBiMzM3NjhkZDE4ODg=
12
- data.tar.gz: !binary |-
13
- ZTUxOTgzNGIxOWU4OTE4MWE1NmJhY2I0ZGNjMDEyOGE5OGVjZTc2NGZiMWJl
14
- Yzg3YWVjMDhkZDQyZDBjYTMxN2M4MzBmZTMyODEzZDc5OTgxMmYxYmJjMTlh
15
- ZmVmYTgwOTc5NWYzYThlNDdkNGJmZTUwN2IzZjhlZjIwMjhiMjQ=
6
+ metadata.gz: 51fdd29888c32f4ef42bc5736f8e74c5d6f47b77c1089d062cd488c7b598415c37ec14c9db49f3c541d14e94d83ab54a0bbf5a0ce3cd9ffa1a3acb115686cb37
7
+ data.tar.gz: ae84ed4f7fe734df2c97c0fd25de3df62120a7ad793d06c64eb71fb5ce79297c4904fc334e04862dae849aaabddc3e9fa62300e609cde316cda75f66c797afc7
@@ -27,7 +27,7 @@ class FileInput < Formtastic::Inputs::FileInput
27
27
  end
28
28
 
29
29
  def size_hint_text
30
- t = @object.photo.options[:styles]
30
+ t = @object.send(method).options[:styles]
31
31
  my_text = ''
32
32
  t.each_with_index do |k, i|
33
33
  unless i == 0
@@ -1,3 +1,3 @@
1
1
  module ActiveadminFileInputOnSteroids
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin_file_input_on_steroids
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
  - Ariel Schvartz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-12 00:00:00.000000000 Z
11
+ date: 2014-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.5'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.5'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '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
40
  version: '0'
41
41
  description: Adds 2 functionalities to the file input. Image preview and a size hint,
@@ -46,7 +46,7 @@ executables: []
46
46
  extensions: []
47
47
  extra_rdoc_files: []
48
48
  files:
49
- - .gitignore
49
+ - ".gitignore"
50
50
  - Gemfile
51
51
  - LICENSE.txt
52
52
  - README.md
@@ -68,17 +68,17 @@ require_paths:
68
68
  - lib
69
69
  required_ruby_version: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - ! '>='
71
+ - - ">="
72
72
  - !ruby/object:Gem::Version
73
73
  version: '0'
74
74
  required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  requirements:
76
- - - ! '>='
76
+ - - ">="
77
77
  - !ruby/object:Gem::Version
78
78
  version: '0'
79
79
  requirements: []
80
80
  rubyforge_project:
81
- rubygems_version: 2.2.2
81
+ rubygems_version: 2.4.2
82
82
  signing_key:
83
83
  specification_version: 4
84
84
  summary: Gem that adds functionality to activeadmin file input