rails_admin_nestable 0.3.1 → 0.3.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
  SHA1:
3
- metadata.gz: e31f2df747694f08caa2a1d3add9a8aa7c1215de
4
- data.tar.gz: f784f494392ff39e911ec591b2975df6587b219b
3
+ metadata.gz: ad20ed53c12762241b3b761e9ea19f7cb9882431
4
+ data.tar.gz: 8b1912f3a811f4741e1f6799c37c7df3c63b168b
5
5
  SHA512:
6
- metadata.gz: 53721604d3c6f1cf23d716e62cb5d96d31858181c70b9ccc490a5197959371fcd18fea23f3bab06ae38e11a411233394f4567c558ed42e2bbe5f79ac51f895eb
7
- data.tar.gz: cfb62e8aa2dd5700b68031b8447b2ab1abe80410c5664238b5ffa0487436b48553dfe294e4802fa22da470c4df66ce2544defd5425ffd8ef858e060e1991fc72
6
+ metadata.gz: cbef815453c46eb330fd0d445ffe5915b9bfdcbf8298e55533cae3def56040b86c39f92b379dc6e0633a900e423d236af1212556270e69cbe20c14a4f893217f
7
+ data.tar.gz: 8b97a67437d20e1e50c3d561aaf4b05de7932c96d0c4b1c14834e95051246dc1a6c43ebb8aa80ba01ffe27e74b1426b3a665add284641c51bf0d4ace7c5fc6b3
@@ -1,4 +1,4 @@
1
- Copyright 2014 Andrea Dal Ponte
1
+ Copyright 2015 Andrea Dal Ponte
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Rails Admin Nestable
2
2
 
3
- RailsAdmin Drag and drop tree view for Ancestry gem
3
+ RailsAdmin Drag and drop tree view for `Ancestry` and `mongoid-ancestry` gem
4
4
 
5
5
  Sample demo available at: https://github.com/dalpo/rails_admin_nestable_demo
6
6
 
@@ -12,7 +12,7 @@ Sample demo available at: https://github.com/dalpo/rails_admin_nestable_demo
12
12
  To enable rails_admin_nestable, add the following to your `Gemfile`:
13
13
 
14
14
  ```ruby
15
- gem 'rails_admin_nestable', '~> 0.3.1'
15
+ gem 'rails_admin_nestable', '~> 0.3.2'
16
16
  ```
17
17
 
18
18
  Add in your `config/initializers/rails_admin.rb` initializer the configuration:
@@ -152,7 +152,7 @@ Submitting a Pull Request:
152
152
  ## License
153
153
  **This project rocks and uses MIT-LICENSE.**
154
154
 
155
- Copyright 2014 Andrea Dal Ponte
155
+ Copyright 2015 Andrea Dal Ponte
156
156
 
157
157
  Permission is hereby granted, free of charge, to any person obtaining
158
158
  a copy of this software and associated documentation files (the
@@ -9,7 +9,7 @@ jQuery ->
9
9
  tree_nodes: serialized_tree
10
10
  success: (data) ->
11
11
  $flash = $('<div>')
12
- .addClass('nestable-flash alert')
12
+ .addClass('nestable-flash alert alert-success')
13
13
  .append( $('<button>').addClass('close').data('dismiss', 'alert').html('&times;') )
14
14
  .append( $('<span>').addClass('body').html( data ) )
15
15
 
@@ -1,16 +1,17 @@
1
- .row-fluid
2
- .span12#rails_admin_nestable
3
- - if [false, :only].exclude?(@options[:live_update])
4
- .control-group
5
- %label{:class => 'checkbox inline' }
6
- %input{ :type => 'checkbox' }= t('admin.actions.nestable.live_update')
7
- #tree_nodes.dd{:'data-update-path' => nestable_path(model_name: @abstract_model), :'data-max-depth' => tree_max_depth}
1
+ #rails_admin_nestable
2
+ - if [false, :only].exclude?(@options[:live_update])
3
+ .form-group
4
+ .checkbox
5
+ %label
6
+ = check_box_tag 'rails_admin_nestable_live_update'
7
+ = t('admin.actions.nestable.live_update')
8
+ .form-group
9
+ #tree_nodes.dd{ data: { update_path: nestable_path(model_name: @abstract_model), max_depth: tree_max_depth } }
8
10
  %ol.dd-list
9
11
  = nested_tree_nodes @tree_nodes
10
- - if @options[:live_update] != :only
11
- .form-actions
12
- %button{ :type => 'submit', :class => 'btn btn-small btn-primary' }= t('admin.actions.nestable.update')
13
-
12
+ - if @options[:live_update] != :only
13
+ .form-group
14
+ %button.btn.btn-primary{ type: 'submit' }= t('admin.actions.nestable.update')
14
15
 
15
16
  = stylesheet_link_tag 'rails_admin/rails_admin_nestable'
16
17
  = javascript_include_tag 'rails_admin/jquery.nestable'
@@ -0,0 +1,14 @@
1
+ ru:
2
+ admin:
3
+ actions:
4
+ nestable:
5
+ title: "Сортировка по %{model_label}"
6
+ menu: "Сортировка"
7
+ breadcrumb: "Сортировка"
8
+ link: "Сортировка"
9
+ bulk_link: "Сортировать выбранные %{model_label_plural}"
10
+ done: "Отсортирован"
11
+ success: "Успешно"
12
+ error: "Ошибка"
13
+ update: "Обновление"
14
+ live_update: "Живое обновление"
@@ -1,3 +1,3 @@
1
1
  module RailsAdminNestable
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_nestable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrea Dal Ponte
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-29 00:00:00.000000000 Z
11
+ date: 2015-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: rails
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '3.1'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '3.1'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: rails_admin
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -101,6 +87,7 @@ files:
101
87
  - config/locales/nestable.es.yml
102
88
  - config/locales/nestable.it.yml
103
89
  - config/locales/nestable.nl.yml
90
+ - config/locales/nestable.ru.yml
104
91
  - config/locales/nestable.sv.yml
105
92
  - config/locales/nestable.vi.yml
106
93
  - lib/rails_admin_nestable.rb
@@ -130,8 +117,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
117
  version: '0'
131
118
  requirements: []
132
119
  rubyforge_project:
133
- rubygems_version: 2.4.4
120
+ rubygems_version: 2.4.6
134
121
  signing_key:
135
122
  specification_version: 4
136
123
  summary: RailsAdmin Drag and drop tree view for Ancestry gem
137
124
  test_files: []
125
+ has_rdoc: