helmsman 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -1
- data/README.md +2 -2
- data/lib/helmsman/helm.rb +2 -2
- data/lib/helmsman/version.rb +1 -1
- data/spec/lib/helmsman/helm_spec.rb +11 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78f62fb01bec0e7c067b07f0fd15e8e1f526b4d6
|
4
|
+
data.tar.gz: 8e0d19d3f3964254e6ccb51ce904e15863837016
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75931d6ccf84160e20579f09302af8d0a371d6cf9c4a472068bc77f87c02571a2d640fa10bd4f4f38dd75465c214cd1ce21078d8f5552847b0a7575c2a76024a
|
7
|
+
data.tar.gz: 0f879d0ced6f48016929028e34824bf6a4a5484ae5c9e7144eb308a8f4356d5cf71d2236910a7f5a3d6f0960dcc7a2b28ac34ec5c6e20a5009e7c073785eb2c0
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Helmsman
|
2
2
|
|
3
|
-
[![Build Status](https://
|
3
|
+
[![Build Status](https://travis-ci.org/xijo/helmsman.png?branch=master)](https://travis-ci.org/xijo/helmsman) [![Gem Version](https://badge.fury.io/rb/helmsman.png)](http://badge.fury.io/rb/helmsman) [![Code Climate](https://codeclimate.com/repos/523f6d34c7f3a34a75017842/badges/af7056196f756e73e540/gpa.png)](https://codeclimate.com/repos/523f6d34c7f3a34a75017842/feed)
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -133,7 +133,7 @@ Helmsman.disabled_css_class = 'disabled-menu-item'
|
|
133
133
|
|
134
134
|
## Compatibility
|
135
135
|
|
136
|
-
Helmsman is working for rails 3 & 4 and
|
136
|
+
Helmsman is working for rails 3 & 4 and needs ruby 2
|
137
137
|
|
138
138
|
## Contributing
|
139
139
|
|
data/lib/helmsman/helm.rb
CHANGED
@@ -38,11 +38,11 @@ module Helmsman
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def name
|
41
|
-
I18n.translate(i18n_key)
|
41
|
+
I18n.translate(i18n_key).html_safe
|
42
42
|
end
|
43
43
|
|
44
44
|
def disabled_title
|
45
|
-
I18n.translate("#{i18n_key}_disabled")
|
45
|
+
I18n.translate("#{i18n_key}_disabled").html_safe
|
46
46
|
end
|
47
47
|
|
48
48
|
def disabled?
|
data/lib/helmsman/version.rb
CHANGED
@@ -1,7 +1,17 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe Helmsman::Helm do
|
4
|
+
let(:helm) { Helmsman::Helm.new }
|
5
|
+
|
4
6
|
it 'is always html_safe' do
|
5
|
-
|
7
|
+
helm.should be_html_safe
|
8
|
+
end
|
9
|
+
|
10
|
+
context 'translations' do
|
11
|
+
it 'treats translations as html safe' do
|
12
|
+
helm.name.should be_html_safe
|
13
|
+
helm.disabled_title.should be_html_safe
|
14
|
+
end
|
15
|
+
|
6
16
|
end
|
7
17
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: helmsman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Johannes Opper
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|