pakyow-haml 0.1.1 → 1.0.0.rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 26dac1d395c310fc2712c81103a5f28bd7c72acc
4
- data.tar.gz: 69749a7f953db0b13f3a003ff2ae7035b656f100
2
+ SHA256:
3
+ metadata.gz: 7feb27d898711252c1e785983b1877fccb57d4f5bde4be1f9bf89bb308e77c57
4
+ data.tar.gz: a0396c1dc58fdb0cc70b56532fa4195fff58227ae2da7f5af242e6f9d9b0d7ba
5
5
  SHA512:
6
- metadata.gz: 20b70cd8113113593ccd7a8cfd1602736ef7f2dcd2ca1e487b9f6fe60b4367cf6a50becf32da92b8180e56e46d45b751d592743fc58adf30f996e6097aed55b8
7
- data.tar.gz: afb0ddbdc44c16fb0e001e296175360214afdb7e9e5af46b0ba99dd1dfddf8968becd42f5929303d4861153f9774ebcf6105a2998f6e898c30a8d0a33dbbb11e
6
+ metadata.gz: d460db3ab5153af1c8f7c1f841eab08a38e723bb2232f2dabc281a0fa26eed9b2485f8a977597aaa0f06c06be7622caddf304e6ec087e73c8ff25707736bf4b3
7
+ data.tar.gz: c9f8bde7669fcb33beef5fe55b0f7ccbbf32b8f515f7c9eebeb6609407c3e4ba33d815e3f00f309d53c04d0af29f4b5ed577bbb2fa74f2980fb60f1d71cd607e
data/LICENSE ADDED
@@ -0,0 +1,4 @@
1
+ Copyright (c) Metabahn, LLC
2
+
3
+ Pakyow Haml is an open-source project licensed under the terms of the LGPLv3 license.
4
+ See <https://choosealicense.com/licenses/gpl-3.0/> for license text.
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "pakyow/framework"
4
+
5
+ require "pakyow/haml/processor"
6
+
7
+ module Pakyow
8
+ module Haml
9
+ class Framework < Pakyow::Framework(:haml)
10
+ def boot
11
+ object.state(:processor) << Pakyow::Haml::Processor
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "haml"
4
+
5
+ require "pakyow/presenter/processor"
6
+
7
+ module Pakyow
8
+ module Haml
9
+ class Processor < Pakyow::Presenter::Processor
10
+ extensions :haml
11
+
12
+ def call(content)
13
+ ::Haml::Engine.new(content).render
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Pakyow
4
+ module Haml
5
+ VERSION = "1.0.0.rc1".freeze
6
+ end
7
+ end
@@ -0,0 +1,2 @@
1
+ require "pakyow/haml/version"
2
+ require "pakyow/haml/framework"
metadata CHANGED
@@ -1,89 +1,75 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pakyow-haml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 1.0.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Powell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-09 00:00:00.000000000 Z
11
+ date: 2019-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: pakyow-core
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '0.9'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '0.9'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: pakyow-presenter
29
15
  requirement: !ruby/object:Gem::Requirement
30
16
  requirements:
31
- - - "~>"
17
+ - - ">="
32
18
  - !ruby/object:Gem::Version
33
- version: '0.9'
19
+ version: 1.0.0.rc1
34
20
  type: :runtime
35
21
  prerelease: false
36
22
  version_requirements: !ruby/object:Gem::Requirement
37
23
  requirements:
38
- - - "~>"
24
+ - - ">="
39
25
  - !ruby/object:Gem::Version
40
- version: '0.9'
26
+ version: 1.0.0.rc1
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: haml
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
31
  - - "~>"
46
32
  - !ruby/object:Gem::Version
47
- version: '4.0'
33
+ version: '5.1'
48
34
  type: :runtime
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
38
  - - "~>"
53
39
  - !ruby/object:Gem::Version
54
- version: '4.0'
55
- description: A view processor for Pakyow that automatically converts HAML views with
56
- .haml extension to HTML.
40
+ version: '5.1'
41
+ description: Haml support for Pakyow Presenter
57
42
  email: bryan@metabahn.com
58
43
  executables: []
59
44
  extensions: []
60
45
  extra_rdoc_files: []
61
46
  files:
62
- - "./CHANGES"
63
- - "./MIT-LICENSE"
64
- - "./lib/pakyow-haml.rb"
65
- homepage: http://pakyow.com
66
- licenses: []
47
+ - LICENSE
48
+ - lib/pakyow/haml.rb
49
+ - lib/pakyow/haml/framework.rb
50
+ - lib/pakyow/haml/processor.rb
51
+ - lib/pakyow/haml/version.rb
52
+ homepage: https://pakyow.org
53
+ licenses:
54
+ - LGPL-3.0
67
55
  metadata: {}
68
56
  post_install_message:
69
57
  rdoc_options: []
70
58
  require_paths:
71
- - "./lib"
59
+ - lib
72
60
  required_ruby_version: !ruby/object:Gem::Requirement
73
61
  requirements:
74
62
  - - ">="
75
63
  - !ruby/object:Gem::Version
76
- version: 2.0.0
64
+ version: 2.5.0
77
65
  required_rubygems_version: !ruby/object:Gem::Requirement
78
66
  requirements:
79
- - - ">="
67
+ - - ">"
80
68
  - !ruby/object:Gem::Version
81
- version: '0'
69
+ version: 1.3.1
82
70
  requirements: []
83
- rubyforge_project:
84
- rubygems_version: 2.2.2
71
+ rubygems_version: 3.0.3
85
72
  signing_key:
86
73
  specification_version: 4
87
- summary: Pakyow view processor for HAML.
74
+ summary: Pakyow Haml
88
75
  test_files: []
89
- has_rdoc:
data/CHANGES DELETED
File without changes
data/MIT-LICENSE DELETED
@@ -1,20 +0,0 @@
1
- Copyright (c) 2013 Bryan Powell
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/lib/pakyow-haml.rb DELETED
@@ -1,10 +0,0 @@
1
- libdir = File.dirname(__FILE__)
2
- $LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
3
-
4
- # Gems
5
- require 'haml'
6
-
7
- # Processor
8
- Pakyow::App.processor :haml do |content|
9
- Haml::Engine.new(content).render
10
- end