evil-front-rails 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ChangeLog.md +4 -0
- data/lib/evil-front/rails/version.rb +1 -1
- data/spec/app/app/views/helpers/auto_flying_quotes.slim +2 -0
- data/spec/helpers_spec.rb +13 -3
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31da7900b2c6e95fa9ef602048933a4a95eb2add
|
4
|
+
data.tar.gz: af4cc849cdc5307641afe0774cc8d77e980fb3a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abfe0512ad41567dfb8acdda7a337a3af0bc95a5829473970d087e5484eb6bc381ba294281c5b61dd90d64429b94ce0f561be6e30ec36d664f38f7797136d582
|
7
|
+
data.tar.gz: 940b40373ace1748588ce7b7888c6bb4c7701f48bbe287feee507afe90a8943f2db0171a8081cc4b4cef910a5a5f811cf5763822db6dfbb524e8001d8f0dc871
|
data/ChangeLog.md
CHANGED
data/spec/helpers_spec.rb
CHANGED
@@ -16,12 +16,22 @@ describe HelpersController, type: :controller do
|
|
16
16
|
|
17
17
|
end
|
18
18
|
|
19
|
+
describe 'auto_flying_quotes' do
|
20
|
+
|
21
|
+
it 'accepts blocks' do
|
22
|
+
get :auto_flying_quotes
|
23
|
+
response.should be_success
|
24
|
+
response.body.should == '<b><span class="quotes">«a»</span></b>'
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
|
19
29
|
describe 'russian_typograph' do
|
20
30
|
|
21
31
|
it 'accepts blocks' do
|
22
32
|
get :russian_typograph
|
23
33
|
response.should be_success
|
24
|
-
response.body.should == '<b
|
34
|
+
response.body.should == '<b>«<ф>»</b>'
|
25
35
|
end
|
26
36
|
|
27
37
|
end
|
@@ -100,8 +110,8 @@ describe HelpersController, type: :controller do
|
|
100
110
|
response.body.should ==
|
101
111
|
'<link href="/stylesheets/application.css" ' +
|
102
112
|
'media="all" rel="stylesheet" />' +
|
103
|
-
'<script src="//ajax.googleapis.com/ajax/libs/' +
|
104
|
-
|
113
|
+
'<script src="//ajax.googleapis.com/ajax/libs/jquery/' +
|
114
|
+
"#{ JqueryCdn::VERSION }/jquery.min.js\"></script>" +
|
105
115
|
"<script>window.jQuery || " +
|
106
116
|
"document.write(unescape('%3Cscript " +
|
107
117
|
"src=\"/assets/jquery.js\">%3C/script>'))</script>" +
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evil-front-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrey Sitnik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: evil-front-all
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.3.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.3.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -97,6 +97,7 @@ files:
|
|
97
97
|
- spec/app/.gitignore
|
98
98
|
- spec/app/app/controllers/application_controller.rb
|
99
99
|
- spec/app/app/controllers/helpers_controller.rb
|
100
|
+
- spec/app/app/views/helpers/auto_flying_quotes.slim
|
100
101
|
- spec/app/app/views/helpers/flying_quotes.slim
|
101
102
|
- spec/app/app/views/helpers/head.slim
|
102
103
|
- spec/app/app/views/helpers/library.slim
|