activeadmin 2.6.0 → 2.6.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of activeadmin might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 31e6adaf39f455cb8188d2982a201d9853a2976e9ae446dcc7958882a6f15422
4
- data.tar.gz: 58b45a79713a68cf75a9e0bb13b7cfe90bf5bf1c01e403375de2acdd4ad16881
3
+ metadata.gz: 8ce87c19dbaccfc28fd5c36d12f1ef679772a70bd1ae8a131182d277d3de4cb3
4
+ data.tar.gz: d0b56716796cb013d8d874280366d8fb424366ee3979bf6549585ef505836d79
5
5
  SHA512:
6
- metadata.gz: 2c633c0f35fb6a9a90677e8f13d1c7194c8ff3ec3e267ca9249fd0343f09a319ac15148e8067be5b483fb5feab8d6cc9213208ffc24609b233b3b3335d2ba3ca
7
- data.tar.gz: 815d48181cbdcc9e36ea268217e320f3542a8791b659b931ca51a7a035d478e3cf00fb84f23e5e7021bc015bafd6c28b04add620a3414953ba32e65d8b7a9da3
6
+ metadata.gz: fcda92e560081295c175f08b876594a5bc3ea38cfcb523a15e803a086c97306574801d279ffc2f553902a4aaf2e77eece4b4e065bb26a11f12e031b2d0a94257
7
+ data.tar.gz: ca2e295171c638b40f376bf8fd56a7027c79d08a063b534a666b9761e5f4102b436bfc34cc99b3cf8bab7a12a586fe7c702f62661a885f1291974efb73b14490
@@ -2,6 +2,15 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 2.6.1 [☰](https://github.com/activeadmin/activeadmin/compare/v2.6.0..2.6.1)
6
+
7
+ ### Bug Fixes
8
+
9
+ * Fix some ruby 2.7 warnings about keyword args. [#6000] by [@vcsjones]
10
+ * Missing `create_another` translation in Vietnamese. [#6002] by [@imcvampire]
11
+ * Using "destroy" for user facing message is too robotic, prefer "delete". [#6047] by [@vfonic]
12
+ * Typo in confirmation message for comment deletion. [#6047] by [@vfonic]
13
+
5
14
  ## 2.6.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.5.0..v2.6.0)
6
15
 
7
16
  ### Enhacements
@@ -531,6 +540,7 @@ Please check [0-6-stable] for previous changes.
531
540
  [#5877]: https://github.com/activeadmin/activeadmin/pull/5877
532
541
  [#5886]: https://github.com/activeadmin/activeadmin/pull/5886
533
542
  [#5870]: https://github.com/activeadmin/activeadmin/pull/5870
543
+ [#5894]: https://github.com/activeadmin/activeadmin/pull/5894
534
544
  [#5895]: https://github.com/activeadmin/activeadmin/pull/5895
535
545
  [#5867]: https://github.com/activeadmin/activeadmin/pull/5867
536
546
  [#5887]: https://github.com/activeadmin/activeadmin/pull/5887
@@ -541,6 +551,9 @@ Please check [0-6-stable] for previous changes.
541
551
  [#5946]: https://github.com/activeadmin/activeadmin/pull/5946
542
552
  [#5956]: https://github.com/activeadmin/activeadmin/pull/5956
543
553
  [#5957]: https://github.com/activeadmin/activeadmin/pull/5957
554
+ [#6000]: https://github.com/activeadmin/activeadmin/pull/6000
555
+ [#6002]: https://github.com/activeadmin/activeadmin/pull/6002
556
+ [#6047]: https://github.com/activeadmin/activeadmin/pull/6047
544
557
 
545
558
  [@5t111111]: https://github.com/5t111111
546
559
  [@aarek]: https://github.com/aarek
@@ -575,6 +588,7 @@ Please check [0-6-stable] for previous changes.
575
588
  [@gonzedge]: https://github.com/gonzedge
576
589
  [@guigs]: https://github.com/guigs
577
590
  [@HappyKadaver]: https://github.com/HappyKadaver
591
+ [@imcvampire]: https://github.com/imcvampire
578
592
  [@innparusu95]: https://github.com/innparusu95
579
593
  [@ionut998]: https://github.com/ionut998
580
594
  [@irmela]: https://github.com/irmela
@@ -618,6 +632,8 @@ Please check [0-6-stable] for previous changes.
618
632
  [@timoschilling]: https://github.com/timoschilling
619
633
  [@TimPetricola]: https://github.com/TimPetricola
620
634
  [@varyonic]: https://github.com/varyonic
635
+ [@vcsjones]: https://github.com/vcsjones
636
+ [@vfonic]: https://github.com/vfonic
621
637
  [@violeta-p]: https://github.com/violeta-p
622
638
  [@WaKeMaTTa]: https://github.com/WaKeMaTTa
623
639
  [@wasifhossain]: https://github.com/wasifhossain
@@ -191,24 +191,12 @@ met.
191
191
  Maintainers need to do the following to push out a release:
192
192
 
193
193
  * Make sure all pull requests are in and that changelog is current
194
- * Update `version.rb` file and changelog with new version number
195
- * If it's not a patch level release, create a stable branch for that release,
196
- otherwise switch to the stable branch corresponding to the patch release you
197
- want to ship:
198
-
199
- ```sh
200
- git checkout master
201
- git fetch activeadmin
202
- git rebase activeadmin/master
203
- # If the release is 2.1.x then this should be: 2-1-stable
204
- git checkout -b N-N-stable
205
- git push activeadmin N-N-stable:N-N-stable
206
- ```
207
-
194
+ * Switch to the master branch and make sure it's up to date.
208
195
  * Make sure you have [chandler] properly configured. Chandler is used to
209
196
  automatically submit github release notes from the changelog right after
210
197
  pushing the gem to rubygems.
211
- * `bin/rake release`
198
+ * Run one of `bin/rake release:prepare_{prerelease,prepatch,patch,preminor,minor,premajor,major}`, push the result and create a PR.
199
+ * Run `bin/rake release` from the target branch once the PR is merged.
212
200
 
213
201
  [chandler]: https://github.com/mattbrictson/chandler#2-configure-credentials
214
202
  [Stack Overflow]: http://stackoverflow.com/questions/tagged/activeadmin
@@ -68,8 +68,8 @@
68
68
  default_confirmation: "Are you sure you want to do this?"
69
69
  delete_confirmation: "Are you sure you want to delete these %{plural_model}?"
70
70
  succesfully_destroyed:
71
- one: "Successfully destroyed 1 %{model}"
72
- other: "Successfully destroyed %{count} %{plural_model}"
71
+ one: "Successfully deleted 1 %{model}"
72
+ other: "Successfully deleted %{count} %{plural_model}"
73
73
  selection_toggle_explanation: "(Toggle Selection)"
74
74
  action_label: "%{title} Selected"
75
75
  labels:
@@ -82,7 +82,7 @@
82
82
  author: "Author"
83
83
  add: "Add Comment"
84
84
  delete: "Delete Comment"
85
- delete_confirmation: "Are you sure you want to delete these comment?"
85
+ delete_confirmation: "Are you sure you want to delete these comments?"
86
86
  resource: "Resource"
87
87
  no_comments_yet: "No comments yet."
88
88
  author_missing: "Anonymous"
@@ -68,8 +68,8 @@
68
68
  default_confirmation: "Are you sure you want to do this?"
69
69
  delete_confirmation: "Are you sure you want to delete these %{plural_model}?"
70
70
  succesfully_destroyed:
71
- one: "Successfully destroyed 1 %{model}"
72
- other: "Successfully destroyed %{count} %{plural_model}"
71
+ one: "Successfully deleted 1 %{model}"
72
+ other: "Successfully deleted %{count} %{plural_model}"
73
73
  selection_toggle_explanation: "(Toggle Selection)"
74
74
  action_label: "%{title} Selected"
75
75
  labels:
@@ -82,7 +82,7 @@
82
82
  author: "Author"
83
83
  add: "Add Comment"
84
84
  delete: "Delete Comment"
85
- delete_confirmation: "Are you sure you want to delete these comment?"
85
+ delete_confirmation: "Are you sure you want to delete these comments?"
86
86
  resource: "Resource"
87
87
  no_comments_yet: "No comments yet."
88
88
  author_missing: "Anonymous"
@@ -91,8 +91,8 @@ en:
91
91
  default_confirmation: "Are you sure you want to do this?"
92
92
  delete_confirmation: "Are you sure you want to delete these %{plural_model}?"
93
93
  succesfully_destroyed:
94
- one: "Successfully destroyed 1 %{model}"
95
- other: "Successfully destroyed %{count} %{plural_model}"
94
+ one: "Successfully deleted 1 %{model}"
95
+ other: "Successfully deleted %{count} %{plural_model}"
96
96
  selection_toggle_explanation: "(Toggle Selection)"
97
97
  action_label: "%{title} Selected"
98
98
  labels:
@@ -105,7 +105,7 @@ en:
105
105
  author: "Author"
106
106
  add: "Add Comment"
107
107
  delete: "Delete Comment"
108
- delete_confirmation: "Are you sure you want to delete these comment?"
108
+ delete_confirmation: "Are you sure you want to delete these comments?"
109
109
  resource: "Resource"
110
110
  no_comments_yet: "No comments yet."
111
111
  author_missing: "Anonymous"
@@ -60,8 +60,8 @@ lv:
60
60
  default_confirmation: "Vai tiešām vēlaties to darīt?"
61
61
  delete_confirmation: "Vai tiešām vēlaties dzēst šos %{plural_model}?"
62
62
  succesfully_destroyed:
63
- one: "Successfully destroyed 1 %{model}"
64
- other: "Successfully destroyed %{count} %{plural_model}"
63
+ one: "Successfully deleted 1 %{model}"
64
+ other: "Successfully deleted %{count} %{plural_model}"
65
65
  selection_toggle_explanation: "(Toggle Selection)"
66
66
  action_label: "%{title} Selected"
67
67
  labels:
@@ -11,6 +11,7 @@ vi:
11
11
  new_model: "Tạo mới %{model}"
12
12
  edit_model: "Chỉnh sửa %{model}"
13
13
  delete_model: "Xóa %{model}"
14
+ create_another: "Tạo thêm %{model}"
14
15
  details: "%{model} Chi tiết"
15
16
  cancel: "Hủy"
16
17
  empty: "Trống"
@@ -1,7 +1,7 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- activesupport (6.0.1)
4
+ activesupport (6.0.2.1)
5
5
  concurrent-ruby (~> 1.0, >= 1.0.2)
6
6
  i18n (>= 0.7, < 2)
7
7
  minitest (~> 5.1)
@@ -26,12 +26,12 @@ GEM
26
26
  ffi (>= 1.3.0)
27
27
  eventmachine (1.2.7)
28
28
  execjs (2.7.0)
29
- faraday (0.17.1)
29
+ faraday (1.0.0)
30
30
  multipart-post (>= 1.2, < 3)
31
- ffi (1.11.3)
31
+ ffi (1.12.1)
32
32
  forwardable-extended (2.6.0)
33
33
  gemoji (3.0.1)
34
- github-pages (203)
34
+ github-pages (204)
35
35
  github-pages-health-check (= 1.16.1)
36
36
  jekyll (= 3.8.5)
37
37
  jekyll-avatar (= 0.7.0)
@@ -40,7 +40,7 @@ GEM
40
40
  jekyll-default-layout (= 0.1.4)
41
41
  jekyll-feed (= 0.13.0)
42
42
  jekyll-gist (= 1.5.0)
43
- jekyll-github-metadata (= 2.12.1)
43
+ jekyll-github-metadata (= 2.13.0)
44
44
  jekyll-mentions (= 1.5.1)
45
45
  jekyll-optional-front-matter (= 0.3.2)
46
46
  jekyll-paginate (= 1.1.0)
@@ -80,7 +80,7 @@ GEM
80
80
  octokit (~> 4.0)
81
81
  public_suffix (~> 3.0)
82
82
  typhoeus (~> 1.3)
83
- html-pipeline (2.12.2)
83
+ html-pipeline (2.12.3)
84
84
  activesupport (>= 2)
85
85
  nokogiri (>= 1.4)
86
86
  http_parser.rb (0.6.0)
@@ -117,8 +117,8 @@ GEM
117
117
  jekyll (>= 3.7, < 5.0)
118
118
  jekyll-gist (1.5.0)
119
119
  octokit (~> 4.2)
120
- jekyll-github-metadata (2.12.1)
121
- jekyll (~> 3.4)
120
+ jekyll-github-metadata (2.13.0)
121
+ jekyll (>= 3.4, < 5.0)
122
122
  octokit (~> 4.0, != 4.4.0)
123
123
  jekyll-mentions (1.5.1)
124
124
  html-pipeline (~> 2.3)
@@ -193,7 +193,7 @@ GEM
193
193
  jekyll (>= 3.0, < 5.0)
194
194
  kramdown (1.17.0)
195
195
  liquid (4.0.3)
196
- listen (3.2.0)
196
+ listen (3.2.1)
197
197
  rb-fsevent (~> 0.10, >= 0.10.3)
198
198
  rb-inotify (~> 0.9, >= 0.9.10)
199
199
  mercenary (0.3.6)
@@ -202,17 +202,18 @@ GEM
202
202
  jekyll (>= 3.5, < 5.0)
203
203
  jekyll-feed (~> 0.9)
204
204
  jekyll-seo-tag (~> 2.1)
205
- minitest (5.13.0)
205
+ minitest (5.14.0)
206
206
  multipart-post (2.1.1)
207
- nokogiri (1.10.6)
207
+ nokogiri (1.10.7)
208
208
  mini_portile2 (~> 2.4.0)
209
- octokit (4.14.0)
209
+ octokit (4.15.0)
210
+ faraday (>= 0.9)
210
211
  sawyer (~> 0.8.0, >= 0.5.3)
211
212
  pathutil (0.16.2)
212
213
  forwardable-extended (~> 2.6)
213
214
  public_suffix (3.1.1)
214
215
  rb-fsevent (0.10.3)
215
- rb-inotify (0.10.0)
216
+ rb-inotify (0.10.1)
216
217
  ffi (~> 1.0)
217
218
  rouge (3.13.0)
218
219
  ruby-enum (0.7.2)
@@ -232,9 +233,9 @@ GEM
232
233
  thread_safe (0.3.6)
233
234
  typhoeus (1.3.1)
234
235
  ethon (>= 0.9.0)
235
- tzinfo (1.2.5)
236
+ tzinfo (1.2.6)
236
237
  thread_safe (~> 0.1)
237
- unicode-display_width (1.6.0)
238
+ unicode-display_width (1.6.1)
238
239
  zeitwerk (2.2.2)
239
240
 
240
241
  PLATFORMS
@@ -51,14 +51,14 @@ module ActiveAdmin
51
51
  csv << bom if bom
52
52
 
53
53
  if column_names
54
- csv << CSV.generate_line(columns.map { |c| encode c.name, options }, csv_options)
54
+ csv << CSV.generate_line(columns.map { |c| encode c.name, options }, **csv_options)
55
55
  end
56
56
 
57
57
  ActiveRecord::Base.uncached do
58
58
  (1..paginated_collection.total_pages).each do |page|
59
59
  paginated_collection(page).each do |resource|
60
60
  resource = controller.send :apply_decorator, resource
61
- csv << CSV.generate_line(build_row(resource, columns, options), csv_options)
61
+ csv << CSV.generate_line(build_row(resource, columns, options), **csv_options)
62
62
  end
63
63
  end
64
64
  end
@@ -81,7 +81,11 @@ module ActiveAdmin
81
81
 
82
82
  def encode(content, options)
83
83
  if options[:encoding]
84
- content.to_s.encode options[:encoding], options[:encoding_options]
84
+ if options[:encoding_options]
85
+ content.to_s.encode options[:encoding], **options[:encoding_options]
86
+ else
87
+ content.to_s.encode options[:encoding]
88
+ end
85
89
  else
86
90
  content
87
91
  end
@@ -21,7 +21,7 @@ module ActiveAdmin
21
21
  scope = options.delete(:scope)
22
22
  specific_key = array_to_key('resources', @model_name, scope, key)
23
23
  defaults = [array_to_key(scope, key), key.to_s.titleize]
24
- ::I18n.t specific_key, options.reverse_merge(model: @model, default: defaults, scope: 'active_admin')
24
+ ::I18n.t specific_key, **options.reverse_merge(model: @model, default: defaults, scope: 'active_admin')
25
25
  end
26
26
  alias_method :t, :translate
27
27
 
@@ -46,7 +46,7 @@ module ActiveAdmin
46
46
  end
47
47
 
48
48
  def translate(options = {})
49
- I18n.t i18n_key, { scope: [:activerecord, :models] }.merge(options)
49
+ I18n.t i18n_key, **{ scope: [:activerecord, :models] }.merge(options)
50
50
  end
51
51
 
52
52
  def route_key
@@ -1,3 +1,3 @@
1
1
  module ActiveAdmin
2
- VERSION = '2.6.0'
2
+ VERSION = '2.6.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0
4
+ version: 2.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Maresh
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2019-12-16 00:00:00.000000000 Z
18
+ date: 2020-02-03 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: arbre
@@ -599,7 +599,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
599
599
  - !ruby/object:Gem::Version
600
600
  version: '0'
601
601
  requirements: []
602
- rubygems_version: 3.1.1
602
+ rubygems_version: 3.1.2
603
603
  signing_key:
604
604
  specification_version: 4
605
605
  summary: Active Admin is a Ruby on Rails plugin for generating administration style