center_image_tag 0.0.16 → 0.1.0
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 +9 -9
- data/README.md +5 -1
- data/lib/center_image_tag/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
NDJmOGE2NTg4YTZkYTkyZGIyNjMxZjlmYzVhMmRhZDgxZWU5MDU0Yg==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
ZGVkNzIyNWE5MDIxZDE2ODQzYmY0NzAwZTMzMmNhNzRmYjA5NzIzMw==
|
|
7
|
+
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ZWY0YTZiOTdhYzBkZDZjNmZlOWZhMGQ0NTQ3NDBhYjY2OThkYjM5MDBmZDQ4
|
|
10
|
+
NGM2Y2E3YzNkYTVmOThjZTU2MGRlM2Y0MzA2MjU3NmNmZGZmNDQzMTlmNDJl
|
|
11
|
+
NzllNmE0YTkwMTBmZDFkYmJiMDU5YzBmODAyZjU1MzI1NWUyZmM=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
YjI4Nzk1MzYwMjRlODcwNWE0MjQwNjNhNGFiYTRmOGZiNWQyYTZlZTYwN2Ew
|
|
14
|
+
ZjgyMGU2ZTNkMjI4MGE4YjdlZmFhYjVkZGJmNDU1NDIxNDU0Y2FiMDdlODUx
|
|
15
|
+
NTNhMmE1ODQwYzFjY2JiZjBiNjY5MDFmMTdlN2M2MDFlMWNjMjY=
|
data/README.md
CHANGED
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
# center_image_tag: Center your images with pure css
|
|
5
5
|
|
|
6
|
-
`center_image_tag` is another tag helper for Rails app which helps to center your image in its parent element view.
|
|
6
|
+
`center_image_tag` is another tag helper for Rails app which helps to center your image in its parent element view. `center_image_tag` will help you to display the center (middle) portion of your image as below (red box):
|
|
7
|
+
|
|
8
|
+

|
|
9
|
+
|
|
10
|
+
It has the same arguments as `image_tag`, so you can easily integrate this into your current Rails app.
|
|
7
11
|
|
|
8
12
|
`center_image_tag` has a built-in fluid mode which would buy you some time to center the images in your responsive design. Otherwise, just set fixed width and height as in `image_tag`, you can also have images auto-centered with the set dimension.
|
|
9
13
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: center_image_tag
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Anh Nguyen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-10-
|
|
11
|
+
date: 2013-10-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: actionpack
|
|
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
123
123
|
version: '0'
|
|
124
124
|
requirements: []
|
|
125
125
|
rubyforge_project:
|
|
126
|
-
rubygems_version: 2.
|
|
126
|
+
rubygems_version: 2.0.7
|
|
127
127
|
signing_key:
|
|
128
128
|
specification_version: 4
|
|
129
129
|
summary: Center your images with pure css.
|