xrb-rails 0.2.0 → 0.3.0

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
  SHA256:
3
- metadata.gz: 353c4561e8e519907233675b1c4ce5d76c16cc6c00b4f1f348244c8863365ecf
4
- data.tar.gz: '0141029c1bea8afd73cff0319798a1894bd75eaef74901dea8ea85b2831fe594'
3
+ metadata.gz: 4bd9000b6fe53a7aa2ce1ec07c1f11349bf960ddb6e06c7263817bedf9bb7e71
4
+ data.tar.gz: 60fba824653041c0597e5eeeb39f4a8524ff1668e9fca1354153fa2a66048aed
5
5
  SHA512:
6
- metadata.gz: 95a57e83d047525a443c139a2b75bcf8925db51d793b445db09f0b94ab04e283201fa01d31e66c0aae8a588effa38ef357bc05e956949c9026fa8f6b74179525
7
- data.tar.gz: 71bca2d72f45a5c7f1668d5b616ea41f707f2b51a8943267a894c7ede21c7878b9138034fb4eab53380917fdde5bf7ff1a1f7c0c54abbdd6bd54c4965fec63ab
6
+ metadata.gz: '098d7238999ea6c0d509fb1a412782472d4c60ad4901a8bdd293b95109e3a9ec96e52363d09e3f160e8d773b72bf2a31fad91b34b34119ec61f88de16fd3364c'
7
+ data.tar.gz: 17e92ba186978a2b26e12e95ed579bc0632304f96f000a1449e5c996b2cb7284f78499022bcda9859b2b0420226914788c9444d77d40e6ee25bdc11f8d5b059c
checksums.yaml.gz.sig CHANGED
Binary file
@@ -12,19 +12,15 @@ module XRB
12
12
  class Builder
13
13
  def initialize(output_buffer)
14
14
  @output_buffer = output_buffer
15
+ @raw_buffer = @output_buffer
16
+
17
+ if @output_buffer.respond_to?(:raw_buffer)
18
+ @raw_buffer = @output_buffer.raw_buffer
19
+ end
15
20
  end
16
21
 
17
22
  def <<(content)
18
- if content.is_a?(::XRB::Builder::Fragment)
19
- # XRB's safe output mechanism for lazy evaluation of fragments:
20
- @output_buffer.safe_concat(content.to_s)
21
- elsif content.is_a?(Markup)
22
- # XRB's safe output mechanism:
23
- @output_buffer.safe_concat(content)
24
- else
25
- # Unsafe output:
26
- @output_buffer << content
27
- end
23
+ content.append_markup(@raw_buffer)
28
24
  end
29
25
 
30
26
  def raw(content)
@@ -5,6 +5,6 @@
5
5
 
6
6
  module XRB
7
7
  module Rails
8
- VERSION = "0.2.0"
8
+ VERSION = "0.3.0"
9
9
  end
10
10
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xrb-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -37,7 +37,7 @@ cert_chain:
37
37
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
38
38
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
39
39
  -----END CERTIFICATE-----
40
- date: 2024-04-28 00:00:00.000000000 Z
40
+ date: 2024-10-27 00:00:00.000000000 Z
41
41
  dependencies:
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: xrb
@@ -45,14 +45,14 @@ dependencies:
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: '0.4'
48
+ version: '0.10'
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: '0.4'
55
+ version: '0.10'
56
56
  description:
57
57
  email:
58
58
  executables: []
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  requirements: []
90
- rubygems_version: 3.5.3
90
+ rubygems_version: 3.5.11
91
91
  signing_key:
92
92
  specification_version: 4
93
93
  summary: Add support XRB templates in Rails.
metadata.gz.sig CHANGED
Binary file