slim-rails 3.1.2 → 3.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +30 -0
- data/lib/generators/slim/scaffold/templates/edit.html.slim +3 -3
- data/lib/generators/slim/scaffold/templates/show.html.slim +3 -3
- data/lib/slim-rails/register_engine.rb +4 -7
- data/lib/slim-rails/version.rb +1 -1
- data/test/lib/slim-rails_assets_test.rb +1 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7880d575529722f1030ae06c06286f6610b7f7f8
|
4
|
+
data.tar.gz: bbc81804dbb1836c2b50655fc6c8a80bb59564e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 969794e2f204ec1fd1b8050a94bb56c367b84ba16498b950926437f108511f8c4eeefae30c943fb40de98cbf4bb4f8ba82ce499abbdf8ec01285a41fa98f7b76
|
7
|
+
data.tar.gz: cbd7b5d52d931d55c3ec7cabd4f196c2f75aa18f151f846eaa34219bd73d1b8109544a3b2a87c5eafcd57752bb2df3c315624f6621a52c42b18e9558ce3b5d3b
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
## 3.1.3 (April 3, 2017)
|
2
|
+
|
3
|
+
* Improved compatibility with Sprockets 4
|
4
|
+
|
5
|
+
|
6
|
+
## 3.1.2 (February 3, 2017)
|
7
|
+
|
8
|
+
* Tested compatibility with Ruby 2.4
|
9
|
+
* Updated CI specs
|
10
|
+
|
11
|
+
|
12
|
+
## 3.1.1 (August 29, 2016)
|
13
|
+
|
14
|
+
* Initial support for Sprockets 4
|
15
|
+
|
16
|
+
|
17
|
+
## 3.1.0 (June 7, 2016)
|
18
|
+
|
19
|
+
* Support for Rails 5
|
20
|
+
* MailerGenerator
|
21
|
+
|
22
|
+
|
23
|
+
## 3.0.2 (May 21, 2016)
|
24
|
+
|
25
|
+
* Code cleanup and refactoring
|
26
|
+
|
27
|
+
|
28
|
+
## 3.0.1 (December 26, 2014)
|
29
|
+
|
30
|
+
* Support for Rails 4.2
|
@@ -6,6 +6,6 @@ p
|
|
6
6
|
= @<%= singular_table_name %>.<%= attribute.name %>
|
7
7
|
<% end -%>
|
8
8
|
|
9
|
-
|
10
|
-
'
|
11
|
-
|
9
|
+
=> link_to 'Edit', edit_<%= singular_table_name %>_path(@<%= singular_table_name %>)
|
10
|
+
'|
|
11
|
+
=< link_to 'Back', <%= index_helper %>_path
|
@@ -28,15 +28,12 @@ module Slim
|
|
28
28
|
return unless config.respond_to?(:assets)
|
29
29
|
|
30
30
|
config.assets.configure do |env|
|
31
|
-
if env.respond_to?(:register_transformer)
|
31
|
+
if env.respond_to?(:register_transformer) && Sprockets::VERSION.to_i > 3
|
32
32
|
env.register_mime_type 'text/slim', extensions: ['.slim', '.slim.html']#, charset: :html
|
33
|
-
env.
|
34
|
-
|
35
|
-
end
|
36
|
-
|
37
|
-
if env.respond_to?(:register_engine)
|
33
|
+
env.register_transformer 'text/slim', 'text/html', RegisterEngine::Transformer
|
34
|
+
elsif env.respond_to?(:register_engine)
|
38
35
|
args = ['.slim', Slim::Template]
|
39
|
-
args << { silence_deprecation: true } if Sprockets::VERSION.start_with?(
|
36
|
+
args << { silence_deprecation: true } if Sprockets::VERSION.start_with?('3')
|
40
37
|
env.register_engine(*args)
|
41
38
|
end
|
42
39
|
end
|
data/lib/slim-rails/version.rb
CHANGED
@@ -29,5 +29,6 @@ class Slim::Rails::AssetsTest < ActiveSupport::TestCase
|
|
29
29
|
test 'compile slim view' do
|
30
30
|
assert_equal 'ok', with_app(false, 'print DummyApp.assets || "ok"')
|
31
31
|
assert_equal '<div class="test">hi</div>', with_app(true, 'print DummyApp.assets["test.slim"].to_s')
|
32
|
+
assert_equal '<div class="test">hi</div>', with_app(true, 'print DummyApp.assets["test", accept: "text/html"].to_s')
|
32
33
|
end
|
33
34
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slim-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leonardo Almeida
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -146,6 +146,7 @@ files:
|
|
146
146
|
- ".gitignore"
|
147
147
|
- ".travis.yml"
|
148
148
|
- Appraisals
|
149
|
+
- CHANGELOG.md
|
149
150
|
- Gemfile
|
150
151
|
- LICENSE
|
151
152
|
- README.md
|
@@ -199,7 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
199
200
|
version: '0'
|
200
201
|
requirements: []
|
201
202
|
rubyforge_project:
|
202
|
-
rubygems_version: 2.
|
203
|
+
rubygems_version: 2.6.13
|
203
204
|
signing_key:
|
204
205
|
specification_version: 4
|
205
206
|
summary: Slim templates generator for Rails 3+
|