superuser 0.3.3 → 0.3.5

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: 487d1ecfa49de1fdbe1f4b6de87d465f163087f78f2b6f938c36a290eeb1f457
4
- data.tar.gz: 2ccb0b6c9deadff8e05068a0fab17eb650a0cc7e9969b44bd0870d2b0e8d12c9
3
+ metadata.gz: d81b2ab441d7e8ad0accf5dc7c76feed1a0fe8abcb214177c916b9e042bf04bf
4
+ data.tar.gz: '0653534290c3bc7c15388b33f0d17a752f205574423f126bcfea9af446b22919'
5
5
  SHA512:
6
- metadata.gz: 904adf9db5e4eef4b417f2fb66ff449ba44acb2b3d3449aca0785adfb4f4a2b2973a15cf2c2a68a9012f0bac35b5df1214c137879ac576e90b5dbebb14dc97a8
7
- data.tar.gz: 0a0d7d7dcc1ff3d145c4e2e12a3eb2a40e7f9621ab4625570ca4b95012ae1b4c04b8ce91b61d079e3eab3ac9e6fb973e5b9c1b3036640d9a8e80380834ed74ad
6
+ metadata.gz: 41147b00ddfc5a877a797a366c35c8c3d1433065757134651193724cf3c3a19796ee326811946c0849585d681bd73e6501b12bce70afcb4036dda87ca1e4642b
7
+ data.tar.gz: fc3e0d51db6e98e63fbc8c6cc693c5bd75d51e7f42a813a1b0bea8867db9ace2f4ab66cd1ffc650730f28a3979dcb98ee04d9ffa04ca553ec35afdcbdf597b42
File without changes
@@ -56,7 +56,7 @@ class Superuser::InitGenerator < Rails::Generators::Base
56
56
  end
57
57
 
58
58
  def generate_search_form
59
- template "views/_search.html.erb", "app/views/shared/superuser/_search.html.erb"
59
+ template "views/_search.html.erb", "app/views/superuser/_search.html.erb"
60
60
  end
61
61
 
62
62
  # in case of user is using webpack_native gem then add an entry pointing to superuser "application" javascript file
@@ -102,7 +102,7 @@ class Superuser::InitGenerator < Rails::Generators::Base
102
102
  if for_webpack_native
103
103
  'app/webpack_native/src/stylesheets'
104
104
  else
105
- 'app/assets/stylesheets'
105
+ 'app/javascript/superuser'
106
106
  end
107
107
  end
108
108
 
@@ -110,7 +110,7 @@ class Superuser::InitGenerator < Rails::Generators::Base
110
110
  if for_webpack_native
111
111
  'app/webpack_native/src/javascripts'
112
112
  else
113
- 'app/javascript/packs'
113
+ 'app/javascript/superuser'
114
114
  end
115
115
  end
116
116
 
File without changes
@@ -14,7 +14,7 @@ module Superuser
14
14
  helper_method :pagy_nav
15
15
  helper_method :pagy_bootstrap_nav
16
16
  # pagy - Items per page
17
- Pagy::VARS[:items] = 15
17
+ # Pagy::VARS[:items] = 15
18
18
  # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19
19
 
20
20
  private
@@ -0,0 +1 @@
1
+ import "./superuser.scss";
@@ -5,7 +5,7 @@
5
5
  </div>
6
6
 
7
7
  <div class="text-center">
8
- <%= "<%= form_tag [:superuser, obj], method: :get, class: 'search_form' do %%>" %>
8
+ <%= "<%= form_tag [:superuser, obj.to_sym], method: :get, class: 'search_form' do %%>" %>
9
9
 
10
10
  <span class="condition-label">Condition :</span>
11
11
 
@@ -3,7 +3,7 @@
3
3
  <%#= without method_messing available as helper, it should be [main_app, :new, :superuser, @model.table_name.singularize] %>
4
4
  <%= "<%= link_to 'Add new #{resource}', [:new, :superuser, :#{resource}], class: 'btn btn-info float-sm-right' %%>" %>
5
5
 
6
- <%= "<%= render 'shared/superuser/search', obj: '#{resources}' %%>" %>
6
+ <%= "<%= render 'superuser/search', obj: '#{resources}' %%>" %>
7
7
 
8
8
  <div class="table-responsive">
9
9
 
@@ -11,8 +11,8 @@
11
11
  <%= '<%= webpack_stylesheet_url "superuser", media: "all", "data-turbolinks-track": "reload" %%>' %>
12
12
  <%= '<%= webpack_javascript_url "superuser", "data-turbolinks-track": "reload" %%>' %>
13
13
  <% else -%>
14
- <%= '<%= stylesheet_link_tag "superuser", media: "all" %%>' %>
15
- <%= '<%= javascript_pack_tag "superuser" %%>' %>
14
+ <%= '<%= stylesheet_link_tag "superuser", "data-turbo-track": "reload" %%>' %>
15
+ <%= '<%= javascript_include_tag "superuser", "data-turbo-track": "reload", defer: true %%>' %>
16
16
  <% end -%>
17
17
 
18
18
  <!-- CDN for flatpickr.css -->
@@ -1,3 +1,3 @@
1
1
  module Superuser
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.5"
3
3
  end
data/lib/superuser.rb CHANGED
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: superuser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - mody
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-06 00:00:00.000000000 Z
11
+ date: 2024-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -48,22 +48,30 @@ dependencies:
48
48
  name: pagy
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - "~>"
52
- - !ruby/object:Gem::Version
53
- version: '3.8'
54
51
  - - ">="
55
52
  - !ruby/object:Gem::Version
56
- version: 3.8.3
53
+ version: '0'
57
54
  type: :runtime
58
55
  prerelease: false
59
56
  version_requirements: !ruby/object:Gem::Requirement
60
57
  requirements:
61
- - - "~>"
58
+ - - ">="
62
59
  - !ruby/object:Gem::Version
63
- version: '3.8'
60
+ version: '0'
61
+ - !ruby/object:Gem::Dependency
62
+ name: sassc-rails
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ type: :runtime
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
64
72
  - - ">="
65
73
  - !ruby/object:Gem::Version
66
- version: 3.8.3
74
+ version: '0'
67
75
  description: This gem will help you scaffold an admin area very quickly so you can
68
76
  have full control over your code when you need customization
69
77
  email:
@@ -110,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
118
  - !ruby/object:Gem::Version
111
119
  version: '0'
112
120
  requirements: []
113
- rubygems_version: 3.1.2
121
+ rubygems_version: 3.5.3
114
122
  signing_key:
115
123
  specification_version: 4
116
124
  summary: Build An Admin Area Easily.