twitter-bootstrap-components-rails 0.2.4 → 0.2.5

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: abb9ff7f123936769c71b1110791eb3c2d620c1e
4
- data.tar.gz: 2b12081efb9d1cfe7b75a1e9e4276d3e8878f595
3
+ metadata.gz: 0085bccb28902a03e490cce44f3ea47c3bfc6a8b
4
+ data.tar.gz: f4ce56c35df79ce21c828a39c26c5cdf4cac9f01
5
5
  SHA512:
6
- metadata.gz: a5b35cd6ca234079aa548199325d3f8332281a050fdbc2bd7031f85202e8f136710a745465fa02498540ba52a790d8a5128b25234d7c40c3f4b54150bafcbc22
7
- data.tar.gz: fd765c5ddaa7c56414c5a1af47ec46c37e6711191dad55c99aec0a8d9bf889c115fcfd3a2c3ab233835bcb7e015f648392810ab03799a4a2cf5bd03b78a44e1f
6
+ metadata.gz: f08646c4570d12c21468c35c17b7b65414b74f517eabb7f06c2fb5521eed24e6079d2fbebb7eff0934b3d70c244ec3f9f2b675746d239e1c7d4f3b6830a71501
7
+ data.tar.gz: a56172889aba09b539206e4fae240f2ab239dca3073f41bb61fc52f64ca7f73643b26a218dafbbfc820ab7adb3a5da8819f2bce7b0254410353f3badfbbe2731
@@ -11,12 +11,17 @@ module Twitter
11
11
  context: context,
12
12
  div_media_object_classes: div_media_object_classes,
13
13
  div_container_classes: div_container_classes,
14
+ container_id: container_id,
14
15
  image_options: image_options,
15
16
  link_target: link_target,
16
17
  horizontal_alignment: horizontal_alignment
17
18
  }
18
19
  end
19
20
 
21
+ def container_id
22
+ @options[:container_id]
23
+ end
24
+
20
25
  def div_media_object_classes
21
26
  ["media-#{horizontal_alignment}", "media-#{vertical_alignment}"]
22
27
  end
@@ -12,6 +12,7 @@ module Twitter
12
12
  {
13
13
  block_output: @block_output,
14
14
  context: context,
15
+ container_id: container_id,
15
16
  container_classes: container_classes,
16
17
  image_options: image_options,
17
18
  link_options: link_options
@@ -22,6 +23,10 @@ module Twitter
22
23
  @options[:context]
23
24
  end
24
25
 
26
+ def container_id
27
+ @options[:container_id]
28
+ end
29
+
25
30
  def container_classes
26
31
  @options[:container_classes] || DEFAULT_CONTAINER_CLASSES
27
32
  end
@@ -31,6 +31,11 @@ module Twitter
31
31
  def bootstrap_thumbnail(options = {}, &block)
32
32
  Twitter::Bootstrap::Components::V3::Thumbnail.new(self, options, &block).perform
33
33
  end
34
+
35
+ # add ons
36
+ def bootstrap_form_for(object, *args, &block)
37
+ simple_form_for(object, *args, &block)
38
+ end
34
39
  end
35
40
  end
36
41
  end
@@ -56,7 +56,7 @@ module Twitter
56
56
  end
57
57
 
58
58
  def bootstrap_input_group(options)
59
- ITwitter::Bootstrap::Components::V4::InputGroup.new(options).perform
59
+ Twitter::Bootstrap::Components::V4::InputGroup.new(options).perform
60
60
  end
61
61
 
62
62
  def bootstrap_jumbotron(options)
@@ -1,4 +1,4 @@
1
- %div{ class: div_container_classes }
1
+ %div{ class: div_container_classes, id: container_id }
2
2
  - if horizontal_alignment == :left
3
3
  %div{ class: div_media_object_classes.join(' ') }
4
4
  -if link_target.present?
@@ -1,5 +1,5 @@
1
1
  - if block_output
2
- %div{ class: container_classes }
2
+ %div{ class: container_classes, id: container_id }
3
3
  .thumbnail
4
4
  - if link_options[:href].present?
5
5
  %a{ link_options }
@@ -9,7 +9,7 @@
9
9
  .caption
10
10
  = block_output
11
11
  - else
12
- %div{ class: container_classes }
12
+ %div{ class: container_classes, id: container_id }
13
13
  - if link_options[:href].present?
14
14
  %a.thumbnail{ link_options }
15
15
  %img{ image_options }/
@@ -2,7 +2,7 @@ module Twitter
2
2
  module Bootstrap
3
3
  module Components
4
4
  module Rails
5
- VERSION = '0.2.4'
5
+ VERSION = '0.2.5'
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitter-bootstrap-components-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-23 00:00:00.000000000 Z
11
+ date: 2017-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -211,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
211
211
  version: '0'
212
212
  requirements: []
213
213
  rubyforge_project:
214
- rubygems_version: 2.6.11
214
+ rubygems_version: 2.5.1
215
215
  signing_key:
216
216
  specification_version: 4
217
217
  summary: Twitter Bootstrap Components for Rails.