carload 0.2.0 → 0.2.1

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6050c145967b23fa0d4d7f7a2d889cdf182a818e
4
- data.tar.gz: 204ebca653c8f0268157b62bde3d11722a13e0fe
3
+ metadata.gz: 2cd0028683bc4d4277b02613b7f1744c349563cd
4
+ data.tar.gz: 79566a14a33664af611a52bc8733d9b5c80c7feb
5
5
  SHA512:
6
- metadata.gz: 20ebcfbd2520b19b94b0936174e039962475fb991b45a14738d96c1945f2756ed283a390e6407cfeb0f09ec916ef82bf0679c0bf13d82ce54fa2e80f65887d0a
7
- data.tar.gz: 0bd18274a4164a9a3741387fbda4f0daf9ee181064ed0fcebbada84c8090827b8be12d6f1894943e71f6a730019451fc1f1623ced440ba00616056526cc3aa5e
6
+ metadata.gz: de212f715fbe346f1174135a4457ad7d9e2994ef8957404eb993fe6bb7ccf761d14901189410470f869768d1e7dabca1d604107e64aea66f4dd6e13982b10a29
7
+ data.tar.gz: 009f4e42b5dd5d2d8c8bfcc3544e1656825bb6b28a35952bbdb7ea82830273da68cd519cfa5ae6e91e16d8492f1fff6c81f56875e991552a83922cf8a88c2c03
data/README.md CHANGED
@@ -7,7 +7,17 @@ This is another dashboard gem for Rails (see [Rails Admin], [ActiveAdmin] and [A
7
7
 
8
8
  DEMO: [https://carload-demo.herokuapp.com/carload/dashboard/](https://carload-demo.herokuapp.com/carload/dashboard/)
9
9
 
10
- ![](http://7xvqi7.com1.z0.glb.clouddn.com/carload.dashboard.snapshot.zh-CN.png)
10
+ ![](https://ruby-china-files.b0.upaiyun.com/photo/2016/f62758b167e6d1bc1f55459ad2d53dcd.png!large)
11
+
12
+ Carload tries to handle errors gracely:
13
+
14
+ ![](https://ruby-china-files.b0.upaiyun.com/photo/2016/bf1c27a50c9987f7bfa2fb3c909d7801.png!large)
15
+
16
+ ![](https://ruby-china-files.b0.upaiyun.com/photo/2016/9afad7d8b2b747c9730db6aeb4ddd288.png!large)
17
+
18
+ Image file upload is also supported with some assumption.
19
+
20
+ ![](https://ruby-china-files.b0.upaiyun.com/photo/2016/d9fc7b42fdcd1a7700faa26a47e037c1.png!large)
11
21
 
12
22
  ## Usage
13
23
  - Run `rails g carload:install` to mount engine routes, add require statement, initializer, and `Dashboard` class file.
@@ -118,8 +128,5 @@ Or install it yourself as:
118
128
  $ gem install carload
119
129
  ```
120
130
 
121
- ## TODO List
122
- - Support upload file (using `carrierwave`)
123
-
124
131
  ## License
125
132
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -25,7 +25,7 @@ module Carload
25
25
  when Symbol
26
26
  object.send attribute
27
27
  when String
28
- eval "object.#{attribute}"
28
+ eval "object.#{attribute.gsub('.', '&.')}"
29
29
  end
30
30
  end
31
31
  end
@@ -1,3 +1,3 @@
1
1
  module Carload
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carload
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Li Dong