model_base_generators 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/example/.rubocop.yml +1 -0
- data/example/Rakefile +1 -0
- data/example/app/channels/application_cable/channel.rb +1 -0
- data/example/app/channels/application_cable/connection.rb +1 -0
- data/example/app/controllers/application_controller.rb +1 -0
- data/example/app/controllers/concerns/authentication.rb +1 -0
- data/example/app/controllers/issue_comments_controller.rb +1 -0
- data/example/app/controllers/issues_controller.rb +1 -0
- data/example/app/controllers/phases_controller.rb +1 -0
- data/example/app/controllers/project_assignments_controller.rb +1 -0
- data/example/app/controllers/projects_controller.rb +1 -0
- data/example/app/helpers/application_helper.rb +1 -0
- data/example/app/helpers/issue_comments_helper.rb +1 -0
- data/example/app/helpers/issues_helper.rb +1 -0
- data/example/app/helpers/phases_helper.rb +1 -0
- data/example/app/helpers/projects_helper.rb +1 -0
- data/example/app/jobs/application_job.rb +1 -0
- data/example/app/mailers/application_mailer.rb +1 -0
- data/example/app/models/ability.rb +1 -0
- data/example/app/models/application_record.rb +1 -0
- data/example/app/models/issue.rb +1 -0
- data/example/app/models/issue_comment.rb +1 -0
- data/example/app/models/phase.rb +1 -0
- data/example/app/models/project.rb +1 -0
- data/example/app/models/project_assignment.rb +1 -0
- data/example/app/models/user.rb +1 -0
- data/example/app/validations/ar_internal_metadatum_validation.rb +1 -0
- data/example/app/validations/issue_validation.rb +1 -0
- data/example/app/validations/phase_validation.rb +1 -0
- data/example/app/validations/project_assignment_validation.rb +1 -0
- data/example/app/validations/project_validation.rb +1 -0
- data/example/app/validations/user_validation.rb +1 -0
- data/example/bin/bundle +1 -0
- data/example/bin/rails +1 -0
- data/example/bin/rake +1 -0
- data/example/bin/setup +1 -0
- data/example/bin/update +1 -0
- data/example/config.ru +1 -0
- data/example/spec/controllers/issue_comments_controller_spec.rb +1 -0
- data/example/spec/controllers/issues_controller_spec.rb +1 -0
- data/example/spec/controllers/phases_controller_spec.rb +1 -0
- data/example/spec/controllers/project_assignments_controller_spec.rb +1 -0
- data/example/spec/controllers/projects_controller_spec.rb +1 -0
- data/example/spec/factories/issue_comments.rb +1 -0
- data/example/spec/factories/issues.rb +1 -0
- data/example/spec/factories/phases.rb +1 -0
- data/example/spec/factories/project_assignments.rb +1 -0
- data/example/spec/factories/projects.rb +1 -0
- data/example/spec/factories/users.rb +1 -0
- data/example/spec/helpers/issue_comments_helper_spec.rb +1 -0
- data/example/spec/rails_helper.rb +1 -0
- data/example/spec/requests/issue_comments_spec.rb +1 -0
- data/example/spec/routing/issue_comments_routing_spec.rb +1 -0
- data/example/spec/routing/issues_routing_spec.rb +1 -0
- data/example/spec/routing/phases_routing_spec.rb +1 -0
- data/example/spec/routing/project_assignments_routing_spec.rb +1 -0
- data/example/spec/routing/projects_routing_spec.rb +1 -0
- data/example/spec/spec_helper.rb +1 -0
- data/example/spec/support/controller_macros.rb +1 -0
- data/example/spec/support/devise.rb +1 -0
- data/example/spec/support/field_assertions.rb +1 -0
- data/example/spec/support/time_match_support.rb +1 -0
- data/example/spec/views/issue_comments/edit.html.erb_spec.rb +1 -0
- data/example/spec/views/issue_comments/index.html.erb_spec.rb +1 -0
- data/example/spec/views/issue_comments/new.html.erb_spec.rb +1 -0
- data/example/spec/views/issue_comments/show.html.erb_spec.rb +1 -0
- data/example/spec/views/issues/edit.html.erb_spec.rb +1 -0
- data/example/spec/views/issues/index.html.erb_spec.rb +1 -0
- data/example/spec/views/issues/new.html.erb_spec.rb +1 -0
- data/example/spec/views/issues/show.html.erb_spec.rb +1 -0
- data/example/spec/views/phases/edit.html.erb_spec.rb +1 -0
- data/example/spec/views/phases/index.html.erb_spec.rb +1 -0
- data/example/spec/views/phases/new.html.erb_spec.rb +1 -0
- data/example/spec/views/phases/show.html.erb_spec.rb +1 -0
- data/example/spec/views/project_assignments/edit.html.erb_spec.rb +1 -0
- data/example/spec/views/project_assignments/index.html.erb_spec.rb +1 -0
- data/example/spec/views/project_assignments/new.html.erb_spec.rb +1 -0
- data/example/spec/views/project_assignments/show.html.erb_spec.rb +1 -0
- data/example/spec/views/projects/edit.html.erb_spec.rb +1 -0
- data/example/spec/views/projects/index.html.erb_spec.rb +1 -0
- data/example/spec/views/projects/new.html.erb_spec.rb +1 -0
- data/example/spec/views/projects/show.html.erb_spec.rb +1 -0
- data/lib/model_base/config.rb +4 -0
- data/lib/model_base/version.rb +1 -1
- data/lib/templates/api_controller.rb +3 -0
- data/lib/templates/controller.rb +3 -0
- data/lib/templates/factory_girl/factory.rb +3 -0
- data/lib/templates/rspec/helper/helper_spec.rb +3 -0
- data/lib/templates/rspec/integration/request_spec.rb +3 -0
- data/lib/templates/rspec/model/model_spec.rb +3 -0
- data/lib/templates/rspec/scaffold/controller_spec.rb +3 -0
- data/lib/templates/rspec/scaffold/edit_spec.rb +3 -0
- data/lib/templates/rspec/scaffold/index_spec.rb +3 -0
- data/lib/templates/rspec/scaffold/new_spec.rb +3 -0
- data/lib/templates/rspec/scaffold/routing_spec.rb +3 -0
- data/lib/templates/rspec/scaffold/show_spec.rb +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cad258ccf6f0f24af56363688b12926dc4dc9bc
|
4
|
+
data.tar.gz: 31f6fa6e9f3b953769a8e65acace6f5b6af492eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54a7840bc376155e844c9105a373ca43ba573899699bad72b092e66a34a70a3a6475f601b8ab4c59aa3215aa3381adb3264724af315e5d8de1bb76886a7c5b15
|
7
|
+
data.tar.gz: 71c2c0e2015e657ba6c9430796002fc9a89130b5cd07012c94d80af6953b5627bba47708292e09c8e9aebfa0392a700870d82ea8077355e2faef75f7d6bfe23a
|
data/example/.rubocop.yml
CHANGED
data/example/Rakefile
CHANGED
data/example/app/models/issue.rb
CHANGED
data/example/app/models/phase.rb
CHANGED
data/example/app/models/user.rb
CHANGED
data/example/bin/bundle
CHANGED
data/example/bin/rails
CHANGED
data/example/bin/rake
CHANGED
data/example/bin/setup
CHANGED
data/example/bin/update
CHANGED
data/example/config.ru
CHANGED
data/example/spec/spec_helper.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# This file was generated by the `rails generate rspec:install` command. Conventionally, all
|
2
3
|
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
3
4
|
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
data/lib/model_base/config.rb
CHANGED
data/lib/model_base/version.rb
CHANGED
data/lib/templates/controller.rb
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
<%- unless ModelBase.config.frozen_string_literal.nil? -%>
|
2
|
+
# frozen_string_literal: <%= ModelBase.config.frozen_string_literal.inspect %>
|
3
|
+
<%- end -%>
|
1
4
|
FactoryGirl.define do
|
2
5
|
factory :<%= model.full_resource_name %> do
|
3
6
|
<%- model.columns_for(:factory).each do |col| -%>
|
@@ -1,3 +1,6 @@
|
|
1
|
+
<%- unless ModelBase.config.frozen_string_literal.nil? -%>
|
2
|
+
# frozen_string_literal: <%= ModelBase.config.frozen_string_literal.inspect %>
|
3
|
+
<%- end -%>
|
1
4
|
require 'rails_helper'
|
2
5
|
|
3
6
|
<% output_attributes = model.columns.reject{|attribute| [:datetime, :timestamp, :time, :date].index(attribute.type) } -%>
|
@@ -1,3 +1,6 @@
|
|
1
|
+
<%- unless ModelBase.config.frozen_string_literal.nil? -%>
|
2
|
+
# frozen_string_literal: <%= ModelBase.config.frozen_string_literal.inspect %>
|
3
|
+
<%- end -%>
|
1
4
|
require 'rails_helper'
|
2
5
|
|
3
6
|
<% output_attributes = model.columns.reject{|attribute| [:datetime, :timestamp, :time, :date].index(attribute.type) } -%>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: model_base_generators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- akm
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|