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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 39eb0c7c962b24b062ec6c7a9217634e88b124db
4
- data.tar.gz: 49af2470ce8b65ecb7aa49fcfe27fbdbc794fd55
3
+ metadata.gz: 78f62fb01bec0e7c067b07f0fd15e8e1f526b4d6
4
+ data.tar.gz: 8e0d19d3f3964254e6ccb51ce904e15863837016
5
5
  SHA512:
6
- metadata.gz: 6ca5a07f8950ed5ebd90a89f891a4cdce1b9fb20739d013a5706dbcd9e3fd0ef2d8126ccc061e0e92961ee2a7d9dfbcae27bfc906c6940724c9626ac00ccf38c
7
- data.tar.gz: 2bfb3024e28ca8fb1351daf6f8c9511aef4fb944b58bea7dcae332e99fbeae1cb273258895f311380713ea3f0e4bc3e205fff6cadcbb5cff00ad14e03c06c491
6
+ metadata.gz: 75931d6ccf84160e20579f09302af8d0a371d6cf9c4a472068bc77f87c02571a2d640fa10bd4f4f38dd75465c214cd1ce21078d8f5552847b0a7575c2a76024a
7
+ data.tar.gz: 0f879d0ced6f48016929028e34824bf6a4a5484ae5c9e7144eb308a8f4356d5cf71d2236910a7f5a3d6f0960dcc7a2b28ac34ec5c6e20a5009e7c073785eb2c0
data/.travis.yml CHANGED
@@ -1,5 +1,4 @@
1
1
  rvm:
2
- - 1.9.3
3
2
  - 2.0.0
4
3
 
5
4
  script: "bundle exec rspec"
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Helmsman
2
2
 
3
- [![Build Status](https://secure.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)
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 for any ruby >= 1.9.3
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?
@@ -1,3 +1,3 @@
1
1
  module Helmsman
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -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
- Helmsman::Helm.new.should be_html_safe
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.2
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-22 00:00:00.000000000 Z
11
+ date: 2013-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack