bootstrap_builders 0.0.11 → 0.0.12

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: 3a0826b4f8fcc18607bb51d8737da9f2e4d9067c
4
- data.tar.gz: 6647d3933ffcbadc667d2ac7e8a018eac3046dd7
3
+ metadata.gz: 69aba106e86b2b88ad340319aa6dd7253c080db3
4
+ data.tar.gz: 26f9e557f7eb1db22dc67db0246b6a6521cd2014
5
5
  SHA512:
6
- metadata.gz: bc159ed82574a9eb51cfe5033df325857f86a4ed0f0cc5453efaa5e50058d38f2ea7daf6f7b23f1faa63148a69bef398baef09b0208ed4be904bb50f48b33f28
7
- data.tar.gz: caa58021299bc802189b91e3d9a31eb645fc19d7c2635032ff14452576b9bd9c0a1f2ccb8c97d2e21d2775f7a7cb6593b3920beb4e9a402a3e2b4a33aba17928
6
+ metadata.gz: 68771a2f960b0b51f63a07a51df5ef83caa935414ff08fe7a01ce2fa6cd71cdcf3af7dc75e81f916ac4011f354e26a8fdce9ab3095cf83a63a3e749b68d35740
7
+ data.tar.gz: aa069a5b2332d29bd3b0b1a018374e13708388a8177f37af3db0990fbf9d86b5a91fba41afebd13b6b0d6bea47f5163260a16a6bb11a577a0f6eb97d73293d14
data/README.md CHANGED
@@ -20,7 +20,9 @@ Then add to your `application.js`:
20
20
  ```
21
21
 
22
22
  Then add to your `application.css`:
23
+ ```scss
23
24
  //= require bootstrap_builders
25
+ ```
24
26
 
25
27
  ## Usage
26
28
 
@@ -86,9 +88,9 @@ The classes "bb-table" and "table" are always added.
86
88
 
87
89
  ```haml
88
90
  = bb_new_btn url: [:admin, User]
89
- = bb_edit_btn url: [:admin, user], mini: true
91
+ = bb_edit_btn url: [:admin, user], :mini
90
92
  = bb_destroy_btn url: [:admin, user], label: false
91
- = bb_btn "/url", "My label", :block, :lg, confirm: true
93
+ = bb_btn "/url", "My label", :block, :lg, :confirm, :disabled
92
94
  ```
93
95
 
94
96
  ### Tabs
@@ -106,6 +108,12 @@ The classes "bb-table" and "table" are always added.
106
108
  = tabs.tab "Load on demand", ajax_url: some_path
107
109
  ```
108
110
 
111
+ ### Flash
112
+
113
+ ```haml
114
+ = bb_flash
115
+ ```
116
+
109
117
  ## Contributing to bootstrap_builders
110
118
 
111
119
  * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
@@ -4,7 +4,7 @@ class BootstrapBuilders::Button
4
4
  def self.parse_url_args(args)
5
5
  args_parser = BootstrapBuilders::ArgumentsParser.new(
6
6
  arguments: args,
7
- short_true_arguments: [:block, :confirm, :responsive, :lg, :md, :mini, :sm, :xs]
7
+ short_true_arguments: [:block, :confirm, :disabled, :responsive, :lg, :md, :mini, :sm, :xs]
8
8
  )
9
9
  args = args_parser.arguments
10
10
 
@@ -68,6 +68,8 @@ class BootstrapBuilders::Button
68
68
  title: @args[:title]
69
69
  }
70
70
 
71
+ link_args[:disabled] = true if @args[:disabled]
72
+
71
73
  @context.link_to(@url, link_args) do
72
74
  html = ""
73
75
  html << @context.content_tag(:i, nil, class: ["fa", "fa-#{@icon}"]) if @icon
@@ -1,3 +1,3 @@
1
1
  module BootstrapBuilders
2
- VERSION = "0.0.11".freeze
2
+ VERSION = "0.0.12".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap_builders
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - kaspernj
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-23 00:00:00.000000000 Z
11
+ date: 2016-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -276,7 +276,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
276
276
  version: '0'
277
277
  requirements: []
278
278
  rubyforge_project:
279
- rubygems_version: 2.2.2
279
+ rubygems_version: 2.4.0
280
280
  signing_key:
281
281
  specification_version: 4
282
282
  summary: A library to generate Bootstrap HTML for Rails.