center_image_tag 0.0.16 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Nzc0YjI2Y2JiMjU5MzY4NjllNGU0N2MxYmQxZTE5MjE2ZDhlMTdhZg==
4
+ NDJmOGE2NTg4YTZkYTkyZGIyNjMxZjlmYzVhMmRhZDgxZWU5MDU0Yg==
5
5
  data.tar.gz: !binary |-
6
- ZmUzYzQwYzUyZGZhOGU1MjI0NWYyNGJmZDFmOGRhMmZkY2QzZDMxNQ==
7
- SHA512:
6
+ ZGVkNzIyNWE5MDIxZDE2ODQzYmY0NzAwZTMzMmNhNzRmYjA5NzIzMw==
7
+ !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZWY5N2Q4MDRkN2RlNDY3ZTYwZjk4Njk0YjA1Yzg5MjUzNzI1NTJiZTNhNGY1
10
- OGM3NzE4OWYxNjJlYjk1ZjM3MWI5ODg1NWY2NGZkMDg1ZTYzMjgzYTViYWQ3
11
- MzI0NWJhMWMxOWRjMGQ1MzMzMDJlZjY2MGFhZmVlMDUwZmE5ZmE=
9
+ ZWY0YTZiOTdhYzBkZDZjNmZlOWZhMGQ0NTQ3NDBhYjY2OThkYjM5MDBmZDQ4
10
+ NGM2Y2E3YzNkYTVmOThjZTU2MGRlM2Y0MzA2MjU3NmNmZGZmNDQzMTlmNDJl
11
+ NzllNmE0YTkwMTBmZDFkYmJiMDU5YzBmODAyZjU1MzI1NWUyZmM=
12
12
  data.tar.gz: !binary |-
13
- NTU1ZWU0Y2U5ZDNmNTI5YWEzNmNhYmI1MGRlMjU2NTgzNDdhNmI5OTg4ZDcy
14
- NzgyOWUxN2FiZmUzOTcwZDU4NmFkMWE5MDI4MDA4ZjU1YWJhMmFhMDk5ZTIz
15
- ZTg3NzQ2ZjI5ZjFmNGFkYjkyZjJiMTA2NTVmYTk5MWE3Mjc4MWI=
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. It has the same arguments as `image_tag`, so you can easily integrate this into your current Rails app.
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
+ ![Flower](https://copy.com/siBGDtdvmwyMO2Gz)
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
 
@@ -1,3 +1,3 @@
1
1
  module CenterImageTag
2
- VERSION = "0.0.16"
2
+ VERSION = "0.1.0"
3
3
  end
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.16
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-29 00:00:00.000000000 Z
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.1.10
126
+ rubygems_version: 2.0.7
127
127
  signing_key:
128
128
  specification_version: 4
129
129
  summary: Center your images with pure css.