rails_utils 2.1.2 → 2.1.3

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: eef0456962c7b8ccf5acdfa82a8f87e863f17690
4
- data.tar.gz: 77d336169a64936db9f3a3c11e405deef85b1db6
3
+ metadata.gz: 138d847b463099d2a1aa8a771a4bdca9699b7913
4
+ data.tar.gz: 88090dafe8f23a97719e89c37fb0148628e096b5
5
5
  SHA512:
6
- metadata.gz: 9d82376ceadca4cd5e61b1f33ea9f249c00e349aa290a3a6b28826ff8f38610c3888b411c085ff18b6f2ca8491418ff7c29037a3a42a8e7a9303e3cb4f2e914c
7
- data.tar.gz: 9a2eff7163a9146018b7b3030d90c72535fd33c201debf52692ad29655950acd8bb94f89fa2dd166151edb02e3b05ede735b836a8538b89dfa0003036f5a973b
6
+ metadata.gz: 12f21da5188d42057d358e5af5d4943334977ee184396e43aa0bb282f4cc3b2efc13189f29ce20408ca474a865fae4ff3df5d0617e0f348c49dea5838a32b9bb
7
+ data.tar.gz: 72b536c480057b085b86dd3b52ae02aa3e4913c900e73337593d09d43fca2a95a8734c3f12b4d28603065b43399cd6a835b4a75ae4f303a5ecec9d7640607e50
data/README.markdown CHANGED
@@ -1,7 +1,15 @@
1
1
  # Rails Utils
2
2
 
3
+ [![Build Status](https://travis-ci.org/winston/rails_utils.png?branch=master)](https://travis-ci.org/winston/rails_utils)
4
+
3
5
  Rails helpers based on opinionated project practices. Currently useful for structuring CSS and JS.
4
6
 
7
+
8
+ ## Installation
9
+
10
+ gem install 'rails_utils'
11
+
12
+
5
13
  ## #`page_class`
6
14
 
7
15
  This helper method returns controller name and action name as a single string value,
@@ -78,20 +86,21 @@ Suppose there's a `flash[:success]`, you should see:
78
86
  <p>flash is success</p>
79
87
  </div>
80
88
 
81
- ## Installation
82
89
 
83
- gem install rails_utils
90
+ ## Contributing
84
91
 
85
- ## Testing
92
+ Pull Requests are very welcomed (with specs, of course)!
86
93
 
87
94
  Minitest-ed. To run all tests, just run `rake` or `rake test`.
88
95
 
96
+
89
97
  ## Author
90
98
 
91
- Rails Utils is maintained by [Winston Teo](mailto:winstonyw+googlevisualr@gmail.com).
99
+ Rails Utils is maintained by [Winston Teo](mailto:winstonyw+rails_utils@gmail.com).
100
+
101
+ [You should follow Winston on Twitter](http://www.twitter.com/winstonyw), or find out more on [WinstonYW](http://www.winstonyw.com) and [LinkedIn](http://sg.linkedin.com/in/winstonyw).
92
102
 
93
- Who is Winston Teo? [You should follow Winston on Twitter](http://www.twitter.com/winstonyw), or find out more on [WinstonYW](http://www.winstonyw.com) and [LinkedIn](http://sg.linkedin.com/in/winstonyw).
94
103
 
95
104
  ## License
96
105
 
97
- Copyright © 2012 Winston Teo Yong Wei. Free software, released under the MIT license.
106
+ Copyright © 2013 Winston Teo Yong Wei. Free software, released under the MIT license.
data/lib/rails_utils.rb CHANGED
@@ -33,12 +33,12 @@ module RailsUtils
33
33
  html <<
34
34
  content_tag(:div, class: "#{flash_class(key)} fade in") do
35
35
  content = ""
36
- content << content_tag(:button, "x", type: "button", class: "close", "data-dismiss-alert" => "alert")
37
- content << content_tag(:p, message)
38
- content.html_safe
36
+ content << content_tag(:button, "x", type: "button", class: "close", "data-dismiss" => "alert")
37
+ content << message
38
+ content
39
39
  end
40
40
  end
41
- html
41
+ html.html_safe
42
42
  end
43
43
 
44
44
  private
@@ -1,3 +1,3 @@
1
1
  module RailsUtils
2
- VERSION = "2.1.2"
2
+ VERSION = "2.1.3"
3
3
  end
@@ -127,7 +127,7 @@ describe "RailsUtils::ActionViewExtensions" do
127
127
 
128
128
  it "can be dismissed" do
129
129
  set_flash :alert , "not important"
130
- view.flash_messages.must_match /data-dismiss-alert=.*alert/
130
+ view.flash_messages.must_match /data-dismiss=.*alert/
131
131
  end
132
132
  end
133
133
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Winston Teo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-23 00:00:00.000000000 Z
11
+ date: 2013-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  version: '0'
130
130
  requirements: []
131
131
  rubyforge_project:
132
- rubygems_version: 2.0.3
132
+ rubygems_version: 2.0.7
133
133
  signing_key:
134
134
  specification_version: 4
135
135
  summary: Rails helpers based on opinionated project practices.