Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
EWright212 committed Aug 26, 2020
2 parents 294ac62 + c1f32a2 commit ef57e40
Show file tree
Hide file tree
Showing 16 changed files with 42 additions and 77 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ pkg
/.idea
.byebug_history
gemfiles/.bundle/
.yardoc
/doc
13 changes: 13 additions & 0 deletions .yardopts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
-
CHANGELOG.md
docs/getting_started.md
docs/rails_api.md
docs/customizing_dashboards.md
docs/customizing_page_views.md
docs/customizing_attribute_partials.md
docs/adding_controllers_without_related_model.md
docs/adding_custom_field_types.md
docs/authentication.md
docs/authorization.md
CODE_OF_CONDUCT.md
LICENSE.md
11 changes: 0 additions & 11 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
appraise "rails42" do
gem "actionpack", "~> 4.2.0"
gem "actionview", "~> 4.2.0"
gem "activerecord", "~> 4.2.0"
gem "pg", "0.21.0"

group :development, :test do
gem "rspec-rails"
end
end

appraise "rails50" do
gem "actionpack", "~> 5.0.0"
gem "actionview", "~> 5.0.0"
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ group :development, :test do
gem "factory_bot_rails"
gem "i18n-tasks", "0.9.31"
gem "pry-rails"
gem "yard"
end

group :test do
Expand Down
14 changes: 8 additions & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ PATH
remote: .
specs:
administrate (0.14.0)
actionpack (>= 4.2)
actionview (>= 4.2)
activerecord (>= 4.2)
actionpack (>= 5.0)
actionview (>= 5.0)
activerecord (>= 5.0)
autoprefixer-rails (>= 6.0)
datetime_picker_rails (~> 0.0.7)
jquery-rails (>= 4.0)
Expand Down Expand Up @@ -53,7 +53,7 @@ GEM
rake
thor (>= 0.14.0)
ast (2.4.0)
autoprefixer-rails (9.8.6.1)
autoprefixer-rails (9.8.6.3)
execjs
awesome_print (1.8.0)
builder (3.2.4)
Expand Down Expand Up @@ -92,7 +92,7 @@ GEM
railties (>= 5.0.0)
faker (2.13.0)
i18n (>= 1.6, < 2)
faraday (1.0.0)
faraday (1.0.1)
multipart-post (>= 1.2, < 3)
ffi (1.13.1)
formulaic (0.4.1)
Expand Down Expand Up @@ -212,7 +212,7 @@ GEM
selenium-webdriver (3.142.7)
childprocess (>= 0.5, < 4.0)
rubyzip (>= 1.2.2)
sentry-raven (3.0.0)
sentry-raven (3.0.2)
faraday (>= 1.0)
shoulda-matchers (4.3.0)
activesupport (>= 4.2.0)
Expand Down Expand Up @@ -243,6 +243,7 @@ GEM
hashdiff (>= 0.4.0, < 2.0.0)
xpath (3.2.0)
nokogiri (~> 1.8)
yard (0.9.25)
zeitwerk (2.3.1)

PLATFORMS
Expand Down Expand Up @@ -281,6 +282,7 @@ DEPENDENCIES
unicorn
webmock
xpath (= 3.2.0)
yard

BUNDLED WITH
1.17.3
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ To accomplish these goals, Administrate follows a few guiding principles:

## Getting Started

Administrate supports Rails from 4.2, up to 5.0 and beyond. We support Ruby
2.4 and up.
Administrate supports Rails 5.0 onwards. We support Ruby 2.4 and up.

Add Administrate to your Gemfile and re-bundle:

Expand Down Expand Up @@ -104,7 +103,7 @@ git repository, too.

Please see [CONTRIBUTING.md](/CONTRIBUTING.md).

