phlex-rails 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/.editorconfig +13 -0
  3. data/.rubocop.yml +31 -0
  4. data/Appraisals +13 -0
  5. data/CONTRIBUTING.md +23 -0
  6. data/Gemfile +7 -4
  7. data/README.md +14 -30
  8. data/SECURITY.md +5 -0
  9. data/fixtures/dummy/app/assets/config/manifest.js +0 -0
  10. data/fixtures/dummy/app/components/comment_component.html.erb +14 -0
  11. data/fixtures/dummy/app/components/comment_component.rb +8 -0
  12. data/fixtures/dummy/app/components/reaction_component.html.erb +3 -0
  13. data/fixtures/dummy/app/components/reaction_component.rb +7 -0
  14. data/fixtures/dummy/app/controllers/articles_controller.rb +4 -0
  15. data/fixtures/dummy/app/controllers/comments_controller.rb +4 -0
  16. data/fixtures/dummy/app/views/application_view.rb +7 -0
  17. data/fixtures/dummy/app/views/articles/form.rb +15 -0
  18. data/fixtures/dummy/app/views/articles/index.html.erb +14 -0
  19. data/fixtures/dummy/app/views/articles/new.html.erb +1 -0
  20. data/fixtures/dummy/app/views/card.rb +15 -0
  21. data/fixtures/dummy/app/views/comments/comment.rb +25 -0
  22. data/fixtures/dummy/app/views/comments/index.html.erb +3 -0
  23. data/fixtures/dummy/app/views/comments/reaction.rb +17 -0
  24. data/fixtures/dummy/app/views/comments/show.html.erb +3 -0
  25. data/fixtures/dummy/app/views/heading.rb +9 -0
  26. data/fixtures/dummy/config/database.yml +3 -0
  27. data/fixtures/dummy/config/routes.rb +5 -0
  28. data/fixtures/dummy/config/storage.yml +3 -0
  29. data/fixtures/dummy/db/schema.rb +6 -0
  30. data/fixtures/dummy/log/.gitignore +1 -0
  31. data/fixtures/dummy/public/favicon.ico +0 -0
  32. data/fixtures/rails_helper.rb +9 -0
  33. data/fixtures/view_helper.rb +16 -0
  34. data/lib/generators/phlex/collection/USAGE +8 -0
  35. data/lib/generators/phlex/collection/collection_generator.rb +13 -0
  36. data/lib/generators/phlex/collection/templates/collection.rb.erb +16 -0
  37. data/lib/generators/phlex/controller/USAGE +10 -0
  38. data/lib/generators/phlex/controller/controller_generator.rb +54 -0
  39. data/lib/generators/phlex/controller/templates/controller.rb.erb +10 -0
  40. data/lib/generators/phlex/controller/templates/view.rb.erb +14 -0
  41. data/lib/generators/phlex/layout/USAGE +8 -0
  42. data/lib/generators/phlex/layout/layout_generator.rb +13 -0
  43. data/lib/generators/phlex/layout/templates/layout.rb.erb +31 -0
  44. data/lib/generators/phlex/page/USAGE +8 -0
  45. data/lib/generators/phlex/page/page_generator.rb +13 -0
  46. data/lib/generators/phlex/page/templates/page.rb.erb +13 -0
  47. data/lib/generators/phlex/table/USAGE +8 -0
  48. data/lib/generators/phlex/table/table_generator.rb +14 -0
  49. data/lib/generators/phlex/table/templates/table.rb.erb +11 -0
  50. data/lib/generators/phlex/view/USAGE +9 -0
  51. data/lib/generators/phlex/view/templates/view.rb.erb +14 -0
  52. data/lib/generators/phlex/view/view_generator.rb +23 -0
  53. data/lib/generators/rspec/view/templates/view_spec.rb.erb +10 -0
  54. data/lib/generators/rspec/view/view_generator.rb +14 -0
  55. data/lib/generators/test_unit/templates/view_test.rb.erb +15 -0
  56. data/lib/generators/test_unit/view_generator.rb +12 -0
  57. data/lib/install/phlex.rb +38 -0
  58. data/lib/phlex/rails/buffer.rb +18 -0
  59. data/lib/phlex/rails/engine.rb +10 -0
  60. data/lib/phlex/rails/form.rb +67 -0
  61. data/lib/phlex/rails/helpers.rb +126 -0
  62. data/lib/phlex/rails/layout.rb +16 -0
  63. data/lib/phlex/rails/renderable.rb +35 -0
  64. data/lib/phlex/rails/version.rb +3 -3
  65. data/lib/phlex/rails.rb +9 -6
  66. data/lib/phlex/testing/rails.rb +19 -0
  67. data/lib/phlex-rails.rb +3 -0
  68. data/lib/tasks/phlex_tasks.rake +11 -0
  69. data/phlex_logo.png +0 -0
  70. metadata +124 -16
  71. data/.gitignore +0 -8
  72. data/CHANGELOG.md +0 -5
  73. data/Rakefile +0 -12
  74. data/bin/console +0 -15
  75. data/bin/setup +0 -8
  76. data/phlex-rails.gemspec +0 -35
metadata CHANGED
@@ -1,41 +1,149 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phlex-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Drapper
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-11-01 00:00:00.000000000 Z
12
- dependencies: []
13
- description: Phlex as an ActionView replacement for Rails
11
+ date: 2022-11-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: phlex
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0.5'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0.5'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '6.1'
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: '8'
37
+ type: :runtime
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: '6.1'
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '8'
47
+ - !ruby/object:Gem::Dependency
48
+ name: zeitwerk
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '2'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '2'
61
+ description: A high-performance view framework optimised for developer happiness.
14
62
  email:
15
63
  - joel@drapper.me
16
64
  executables: []
17
65
  extensions: []
18
66
  extra_rdoc_files: []
19
67
  files:
20
- - ".gitignore"
21
- - CHANGELOG.md
68
+ - ".editorconfig"
69
+ - ".rubocop.yml"
70
+ - Appraisals
22
71
  - CODE_OF_CONDUCT.md
72
+ - CONTRIBUTING.md
23
73
  - Gemfile
24
74
  - LICENSE.txt
25
75
  - README.md
26
- - Rakefile
27
- - bin/console
28
- - bin/setup
76
+ - SECURITY.md
77
+ - fixtures/dummy/app/assets/config/manifest.js
78
+ - fixtures/dummy/app/components/comment_component.html.erb
79
+ - fixtures/dummy/app/components/comment_component.rb
80
+ - fixtures/dummy/app/components/reaction_component.html.erb
81
+ - fixtures/dummy/app/components/reaction_component.rb
82
+ - fixtures/dummy/app/controllers/articles_controller.rb
83
+ - fixtures/dummy/app/controllers/comments_controller.rb
84
+ - fixtures/dummy/app/views/application_view.rb
85
+ - fixtures/dummy/app/views/articles/form.rb
86
+ - fixtures/dummy/app/views/articles/index.html.erb
87
+ - fixtures/dummy/app/views/articles/new.html.erb
88
+ - fixtures/dummy/app/views/card.rb
89
+ - fixtures/dummy/app/views/comments/comment.rb
90
+ - fixtures/dummy/app/views/comments/index.html.erb
91
+ - fixtures/dummy/app/views/comments/reaction.rb
92
+ - fixtures/dummy/app/views/comments/show.html.erb
93
+ - fixtures/dummy/app/views/heading.rb
94
+ - fixtures/dummy/config/database.yml
95
+ - fixtures/dummy/config/routes.rb
96
+ - fixtures/dummy/config/storage.yml
97
+ - fixtures/dummy/db/schema.rb
98
+ - fixtures/dummy/log/.gitignore
99
+ - fixtures/dummy/public/favicon.ico
100
+ - fixtures/rails_helper.rb
101
+ - fixtures/view_helper.rb
102
+ - lib/generators/phlex/collection/USAGE
103
+ - lib/generators/phlex/collection/collection_generator.rb
104
+ - lib/generators/phlex/collection/templates/collection.rb.erb
105
+ - lib/generators/phlex/controller/USAGE
106
+ - lib/generators/phlex/controller/controller_generator.rb
107
+ - lib/generators/phlex/controller/templates/controller.rb.erb
108
+ - lib/generators/phlex/controller/templates/view.rb.erb
109
+ - lib/generators/phlex/layout/USAGE
110
+ - lib/generators/phlex/layout/layout_generator.rb
111
+ - lib/generators/phlex/layout/templates/layout.rb.erb
112
+ - lib/generators/phlex/page/USAGE
113
+ - lib/generators/phlex/page/page_generator.rb
114
+ - lib/generators/phlex/page/templates/page.rb.erb
115
+ - lib/generators/phlex/table/USAGE
116
+ - lib/generators/phlex/table/table_generator.rb
117
+ - lib/generators/phlex/table/templates/table.rb.erb
118
+ - lib/generators/phlex/view/USAGE
119
+ - lib/generators/phlex/view/templates/view.rb.erb
120
+ - lib/generators/phlex/view/view_generator.rb
121
+ - lib/generators/rspec/view/templates/view_spec.rb.erb
122
+ - lib/generators/rspec/view/view_generator.rb
123
+ - lib/generators/test_unit/templates/view_test.rb.erb
124
+ - lib/generators/test_unit/view_generator.rb
125
+ - lib/install/phlex.rb
126
+ - lib/phlex-rails.rb
29
127
  - lib/phlex/rails.rb
128
+ - lib/phlex/rails/buffer.rb
129
+ - lib/phlex/rails/engine.rb
130
+ - lib/phlex/rails/form.rb
131
+ - lib/phlex/rails/helpers.rb
132
+ - lib/phlex/rails/layout.rb
133
+ - lib/phlex/rails/renderable.rb
30
134
  - lib/phlex/rails/version.rb
31
- - phlex-rails.gemspec
32
- homepage: https://phlex.fun
135
+ - lib/phlex/testing/rails.rb
136
+ - lib/tasks/phlex_tasks.rake
137
+ - phlex_logo.png
138
+ homepage: https://www.phlex.fun
33
139
  licenses:
34
140
  - MIT
35
141
  metadata:
36
- homepage_uri: https://phlex.fun
37
- source_code_uri: https://github.com/joeldrapper/phlex-rails
38
- changelog_uri: https://github.com/joeldrapper/phlex-rails
142
+ homepage_uri: https://www.phlex.fun
143
+ source_code_uri: https://github.com/joeldrapper/phlex
144
+ changelog_uri: https://github.com/joeldrapper/phlex/releases
145
+ funding_uri: https://github.com/sponsors/joeldrapper
146
+ rubygems_mfa_required: 'true'
39
147
  post_install_message:
40
148
  rdoc_options: []
41
149
  require_paths:
@@ -51,8 +159,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
51
159
  - !ruby/object:Gem::Version
52
160
  version: '0'
53
161
  requirements: []
54
- rubygems_version: 3.3.7
162
+ rubygems_version: 3.3.25
55
163
  signing_key:
56
164
  specification_version: 4
57
- summary: Phlex as an ActionView replacement.
165
+ summary: A Phlex adapter for Rails
58
166
  test_files: []
data/.gitignore DELETED
@@ -1,8 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
data/CHANGELOG.md DELETED
@@ -1,5 +0,0 @@
1
- ## [Unreleased]
2
-
3
- ## [0.1.0] - 2022-11-01
4
-
5
- - Initial release
data/Rakefile DELETED
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "bundler/gem_tasks"
4
- require "rake/testtask"
5
-
6
- Rake::TestTask.new(:test) do |t|
7
- t.libs << "test"
8
- t.libs << "lib"
9
- t.test_files = FileList["test/**/*_test.rb"]
10
- end
11
-
12
- task default: :test
data/bin/console DELETED
@@ -1,15 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require "bundler/setup"
5
- require "phlex/rails"
6
-
7
- # You can add fixtures and/or initialization code here to make experimenting
8
- # with your gem easier. You can also use a different console, if you like.
9
-
10
- # (If you use this, don't forget to add pry to your Gemfile!)
11
- # require "pry"
12
- # Pry.start
13
-
14
- require "irb"
15
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
data/phlex-rails.gemspec DELETED
@@ -1,35 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "lib/phlex/rails/version"
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = "phlex-rails"
7
- spec.version = Phlex::Rails::VERSION
8
- spec.authors = ["Joel Drapper"]
9
- spec.email = ["joel@drapper.me"]
10
-
11
- spec.summary = "Phlex as an ActionView replacement."
12
- spec.description = "Phlex as an ActionView replacement for Rails"
13
- spec.homepage = "https://phlex.fun"
14
- spec.license = "MIT"
15
- spec.required_ruby_version = Gem::Requirement.new(">= 2.7")
16
-
17
- spec.metadata["homepage_uri"] = spec.homepage
18
- spec.metadata["source_code_uri"] = "https://github.com/joeldrapper/phlex-rails"
19
- spec.metadata["changelog_uri"] = "https://github.com/joeldrapper/phlex-rails"
20
-
21
- # Specify which files should be added to the gem when it is released.
22
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
24
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
25
- end
26
- spec.bindir = "exe"
27
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
28
- spec.require_paths = ["lib"]
29
-
30
- # Uncomment to register a new dependency of your gem
31
- # spec.add_dependency "example-gem", "~> 1.0"
32
-
33
- # For more information and examples about making a new gem, checkout our
34
- # guide at: https://bundler.io/guides/creating_gem.html
35
- end