rails_admin_uuid_field 0.0.1
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.
data/README.md
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
Rails Admin UUID Field
|
2
|
+
======================
|
3
|
+
|
4
|
+
rails_admin_uuid_field is a gem that works with sferik's **rails_admin** (https://github.com/sferik/rails_admin) to provide support for PostgreSQL UUID field. This plugin is heavily based on trademobile's **rails_admin_map_field** (https://github.com/trademobile/rails_admin_map_field).
|
5
|
+
|
6
|
+
Usage
|
7
|
+
=====
|
8
|
+
|
9
|
+
To enable rails_admin_uuid_field, add the following to your `Gemfile`:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem "rails_admin_uuid_field", :git => "git://github.com/icflix/rails_admin_uuid_field.git"
|
13
|
+
```
|
14
|
+
|
15
|
+
LICENSE
|
16
|
+
=======
|
17
|
+
rails_admin_uuid_field is licensed under the MIT license.
|
18
|
+
|
19
|
+
Copyright (C) 2013 by Antonin Kral
|
20
|
+
|
21
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
22
|
+
of this software and associated documentation files (the "Software"), to deal
|
23
|
+
in the Software without restriction, including without limitation the rights
|
24
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
25
|
+
copies of the Software, and to permit persons to whom the Software is
|
26
|
+
furnished to do so, subject to the following conditions:
|
27
|
+
|
28
|
+
The above copyright notice and this permission notice shall be included in
|
29
|
+
all copies or substantial portions of the Software.
|
30
|
+
|
31
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
32
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
33
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
34
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
35
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
36
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
37
|
+
THE SOFTWARE.
|
data/gem.gemspec
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# coding: UTF-8
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
# If you add a runtime dependency, please maintain alphabetical order
|
5
|
+
s.add_runtime_dependency('rails_admin', '> 0.4.0')
|
6
|
+
|
7
|
+
|
8
|
+
s.name = "rails_admin_uuid_field"
|
9
|
+
s.version = "0.0.1"
|
10
|
+
s.platform = Gem::Platform::RUBY
|
11
|
+
s.authors = ["Antonin Kral"]
|
12
|
+
s.email = ["antonin.kral@icflix.com"]
|
13
|
+
s.homepage = "http://github.com/icflix/"
|
14
|
+
s.summary = "Adds support for UUID field to Rails Admin"
|
15
|
+
s.description = "Allows Rails Admin to work with PostgreSQL UUID field type."
|
16
|
+
s.rubyforge_project = s.name
|
17
|
+
|
18
|
+
s.required_rubygems_version = ">= 1.3.6"
|
19
|
+
|
20
|
+
s.files = `git ls-files`.split("\n")
|
21
|
+
s.require_path = 'lib'
|
22
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module RailsAdmin::Config::Fields::Types
|
2
|
+
class Uuid < RailsAdmin::Config::Fields::Base
|
3
|
+
RailsAdmin::Config::Fields::Types::register(:uuid, self)
|
4
|
+
|
5
|
+
def allowed_methods
|
6
|
+
[@name]
|
7
|
+
end
|
8
|
+
|
9
|
+
def dom_name
|
10
|
+
@dom_name ||= "#{bindings[:form].object_name}_#{@name}"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
metadata
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rails_admin_uuid_field
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Antonin Kral
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2014-04-01 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails_admin
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>'
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 0.4.0
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>'
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.4.0
|
30
|
+
description: Allows Rails Admin to work with PostgreSQL UUID field type.
|
31
|
+
email:
|
32
|
+
- antonin.kral@icflix.com
|
33
|
+
executables: []
|
34
|
+
extensions: []
|
35
|
+
extra_rdoc_files: []
|
36
|
+
files:
|
37
|
+
- README.md
|
38
|
+
- gem.gemspec
|
39
|
+
- lib/rails_admin_uuid_field.rb
|
40
|
+
- lib/rails_admin_uuid_field/engine.rb
|
41
|
+
- lib/rails_admin_uuid_field/rails_admin/config/fields/types/uuid.rb
|
42
|
+
homepage: http://github.com/icflix/
|
43
|
+
licenses: []
|
44
|
+
post_install_message:
|
45
|
+
rdoc_options: []
|
46
|
+
require_paths:
|
47
|
+
- lib
|
48
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
56
|
+
requirements:
|
57
|
+
- - ! '>='
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: 1.3.6
|
60
|
+
requirements: []
|
61
|
+
rubyforge_project: rails_admin_uuid_field
|
62
|
+
rubygems_version: 1.8.24
|
63
|
+
signing_key:
|
64
|
+
specification_version: 3
|
65
|
+
summary: Adds support for UUID field to Rails Admin
|
66
|
+
test_files: []
|