button_helper 0.0.4 → 0.0.5
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 +8 -8
- data/README.md +19 -2
- data/button_helper.gemspec +2 -2
- data/lib/button_helper.rb +1 -0
- data/lib/button_helper/version.rb +1 -1
- data/{lib/spec → spec}/button_helper_spec.rb +0 -0
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDcxOGY5YWEyMDZiNzk5MTNkNWQ5ZWFjMGM2MzdhNGQzYWFlYTQ0Nw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OThlNGE5M2NmOGU2ODRmM2QyNzQ5ZmFkNzRkMWRiZjVlZTNkYTM3Zg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzFhMjc0MjJhNzdiYWI0NTM3NWZjNmZjZTg0ZDc5ODY1ZTBiYmM3YjExYTIz
|
10
|
+
MmUxMzVhMTY5NjkzMmE3YTJjNWJlYzY2NzhjY2FmMjlmMmEyOTY4OWQzZWQ4
|
11
|
+
ODU3ZGE4MDE3OTliYWMwNTc0ZTgxM2FmMzhhYzA3MmYyZjI3MTk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTYxY2ViOTllNDI0ZWNlY2YzYjdkNTk3MTE2NjUyM2VkMGY5YWVjYmEwYTQw
|
14
|
+
Y2ExMDdiNWE3MzJkZTMyOGMxZTAzNTNkOWViYTQ5YzcyOGZmYzBjYjY4OTg0
|
15
|
+
ZDQyZjg5YmMxYTQ1ZDUzYzcyNjA4N2M3MzUyNjdlMWY0MmEyZjQ=
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# ButtonHelper
|
2
2
|
|
3
|
-
|
3
|
+
Simple Gem to customize your button class
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -18,7 +18,24 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
|
21
|
+
ButtonHelper::btn_class(status)
|
22
|
+
|
23
|
+
Status can be either success/failure/progress
|
24
|
+
|
25
|
+
## Sample Usage
|
26
|
+
|
27
|
+
In the view
|
28
|
+
```ruby
|
29
|
+
<%= button_to 'New User', new_user_path,class: ButtonHelper::btn_class("success") %>
|
30
|
+
```
|
31
|
+
|
32
|
+
In CSS file, style it according to the requirements
|
33
|
+
|
34
|
+
```ruby
|
35
|
+
.progress { color:blue; }
|
36
|
+
.success { color: green; }
|
37
|
+
.failure { color:red; }
|
38
|
+
```
|
22
39
|
|
23
40
|
## Contributing
|
24
41
|
|
data/button_helper.gemspec
CHANGED
@@ -6,11 +6,11 @@ require 'button_helper/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "button_helper"
|
8
8
|
spec.version = ButtonHelper::VERSION
|
9
|
-
spec.authors = ["Nayana-Bhagat"
|
9
|
+
spec.authors = ["Nayana-Bhagat" "Vaibhav Kohli" "Ankita Kanitkar"]
|
10
10
|
spec.email = ["Nayana_Bhagat@external.mckinsey.com"]
|
11
11
|
spec.summary = %q{Helper method to give cuztomised button class}
|
12
12
|
spec.description = %q{Helper method to give cuztomised button class}
|
13
|
-
spec.homepage = ""
|
13
|
+
spec.homepage = "https://github.com/Gemathon-Lapidarists/button_helper"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
data/lib/button_helper.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: button_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nayana-BhagatVaibhav KohliAnkita Kanitkar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -67,8 +67,8 @@ files:
|
|
67
67
|
- button_helper.gemspec
|
68
68
|
- lib/button_helper.rb
|
69
69
|
- lib/button_helper/version.rb
|
70
|
-
-
|
71
|
-
homepage:
|
70
|
+
- spec/button_helper_spec.rb
|
71
|
+
homepage: https://github.com/Gemathon-Lapidarists/button_helper
|
72
72
|
licenses:
|
73
73
|
- MIT
|
74
74
|
metadata: {}
|
@@ -92,4 +92,5 @@ rubygems_version: 2.2.1
|
|
92
92
|
signing_key:
|
93
93
|
specification_version: 4
|
94
94
|
summary: Helper method to give cuztomised button class
|
95
|
-
test_files:
|
95
|
+
test_files:
|
96
|
+
- spec/button_helper_spec.rb
|