role-rails 1.3.1 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.travis.yml +3 -0
- data/README.md +17 -0
- data/lib/role-rails/engine.rb +2 -2
- data/lib/role-rails/version.rb +1 -1
- data/role-rails.gemspec +2 -2
- data/test/dummy/app/views/application/index.html.slim +1 -1
- data/test/integration/slim_family_engines_test.rb +1 -1
- metadata +24 -36
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d2949bb62e516685ba1392e5991bfd9b8100a4cd
|
4
|
+
data.tar.gz: e4e9e5a6618f4df6bf4a4c6f3667fd2114adb09d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: efa09de77aa98f8c7b75a66f79365643df252dd1bec21a7de173823a7e96d00ac319c018f9110ffd1762c22cc1895e0e9a4cf39e293c98abc663a5be04e9b4ac
|
7
|
+
data.tar.gz: 18f86262cc975a1befc7b331838f8161a8dc74b904a0d2a4dd28093ca0ade8a1ed03de07e3daf71283ac18d09a6f03c70f98da3dc738025d0a1e787f98aefcaf
|
data/.travis.yml
ADDED
data/README.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# Role Rails [![Build Status](https://travis-ci.org/razum2um/role-rails.png?branch=master)](https://travis-ci.org/razum2um/role-rails)
|
2
|
+
|
3
|
+
Rails adapter for [Role.js](https://github.com/kossnocorp/role)
|
4
|
+
|
5
|
+
## Usage
|
6
|
+
|
7
|
+
In your views:
|
8
|
+
|
9
|
+
``` haml
|
10
|
+
@behaviour Trololo
|
11
|
+
```
|
12
|
+
|
13
|
+
will output
|
14
|
+
|
15
|
+
```
|
16
|
+
<div role="behaviour">Trololo</div>
|
17
|
+
```
|
data/lib/role-rails/engine.rb
CHANGED
@@ -2,11 +2,11 @@ module RoleRails
|
|
2
2
|
class Engine < ::Rails::Engine
|
3
3
|
initializer "role-rails.register" do |app|
|
4
4
|
if defined?(Slim::Parser)
|
5
|
-
Slim::Parser.default_options[:shortcut].try(:[]=, '@', 'role')
|
5
|
+
Slim::Parser.default_options[:shortcut].try(:[]=, '@', :attr => 'role')
|
6
6
|
end
|
7
7
|
|
8
8
|
if defined?(Slim::Engine)
|
9
|
-
Slim::Engine.default_options[:
|
9
|
+
Slim::Engine.default_options[:merge_attrs].try(:[]=, 'role', ' ')
|
10
10
|
end
|
11
11
|
end
|
12
12
|
end
|
data/lib/role-rails/version.rb
CHANGED
data/role-rails.gemspec
CHANGED
@@ -29,8 +29,8 @@ Gem::Specification.new do |gem|
|
|
29
29
|
|
30
30
|
gem.add_dependency "rails", ">= 3.1.0"
|
31
31
|
|
32
|
-
gem.add_development_dependency "slim", "
|
33
|
-
gem.add_development_dependency "skim", "
|
32
|
+
gem.add_development_dependency "slim", "~> 2.0.0"
|
33
|
+
gem.add_development_dependency "skim", "~> 0.9.0"
|
34
34
|
gem.add_development_dependency "sqlite3"
|
35
35
|
gem.add_development_dependency "shoulda"
|
36
36
|
gem.add_development_dependency "bundler", ">= 1.0.0"
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: role-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
5
|
-
prerelease:
|
4
|
+
version: 1.4.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Sasha Koss
|
@@ -14,97 +13,85 @@ dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rails
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 3.1.0
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 3.1.0
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: slim
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ~>
|
36
32
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
33
|
+
version: 2.0.0
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ~>
|
44
39
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
40
|
+
version: 2.0.0
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: skim
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - ~>
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version: 0.
|
47
|
+
version: 0.9.0
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - ~>
|
60
53
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
54
|
+
version: 0.9.0
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: sqlite3
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- -
|
59
|
+
- - '>='
|
68
60
|
- !ruby/object:Gem::Version
|
69
61
|
version: '0'
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- -
|
66
|
+
- - '>='
|
76
67
|
- !ruby/object:Gem::Version
|
77
68
|
version: '0'
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: shoulda
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
|
-
- -
|
73
|
+
- - '>='
|
84
74
|
- !ruby/object:Gem::Version
|
85
75
|
version: '0'
|
86
76
|
type: :development
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
|
-
- -
|
80
|
+
- - '>='
|
92
81
|
- !ruby/object:Gem::Version
|
93
82
|
version: '0'
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: bundler
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
|
-
- -
|
87
|
+
- - '>='
|
100
88
|
- !ruby/object:Gem::Version
|
101
89
|
version: 1.0.0
|
102
90
|
type: :development
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
|
-
- -
|
94
|
+
- - '>='
|
108
95
|
- !ruby/object:Gem::Version
|
109
96
|
version: 1.0.0
|
110
97
|
description: jQuery plugin to provide easy way to handle DOM elements by role attribute
|
@@ -115,7 +102,9 @@ extra_rdoc_files: []
|
|
115
102
|
files:
|
116
103
|
- .gitignore
|
117
104
|
- .gitmodules
|
105
|
+
- .travis.yml
|
118
106
|
- Gemfile
|
107
|
+
- README.md
|
119
108
|
- Rakefile
|
120
109
|
- lib/role-rails.rb
|
121
110
|
- lib/role-rails/engine.rb
|
@@ -164,27 +153,26 @@ files:
|
|
164
153
|
homepage: https://github.com/kossnocorp/role-rails
|
165
154
|
licenses:
|
166
155
|
- MIT
|
156
|
+
metadata: {}
|
167
157
|
post_install_message:
|
168
158
|
rdoc_options: []
|
169
159
|
require_paths:
|
170
160
|
- lib
|
171
161
|
required_ruby_version: !ruby/object:Gem::Requirement
|
172
|
-
none: false
|
173
162
|
requirements:
|
174
|
-
- -
|
163
|
+
- - '>='
|
175
164
|
- !ruby/object:Gem::Version
|
176
165
|
version: '0'
|
177
166
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
178
|
-
none: false
|
179
167
|
requirements:
|
180
|
-
- -
|
168
|
+
- - '>='
|
181
169
|
- !ruby/object:Gem::Version
|
182
170
|
version: '0'
|
183
171
|
requirements: []
|
184
172
|
rubyforge_project: role-rails
|
185
|
-
rubygems_version:
|
173
|
+
rubygems_version: 2.0.0
|
186
174
|
signing_key:
|
187
|
-
specification_version:
|
175
|
+
specification_version: 4
|
188
176
|
summary: jQuery plugin to provide easy way to handle DOM elements by role attribute
|
189
177
|
test_files:
|
190
178
|
- test/dummy/README.rdoc
|