rails_admin_clone 0.0.3 → 0.0.4

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,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YzYwNjFlYzE1M2E3N2E3NzY3YmVjM2QxZWI1MjljY2Y2NDE5NWIyMw==
5
- data.tar.gz: !binary |-
6
- ZTUzZDE3MTlmZmU2MmZjNTQwODFiMDZhM2Y3YmM3MWZlYzdkMTRlZQ==
2
+ SHA1:
3
+ metadata.gz: aa57d13af298c619e7345fff78301a1a22368b53
4
+ data.tar.gz: efaa6d8f629b8e905fec35d2763e0a8379be9024
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- YjM3YmQ5NjBlY2E1NmYzMjg5OTlhMTM3NTdmNGFmNDg0OWNkYTc1ZTBhZDU0
10
- MzI2NzBhYmFmMTlhYjdjYjhhZWY2Yzg5NmJlMDFjZDM0ZjNhMDBiN2YzMzVh
11
- OTlkMTJjZTFhNGM0Y2IxYTMwNWE0NDExNjljYTUzNTFiODNlNzg=
12
- data.tar.gz: !binary |-
13
- NDc5MzI0NjI4MTg1N2RmMGQxNWExMzIzZjA0NjFmYTFhZGMyMzRmOGZmMTli
14
- MGJiN2Q0ZThmYzc3ZTAzZTljYmMyNTFlY2NjZDRjY2U2ZWY2ZjdkOWM4YmE3
15
- ODA4Y2Y5NWNiNThlMzRkYjI2Yjk3ZWNhYzM1NGRhZGNkZGUxNTE=
6
+ metadata.gz: 3afcce23646b72277c7e4367dc47f084d6483be6f34b0dd8381db8bf6cc2f779c385b491740b40855e27a24258f6ce215127225f64fe419948bbbf0ec502d7d5
7
+ data.tar.gz: 6a272d0f7a20bcb9ad71ab2e6f7bb96594c278ca44ab812d55212b022bd1261e60e6a448234ae918dcb1352c54f76b481211c57e0477e0b6ec83a1b6e89b8f77
data/README.md ADDED
@@ -0,0 +1,88 @@
1
+ # Rails Admin Clone
2
+
3
+ Rails Admin plugin to clone existing records
4
+
5
+ [![Gem Version](https://badge.fury.io/rb/rails_admin_clone.png)](http://badge.fury.io/rb/rails_admin_clone)
6
+ [![Code Climate](https://codeclimate.com/github/dalpo/rails_admin_clone.png)](https://codeclimate.com/github/dalpo/rails_admin_clone)
7
+
8
+ ## Installation
9
+
10
+ To enable rails_admin_clone, add the following to your `Gemfile`:
11
+
12
+ ```ruby
13
+ gem 'rails_admin_clone'
14
+ gem 'rails_admin'
15
+ ```
16
+ **Important:** `rails_admin_clone` must be defined before `rails_admin` to work correctly.
17
+
18
+
19
+ Add in your `config/initializers/rails_admin.rb` initializer the configuration:
20
+ ```ruby
21
+ RailsAdmin.config do |config|
22
+ config.actions do
23
+ dashboard
24
+ index
25
+ new
26
+ export
27
+ history_index
28
+ bulk_delete
29
+ show
30
+ clone # Add the clone action
31
+ edit
32
+ delete
33
+ history_show
34
+ show_in_app
35
+ end
36
+ end
37
+ ```
38
+
39
+ ## Options
40
+ You can specify a custom model method to clone objects with the following configuration:
41
+ ```ruby
42
+ RailsAdmin.config do |config|
43
+ config.model 'Team' do
44
+ clone_config do
45
+ custom_method :your_model_method
46
+ end
47
+ end
48
+ end
49
+ ```
50
+
51
+ ## Contributing
52
+ Submitting a Pull Request:
53
+
54
+ 1. [Fork the repository.][fork]
55
+ 2. [Create a topic branch.][branch]
56
+ 3. Implement your feature or bug fix.
57
+ 4. Add, commit, and push your changes.
58
+ 5. [Submit a pull request.][pr]
59
+
60
+ [fork]: http://help.github.com/fork-a-repo/
61
+ [branch]: http://learn.github.com/p/branching.html
62
+ [pr]: http://help.github.com/send-pull-requests/
63
+
64
+
65
+ ## License
66
+ **This project rocks and uses MIT-LICENSE.**
67
+
68
+ Copyright 2013 Andrea Dal Ponte
69
+
70
+ Permission is hereby granted, free of charge, to any person obtaining
71
+ a copy of this software and associated documentation files (the
72
+ "Software"), to deal in the Software without restriction, including
73
+ without limitation the rights to use, copy, modify, merge, publish,
74
+ distribute, sublicense, and/or sell copies of the Software, and to
75
+ permit persons to whom the Software is furnished to do so, subject to
76
+ the following conditions:
77
+
78
+ The above copyright notice and this permission notice shall be
79
+ included in all copies or substantial portions of the Software.
80
+
81
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
82
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
83
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
84
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
85
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
86
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
87
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
88
+
@@ -46,7 +46,7 @@ module RailsAdmin
46
46
  end
47
47
 
48
48
  register_instance_option :link_icon do
49
- 'icon-copy'
49
+ 'icon-copy fa fa-files-o'
50
50
  end
51
51
  end
52
52
  end
@@ -1,3 +1,3 @@
1
1
  module RailsAdminClone
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,60 +1,61 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_clone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
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: 2013-11-21 00:00:00.000000000 Z
11
+ date: 2014-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rails_admin
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- description: Rails Admin plugin to clone existing records
41
+ description: Rails Admin custom action to clone an existing record to new one
42
42
  email:
43
43
  - info@andreadalponte.com
44
44
  executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
+ - MIT-LICENSE
49
+ - README.md
50
+ - Rakefile
48
51
  - config/locales/clone.en.yml
49
52
  - config/locales/clone.it.yml
53
+ - lib/rails_admin_clone.rb
50
54
  - lib/rails_admin_clone/action.rb
51
55
  - lib/rails_admin_clone/engine.rb
52
56
  - lib/rails_admin_clone/model_cloner.rb
53
57
  - lib/rails_admin_clone/section.rb
54
58
  - lib/rails_admin_clone/version.rb
55
- - lib/rails_admin_clone.rb
56
- - MIT-LICENSE
57
- - Rakefile
58
59
  homepage: https://github.com/dalpo/rails_admin_clone
59
60
  licenses:
60
61
  - MIT
@@ -65,17 +66,17 @@ require_paths:
65
66
  - lib
66
67
  required_ruby_version: !ruby/object:Gem::Requirement
67
68
  requirements:
68
- - - ! '>='
69
+ - - ">="
69
70
  - !ruby/object:Gem::Version
70
71
  version: '0'
71
72
  required_rubygems_version: !ruby/object:Gem::Requirement
72
73
  requirements:
73
- - - ! '>='
74
+ - - ">="
74
75
  - !ruby/object:Gem::Version
75
76
  version: '0'
76
77
  requirements: []
77
78
  rubyforge_project:
78
- rubygems_version: 2.1.10
79
+ rubygems_version: 2.2.1
79
80
  signing_key:
80
81
  specification_version: 4
81
82
  summary: Rails Admin plugin to clone existing records