active_scaffold 3.6.4 → 3.6.6

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c2aecb1c0513a318aeaa726f5c077b7b8f31608861890f316615187e6e53e7a8
4
- data.tar.gz: de1535be3e41666fcf2e7a9a50b61a39d328466f3094a8d0089a83fe8ab56c98
3
+ metadata.gz: db4ded41b22bcb1ff0c1f9d2e59499bd37127ffc4600e53fc24856a9ef525897
4
+ data.tar.gz: e3b57c93d2250d0ac83f618ee38c04b8514d56817555bace633a2a9efb05d3ed
5
5
  SHA512:
6
- metadata.gz: 29d77b4bdf5901be5b856242aee5a511208541dd7ef70e83e06ad0c411999406ab39e4bfe2ed864ed88da8d0aa7369df023b823f00be9dfdfa87a0e6b44e06e4
7
- data.tar.gz: e00f0ade90a6a1a4e62f7b3590bd039aed8d8b5d9a00f9d6d1e12d68662aed6be672aec16563bd5014bda61810e3cedcbbb178070b052e2f8a5eb26bbc46b2b9
6
+ metadata.gz: c1a48c8654117d2829cdde939ab632b797287312dfe37fe88d73594b70ef2d48b4cac5872158fb56a090808daa6334310ab3ac8efc73de0109850760ed5673ee
7
+ data.tar.gz: 58052fce6e32e54e28cc3d77c43f2a952b32be8c6a314a07047537a1d3c62931476d30c787a0cd239329c099e8dbdff6032d31610fb93cd83e79192ec27c192d
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,12 @@
1
+ = 3.6.6
2
+ - Fix format string for timezone in jquery timepicker
3
+
4
+ = 3.6.5
5
+ - Support timezone in jquery timepicker
6
+
7
+ = 3.6.4.1
8
+ - Actually fix country_select bridge for latest gem version
9
+
1
10
  = 3.6.4
2
11
  - Fix country_select bridge for latest gem version
3
12
 
@@ -45,7 +54,7 @@
45
54
  - Display loading indicator at bottom on auto pagination
46
55
  - List rendering speed up
47
56
  - Remove font family from CSS, it was preventing from changing it easily in body
48
- - Fix search for mongoid models in with threadsafety enabled
57
+ - Fix search for mongoid models with threadsafety enabled
49
58
  - Keep nested params after calling render_field for column in subform
50
59
  - Fix nested for controllers without list action (for example, for nested create on singular assocations)
51
60
  - Fix delayed setup issues with threads
@@ -41,6 +41,7 @@ de:
41
41
  closeText: Schließen
42
42
  currentText: Jetzt
43
43
  timeText: Uhrzeit
44
+ timezoneText: Timezone
44
45
  days: Tage
45
46
  delete: Löschen
46
47
  deleted_model: "%{model} gelöscht"
@@ -41,6 +41,7 @@ en:
41
41
  closeText: Close
42
42
  currentText: Now
43
43
  timeText: Hour
44
+ timezoneText: Timezone
44
45
  days: Days
45
46
  delete: Delete
46
47
  deleted_model: Deleted %{model}
@@ -41,6 +41,7 @@ es:
41
41
  closeText: Cerrar
42
42
  currentText: Ahora
43
43
  timeText: Hora
44
+ timezoneText: Zona horaria
44
45
  days: Días
45
46
  delete: Borrar
46
47
  deleted_model: "%{model} borrado"
@@ -41,6 +41,7 @@ fr:
41
41
  closeText: Fermer
42
42
  currentText: Maintenant
43
43
  timeText: Heure
44
+ timezoneText: Timezone
44
45
  days: Jours
45
46
  delete: Supprimer
46
47
  deleted_model: Suppression de %{model}
@@ -40,7 +40,8 @@ hu:
40
40
  datetime_picker_options:
41
41
  closeText:
42
42
  currentText:
43
- timeText:
43
+ timeText:
44
+ timezoneText: Timezone
44
45
  days: Days
45
46
  delete: Törlés
46
47
  deleted_model: "%{model} törölve"
@@ -40,7 +40,8 @@ ja:
40
40
  datetime_picker_options:
41
41
  closeText:
42
42
  currentText:
43
- timeText:
43
+ timeText:
44
+ timezoneText: Timezone
44
45
  days: Days
45
46
  delete: 削除
46
47
  deleted_model: "%{model}を削除しました"
@@ -40,7 +40,8 @@ ru:
40
40
  datetime_picker_options:
41
41
  closeText: Закрыть
42
42
  currentText: Текущее время
43
- timeText:
43
+ timeText:
44
+ timezoneText: Timezone
44
45
  days: дней
45
46
  delete: Удалить
46
47
  deleted_model: "%{model}: запись удалена"
@@ -3,7 +3,7 @@ module ActiveScaffold::Bridges
3
3
  module FormColumnHelpers
4
4
  def active_scaffold_input_country(column, options)
5
5
  select_options = {:prompt => as_(:_select_), :priority_countries => column.options[:priority] || [:us]}
6
- select_options[:format] = column.options[:format]
6
+ select_options[:format] = column.options[:format] if column.options[:format]
7
7
  select_options.merge!(options)
8
8
  options.reverse_merge!(column.options).except!(:prompt, :priority, :format)
9
9
  active_scaffold_select_name_with_multiple options
@@ -18,7 +18,8 @@ module ActiveScaffold::Bridges
18
18
  /%M/ => 'mm',
19
19
  /%p/ => 'tt',
20
20
  /%S/ => 'ss',
21
- /%[cUWwxXZz]/ => ''
21
+ /%z/ => 'z',
22
+ /%[cUWwxXZ]/ => ''
22
23
  }.freeze
23
24
 
24
25
  def self.date_options_for_locales
@@ -82,13 +83,14 @@ module ActiveScaffold::Bridges
82
83
 
83
84
  def self.to_datepicker_format(rails_format)
84
85
  return nil if rails_format.nil?
85
- if rails_format =~ /%[cUWwxXZz]/
86
+ unsupported = DATE_FORMAT_CONVERSION.index ''
87
+ if rails_format =~ unsupported
88
+ options = unsupported.to_s.scan(/\[(.*)\]/).dig(0, 0)&.each_char&.map { |c| "%#{c}" }
86
89
  Rails.logger.warn(
87
90
  "AS DatePicker::Helper: rails date format #{rails_format} includes options "\
88
91
  "which can't be converted to jquery datepicker format. "\
89
- 'Options %c, %U, %W, %w, %x %X, %z, %Z are not supported by datepicker and will be removed'
92
+ "Options #{options.join(', ')} are not supported by datepicker and will be removed"
90
93
  )
91
- nil
92
94
  end
93
95
  js_format = rails_format.dup
94
96
  js_format.gsub!(/([ ]|^)([^% ]\S*)/, " '\\2'")
@@ -2,7 +2,7 @@ module ActiveScaffold
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 6
5
- PATCH = 4
5
+ PATCH = 6
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_scaffold
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.4
4
+ version: 3.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Many, see README
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-11 00:00:00.000000000 Z
11
+ date: 2022-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails