attache-rails 2.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -15
- data/app/assets/javascripts/attache.js +1 -0
- data/app/assets/javascripts/attache/file_input.js +1 -0
- data/lib/attache/rails/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d147ab4a31056ade95ec4d221a48d5507eb031a
|
4
|
+
data.tar.gz: d0c4ce378dc523037f907a45d4170398016d68eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd648b0fd5f2c8e13d7c2a70adfa16a1009cc5968b12b394d29b09871faa8e08a2cd2b5b48235061febf7667f9dcf5a73c7840f7541133a316205d7b4886cef5
|
7
|
+
data.tar.gz: f9312648efeaa872dc5b638261a5673fb2a55c81a72082f19ecd77912106ee7275a5b8d0fedc82da6a6a07ab2853dfdc706c86f018f054c9ed5e1adecc89b266
|
data/README.md
CHANGED
@@ -169,21 +169,6 @@ This opens up the possibility to query inside the column, e.g.
|
|
169
169
|
User.where("photo ->> 'content_type' = ?", 'image/png')
|
170
170
|
```
|
171
171
|
|
172
|
-
## Upgrading from v2
|
173
|
-
|
174
|
-
`json` values in the database column has changed in v3. Previously, we are working with json *strings*, now we are working with json *objects*, aka `Hash`. i.e.
|
175
|
-
|
176
|
-
- in previous version, `@user.photos` value could be something like `["{\"path\":\"dirname/file.jpg\"}"]`. Notice that it is an array of 1 `String`.
|
177
|
-
- in v3, the value would be `[{"path"=>"dirname/file.jpg"}]`. Notice that it is an array of 1 `Hash`
|
178
|
-
|
179
|
-
If you're upgrading from V2, we have a generator that will create a migration file to fixup the data
|
180
|
-
|
181
|
-
```
|
182
|
-
rails g attache:rails:upgrade_v2_to_v3
|
183
|
-
```
|
184
|
-
|
185
|
-
NOTE: It is highly recommended that developers verify the migration with a dump of the production data in a staging environment. Please take a look at the generated migration file.
|
186
|
-
|
187
172
|
# License
|
188
173
|
|
189
174
|
MIT
|
@@ -378,6 +378,7 @@ var AttacheFileInput = exports.AttacheFileInput = React.createClass({
|
|
378
378
|
var copy = JSON.parse(JSON.stringify(result));
|
379
379
|
delete copy.src;
|
380
380
|
delete copy.filename;
|
381
|
+
delete copy.multiple;
|
381
382
|
var json = JSON.stringify(copy);
|
382
383
|
//
|
383
384
|
result.multiple = that.props.multiple;
|
@@ -113,6 +113,7 @@ var AttacheFileInput = exports.AttacheFileInput = React.createClass({
|
|
113
113
|
var copy = JSON.parse(JSON.stringify(result));
|
114
114
|
delete copy.src;
|
115
115
|
delete copy.filename;
|
116
|
+
delete copy.multiple;
|
116
117
|
var json = JSON.stringify(copy);
|
117
118
|
//
|
118
119
|
result.multiple = that.props.multiple;
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: attache-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- choonkeat
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 2.0.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 2.0.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: httpclient
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|