turbo-ruby 0.1.0 → 0.1.1

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: 31e2bd7e1925cb38b345a71777b9ea8f62cfe8b6c809e6b94223d41ad2ac86a5
4
- data.tar.gz: '0865e597688e1adb38acf9264d2bda21ce7565abaa553ec07dc99882de14f9be'
3
+ metadata.gz: 977a0a70114d93c308038623e3662d9c5711c9c9ce6e0a669dca583f2ee76947
4
+ data.tar.gz: c322604e0d3be6ef087a1d920a6a128e0621d5bb2973f5c933da7d321c251a52
5
5
  SHA512:
6
- metadata.gz: 7b14e1c87275e7973e883c4a5b7b93d54b9176a5f6d1d1e64cda07d68c228036d76304e15580d3aa19b2408c4af8dd2c1684a18ff8876f87553d3a349a81b32b
7
- data.tar.gz: c392b2e3018600311fccc821bc49e7d107c50aa285820f991c9a61d549f34f0d834076579d4d356d9c87e290417cf7cb6f07d4b8db5725fcb0d346b832a80cf9
6
+ metadata.gz: 83256ece116deda441764effbf1576ac47df4ce461971653f5cc2d2f598e8bf056fd0fb77b0514996da204d513f002d553a7ea6c8998ef6ebf81ef2bcb794ba0
7
+ data.tar.gz: 8234a01ed77707670eb90629593ada83a499fa8bf98a39a015a4e7ea01f2ec4bfee9ad5bf73c878426e24ce72c4f1619ac835cd8d969c8918f60d47b681cae89
@@ -7,7 +7,6 @@ module Turbo
7
7
 
8
8
  def initialize(view_context: nil, action: nil, target: nil, content: nil, allow_inferred_rendering: true,
9
9
  attributes: {}, **rendering, &block)
10
- super
11
10
  @view_context = view_context
12
11
  @action = action
13
12
  @target = target
@@ -52,6 +51,10 @@ module Turbo
52
51
  record = possible_record
53
52
  @view_context.render(partial: record, formats: :html)
54
53
  end
54
+
55
+ def to_html
56
+ call
57
+ end
55
58
  end
56
59
  end
57
60
  end
@@ -7,7 +7,6 @@ module Turbo
7
7
 
8
8
  def initialize(view_context: nil, action: nil, target: nil, content: nil, allow_inferred_rendering: true,
9
9
  attributes: {}, **rendering, &block)
10
- super
11
10
  @view_context = view_context
12
11
  @action = action
13
12
  @target = target
@@ -52,6 +51,10 @@ module Turbo
52
51
  record = possible_record
53
52
  @view_context.render(partial: record, formats: :html)
54
53
  end
54
+
55
+ def to_html
56
+ call
57
+ end
55
58
  end
56
59
  end
57
60
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Turbo
4
4
  module Ruby
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
7
7
  end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Turbo
4
+ module Ruby
5
+ VERSION = "0.1.0"
6
+ end
7
+ end
data/lib/turbo/ruby.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "phlex"
4
- require "phlex-rails"
5
4
 
6
5
  require_relative "ruby/version"
7
6
  require_relative "ruby/helpers"
data/lib/turbo/ruby.rb~ CHANGED
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "phlex"
4
- require "phlex-rails"
5
4
 
6
5
  require_relative "ruby/version"
7
6
  require_relative "ruby/helpers"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turbo-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marco Roth
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.0'
27
- - !ruby/object:Gem::Dependency
28
- name: phlex-rails
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '0.4'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '0.4'
41
27
  description: Turbo helpers without the requirement for Rails
42
28
  email:
43
29
  - marco.roth@intergga.ch
@@ -58,6 +44,7 @@ files:
58
44
  - lib/turbo/ruby/helpers.rb
59
45
  - lib/turbo/ruby/helpers.rb~
60
46
  - lib/turbo/ruby/version.rb
47
+ - lib/turbo/ruby/version.rb~
61
48
  homepage: https://github.com/marcoroth/turbo-ruby
62
49
  licenses:
63
50
  - MIT