pwice_grid 5.0.1 → 6.1.2

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: f27f4bb9cd4058cc5f67d559c0e2eb78c9b59eea7305a86b8d5203d44fc47e55
4
- data.tar.gz: 8fb078130fc721c250098cc1c0bab47f330678d09527b36f001114760baa9726
3
+ metadata.gz: 5faa65cf58dfb90092c99b86becac3f47499051bdd5eb605ce654274428eb886
4
+ data.tar.gz: 56c8b164447e1d79688bdd31df2b05af1604a07817eff31569c0b9efcfbb5b43
5
5
  SHA512:
6
- metadata.gz: a73eca586d4300e7f54074e16a89f25bbf68bc08d8b47ed05d00bd13e707a67f266f10718de7cafa76541fd58e8f43debfca6b11bb8d75d7d7035487d34a2820
7
- data.tar.gz: 56f1f0add4a9a252e8ad39fe793b426568c42e230c3dc3abc2d74cd7b144adf692b5ebfa92761621417f99c7b40b56432d4837da2cc282f96c4fbcabef1e58dd
6
+ metadata.gz: 32a5b2a05d50ead8d22e39e8bb51bb6d663e6c0ff497c75188a030fb783b0781510da96299e3237d6541f0d050b869e8062dc853b52d57a340f33fd54882e6f5
7
+ data.tar.gz: a097001849f3eed5dae9c4cba2112abfd7afd33ee20db93030a5d9bab028eeb2c944f361628377fae6cfdc1a64cc5178434b025ee4d767c39f09aafed50b4190
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pwice_grid (5.0.0)
4
+ wice_grid (4.1.0)
5
5
  coffee-rails (> 3.2)
6
6
  kaminari (~> 1.1)
7
7
  rails (>= 5.0, < 7)
@@ -113,18 +113,18 @@ GEM
113
113
  jquery-ui-themes (0.0.12)
114
114
  httparty
115
115
  json (1.8.6)
116
- kaminari (1.2.1)
116
+ kaminari (1.1.1)
117
117
  activesupport (>= 4.1.0)
118
- kaminari-actionview (= 1.2.1)
119
- kaminari-activerecord (= 1.2.1)
120
- kaminari-core (= 1.2.1)
121
- kaminari-actionview (1.2.1)
118
+ kaminari-actionview (= 1.1.1)
119
+ kaminari-activerecord (= 1.1.1)
120
+ kaminari-core (= 1.1.1)
121
+ kaminari-actionview (1.1.1)
122
122
  actionview
123
- kaminari-core (= 1.2.1)
124
- kaminari-activerecord (1.2.1)
123
+ kaminari-core (= 1.1.1)
124
+ kaminari-activerecord (1.1.1)
125
125
  activerecord
126
- kaminari-core (= 1.2.1)
127
- kaminari-core (1.2.1)
126
+ kaminari-core (= 1.1.1)
127
+ kaminari-core (1.1.1)
128
128
  launchy (2.4.3)
129
129
  addressable (~> 2.3)
130
130
  libv8 (3.16.14.19)
@@ -139,7 +139,7 @@ GEM
139
139
  minitest (5.11.1)
140
140
  multi_json (1.13.1)
141
141
  multi_xml (0.6.0)
142
- nio4r (2.5.7)
142
+ nio4r (2.5.2)
143
143
  nokogiri (1.10.1)
144
144
  mini_portile2 (~> 2.4.0)
145
145
  poltergeist (1.18.1)
@@ -280,7 +280,6 @@ DEPENDENCIES
280
280
  jquery-ui-rails (~> 5.0.5)
281
281
  jquery-ui-themes (~> 0.0.11)
282
282
  poltergeist (~> 1.18.0)
283
- pwice_grid!
284
283
  rake (~> 10.1)
285
284
  rdoc (~> 4.2.0)
286
285
  rspec (~> 3.6.0)
@@ -292,6 +291,7 @@ DEPENDENCIES
292
291
  sqlite3 (~> 1.3)
293
292
  therubyracer
294
293
  turbolinks (~> 5.1.1)
294
+ wice_grid!
295
295
  yard (~> 0.8)
296
296
 
297
297
  BUNDLED WITH
@@ -55,6 +55,7 @@ module Wice
55
55
 
56
56
  def init_columns_of_table(model) #:nodoc:
57
57
  self[model] = HashWithIndifferentAccess.new(model.columns.index_by(&:name))
58
+ self[model].transform_values! { |c| c.dup }
58
59
  @by_table_names[model.table_name] = self[model]
59
60
  self[model].each_value { |c| c.model = model }
60
61
  end
@@ -8,7 +8,9 @@ module Wice
8
8
 
9
9
  def initialize(name, field_separator, encoding = nil) #:nodoc:
10
10
  @tempfile = Tempfile.new(name)
11
+ @tempfile.chmod 0640
11
12
  @tempfile.set_encoding(encoding) unless encoding.blank?
13
+ @tempfile.write("\ufeff") # add byte order mark to help with Excel import
12
14
  @csv = CSV.new(@tempfile, col_sep: field_separator)
13
15
  end
14
16
 
data/wice_grid.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'pwice_grid'
3
- s.version = '5.0.1'
3
+ s.version = '6.1.2'
4
4
  s.authors = ['Yuri Leikind and contributors']
5
5
  s.email = ['ryantm@pololu.com']
6
6
  s.homepage = 'https://github.com/pololu/pwice_grid'
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
15
15
  s.require_paths = ['lib']
16
16
  s.date = '2021-03-31'
17
17
 
18
- s.add_dependency 'rails', '>= 5.0', '< 7'
18
+ s.add_dependency 'rails', '>= 6.1', '< 7'
19
19
  s.add_dependency 'kaminari', ['~> 1.1']
20
20
  s.add_dependency 'coffee-rails', ['> 3.2']
21
21
 
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pwice_grid
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.1
4
+ version: 6.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuri Leikind and contributors
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2021-03-31 00:00:00.000000000 Z
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '5.0'
19
+ version: '6.1'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '7'
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '5.0'
29
+ version: '6.1'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '7'
@@ -838,7 +838,7 @@ homepage: https://github.com/pololu/pwice_grid
838
838
  licenses:
839
839
  - MIT
840
840
  metadata: {}
841
- post_install_message:
841
+ post_install_message:
842
842
  rdoc_options: []
843
843
  require_paths:
844
844
  - lib
@@ -853,8 +853,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
853
853
  - !ruby/object:Gem::Version
854
854
  version: '0'
855
855
  requirements: []
856
- rubygems_version: 3.0.6
857
- signing_key:
856
+ rubygems_version: 3.2.16
857
+ signing_key:
858
858
  specification_version: 4
859
859
  summary: A Rails grid plugin to quickly create grids with sorting, pagination, and
860
860
  filters.