button_helper 0.0.4 → 0.0.5

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
- MTI3ZjhhMTFkYTU0OWU1NDgyODg2NjE2YTJmYjQ2NTdiYjNhYzZkNQ==
4
+ MDcxOGY5YWEyMDZiNzk5MTNkNWQ5ZWFjMGM2MzdhNGQzYWFlYTQ0Nw==
5
5
  data.tar.gz: !binary |-
6
- Y2NjMjEzYzFiZDk1NWUxZTVjNjU4ZTJlM2JmYzg4OGRmZWQ4MTA4ZA==
6
+ OThlNGE5M2NmOGU2ODRmM2QyNzQ5ZmFkNzRkMWRiZjVlZTNkYTM3Zg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjUyYmRkZjViMWI0OGM2Mjc2NTE4ZjEyNDRjYmZkYzQ2NDQ3NzFhODQzNTk5
10
- YWQ2MWMxMmI2YjE0ZWFiMzIxNjNkNGZlMzFmMjc4NmI3ODE0YjUxMjk2Y2Jh
11
- M2JhZTYxODY5NWQyNTIxYzU3NGJiYTc4MjhiMWYwYzZhYzczZWI=
9
+ YzFhMjc0MjJhNzdiYWI0NTM3NWZjNmZjZTg0ZDc5ODY1ZTBiYmM3YjExYTIz
10
+ MmUxMzVhMTY5NjkzMmE3YTJjNWJlYzY2NzhjY2FmMjlmMmEyOTY4OWQzZWQ4
11
+ ODU3ZGE4MDE3OTliYWMwNTc0ZTgxM2FmMzhhYzA3MmYyZjI3MTk=
12
12
  data.tar.gz: !binary |-
13
- NTIzN2VlZmUzYmI4NDQ2OTk0YmY0NGVlOTQ3MTk5MTA2M2NiOWQ2NGI0N2Ji
14
- NTI2MmE1OWY5OWJjYTY3ZjcyZjFlMTNiNTc2MGZhYmExYWIwZmNhOGEzYmJm
15
- OTI5ZGVhZTY2YjQwZjFhNWU4MmI4YWM4YmQ3ZTllNzAyMTQ1MmU=
13
+ YTYxY2ViOTllNDI0ZWNlY2YzYjdkNTk3MTE2NjUyM2VkMGY5YWVjYmEwYTQw
14
+ Y2ExMDdiNWE3MzJkZTMyOGMxZTAzNTNkOWViYTQ5YzcyOGZmYzBjYjY4OTg0
15
+ ZDQyZjg5YmMxYTQ1ZDUzYzcyNjA4N2M3MzUyNjdlMWY0MmEyZjQ=
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ButtonHelper
2
2
 
3
- TODO: Write a gem description
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
- TODO: Write usage instructions here
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
 
@@ -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" "Vaibhav Kohli" "Ankita Kanitkar"]
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
@@ -13,3 +13,4 @@ module ButtonHelper
13
13
  end
14
14
  end
15
15
  end
16
+
@@ -1,3 +1,3 @@
1
1
  module ButtonHelper
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
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
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-21 00:00:00.000000000 Z
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
- - lib/spec/button_helper_spec.rb
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