thecore 1.3.24 → 1.4.0

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
  SHA1:
3
- metadata.gz: 7a051d3e25ac49e2ba3ffc7f225bd9790009e772
4
- data.tar.gz: c2a1bfae68b4b3f19704b3e2e10655d245a6a60e
3
+ metadata.gz: c840ca419a8cdd40e4edcee9536ce1cfd9cf262f
4
+ data.tar.gz: 4699cc7f9b4c4a711fafef25a89d4961078a165a
5
5
  SHA512:
6
- metadata.gz: 399c22c639dc3a53304c8de6a66755bb91c3666d2cc8689241c704d80938c2ee8e2df58fa5bd7b4e51e3bfb6730a26f666f7d2f41db574b3aec7c91467eca143
7
- data.tar.gz: 3f59116526dedbced5c9c713bf5e0f110e2ac69186e15bc93a45b390d37e25cfc39f6fed57e2ac578cb8e40d9dd8eaab1f07dfd3947ca3652739b182a72ade32
6
+ metadata.gz: 02ddd8d6b52f301c357d8246b9cf6cba2994000fdabf6f8a71e7d186492c7f60da7d80e09b8d30c2c7b042f97d446913293a3403e1737678038d18db544f545d
7
+ data.tar.gz: 7ebc6c9a3b4333566004bb7ef21c6b37cb6794a1e0e93b3ecb21738e6b475b0ca9d8f39d395e6966625f277d1abf8a9cdc002ebb3747ec1bebcc4bf8e2c7de10
data/app/models/user.rb CHANGED
@@ -117,10 +117,13 @@ class User < ApplicationRecord
117
117
  configure :email do
118
118
  visible false
119
119
  end
120
-
120
+ exclude_fields :lock_version
121
121
  # include UserRailsAdminListConcern
122
122
  end
123
-
123
+ show do
124
+ #exclude_fields :id
125
+ exclude_fields :lock_version
126
+ end
124
127
  create do
125
128
  field :password do
126
129
  required true
@@ -128,10 +131,16 @@ class User < ApplicationRecord
128
131
  field :password_confirmation do
129
132
  required true
130
133
  end
131
-
134
+ field :lock_version, :hidden do
135
+ visible true
136
+ end
132
137
  # include UserRailsAdminCreateConcern
133
138
  end
134
-
139
+ update do
140
+ configure :lock_version, :hidden do
141
+ visible true
142
+ end
143
+ end
135
144
  edit do
136
145
  field :password do
137
146
  required false
@@ -0,0 +1,5 @@
1
+ class AddLockVersionToUsers < ActiveRecord::Migration[5.2]
2
+ def change
3
+ add_column :users, :lock_version, :integer
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module Thecore
2
- VERSION = '1.3.24'.freeze
2
+ VERSION = '1.4.0'.freeze
3
3
  end
@@ -4,3 +4,18 @@ Selected Locale: en
4
4
  Selected Locale: en
5
5
  User Load (0.5ms) SELECT "users".* FROM "users" LIMIT ? [["LIMIT", 11]]
6
6
  Selected Locale: en
7
+ Selected Locale: en
8
+ DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
9
+ set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
10
+ boolean values and must have old data converted to 1 and 0 (its native boolean
11
+ serialization) before setting this flag to true. Conversion can be accomplished
12
+ by setting up a rake task which runs
13
+
14
+ ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
15
+ ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
16
+
17
+ for all models and all boolean columns, after which the flag must be set to
18
+ true by adding the following to your application.rb file:
19
+
20
+ Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
21
+ (called from <top (required)> at /home/gabrieletassoni/Git/rails/thecore_project/thecore/test/dummy/config/environment.rb:5)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.24
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-07 00:00:00.000000000 Z
11
+ date: 2018-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -342,11 +342,10 @@ files:
342
342
  - db/migrate/20141010133701_devise_create_users.rb
343
343
  - db/migrate/20150806091039_add_authentication_token_to_users.rb
344
344
  - db/migrate/20150825101810_add_roles_mask_to_users.rb
345
- - db/migrate/20151201145832_add_external_to_user.rb
346
- - db/migrate/20160331101901_add_code_to_user.rb
347
345
  - db/migrate/20160331101902_add_admin_user.rb
348
346
  - db/migrate/20161029154134_remove_friendly_id_slugs.rb
349
347
  - db/migrate/20180410134659_create_active_storage_tables.active_storage.rb
348
+ - db/migrate/20180612075225_add_lock_version_to_users.rb
350
349
  - db/seeds.rb
351
350
  - lib/abilities.rb
352
351
  - lib/active_record_extension.rb
@@ -1,5 +0,0 @@
1
- class AddExternalToUser < ActiveRecord::Migration[4.2]
2
- def change
3
- add_column :users, :third_party, :boolean, default: false
4
- end
5
- end
@@ -1,6 +0,0 @@
1
- class AddCodeToUser < ActiveRecord::Migration[4.2]
2
- def change
3
- add_column :users, :code, :string
4
- add_index :users, :code
5
- end
6
- end