bootstrap-view-helpers 0.0.1 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md ADDED
@@ -0,0 +1,66 @@
1
+ # bootstrap-view-helpers
2
+
3
+ This gem provides helper methods for various Bootstrap components.
4
+
5
+ Includes support for:
6
+
7
+ * buttons
8
+ * `<button>`
9
+ * `<a>` styled as button
10
+ * labels and badges
11
+ * dropdowns
12
+ * nav dropdowns
13
+ * button dropdowns
14
+ * split-button dropdowns
15
+ * accordion
16
+
17
+ ## Installation
18
+
19
+ Add it to your Gemfile:
20
+
21
+ ```ruby
22
+ gem "bootstrap-view-helpers"
23
+ ```
24
+
25
+ Run bundler:
26
+
27
+ ```sh
28
+ bundle install
29
+ ```
30
+
31
+ ## Examples
32
+
33
+ ### Badges
34
+
35
+ Supports the Bootstrap badge types:
36
+ * default
37
+ * success
38
+ * warning
39
+ * important
40
+ * info
41
+ * inverse
42
+
43
+ ```erb
44
+ <%= badge('Default') %>
45
+ <%= badge('Info', :info) %>
46
+ <%= badge('Warning', :warning, id: 'warn-id', class: 'more-class', my_key: 'my_value') %>
47
+ ```
48
+
49
+ ### Labels (Stamps)
50
+
51
+ Because `label` is a Rails helper method we use `stamp` -- because Elle thinks it looks like a stamp.
52
+
53
+ Supports the Bootstrap label types:
54
+ * default
55
+ * success
56
+ * warning
57
+ * important
58
+ * info
59
+ * inverse
60
+
61
+ ```erb
62
+ <%= stamp('Default') %>
63
+ <%= stamp('Info', :info) %>
64
+ <%= stamp('Warning', :warning, id: 'warn-id', class: 'more-class', my_key: 'my_value') %>
65
+ ```
66
+
@@ -0,0 +1,5 @@
1
+ class BootstrapViewHelpersController < ApplicationController
2
+
3
+ def index
4
+ end
5
+ end
@@ -0,0 +1,3 @@
1
+ <h1>Examples</h1>
2
+
3
+ <%= badge('Default') %>
data/config/routes.rb CHANGED
@@ -1,2 +1,4 @@
1
1
  Rails.application.routes.draw do
2
+
3
+ match 'bootstrap_view_helpers' => 'bootstrap_view_helpers#index', :as => :bootstrap_view_helpers
2
4
  end
@@ -1,3 +1,3 @@
1
1
  module BootstrapViewHelpers
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-view-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -114,6 +114,7 @@ executables: []
114
114
  extensions: []
115
115
  extra_rdoc_files: []
116
116
  files:
117
+ - app/controllers/bootstrap_view_helpers_controller.rb
117
118
  - app/helpers/bootstrap/accordion_helper.rb
118
119
  - app/helpers/bootstrap/badge_helper.rb
119
120
  - app/helpers/bootstrap/button_helper.rb
@@ -121,6 +122,7 @@ files:
121
122
  - app/helpers/bootstrap/dropdown_helper.rb
122
123
  - app/helpers/bootstrap/form_helper.rb
123
124
  - app/helpers/bootstrap/stamp_helper.rb
125
+ - app/views/bootstrap_view_helpers/index.html.erb
124
126
  - config/routes.rb
125
127
  - lib/bootstrap-view-helpers/engine.rb
126
128
  - lib/bootstrap-view-helpers/version.rb
@@ -128,7 +130,7 @@ files:
128
130
  - lib/tasks/bootstrap-view-helpers_tasks.rake
129
131
  - MIT-LICENSE
130
132
  - Rakefile
131
- - README.rdoc
133
+ - README.md
132
134
  homepage: https://github.com/stevedowney/bootstrap_view_helpers
133
135
  licenses: []
134
136
  post_install_message:
@@ -141,18 +143,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
141
143
  - - ! '>='
142
144
  - !ruby/object:Gem::Version
143
145
  version: '0'
144
- segments:
145
- - 0
146
- hash: -3576308479683783950
147
146
  required_rubygems_version: !ruby/object:Gem::Requirement
148
147
  none: false
149
148
  requirements:
150
149
  - - ! '>='
151
150
  - !ruby/object:Gem::Version
152
151
  version: '0'
153
- segments:
154
- - 0
155
- hash: -3576308479683783950
156
152
  requirements: []
157
153
  rubyforge_project:
158
154
  rubygems_version: 1.8.25
data/README.rdoc DELETED
@@ -1,3 +0,0 @@
1
- = BootstrapViewHelpers
2
-
3
- This project rocks and uses MIT-LICENSE.