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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 58702acaa6eeaa618e33f7501f6c8c7b3fef8b1e
4
- data.tar.gz: 9198aa4393859365c718113355149193e902c51d
3
+ metadata.gz: 7880d575529722f1030ae06c06286f6610b7f7f8
4
+ data.tar.gz: bbc81804dbb1836c2b50655fc6c8a80bb59564e9
5
5
  SHA512:
6
- metadata.gz: 5f4299a92cb45950dbf44341a3f4914c1d9283162e15a3fb474c9cf0467340f767b8512ec2901e8bd04465ecea05022f869db01e6da5f472be5945d2440740a1
7
- data.tar.gz: ffdff25c354ce662d1487e709434945985e83978ac8f3bb79b8ba1b427282dc64988ada6fb9582f6c1171a2fe8afa12edab0e703c0181d783f2d9256109f13da
6
+ metadata.gz: 969794e2f204ec1fd1b8050a94bb56c367b84ba16498b950926437f108511f8c4eeefae30c943fb40de98cbf4bb4f8ba82ce499abbdf8ec01285a41fa98f7b76
7
+ data.tar.gz: cbd7b5d52d931d55c3ec7cabd4f196c2f75aa18f151f846eaa34219bd73d1b8109544a3b2a87c5eafcd57752bb2df3c315624f6621a52c42b18e9558ce3b5d3b
@@ -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
@@ -2,7 +2,7 @@ h1 Editing <%= singular_table_name %>
2
2
 
3
3
  == render 'form'
4
4
 
5
- = link_to 'Show', @<%= singular_table_name %>
6
- ' |
7
- = link_to 'Back', <%= index_helper %>_path
5
+ => link_to 'Show', @<%= singular_table_name %>
6
+ '|
7
+ =< link_to 'Back', <%= index_helper %>_path
8
8
 
@@ -6,6 +6,6 @@ p
6
6
  = @<%= singular_table_name %>.<%= attribute.name %>
7
7
  <% end -%>
8
8
 
9
- = link_to 'Edit', edit_<%= singular_table_name %>_path(@<%= singular_table_name %>)
10
- ' |
11
- = link_to 'Back', <%= index_helper %>_path
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.register_preprocessor 'text/slim', RegisterEngine::Transformer
34
- env.register_preprocessor 'text/html', RegisterEngine::Transformer
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?("3")
36
+ args << { silence_deprecation: true } if Sprockets::VERSION.start_with?('3')
40
37
  env.register_engine(*args)
41
38
  end
42
39
  end
@@ -1,5 +1,5 @@
1
1
  module Slim
2
2
  module Rails
3
- VERSION = '3.1.2'
3
+ VERSION = '3.1.3'
4
4
  end
5
5
  end
@@ -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.2
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-03-03 00:00:00.000000000 Z
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.5.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+