activeadmin 0.6.5 → 0.6.6

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
  SHA1:
3
- metadata.gz: 842a8c9499f04c81ff55eec25e730a6a3b4200b3
4
- data.tar.gz: aa2c77337e5e893d15ee1de11b2f39dff75038ee
3
+ metadata.gz: 45c6ee86f21893e01b4a7da95f87eff301071cd6
4
+ data.tar.gz: 40ab9df25f437e685017a6f9d8794ad5e5b6f08e
5
5
  SHA512:
6
- metadata.gz: 215b347f690e66ec1e6d763e588f4f0afeb0e6c7dd35f3d087a94906dd429613879299f99f953e9c4b7f9ac3e4a0fe9927ef1ab141fb4693617878ae8b846beb
7
- data.tar.gz: 59d6acc3c8adb45d1e66aabd36b28171b570621dc7074aa8d391b66c038fc17a58230239e5ec1452e24c86d14ce7c698d7b65902dba9a36a118b0d5b8eb76209
6
+ metadata.gz: 7605bc8de9525538dc8cc5125145857530be95830abbd55ff25d8243a2431c7d943d718f6d08cea1742a472a2ab81db2e130be918dce45ef21a549efee2c0a90
7
+ data.tar.gz: f7160c208b717e869584cb20b499605510d4d288683afbe685a3c11a5ef9bbaf997b3ceaf7cb1378ced949b51fa7d089779840134ac54547edd85bf499d82b41
data/.gitignore CHANGED
@@ -2,6 +2,7 @@
2
2
  .DS_Store
3
3
 
4
4
  ## TEXTMATE
5
+ *.tm_project
5
6
  *.tmproj
6
7
  tmtags
7
8
 
@@ -41,3 +42,5 @@ public
41
42
  .rspec
42
43
  .rails-version
43
44
  .rbenv-version
45
+ # for easy switching between master and 0-6-stable
46
+ .localeapp
@@ -1,8 +1,7 @@
1
1
  script: bundle exec rake test
2
2
  rvm:
3
3
  - 1.9.3
4
- - 2.0.0
5
- - 2.2.0
4
+ - 2.2
6
5
  before_install:
7
6
  - gem update --system
8
7
  - gem --version
@@ -13,7 +12,5 @@ env:
13
12
  - RAILS=3.2.14
14
13
  matrix:
15
14
  exclude:
16
- - rvm: 2.0.0
17
- env: RAILS=3.0.20
18
- - rvm: 2.2.0
15
+ - rvm: 2.2
19
16
  env: RAILS=3.0.20
