pakyow-slim 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +20 -0
  3. data/VERSION +1 -1
  4. data/lib/pakyow-slim.rb +9 -14
  5. metadata +18 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5c34b1d9956983cd57d21d21df5beb4c826dbd38
4
- data.tar.gz: bd5b2b024242ad243b306e727be04cfdc072c121
3
+ metadata.gz: 33a6186d119b99e69c187c71a0237ce91445aec8
4
+ data.tar.gz: e3f0bbfb5399c9ae5472710160a5072e9099992d
5
5
  SHA512:
6
- metadata.gz: b239467189046d4b65483ae486676229a7ffbcaf0f997021ed2b5d9e991777bade13ba3cd65c6a5e0a21923f4c95ac169319241900f0400dbec8100d9ffb4cfc
7
- data.tar.gz: f5085f3584a5e9efb1fc3bc0d8fe41a36c489d25192460be8e92cae63d1d49f52da29bd4482f69b8080651cfae6e0a46a22ff0699a530034da033d2e0e1f0a1f
6
+ metadata.gz: 871e2569cf999606916bb8db3017ecdcf53a5d3a574754714ad75fbaef850915c1114bec2cdb4c891fe7bb57fcd177407430b6f8347e892c5e82f7a29ab6c955
7
+ data.tar.gz: 7371ae42dcf8d8307166d4b019d572e46df14e060290e318ce83a56d253c8046c233a388043f381a9e597693b719f170f05bf622acda2b751c24be3337ba6721
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2015 Daniel McGuire
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
data/lib/pakyow-slim.rb CHANGED
@@ -1,21 +1,16 @@
1
- libdir = File.dirname(__FILE__)
2
- $LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
3
-
4
1
  require 'slim'
5
2
 
6
-
7
3
  module SetSlimOptions
8
- Slim::Engine.set_options(
9
- shortcut:
10
- { '@@' => { tag: 'div', attr: 'data-scope' },
11
- '@' => { tag: 'div', attr: 'data-prop' },
12
- '#' => { tag: 'div', attr: 'id' },
13
- '.' => { tag: 'div', attr: 'class' }
14
- }
15
- )
4
+ Slim::Engine.set_options(
5
+ shortcut: {
6
+ '@@' => { tag: 'div', attr: 'data-scope' },
7
+ '@' => { tag: 'div', attr: 'data-prop' },
8
+ '#' => { tag: 'div', attr: 'id' },
9
+ '.' => { tag: 'div', attr: 'class' }
10
+ }
11
+ )
16
12
  end
17
13
 
18
14
  Pakyow::App.processor :slim do |content|
19
- processed_content =
20
- Slim::Template.new { @data = content }.render
15
+ Slim::Template.new { @data = content }.render
21
16
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pakyow-slim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan McGuire
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-23 00:00:00.000000000 Z
11
+ date: 2015-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pakyow-core
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: ruby
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2.0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '2.0'
55
69
  description: A view processor that will convert files under view/ with the .slim extension
56
70
  into html.
57
71
  email: dan@metabahn.com
@@ -59,6 +73,7 @@ executables: []
59
73
  extensions: []
60
74
  extra_rdoc_files: []
61
75
  files:
76
+ - "./MIT-LICENSE"
62
77
  - "./VERSION"
63
78
  - "./lib/pakyow-slim.rb"
64
79
  homepage: http://slim-lang.com
@@ -86,3 +101,4 @@ signing_key:
86
101
  specification_version: 4
87
102
  summary: Slim processor for Pakyow views.
88
103
  test_files: []
104
+ has_rdoc: