uchi 0.1.0 → 0.1.2

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.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +17 -0
  3. data/.github/workflows/build.yml +23 -0
  4. data/.github/workflows/lint.yml +30 -0
  5. data/package.json +31 -0
  6. data/test/components/uchi/field/belongs_to_test.rb +134 -0
  7. data/test/components/uchi/field/blank_test.rb +119 -0
  8. data/test/components/uchi/field/boolean_test.rb +163 -0
  9. data/test/components/uchi/field/date_test.rb +163 -0
  10. data/test/components/uchi/field/date_time_test.rb +152 -0
  11. data/test/components/uchi/field/has_many_test.rb +138 -0
  12. data/test/components/uchi/field/id_test.rb +113 -0
  13. data/test/components/uchi/field/number_test.rb +163 -0
  14. data/test/components/uchi/field/string_test.rb +159 -0
  15. data/test/controllers/uchi/authors_controller_test.rb +119 -0
  16. data/test/controllers/uchi/repository_controller_test.rb +93 -0
  17. data/test/controllers/uchi/scoped_repository_controller_test.rb +73 -0
  18. data/test/dummy/Rakefile +6 -0
  19. data/test/dummy/app/assets/images/.keep +0 -0
  20. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  21. data/test/dummy/app/controllers/application_controller.rb +4 -0
  22. data/test/dummy/app/controllers/concerns/.keep +0 -0
  23. data/test/dummy/app/controllers/uchi/authors_controller.rb +7 -0
  24. data/test/dummy/app/controllers/uchi/books_controller.rb +7 -0
  25. data/test/dummy/app/controllers/uchi/titles_controller.rb +7 -0
  26. data/test/dummy/app/helpers/application_helper.rb +2 -0
  27. data/test/dummy/app/jobs/application_job.rb +7 -0
  28. data/test/dummy/app/mailers/application_mailer.rb +4 -0
  29. data/test/dummy/app/models/application_record.rb +3 -0
  30. data/test/dummy/app/models/author.rb +3 -0
  31. data/test/dummy/app/models/book.rb +3 -0
  32. data/test/dummy/app/models/concerns/.keep +0 -0
  33. data/test/dummy/app/models/title.rb +3 -0
  34. data/test/dummy/app/uchi/repositories/author.rb +20 -0
  35. data/test/dummy/app/uchi/repositories/book.rb +16 -0
  36. data/test/dummy/app/uchi/repositories/title.rb +17 -0
  37. data/test/dummy/app/views/layouts/application.html.erb +27 -0
  38. data/test/dummy/app/views/layouts/mailer.html.erb +13 -0
  39. data/test/dummy/app/views/layouts/mailer.text.erb +1 -0
  40. data/test/dummy/app/views/pwa/manifest.json.erb +22 -0
  41. data/test/dummy/app/views/pwa/service-worker.js +26 -0
  42. data/test/dummy/bin/dev +2 -0
  43. data/test/dummy/bin/rails +4 -0
  44. data/test/dummy/bin/rake +4 -0
  45. data/test/dummy/bin/setup +34 -0
  46. data/test/dummy/config/application.rb +29 -0
  47. data/test/dummy/config/boot.rb +5 -0
  48. data/test/dummy/config/cable.yml +10 -0
  49. data/test/dummy/config/database.yml +32 -0
  50. data/test/dummy/config/environment.rb +5 -0
  51. data/test/dummy/config/environments/development.rb +69 -0
  52. data/test/dummy/config/environments/production.rb +89 -0
  53. data/test/dummy/config/environments/test.rb +53 -0
  54. data/test/dummy/config/initializers/content_security_policy.rb +25 -0
  55. data/test/dummy/config/initializers/filter_parameter_logging.rb +8 -0
  56. data/test/dummy/config/initializers/inflections.rb +16 -0
  57. data/test/dummy/config/locales/da.yml +51 -0
  58. data/test/dummy/config/locales/en.yml +31 -0
  59. data/test/dummy/config/puma.rb +38 -0
  60. data/test/dummy/config/routes.rb +9 -0
  61. data/test/dummy/config/storage.yml +34 -0
  62. data/test/dummy/config.ru +6 -0
  63. data/test/dummy/db/migrate/20251002183635_create_authors.rb +11 -0
  64. data/test/dummy/db/migrate/20251005131726_create_books.rb +9 -0
  65. data/test/dummy/db/migrate/20251005131811_create_titles.rb +11 -0
  66. data/test/dummy/db/schema.rb +38 -0
  67. data/test/dummy/log/.keep +0 -0
  68. data/test/dummy/public/400.html +114 -0
  69. data/test/dummy/public/404.html +114 -0
  70. data/test/dummy/public/406-unsupported-browser.html +114 -0
  71. data/test/dummy/public/422.html +114 -0
  72. data/test/dummy/public/500.html +114 -0
  73. data/test/dummy/public/icon.png +0 -0
  74. data/test/dummy/public/icon.svg +3 -0
  75. data/test/dummy/storage/.keep +0 -0
  76. data/test/dummy/test/fixtures/authors.yml +11 -0
  77. data/test/dummy/test/models/author_test.rb +7 -0
  78. data/test/dummy/tmp/.keep +0 -0
  79. data/test/dummy/tmp/pids/.keep +0 -0
  80. data/test/dummy/tmp/storage/.keep +0 -0
  81. data/test/test_helper.rb +15 -0
  82. data/test/uchi/field_test.rb +63 -0
  83. data/test/uchi/i18n_test.rb +18 -0
  84. data/test/uchi/repository/routes_test.rb +49 -0
  85. data/test/uchi/repository/translate_test.rb +263 -0
  86. data/test/uchi/repository_test.rb +137 -0
  87. data/test/uchi/sort_order_test.rb +47 -0
  88. data/test/uchi_test.rb +7 -0
  89. metadata +146 -7
  90. data/README.md +0 -35
  91. data/Rakefile +0 -6
  92. data/lib/uchi/version.rb +0 -5
  93. data/lib/uchi.rb +0 -8
