tybo 0.3.16 → 0.3.18

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: 82f32dcab2381590d40e2176ea7d61b8d1dcd464740fcc50075bd5b0cd316b10
4
- data.tar.gz: 948f69d3b6442b4a63ba740a12f0319574a2fd011375ed409e3a42bf515af6d6
3
+ metadata.gz: b972cd10f71791fe9ac32b98940427d5c23bc2e81a15c4935669f7b7e44db2fc
4
+ data.tar.gz: 9db91ffa905d15fb3bc7e8a233c1c921b255e9de36d4a1504e54982376e1be01
5
5
  SHA512:
6
- metadata.gz: 968f6293648026083685400e74da2edd264108e8f1a21bdec693ec3506e46dac07de2df37232fb4aaf4267ca1b77bfbfbe41a5fd555574dd1bd1595e6575a5b8
7
- data.tar.gz: '08535b9c4ae903b78245ad0f025720dd6669fbcee0ccd625fa6e84b6af5ac758a1159be0bde331deadc541ab703a4d1fc35a7292b3a650531485391e7879a3a9'
6
+ metadata.gz: e138631ed14a61b8fae4bb34d97a58ef50922f300038e7e501599f89cdf01cf35f67a5d482fcac108444a028535dc6d85cbd8a42adab69180cc368a37bf58be9
7
+ data.tar.gz: 7c0d4e848a2fa9e562b64e6e541bba268bbed3726e465f757e1f87f2f60b696c63d011203b65fb21ac09b2a41624a53103fb28e7913d81c6d32ee899487e67c5
@@ -3,9 +3,9 @@
3
3
  class TyboInstallGenerator < Rails::Generators::Base
4
4
  source_root File.expand_path("templates", __dir__)
5
5
  require_relative "./utils/translations.rb"
6
-
6
+
7
7
  def install_dependencies
8
- gem 'tailwindcss-rails', '~> 2.0', '>= 2.0.21' unless Bundler.locked_gems.specs.any? { |gem| gem.name == 'tailwindcss-rails' }
8
+ run './bin/bundle add tailwindcss-rails' unless Bundler.locked_gems.specs.any? { |gem| gem.name == 'tailwindcss-rails' }
9
9
  gem 'simple_form' unless Bundler.locked_gems.specs.any? { |gem| gem.name == 'simple_form' }
10
10
  gem 'simple_form-tailwind', '~> 0.1.1' unless Bundler.locked_gems.specs.any? { |gem| gem.name == 'simple_form-tailwind' }
11
11
  run 'bundle install'
@@ -31,8 +31,6 @@ class TyboInstallGenerator < Rails::Generators::Base
31
31
  route "mount Tybo::Engine => \"/tybo\""
32
32
  end
33
33
 
34
-
35
-
36
34
  def install_administrators
37
35
  run 'rails g bo_namespace Administrator'
38
36
  end
@@ -46,5 +44,15 @@ class TyboInstallGenerator < Rails::Generators::Base
46
44
  "application.register('dropdown', Dropdown)\napplication.register('flash', Flash)\napplication.register('search-form', SearchForm)\napplication.register('ts--search', TsSearch)\napplication.register('ts--select', TsSelect)\n"
47
45
  end
48
46
  end
47
+
48
+ def add_ransack_attributes
49
+ inject_into_file 'app/models/application_record.rb', after: "primary_abstract_class\n" do
50
+ "def self.ransackable_attributes(_auth_object = nil)
51
+ column_names + _ransackers.keys
52
+ end\ndef self.ransackable_associations(_auth_object = nil)
53
+ reflect_on_all_associations.map { |a| a.name.to_s }
54
+ end\n"
55
+ end
56
+ end
49
57
  end
50
58
 
data/lib/tybo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tybo
2
- VERSION = '0.3.16'
2
+ VERSION = '0.3.18'
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tybo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.16
4
+ version: 0.3.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michel Delpierre
8
8
  - Julien Camblan
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-01-11 00:00:00.000000000 Z
12
+ date: 2024-03-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -45,14 +45,14 @@ dependencies:
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: 3.9.0
48
+ version: 3.11.0
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: 3.9.0
55
+ version: 3.11.0
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: ransack
58
58
  requirement: !ruby/object:Gem::Requirement
@@ -73,40 +73,40 @@ dependencies:
73
73
  requirements:
74
74
  - - "~>"
75
75
  - !ruby/object:Gem::Version
76
- version: '6.0'
76
+ version: '7.0'
77
77
  - - ">="
78
78
  - !ruby/object:Gem::Version
79
- version: 6.0.1
79
+ version: 7.0.11
80
80
  type: :runtime
81
81
  prerelease: false
82
82
  version_requirements: !ruby/object:Gem::Requirement
83
83
  requirements:
84
84
  - - "~>"
85
85
  - !ruby/object:Gem::Version
86
- version: '6.0'
86
+ version: '7.0'
87
87
  - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: 6.0.1
89
+ version: 7.0.11
90
90
  - !ruby/object:Gem::Dependency
91
91
  name: devise
92
92
  requirement: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '4.8'
96
+ version: '4.9'
97
97
  - - ">="
98
98
  - !ruby/object:Gem::Version
99
- version: 4.8.1
99
+ version: 4.9.3
100
100
  type: :runtime
101
101
  prerelease: false
102
102
  version_requirements: !ruby/object:Gem::Requirement
103
103
  requirements:
104
104
  - - "~>"
105
105
  - !ruby/object:Gem::Version
106
- version: '4.8'
106
+ version: '4.9'
107
107
  - - ">="
108
108
  - !ruby/object:Gem::Version
109
- version: 4.8.1
109
+ version: 4.9.3
110
110
  description: Custom admin engine for Ruby on Rails working with generators
111
111
  email:
112
112
  - tech@tymate.com
@@ -283,7 +283,7 @@ licenses:
283
283
  - MIT
284
284
  metadata:
285
285
  homepage_uri: https://rubygems.org/gems/tybo
286
- post_install_message:
286
+ post_install_message:
287
287
  rdoc_options: []
288
288
  require_paths:
289
289
  - lib
@@ -298,8 +298,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
298
298
  - !ruby/object:Gem::Version
299
299
  version: '0'
300
300
  requirements: []
301
- rubygems_version: 3.0.3.1
302
- signing_key:
301
+ rubygems_version: 3.5.4
302
+ signing_key:
303
303
  specification_version: 4
304
304
  summary: A tailwind custom admin engine for Ruby on Rails
305
305
  test_files: []