filepickerio_rails 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2012 Adam Burmister
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -14,14 +14,20 @@ module FilepickerioRails
14
14
  def fp_file_field_tag(object_name, text_or_options=nil, value_or_options=nil, options={})
15
15
  # Allow users to pass in variable length arguments
16
16
  if text_or_options.is_a? Hash
17
- text = value = nil
17
+ # Nothing passed but options
18
+ text = nil
19
+ value = nil
18
20
  options = text_or_options
19
21
  elsif value_or_options.is_a? Hash
22
+ # only text and options
23
+ text = text_or_options
20
24
  value = nil
21
25
  options = value_or_options
22
26
  else
27
+ # full params
23
28
  text = text_or_options
24
29
  value = value_or_options
30
+ # options = options
25
31
  end
26
32
 
27
33
  options.merge!(
@@ -88,7 +94,7 @@ module FilepickerioRails
88
94
 
89
95
  options = {
90
96
  name: nil,
91
- type: nil,
97
+ type: 'button',
92
98
  data: {
93
99
  "fp-apikey" => fp_api_key,
94
100
  "fp-mimetype" => mime,
@@ -1,3 +1,3 @@
1
1
  module FilepickerioRails
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: filepickerio_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-16 00:00:00.000000000 Z
12
+ date: 2012-09-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70276161113600 !ruby/object:Gem::Requirement
16
+ requirement: &70104815029420 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70276161113600
24
+ version_requirements: *70104815029420
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec-rails
27
- requirement: &70276161113040 !ruby/object:Gem::Requirement
27
+ requirement: &70104815028800 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70276161113040
35
+ version_requirements: *70104815028800
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rails
38
- requirement: &70276161112420 !ruby/object:Gem::Requirement
38
+ requirement: &70104815028200 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70276161112420
46
+ version_requirements: *70104815028200
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: railties
49
- requirement: &70276161111760 !ruby/object:Gem::Requirement
49
+ requirement: &70104815027460 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '3.1'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70276161111760
57
+ version_requirements: *70104815027460
58
58
  description: Rails view helpers for Filepicker.io widgets
59
59
  email:
60
60
  - adam.burmister@gmail.com
@@ -65,6 +65,7 @@ files:
65
65
  - .gitignore
66
66
  - .rspec
67
67
  - Gemfile
68
+ - LICENSE
68
69
  - README.md
69
70
  - Rakefile
70
71
  - filepickerio_rails.gemspec
@@ -91,7 +92,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
91
92
  version: '0'
92
93
  segments:
93
94
  - 0
94
- hash: -4076320744515293650
95
+ hash: -533400938234800137
95
96
  required_rubygems_version: !ruby/object:Gem::Requirement
96
97
  none: false
97
98
  requirements:
@@ -100,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
101
  version: '0'
101
102
  segments:
102
103
  - 0
103
- hash: -4076320744515293650
104
+ hash: -533400938234800137
104
105
  requirements: []
105
106
  rubyforge_project: filepickerio_rails
106
107
  rubygems_version: 1.8.15