@@ -1,4 +1,10 @@
1
- ## 0-6-stable (unreleased) - [compare](https://github.com/gregbell/active_admin/compare/v0.6.5...0-6-stable)
1
+ ## 0-6-stable (unreleased) - [compare](https://github.com/gregbell/active_admin/compare/v0.6.6...0-6-stable)
2
+
3
+ ## 0.6.6 - [compare](https://github.com/gregbell/active_admin/compare/v0.6.5...v0.6.6)
4
+
5
+ * Backport of [#3779][] from [@aaronsakowski][] by [@timoschilling][]
6
+ * Fix issue with model attribute matching metasearch method name [#3698][] by [@azach][]
7
+ * Fix default delete prompt on Rails 3.0.x [#3765][] by [@craigmcnamara][]
2
8
 
3
9
  ## 0.6.5 - [compare](https://github.com/gregbell/active_admin/compare/v0.6.4...v0.6.5)
4
10
 
@@ -936,6 +942,9 @@ of the highlights. 250 commits. Enough said.
936
942
  [#2847]: https://github.com/activeadmin/activeadmin/issues/2847
937
943
  [#3489]: https://github.com/activeadmin/activeadmin/issues/3489
938
944
  [#3659]: https://github.com/activeadmin/activeadmin/issues/3659
945
+ [#3698]: https://github.com/activeadmin/activeadmin/issues/3698
946
+ [#3765]: https://github.com/activeadmin/activeadmin/issues/3765
947
+ [#3779]: https://github.com/activeadmin/activeadmin/issues/3779
939
948
  [@Bishop]: https://github.com/Bishop
940
949
  [@BoboFraggins]: https://github.com/BoboFraggins
941
950
  [@DMajrekar]: https://github.com/DMajrekar
@@ -945,15 +954,18 @@ of the highlights. 250 commits. Enough said.
945
954
  [@TBAA]: https://github.com/TBAA
946
955
  [@TiagoCardoso1983]: https://github.com/TiagoCardoso1983
947
956
  [@ZequeZ]: https://github.com/ZequeZ
957
+ [@aaronsakowski]: https://github.com/aaronsakowski
948
958
  [@adrienkohlbecker]: https://github.com/adrienkohlbecker
949
959
  [@ai]: https://github.com/ai
950
960
  [@amiel]: https://github.com/amiel
961
+ [@azach]: https://github.com/azach
951
962
  [@ball-hayden]: https://github.com/ball-hayden
952
963
  [@bobbytables]: https://github.com/bobbytables
953
964
  [@caifara]: https://github.com/caifara
954
965
  [@cknoxrun]: https://github.com/cknoxrun
955
966
  [@comboy]: https://github.com/comboy
956
967
  [@coreyward]: https://github.com/coreyward
968
+ [@craigmcnamara]: https://github.com/craigmcnamara
957
969
  [@dapi]: https://github.com/dapi
958
970
  [@dbussin]: https://github.com/dbussin
959
971
  [@developer88]: https://github.com/developer88
@@ -1,7 +1,7 @@
1
1
  window.ActiveAdmin.CheckboxToggler = class ActiveAdmin.CheckboxToggler
2
2
  constructor: (@options, @container)->
3
3
  defaults = {}
4
- @options = $.extend {}, defaults, options
4
+ @options = $.extend {}, defaults, @options
5
5
  @_init()
6
6
  @_bind()
7
7
 
@@ -10,7 +10,7 @@ window.ActiveAdmin.DropdownMenu = class ActiveAdmin.DropdownMenu
10
10
  onClickActionItemCallback: null
11
11
  }
12
12
 
13
- @options = $.extend({}, defaults, options)
13
+ @options = $.extend({}, defaults, @options)
14
14
 
15
15
  @$menuButton = @$element.find(".dropdown_menu_button")
16
16
  @$menuList = @$element.find(".dropdown_menu_list_wrapper")
@@ -9,7 +9,7 @@ module ActiveAdmin
9
9
  # If the filter method includes a search condition, build a normal string search field.
10
10
  # Else, build a search field with a companion dropdown to choose a search condition from.
11
11
  def to_html
12
- if @object.respond_to? method
12
+ if @object.methods.exclude?(method) && @object.respond_to?(method)
13
13
  input_wrapping do
14
14
  label_html <<
15
15
  builder.text_field(method, input_html_options)
@@ -70,7 +70,7 @@ module ActiveAdmin
70
70
  if controller.action_methods.include?("destroy") && authorized?(ActiveAdmin::Auth::DESTROY, resource)
71
71
  link_to(I18n.t('active_admin.delete_model', :model => active_admin_config.resource_label),
72
72
  resource_path(resource),
73
- :method => :delete, :data => {:confirm => I18n.t('active_admin.delete_confirmation')})
73
+ :method => :delete, 'data-confirm' => I18n.t('active_admin.delete_confirmation'))
74
74
  end
75
75
  end
76
76
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveAdmin
2
- VERSION = '0.6.5'
2
+ VERSION = '0.6.6'
3
3
  end
@@ -194,7 +194,7 @@ module ActiveAdmin
194
194
  links << link_to(I18n.t('active_admin.edit'), edit_resource_path(resource), :class => "member_link edit_link")
195
195
  end
196
196
  if controller.action_methods.include?('destroy') && authorized?(ActiveAdmin::Auth::DESTROY, resource)
197
- links << link_to(I18n.t('active_admin.delete'), resource_path(resource), :method => :delete, :data => {:confirm => I18n.t('active_admin.delete_confirmation')}, :class => "member_link delete_link")
197
+ links << link_to(I18n.t('active_admin.delete'), resource_path(resource), :method => :delete, 'data-confirm' => I18n.t('active_admin.delete_confirmation'), :class => "member_link delete_link")
198
198
  end
199
199
  links
200
200
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
4
+ version: 0.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Bell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-28 00:00:00.000000000 Z
11
+ date: 2015-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: arbre