cells-slim 0.0.4 → 0.0.5

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: 58aff2d0b7ba266f4645a63b528f6a120bb07efc
4
- data.tar.gz: f9a43e882d97fe7189233aea4ca47315ea1e48de
3
+ metadata.gz: 38cd125a9853ca57cd03bbc8eeaa908eba711c63
4
+ data.tar.gz: 60c330a0cc1b48b92a54fcfae6f0f3eb5ae95d46
5
5
  SHA512:
6
- metadata.gz: db12f7e2ecf8decf77fba4b51ef5824fb39eadb0e8db27e3b2d6a8c5931c1b31f6f1c7d9d8d711b1f808a2e1050fadb5fc1aade66af66937da8d09ea22e523df
7
- data.tar.gz: 311c907fd62798773b154b1626beee6b5f729e5f26e3d0cf26beb0fb4b4603527aa6837916e247ff283cfbae5b77d853fbe08d48c571dd4d1fe8bd00e0bc8368
6
+ metadata.gz: 7cc7a327698372e4459b39673b3486866ee8e102cfce030081496ffc43cff185132a01da7fd905106c4d99161b132a573c8cf1d6070dc36a59dcf4095f53bba3
7
+ data.tar.gz: e43274ea550c28b0e110588cbb18d4c5369abaf15ef1ea5618aa4df1013d7e8d84075592188b773f6fa412c5cbc6d24f87f65e5bbd4ce45e7ba9eda7460c1764
@@ -1,5 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - 2.2
3
4
  - 2.1
4
5
  - 2.0.0
5
6
 
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.0.5
2
+
3
+ * Restrict to Cells < 5.0.0.
4
+
1
5
  # 0.0.4
2
6
 
3
7
  * Make Rails optional. This allows using cells-slim in other frameworks like [Sinatra](https://github.com/apotonick/gemgem-sinatra).
@@ -10,4 +14,4 @@
10
14
 
11
15
  # 0.0.2
12
16
 
13
- * Updates for Cells 4: Fixes output_buffer.
17
+ * Updates for Cells 4: Fixes output_buffer.
data/Gemfile CHANGED
@@ -8,4 +8,4 @@ gem "railties", "~> 4.2.0"
8
8
  gem "activemodel"
9
9
  gem "minitest", "~> 5.2"
10
10
 
11
- gem 'cells', path: "../cells"
11
+ # gem 'cells', path: "../cells"
@@ -1,25 +1,24 @@
1
- lib = File.expand_path('../lib', __FILE__)
1
+ lib = File.expand_path("../lib", __FILE__)
2
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
- require 'cell/slim/version'
5
-
4
+ require "cell/slim/version"
6
5
 
7
6
  Gem::Specification.new do |spec|
8
- spec.name = 'cells-slim'
7
+ spec.name = "cells-slim"
9
8
  spec.version = Cell::Slim::VERSION
10
- spec.authors = ['Abdelkader Boudih', 'Nick Sutterer']
9
+ spec.authors = ["Abdelkader Boudih", "Nick Sutterer"]
11
10
  spec.email = %w(terminale@gmail.com apotonick@gmail.com)
12
- spec.summary = 'Slim integration for Cells.'
11
+ spec.summary = "Slim integration for Cells."
13
12
  spec.description = spec.summary
14
- spec.homepage = 'https://github.com/trailblazer/cells-slim'
15
- spec.license = 'MIT'
13
+ spec.homepage = "https://github.com/trailblazer/cells-slim"
14
+ spec.license = "MIT"
16
15
 
17
16
  spec.files = `git ls-files -z`.split("\x0")
18
17
  spec.test_files = spec.files.grep(%r{^(test)/})
19
- spec.require_paths = ['lib']
18
+ spec.require_paths = ["lib"]
20
19
 
21
- spec.add_runtime_dependency 'cells', '~> 4.0.0.beta6'
22
- spec.add_runtime_dependency 'slim', '~> 3.0'
23
- spec.add_development_dependency 'bundler'
24
- spec.add_development_dependency 'rake'
20
+ spec.add_runtime_dependency "cells", ">= 4.0.1", "< 6.0.0"
21
+ spec.add_runtime_dependency "slim", "~> 3.0"
22
+ spec.add_development_dependency "bundler"
23
+ spec.add_development_dependency "rake"
25
24
  end
@@ -1,6 +1,5 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem "cells", "4.0.0.beta6"
4
3
  gem "railties", "~> 4.2.0"
5
4
  gem "minitest", "~> 5.2"
6
5
 
@@ -51,4 +51,4 @@ module Cell
51
51
  end
52
52
  end
53
53
  end
54
- end
54
+ end
@@ -1,5 +1,5 @@
1
1
  module Cell
2
2
  module Slim
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
@@ -0,0 +1,11 @@
1
+ | Hallo
2
+
3
+ - bla = 1
4
+
5
+ - hidden = capture do
6
+ | Hidden!
7
+
8
+ p
9
+ | More
10
+
11
+ = hidden
@@ -44,6 +44,10 @@ class SongCell < Cell::ViewModel
44
44
  render
45
45
  end
46
46
 
47
+ def with_capture
48
+ render
49
+ end
50
+
47
51
  private
48
52
  def cap
49
53
  "yay, #{with_output_buffer { yield } }"
@@ -62,4 +66,4 @@ private
62
66
  concat "Whoo"
63
67
  end
64
68
  end
65
- end
69
+ end
@@ -58,4 +58,10 @@ Bonjour!
58
58
  end
59
59
  end
60
60
 
61
+ describe "block capture" do
62
+ it do
63
+ song_cell.(:with_capture).must_equal %{Hallo<p>More</p>Hidden!}
64
+ end
65
+ end
66
+
61
67
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cells-slim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abdelkader Boudih
@@ -9,22 +9,28 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-12-21 00:00:00.000000000 Z
12
+ date: 2016-04-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cells
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: 4.0.1
21
+ - - "<"
19
22
  - !ruby/object:Gem::Version
20
- version: 4.0.0.beta6
23
+ version: 6.0.0
21
24
  type: :runtime
22
25
  prerelease: false
23
26
  version_requirements: !ruby/object:Gem::Requirement
24
27
  requirements:
25
- - - "~>"
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ version: 4.0.1
31
+ - - "<"
26
32
  - !ruby/object:Gem::Version
27
- version: 4.0.0.beta6
33
+ version: 6.0.0
28
34
  - !ruby/object:Gem::Dependency
29
35
  name: slim
30
36
  requirement: !ruby/object:Gem::Requirement
@@ -91,6 +97,7 @@ files:
91
97
  - test/dummy/Rakefile
92
98
  - test/dummy/app/cells/song/render_in_render.slim
93
99
  - test/dummy/app/cells/song/render_in_render_2.slim
100
+ - test/dummy/app/cells/song/with_capture.slim
94
101
  - test/dummy/app/cells/song/with_content_tag.slim
95
102
  - test/dummy/app/cells/song/with_content_tag_and_content_tag.slim
96
103
  - test/dummy/app/cells/song/with_form_tag_and_content_tag.slim
@@ -132,6 +139,7 @@ test_files:
132
139
  - test/dummy/Rakefile
133
140
  - test/dummy/app/cells/song/render_in_render.slim
134
141
  - test/dummy/app/cells/song/render_in_render_2.slim
142
+ - test/dummy/app/cells/song/with_capture.slim
135
143
  - test/dummy/app/cells/song/with_content_tag.slim
136
144
  - test/dummy/app/cells/song/with_content_tag_and_content_tag.slim
137
145
  - test/dummy/app/cells/song/with_form_tag_and_content_tag.slim