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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2cfe86f76fd5a554ae12df2b35d5caf64fc2f33b
4
- data.tar.gz: c7264375ecb8d71c990e072f2bcf771e883b9161
3
+ metadata.gz: 6d147ab4a31056ade95ec4d221a48d5507eb031a
4
+ data.tar.gz: d0c4ce378dc523037f907a45d4170398016d68eb
5
5
  SHA512:
6
- metadata.gz: 21c012b4fc60c73cb9badde551bb36a3507b9c59fe916a35bdadc25d4b56f0f8a4c8c1e7f2dd19c1391fd0d04ba78c8917892eb71b959cdd3a1dde488b4f86ed
7
- data.tar.gz: d0261a66a609ca86c38a21bde0a28d15a6f60a3606f705bd31c1e2922b46af8575ce0b2e0aaab5c63d0dbd7d2ed62acce7710f9ad1e1e09b2b9c0d16a94061fb
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;
@@ -1,5 +1,5 @@
1
1
  module Attache
2
2
  module Rails
3
- VERSION = "2.0.0"
3
+ VERSION = "3.0.1"
4
4
  end
5
5
  end
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: 2.0.0
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-09 00:00:00.000000000 Z
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: 1.0.0
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: 1.0.0
40
+ version: 2.0.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: httpclient
43
43
  requirement: !ruby/object:Gem::Requirement