administrate was originally written by Grayson Wright and is now maintained by
administrate was originally written by Grace Youngblood and is now maintained by
Nick Charlton. Many improvements and bugfixes were contributed by the [open
source
community](https://github.com/thoughtbot/administrate/graphs/contributors).
Expand Down
6 changes: 3 additions & 3 deletions administrate.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ Gem::Specification.new do |s|
s.files = Dir["{app,config,db,lib,docs}/**/*", "LICENSE", "Rakefile"]
s.test_files = Dir["test/**/*"]

s.add_dependency "actionpack", ">= 4.2"
s.add_dependency "actionview", ">= 4.2"
s.add_dependency "activerecord", ">= 4.2"
s.add_dependency "actionpack", ">= 5.0"
s.add_dependency "actionview", ">= 5.0"
s.add_dependency "activerecord", ">= 5.0"

s.add_dependency "autoprefixer-rails", ">= 6.0"
s.add_dependency "datetime_picker_rails", "~> 0.0.7"
Expand Down
2 changes: 1 addition & 1 deletion app/views/fields/polymorphic/_show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ By default, the relationship is rendered as a link to the associated object.
%>

<% if field.data %>
<% if valid_action?(:show, field.attribute) %>
<% if valid_action?(:show, field.data.class) %>
<%= link_to(
field.display_associated_resource,
[namespace, field.data],
Expand Down
4 changes: 4 additions & 0 deletions docs/adding_controllers_without_related_model.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Adding Controllers without a related Model
---

# Adding Controllers without a related Model

Sometimes you may want to add a custom controller that has no resource
Expand Down
49 changes: 0 additions & 49 deletions gemfiles/rails42.gemfile

This file was deleted.

1 change: 1 addition & 0 deletions gemfiles/rails50.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ group :development, :test do
gem "factory_bot_rails"
gem "i18n-tasks", "0.9.31"
gem "pry-rails"
gem "yard"
gem "rspec-rails"
end

Expand Down
1 change: 1 addition & 0 deletions gemfiles/rails51.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ group :development, :test do
gem "factory_bot_rails"
gem "i18n-tasks", "0.9.31"
gem "pry-rails"
gem "yard"
gem "rspec-rails"
end

Expand Down
1 change: 1 addition & 0 deletions gemfiles/rails52.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ group :development, :test do
gem "factory_bot_rails"
gem "i18n-tasks", "0.9.31"
gem "pry-rails"
gem "yard"
gem "rspec-rails"
end

Expand Down
1 change: 1 addition & 0 deletions gemfiles/rails60.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ group :development, :test do
gem "factory_bot_rails"
gem "i18n-tasks", "0.9.31"
gem "pry-rails"
gem "yard"
gem "rspec-rails", "~> 4.0.0.beta2"
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class <%= class_name %>Dashboard < Administrate::BaseDashboard
COLLECTION_ATTRIBUTES = %i[
<%=
attributes.first(COLLECTION_ATTRIBUTE_LIMIT).map do |attr|
" #{attr}"
" #{attr}"
end.join("\n")
%>
].freeze
Expand All @@ -31,7 +31,7 @@ class <%= class_name %>Dashboard < Administrate::BaseDashboard
SHOW_PAGE_ATTRIBUTES = %i[
<%=
attributes.map do |attr|
" #{attr}"
" #{attr}"
end.join("\n")
%>
].freeze
Expand All @@ -42,7 +42,7 @@ class <%= class_name %>Dashboard < Administrate::BaseDashboard
FORM_ATTRIBUTES = %i[
<%=
form_attributes.map do |attr|
" #{attr}"
" #{attr}"
end.join("\n")
%>
].freeze
Expand Down
2 changes: 1 addition & 1 deletion spec/support/generator_spec_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def copy_to_generator_root(destination, template)
config.include GeneratorSpecHelpers

config.before(:example, :generator) do
destination File.expand_path("../../../tmp", __FILE__)
destination File.expand_path("../../tmp/generator_tests_output", __dir__)
prepare_destination
end
end

0 comments on commit ef57e40

Please sign in to comment.