gjt1 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 289deb38ccf644d49dd3a128a76fee9261fcb2290ac340a70fc5ac701ae11d7f
4
+ data.tar.gz: b5f7a8e6c009a03b4d7b57b69dcb1590e67770815a218b43ed11f7e0fef1cbe4
5
+ SHA512:
6
+ metadata.gz: 91c3e1ab707a53123765226de6b3ae6ae685fbe73786d8e587244bc8b09682402aad6d3377748605888c978861880bf8e4d3186619afb341441282684ca21a40
7
+ data.tar.gz: d0d2979a0dddeace17635e0d408367e06a636b9d445318621b8c9dd2df156d5962ad77f378b563853c6a1e0c02678ec5fd98e3e0fe221f2fa6f4f702d5be3bd2
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Gjt1
4
+ class MembersController < ApplicationController
5
+ active_scaffold :"gjt1/member" do |conf|
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Gjt1Helper
4
+ def main_menu_gjt1_entries
5
+ {
6
+ ::Gjt1::Member.model_name.human(count: 2) => [main_app.gjt1_members_path]
7
+ }
8
+ end
9
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_dependency 'gjt1'
4
+
5
+ module Gjt1
6
+ class Member < ::EacRailsBase0::ApplicationRecord
7
+ validates :name, presence: true, uniqueness: true
8
+ validates :bga_user_code, presence: true, uniqueness: true,
9
+ format: { with: /\A\d+\z/ }
10
+ end
11
+ end
@@ -0,0 +1,9 @@
1
+ pt-BR:
2
+ activerecord:
3
+ attributes:
4
+ gjt1/member:
5
+ bga_user_code: Código do usuário BoardGameArena
6
+ models:
7
+ gjt1/member:
8
+ one: Membro do GJT1
9
+ other: Membros do GJT1
data/config/routes.rb ADDED
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ Rails.application.routes.draw do
4
+ namespace(:gjt1) do
5
+ resources(:members, concerns: active_scaffold)
6
+ end
7
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ class CreateGjt1Members < ActiveRecord::Migration[5.2]
4
+ def change
5
+ create_table :gjt1_members do |t|
6
+ t.string :name
7
+ t.string :bga_user_code
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Gjt1
4
+ class Engine < ::Rails::Engine
5
+ include ::EacRailsUtils::EngineHelper
6
+ end
7
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Gjt1
4
+ VERSION = '0.0.0'
5
+ end
data/lib/gjt1.rb ADDED
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Gjt1
4
+ def self.table_name_prefix
5
+ 'gjt1_'
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,50 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gjt1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Put here the authors
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-05-21 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email:
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - app/controllers/gjt1/members_controller.rb
20
+ - app/helpers/gjt1_helper.rb
21
+ - app/models/gjt1/member.rb
22
+ - config/locales/pt-BR.yml
23
+ - config/routes.rb
24
+ - db/migrate/20230513184113_create_gjt1_members.rb
25
+ - lib/gjt1.rb
26
+ - lib/gjt1/engine.rb
27
+ - lib/gjt1/version.rb
28
+ homepage:
29
+ licenses: []
30
+ metadata: {}
31
+ post_install_message:
32
+ rdoc_options: []
33
+ require_paths:
34
+ - lib
35
+ required_ruby_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ required_rubygems_version: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ requirements: []
46
+ rubygems_version: 3.1.6
47
+ signing_key:
48
+ specification_version: 4
49
+ summary: Put here de description.
50
+ test_files: []