administrate-field-scoped_belongs_to 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +17 -0
- data/CHANGELOG.md +5 -1
- data/README.md +8 -9
- data/administrate-field-scoped_belongs_to.gemspec +1 -1
- data/lib/administrate/field/scoped_belongs_to.rb +4 -1
- data/lib/administrate/field/scoped_belongs_to/version.rb +2 -4
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4a06d710b438c8ecbfefb1428aaf8148fafc9374083f851868f76f87bbc9f1f
|
4
|
+
data.tar.gz: 27140d84e10b6e4bff8cee048c410291847fb66706a9927849d7777ffca375ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f8e2023233ec9e74809cb99a6b964e59f94d7a20e4d3febe3b1d7b20a4d244d8b9454ae13039255511f02a11cfe3a63b97d5217846dc5f901a5a9cff416b672
|
7
|
+
data.tar.gz: 68076656b218e076a7bde3021604a9a0c45512f4fd8c3728413d897d6cf027c9d1ce42b867dd5584a22cc99e93f3f923dbbe0e260d61db1b584251649102de4b
|
data/.travis.yml
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
---
|
2
|
+
sudo: false
|
3
|
+
language: ruby
|
4
|
+
cache: bundler
|
5
|
+
rvm:
|
6
|
+
- 2.5
|
7
|
+
- 2.6
|
8
|
+
- ruby-head
|
9
|
+
before_install:
|
10
|
+
- gem install bundler -v 2.0.1
|
11
|
+
- gem update --system
|
12
|
+
- gem --version
|
13
|
+
matrix:
|
14
|
+
allow_failures:
|
15
|
+
- rvm: ruby-head
|
16
|
+
install:
|
17
|
+
- bundle install --with development --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -59,21 +59,20 @@ globally available data.
|
|
59
59
|
## Related
|
60
60
|
|
61
61
|
- [`Administrate`](https://github.com/thoughtbot/administrate): A Rails engine that helps you put together a super-flexible admin dashboard.
|
62
|
-
- [`Administrate::BaseController`](https://github.com/XPBytes/administrate-base_controller): A set of application controller improvements.
|
62
|
+
- [`Administrate::BaseController`](https://github.com/XPBytes/administrate-base_controller): :stars: A set of application controller improvements.
|
63
63
|
|
64
64
|
### Concerns
|
65
65
|
|
66
|
-
- [`Administrate::DefaultOrder`](https://github.com/XPBytes/administrate-default_order): Sets the default order for a resource in a administrate controller.
|
67
|
-
- [`Administrate::SerializedFields`](https://github.com/XPBytes/administrate-serialized_fields): Automatically deserialize administrate fields on form submit.
|
66
|
+
- [`Administrate::DefaultOrder`](https://github.com/XPBytes/administrate-default_order): :1234: Sets the default order for a resource in a administrate controller.
|
67
|
+
- [`Administrate::SerializedFields`](https://github.com/XPBytes/administrate-serialized_fields): :ab: Automatically deserialize administrate fields on form submit.
|
68
68
|
|
69
69
|
### Fields
|
70
70
|
|
71
|
-
- [`Administrate::Field::Code`](https://github.com/XPBytes/administrate-field-code): A `text` field that shows code.
|
72
|
-
- [`Administrate::Field::Hyperlink`](https://github.com/XPBytes/administrate-field-hyperlink): A `string` field that is shows a hyperlink.
|
73
|
-
- [`Adminisrtate::Field::JsonEditor`](https://github.com/XPBytes/administrate-field-json_editor): A `text` field that shows a [JSON editor](https://github.com/josdejong/jsoneditor).
|
74
|
-
|
75
|
-
- [`Administrate::Field::
|
76
|
-
- [`Administrate::Field::TimeAgo`](https://github.com/XPBytes/administrate-field-time_ago): A `date_time` field that shows its data as `time_ago` since.
|
71
|
+
- [`Administrate::Field::Code`](https://github.com/XPBytes/administrate-field-code): :pencil: A `text` field that shows code.
|
72
|
+
- [`Administrate::Field::Hyperlink`](https://github.com/XPBytes/administrate-field-hyperlink): :pencil: A `string` field that is shows a hyperlink.
|
73
|
+
- [`Adminisrtate::Field::JsonEditor`](https://github.com/XPBytes/administrate-field-json_editor): :pencil: A `text` field that shows a [JSON editor](https://github.com/josdejong/jsoneditor).
|
74
|
+
- [`Administrate::Field::ScopedHasMany`](https://github.com/XPBytes/administrate-field-scoped_has_many): :pencil: A `has_many` field that yields itself to the scope `lambda`.
|
75
|
+
- [`Administrate::Field::TimeAgo`](https://github.com/XPBytes/administrate-field-time_ago): :pencil: A `date_time` field that shows its data as `time_ago` since.
|
77
76
|
|
78
77
|
## Development
|
79
78
|
|
@@ -4,7 +4,7 @@ require 'administrate/field/scoped_belongs_to/version'
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'administrate-field-scoped_belongs_to'
|
7
|
-
spec.version = Administrate::Field::
|
7
|
+
spec.version = Administrate::Field::ScopedBelongsToVersion::VERSION
|
8
8
|
spec.authors = ['Derk-Jan Karrenbeld']
|
9
9
|
spec.email = ['derk-jan@xpbytes.com']
|
10
10
|
|
@@ -1,9 +1,12 @@
|
|
1
|
+
require 'administrate/field/belongs_to'
|
1
2
|
require 'administrate/field/scoped_belongs_to/version'
|
2
|
-
require 'rails'
|
3
|
+
require 'rails/engine'
|
3
4
|
|
4
5
|
module Administrate
|
5
6
|
module Field
|
6
7
|
class ScopedBelongsTo < Administrate::Field::BelongsTo
|
8
|
+
include ScopedBelongsToVersion
|
9
|
+
|
7
10
|
class Engine < ::Rails::Engine
|
8
11
|
end
|
9
12
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: administrate-field-scoped_belongs_to
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derk-Jan Karrenbeld
|
@@ -86,6 +86,7 @@ files:
|
|
86
86
|
- ".idea/misc.xml"
|
87
87
|
- ".idea/modules.xml"
|
88
88
|
- ".idea/vcs.xml"
|
89
|
+
- ".travis.yml"
|
89
90
|
- CHANGELOG.md
|
90
91
|
- Gemfile
|
91
92
|
- LICENSE
|