metadata CHANGED
@@ -1,25 +1,164 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uchi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jakob Skjerning
8
- bindir: exe
8
+ bindir: bin
9
9
  cert_chain: []
10
10
  date: 1980-01-02 00:00:00.000000000 Z
11
- dependencies: []
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: pagy
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: 43.0.0.rc1
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: 43.0.0.rc1
26
+ - !ruby/object:Gem::Dependency
27
+ name: rails
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '7.2'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '7.2'
40
+ - !ruby/object:Gem::Dependency
41
+ name: turbo-rails
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ type: :runtime
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ - !ruby/object:Gem::Dependency
55
+ name: view_component
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '4.0'
61
+ type: :runtime
62
+ prerelease: false
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '4.0'
12
68
  email:
13
69
  - jakob@mentalized.net
14
70
  executables: []
15
71
  extensions: []
16
72
  extra_rdoc_files: []
17
73
  files:
18
- - README.md
19
- - Rakefile
20
- - lib/uchi.rb
21
- - lib/uchi/version.rb
74
+ - ".github/dependabot.yml"
75
+ - ".github/workflows/build.yml"
76
+ - ".github/workflows/lint.yml"
77
+ - package.json
22
78
  - sig/uchi.rbs
79
+ - test/components/uchi/field/belongs_to_test.rb
80
+ - test/components/uchi/field/blank_test.rb
81
+ - test/components/uchi/field/boolean_test.rb
82
+ - test/components/uchi/field/date_test.rb
83
+ - test/components/uchi/field/date_time_test.rb
84
+ - test/components/uchi/field/has_many_test.rb
85
+ - test/components/uchi/field/id_test.rb
86
+ - test/components/uchi/field/number_test.rb
87
+ - test/components/uchi/field/string_test.rb
88
+ - test/controllers/uchi/authors_controller_test.rb
89
+ - test/controllers/uchi/repository_controller_test.rb
90
+ - test/controllers/uchi/scoped_repository_controller_test.rb
91
+ - test/dummy/Rakefile
92
+ - test/dummy/app/assets/images/.keep
93
+ - test/dummy/app/assets/stylesheets/application.css
94
+ - test/dummy/app/controllers/application_controller.rb
95
+ - test/dummy/app/controllers/concerns/.keep
96
+ - test/dummy/app/controllers/uchi/authors_controller.rb
97
+ - test/dummy/app/controllers/uchi/books_controller.rb
98
+ - test/dummy/app/controllers/uchi/titles_controller.rb
99
+ - test/dummy/app/helpers/application_helper.rb
100
+ - test/dummy/app/jobs/application_job.rb
101
+ - test/dummy/app/mailers/application_mailer.rb
102
+ - test/dummy/app/models/application_record.rb
103
+ - test/dummy/app/models/author.rb
104
+ - test/dummy/app/models/book.rb
105
+ - test/dummy/app/models/concerns/.keep
106
+ - test/dummy/app/models/title.rb
107
+ - test/dummy/app/uchi/repositories/author.rb
108
+ - test/dummy/app/uchi/repositories/book.rb
109
+ - test/dummy/app/uchi/repositories/title.rb
110
+ - test/dummy/app/views/layouts/application.html.erb
111
+ - test/dummy/app/views/layouts/mailer.html.erb
112
+ - test/dummy/app/views/layouts/mailer.text.erb
113
+ - test/dummy/app/views/pwa/manifest.json.erb
114
+ - test/dummy/app/views/pwa/service-worker.js
115
+ - test/dummy/bin/dev
116
+ - test/dummy/bin/rails
117
+ - test/dummy/bin/rake
118
+ - test/dummy/bin/setup
119
+ - test/dummy/config.ru
120
+ - test/dummy/config/application.rb
121
+ - test/dummy/config/boot.rb
122
+ - test/dummy/config/cable.yml
123
+ - test/dummy/config/database.yml
124
+ - test/dummy/config/environment.rb
125
+ - test/dummy/config/environments/development.rb
126
+ - test/dummy/config/environments/production.rb
127
+ - test/dummy/config/environments/test.rb
128
+ - test/dummy/config/initializers/content_security_policy.rb
129
+ - test/dummy/config/initializers/filter_parameter_logging.rb
130
+ - test/dummy/config/initializers/inflections.rb
131
+ - test/dummy/config/locales/da.yml
132
+ - test/dummy/config/locales/en.yml
133
+ - test/dummy/config/puma.rb
134
+ - test/dummy/config/routes.rb
135
+ - test/dummy/config/storage.yml
136
+ - test/dummy/db/migrate/20251002183635_create_authors.rb
137
+ - test/dummy/db/migrate/20251005131726_create_books.rb
138
+ - test/dummy/db/migrate/20251005131811_create_titles.rb
139
+ - test/dummy/db/schema.rb
140
+ - test/dummy/log/.keep
141
+ - test/dummy/public/400.html
142
+ - test/dummy/public/404.html
143
+ - test/dummy/public/406-unsupported-browser.html
144
+ - test/dummy/public/422.html
145
+ - test/dummy/public/500.html
146
+ - test/dummy/public/icon.png
147
+ - test/dummy/public/icon.svg
148
+ - test/dummy/storage/.keep
149
+ - test/dummy/test/fixtures/authors.yml
150
+ - test/dummy/test/models/author_test.rb
151
+ - test/dummy/tmp/.keep
152
+ - test/dummy/tmp/pids/.keep
153
+ - test/dummy/tmp/storage/.keep
154
+ - test/test_helper.rb
155
+ - test/uchi/field_test.rb
156
+ - test/uchi/i18n_test.rb
157
+ - test/uchi/repository/routes_test.rb
158
+ - test/uchi/repository/translate_test.rb
159
+ - test/uchi/repository_test.rb
160
+ - test/uchi/sort_order_test.rb
161
+ - test/uchi_test.rb
23
162
  homepage: https://github.com/substancelab/uchi
24
163
  licenses: []
25
164
  metadata:
data/README.md DELETED
@@ -1,35 +0,0 @@
1
- # Uchi
2
-
3
- TODO: Delete this and the text below, and describe your gem
4
-
5
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/uchi`. To experiment with that code, run `bin/console` for an interactive prompt.
6
-
7
- ## Installation
8
-
9
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
-
11
- Install the gem and add to the application's Gemfile by executing:
12
-
13
- ```bash
14
- bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
15
- ```
16
-
17
- If bundler is not being used to manage dependencies, install the gem by executing:
18
-
19
- ```bash
20
- gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
21
- ```
22
-
23
- ## Usage
24
-
25
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
-
33
- ## Contributing
34
-
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/koppen/uchi.
data/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "bundler/gem_tasks"
4
- require "standard/rake"
5
-
6
- task default: :standard
data/lib/uchi/version.rb DELETED
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Uchi
4
- VERSION = "0.1.0"
5
- end
data/lib/uchi.rb DELETED
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "uchi/version"
4
-
5
- module Uchi
6
- class Error < StandardError; end
7
- # Your code goes here...
8
- end