administrate-field-code 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 35918177804988a8bd13f8bffda38103f44ae8e7c76c6fd88f88a2239f2440fe
4
- data.tar.gz: 64ed4f80e9eef07942157d36623812f1fc5e971aac308308c968a784abe2dec7
3
+ metadata.gz: 7ee7fd60b3102bacf2bcc46749c2316eaa4189c78a168eec7f4447542662f550
4
+ data.tar.gz: a4df0e233d1c07cfaa65b7d066daa5e2f69a24bf376c2162f7d978d0c72eb425
5
5
  SHA512:
6
- metadata.gz: bde8d24fbd1a5fd59d9dc4c832fcd07022b6af31f4e01ae6ca79c6680955a6e9e1305bc68ad76701c25178828ff766eb8fe7cba753aa6035e6be48cec8949a01
7
- data.tar.gz: bd0de2bae6c23f20203ece2c777493c7f3423a3b95087f5f75917b4a6145fbab7d5e7b39cd408d581a0c12ebcf1a57d4f5c9bfbbf645e29e5de66e06dc35aaae
6
+ metadata.gz: 67ab68e1addce770d7e1e45e125e4e5a089ffa16b870652d1e62731299ba72b8c16d20309f18951a06d031e9ea4692f93b0380cdd4bccbee643e04bbef8d07bb
7
+ data.tar.gz: 0e852c8cb681ea474b1471c4017e06086ef96eb7f99f58df38baf16135d8a5da07ec61b52100394ced190c0ef986db81fcaf2ac4effd5d91a380c83d53c2aa73
data/.idea/modules.xml CHANGED
@@ -2,7 +2,7 @@
2
2
  <project version="4">
3
3
  <component name="ProjectModuleManager">
4
4
  <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/administrate-field-hyperlink.iml" filepath="$PROJECT_DIR$/.idea/administrate-field-hyperlink.iml" />
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/administrate-field-code.iml" filepath="$PROJECT_DIR$/.idea/administrate-field-code.iml" />
6
6
  </modules>
7
7
  </component>
8
- </project>
8
+ </project>
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/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Administrate::Field::Code
2
2
 
3
3
  [![Build Status: master](https://travis-ci.com/XPBytes/administrate-field-code.svg)](https://travis-ci.com/XPBytes/administrate-field-code)
4
- [![Gem Version](https://badge.fury.io/rb/administrate-field-codesvg)](https://badge.fury.io/rb/administrate-field-code)
4
+ [![Gem Version](https://badge.fury.io/rb/administrate-field-code.svg)](https://badge.fury.io/rb/administrate-field-code)
5
5
  [![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT)
6
6
 
7
7
  A text field that shows a code block.
@@ -54,21 +54,20 @@ There are no options for this field.
54
54
  ## Related
55
55
 
56
56
  - [`Administrate`](https://github.com/thoughtbot/administrate): A Rails engine that helps you put together a super-flexible admin dashboard.
57
- - [`Administrate::BaseController`](https://github.com/XPBytes/administrate-base_controller): A set of application controller improvements.
57
+ - [`Administrate::BaseController`](https://github.com/XPBytes/administrate-base_controller): :stars: A set of application controller improvements.
58
58
 
59
59
  ### Concerns
60
60
 
61
- - [`Administrate::DefaultOrder`](https://github.com/XPBytes/administrate-default_order): Sets the default order for a resource in a administrate controller.
62
- - [`Administrate::SerializedFields`](https://github.com/XPBytes/administrate-serialized_fields): Automatically deserialize administrate fields on form submit.
61
+ - [`Administrate::DefaultOrder`](https://github.com/XPBytes/administrate-default_order): :1234: Sets the default order for a resource in a administrate controller.
62
+ - [`Administrate::SerializedFields`](https://github.com/XPBytes/administrate-serialized_fields): :ab: Automatically deserialize administrate fields on form submit.
63
63
 
64
64
  ### Fields
65
65
 
66
- <!-- - [`Administrate::Field::Code`](https://github.com/XPBytes/administrate-field-code): A `text` field that shows code. -->
67
- - [`Administrate::Field::Hyperlink`](https://github.com/XPBytes/administrate-field-hyperlink): A `string` field that is shows a hyperlink.
68
- - [`Adminisrtate::Field::JsonEditor`](https://github.com/XPBytes/administrate-field-json_editor): A `text` field that shows a [JSON editor](https://github.com/josdejong/jsoneditor).
69
- - [`Administrate::Field::ScopedBelongsTo`](https://github.com/XPBytes/administrate-field-scoped_belongs_to): A `belongs_to` field that yields itself to the scope `lambda`.
70
- - [`Administrate::Field::ScopedHasMany`](https://github.com/XPBytes/administrate-field-scoped_has_many): A `has_many` field that yields itself to the scope `lambda`.
71
- - [`Administrate::Field::TimeAgo`](https://github.com/XPBytes/administrate-field-time_ago): A `date_time` field that shows its data as `time_ago` since.
66
+ - [`Administrate::Field::Hyperlink`](https://github.com/XPBytes/administrate-field-hyperlink): :pencil: A `string` field that is shows a hyperlink.
67
+ - [`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).
68
+ - [`Administrate::Field::ScopedBelongsTo`](https://github.com/XPBytes/administrate-field-scoped_belongs_to): :pencil: A `belongs_to` field that yields itself to the scope `lambda`.
69
+ - [`Administrate::Field::ScopedHasMany`](https://github.com/XPBytes/administrate-field-scoped_has_many): :pencil: A `has_many` field that yields itself to the scope `lambda`.
70
+ - [`Administrate::Field::TimeAgo`](https://github.com/XPBytes/administrate-field-time_ago): :pencil: A `date_time` field that shows its data as `time_ago` since.
72
71
 
73
72
  ## Development
74
73
 
@@ -4,7 +4,7 @@ require 'administrate/field/code/version'
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'administrate-field-code'
7
- spec.version = Administrate::Field::Code::VERSION
7
+ spec.version = Administrate::Field::CodeVersion::VERSION
8
8
  spec.authors = ['Derk-Jan Karrenbeld']
9
9
  spec.email = ['derk-jan@xpbytes.com']
10
10
 
@@ -1,9 +1,7 @@
1
- require 'administrate/field/text'
2
-
3
1
  module Administrate
4
2
  module Field
5
- class Code < Administrate::Field::Text
6
- VERSION = '0.1.0'.freeze
3
+ module CodeVersion
4
+ VERSION = '0.2.0'.freeze
7
5
  end
8
6
  end
9
7
  end
@@ -1,9 +1,12 @@
1
+ require 'administrate/field/text'
1
2
  require 'administrate/field/code/version'
2
3
  require 'rails'
3
4
 
4
5
  module Administrate
5
6
  module Field
6
7
  class Code < Administrate::Field::Text
8
+ include CodeVersion
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-code
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derk-Jan Karrenbeld
@@ -82,10 +82,11 @@ files:
82
82
  - ".gitattributes"
83
83
  - ".gitignore"
84
84
  - ".idea/.rakeTasks"
85
- - ".idea/administrate-field-hyperlink.iml"
85
+ - ".idea/administrate-field-code.iml"
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