evil-front-rails 0.1.0 → 0.2.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 555f99e3d7eeb5ed57e9fbf8c8d20456274a3df2
|
4
|
+
data.tar.gz: 9bd3c211951f81d030c47a2132c3524d99a80b68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a51684cb2fa22e87307734cb6d6b0336011fea2c80a1e7338856dacc02b03601655b5957c80bf298444c978aa140ec02209d863a06b669f1e19285498bfe9f16
|
7
|
+
data.tar.gz: 96a6ef8dc96d43ff223f0db89483df48dd7e78824445aa76496ae28942a8a54ae3c380a18db877840aa6df92599f13f30cc56250faa8b0e2d717953845054629
|
data/ChangeLog.md
CHANGED
data/evil-front-rails.gemspec
CHANGED
@@ -17,7 +17,8 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.extra_rdoc_files = ['LICENSE']
|
18
18
|
s.require_path = 'lib'
|
19
19
|
|
20
|
-
|
20
|
+
min = EvilFront::Rails::VERSION.split('.')[0..1].concat(['0']).join('.')
|
21
|
+
s.add_runtime_dependency 'evil-front-all', "~> #{min}"
|
21
22
|
|
22
23
|
s.add_dependency 'rails', '>= 3'
|
23
24
|
s.add_dependency 'sass-rails', '>= 3.2.6'
|
@@ -0,0 +1 @@
|
|
1
|
+
I18n.enforce_available_locales = false
|
data/spec/helpers_spec.rb
CHANGED
@@ -26,6 +26,26 @@ describe HelpersController, type: :controller do
|
|
26
26
|
|
27
27
|
end
|
28
28
|
|
29
|
+
describe 'typograph_by_locale' do
|
30
|
+
after do
|
31
|
+
I18n.locale = :en
|
32
|
+
end
|
33
|
+
|
34
|
+
it 'accepts blocks' do
|
35
|
+
get :typograph_by_locale
|
36
|
+
response.should be_success
|
37
|
+
response.body.should == '“a”'
|
38
|
+
end
|
39
|
+
|
40
|
+
it 'returns origin blocks on unknown locale' do
|
41
|
+
I18n.locale = :fr
|
42
|
+
get :typograph_by_locale
|
43
|
+
response.should be_success
|
44
|
+
response.body.should == '"a"'
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
48
|
+
|
29
49
|
describe 'head_tag' do
|
30
50
|
before do
|
31
51
|
@env = Rails.env
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
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.2.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-01-
|
11
|
+
date: 2014-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: evil-front-all
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.2.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.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -103,6 +103,7 @@ files:
|
|
103
103
|
- spec/app/app/views/helpers/russian_typograph.slim
|
104
104
|
- spec/app/app/views/helpers/standard_assets.slim
|
105
105
|
- spec/app/app/views/helpers/tel.slim
|
106
|
+
- spec/app/app/views/helpers/typograph_by_locale.slim
|
106
107
|
- spec/app/app/views/helpers/unstat.slim
|
107
108
|
- spec/app/app/views/layouts/_statistics.erb
|
108
109
|
- spec/app/app/views/layouts/head.slim
|
@@ -111,6 +112,7 @@ files:
|
|
111
112
|
- spec/app/config/boot.rb
|
112
113
|
- spec/app/config/environment.rb
|
113
114
|
- spec/app/config/environments/test.rb
|
115
|
+
- spec/app/config/initializers/i18n.rb
|
114
116
|
- spec/app/config/initializers/secret_token.rb
|
115
117
|
- spec/app/config/routes.rb
|
116
118
|
- spec/helpers_spec.rb
|