dynamic_scaffold 1.12.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +2 -0
  3. data/app/assets/javascripts/dynamic_scaffold/auto_width.js +3 -0
  4. data/app/helpers/dynamic_scaffold_helper.rb +2 -0
  5. data/app/views/dynamic_scaffold/bootstrap/_form.html.erb +1 -1
  6. data/app/views/dynamic_scaffold/bootstrap/_pagination.html.erb +1 -1
  7. data/config/locales/en.yml +11 -1
  8. data/config/locales/ja.yml +1 -0
  9. data/config/routes.rb +2 -0
  10. data/config/spring.rb +2 -0
  11. data/lib/dynamic_scaffold/config.rb +2 -0
  12. data/lib/dynamic_scaffold/controller.rb +19 -9
  13. data/lib/dynamic_scaffold/controller_utilities.rb +9 -3
  14. data/lib/dynamic_scaffold/engine.rb +2 -0
  15. data/lib/dynamic_scaffold/error/base.rb +2 -0
  16. data/lib/dynamic_scaffold/error/invalid_icon.rb +2 -0
  17. data/lib/dynamic_scaffold/error/invalid_operation.rb +2 -0
  18. data/lib/dynamic_scaffold/error/invalid_parameter.rb +2 -0
  19. data/lib/dynamic_scaffold/form/item/base.rb +4 -3
  20. data/lib/dynamic_scaffold/form/item/block.rb +2 -0
  21. data/lib/dynamic_scaffold/form/item/carrier_wave_image.rb +2 -0
  22. data/lib/dynamic_scaffold/form/item/cocoon.rb +2 -0
  23. data/lib/dynamic_scaffold/form/item/globalize_fields.rb +2 -0
  24. data/lib/dynamic_scaffold/form/item/json_object.rb +2 -0
  25. data/lib/dynamic_scaffold/form/item/single_option.rb +2 -0
  26. data/lib/dynamic_scaffold/form/item/two_options.rb +2 -0
  27. data/lib/dynamic_scaffold/form/item/two_options_with_block.rb +2 -0
  28. data/lib/dynamic_scaffold/form/item/type.rb +2 -0
  29. data/lib/dynamic_scaffold/form_builder.rb +3 -1
  30. data/lib/dynamic_scaffold/icons/fontawesome.rb +17 -15
  31. data/lib/dynamic_scaffold/json_object/attribute.rb +2 -0
  32. data/lib/dynamic_scaffold/json_object/model.rb +3 -1
  33. data/lib/dynamic_scaffold/list/item.rb +2 -0
  34. data/lib/dynamic_scaffold/list/pagination.rb +2 -0
  35. data/lib/dynamic_scaffold/list_builder.rb +2 -0
  36. data/lib/dynamic_scaffold/monkeypatch/action_view/helpers/form_builder.rb +2 -0
  37. data/lib/dynamic_scaffold/routes.rb +3 -1
  38. data/lib/dynamic_scaffold/title.rb +2 -0
  39. data/lib/dynamic_scaffold/vars.rb +2 -0
  40. data/lib/dynamic_scaffold/version.rb +3 -1
  41. data/lib/dynamic_scaffold.rb +2 -0
  42. data/lib/generators/dynamic_scaffold/dynamic_scaffold_generator.rb +2 -0
  43. data/lib/tasks/dynamic_scaffold_tasks.rake +2 -0
  44. metadata +64 -36
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c42e88067995f3753891fcc0e2a29aa8a8b8fd7ff9b093780f20455db67eb731
4
- data.tar.gz: 1872ac09ed02e4a0524e7bc0d26900d1e493596bcafe47b177bfda380e741d9a
3
+ metadata.gz: 457314cf971c919f920535659152e9062cd0f095c51d3f4626fb12f956bda42e
4
+ data.tar.gz: a9fe3e3a6041b2dc15d305f291f63d07447427e673988c5acd68313d8f643351
5
5
  SHA512:
6
- metadata.gz: 9f893ff9dbb40db07c63c6929c11ccae374ac17e82621bf8f878325b7b2393da1f7ffc12e354ccac152579b8f888d2c66780179c015be4cb361bfa9e7837835b
7
- data.tar.gz: d2ce03bded48b344d364a737b38bed3a4aa4129b431189fcb213092c5385652cb148513aaef7bb4070ee62b53d3edd42225405335d1357947ddec65a7a374c42
6
+ metadata.gz: 525cf1961b472037098f5d1425ae9177b2b175712c6c353a2f80692fc630dfa93d082d4d95977a3d2e3f7fc0004053e068ee5481dfd65e34802550482662542f
7
+ data.tar.gz: 79896456eaaff29d55b69fad3eb63508fe6ceb199f49fdab356f4b76db9373401cb3b4becee9cd682492713c4211616964753ce42df0f6ed9d47eda7ac9e729c
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  begin
2
4
  require 'bundler/setup'
3
5
  rescue LoadError
@@ -1,5 +1,8 @@
1
1
  var calcWidth = function(){
2
2
  var firstRow = document.querySelector('.js-ds-list-row:first-child')
3
+ if(!firstRow){
4
+ return
5
+ }
3
6
 
4
7
  var wrapperWidth = firstRow.clientWidth
5
8
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module DynamicScaffoldHelper
2
4
  def render_form_errors(errors)
3
5
  return '' if errors.blank?
@@ -1,4 +1,4 @@
1
- <%= form_with method: method, model: @record, url: url, local: true, class: 'ds-form' do |form| %>
1
+ <%= form_with method: method, model: @record, scope: dynamic_scaffold.model.name.underscore, url: url, local: true, class: 'ds-form' do |form| %>
2
2
  <%-dynamic_scaffold.form.items.each do |elem|-%>
3
3
  <%= render 'dynamic_scaffold/bootstrap/form/row', form: form, elem: elem, depth: 0 %>
4
4
  <% end %>
@@ -1,5 +1,5 @@
1
1
  <%if dynamic_scaffold.list.pagination %>
2
2
  <div class="ds-row">
3
- <%= paginate @records, {views_prefix: 'dynamic_scaffold/bootstrap'}.merge(dynamic_scaffold.list.pagination.kaminari_options) %>
3
+ <%= paginate @records, **{views_prefix: 'dynamic_scaffold/bootstrap'}.merge(dynamic_scaffold.list.pagination.kaminari_options) %>
4
4
  </div>
5
5
  <%end%>
@@ -9,12 +9,22 @@ en:
9
9
  index: 'List'
10
10
  edit: 'Edit'
11
11
  new: 'Create'
12
+ button:
13
+ add: 'Add'
14
+ edit: 'Edit'
15
+ save_order: 'Sort'
16
+ save: 'Save'
17
+ back: 'Back'
12
18
  message:
13
19
  no_records: '%{model} was not found.'
14
20
  destroy_confirm: 'Are you sure you want to delete this?'
15
21
  confirm_cancel: 'Cancel'
16
22
  confirm_ok: 'OK'
23
+ sort_error: 'The sort has been failed, because the following record failed to save.'
17
24
  alert:
18
25
  destroy:
19
26
  invalid_foreign_key: 'That item can not be deleted because it has associated record(s).'
20
- failed: 'That item can not be deleted'
27
+ failed: 'That item can not be deleted'
28
+ views:
29
+ pagination:
30
+ truncate: '…'
@@ -20,6 +20,7 @@ ja:
20
20
  destroy_confirm: '削除します。よろしいですか?'
21
21
  confirm_cancel: 'キャンセル'
22
22
  confirm_ok: 'OK'
23
+ sort_error: '下記のレコードの保存に失敗したため、ソートを完了できませんでした。'
23
24
  alert:
24
25
  destroy:
25
26
  invalid_foreign_key: '関連づいたレコードがあるので削除できません。'
data/config/routes.rb CHANGED
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Rails.application.routes.draw do
2
4
  end
data/config/spring.rb CHANGED
@@ -1 +1,3 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Spring.application_root = './spec/dummy'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module DynamicScaffold
2
4
  class Config
3
5
  attr_reader(
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module DynamicScaffold
2
- module Controller
4
+ module Controller # rubocop:disable Metrics/ModuleLength
3
5
  extend ActiveSupport::Concern
4
6
  include ControllerUtilities
5
7
 
@@ -135,18 +137,26 @@ module DynamicScaffold
135
137
  redirect_to dynamic_scaffold_path(:index, request_queries)
136
138
  end
137
139
 
138
- def sort
140
+ def sort # rubocop:disable Metrics/AbcSize
139
141
  pkeys_list = sort_params
140
142
  reset_sequence(pkeys_list.size)
141
- dynamic_scaffold.model.transaction do
142
- pkeys_list.each do |pkeys|
143
- rec = find_record(pkeys.to_hash)
144
- next_sec = next_sequence!
145
- rec[dynamic_scaffold.list.sorter_attribute] = next_sec
146
- yield(rec) if block_given?
147
- rec.save!
143
+
144
+ begin
145
+ dynamic_scaffold.model.transaction do
146
+ pkeys_list.each do |pkeys|
147
+ rec = find_record(pkeys.to_hash)
148
+ next_sec = next_sequence!
149
+ rec[dynamic_scaffold.list.sorter_attribute] = next_sec
150
+ yield(rec) if block_given?
151
+ rec.save!
152
+ end
148
153
  end
154
+ rescue ActiveRecord::RecordInvalid => e
155
+ messages = [I18n.t('dynamic_scaffold.message.sort_error'), '', sort_validation_error_title(e.record)]
156
+ messages.concat(e.record.errors.full_messages)
157
+ flash[:dynamic_scaffold_danger] = messages.join('<br>')
149
158
  end
159
+
150
160
  redirect_to dynamic_scaffold_path(:index, request_queries)
151
161
  end
152
162
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module DynamicScaffold
2
4
  module ControllerUtilities
3
5
  private
@@ -7,7 +9,7 @@ module DynamicScaffold
7
9
  return {} if dynamic_scaffold.scope.nil?
8
10
 
9
11
  case dynamic_scaffold.scope
10
- when Array then
12
+ when Array
11
13
  dynamic_scaffold.scope.each_with_object({}) do |val, res|
12
14
  if val.is_a? Hash
13
15
  val.each {|k, v| res[k] = v }
@@ -15,7 +17,7 @@ module DynamicScaffold
15
17
  res[val] = params[val]
16
18
  end
17
19
  end
18
- when Hash then
20
+ when Hash
19
21
  dynamic_scaffold.scope
20
22
  end
21
23
  end
@@ -110,7 +112,7 @@ module DynamicScaffold
110
112
 
111
113
  if route.nil?
112
114
  raise DynamicScaffold::Error::RouteNotFound,
113
- "Missing controller#action #{params[:controller]}##{action}"
115
+ "Missing controller#action #{params[:controller]}##{action}"
114
116
  end
115
117
 
116
118
  options.merge!(scope_params)
@@ -145,5 +147,9 @@ module DynamicScaffold
145
147
  .page(params[dynamic_scaffold.list.pagination.param_name])
146
148
  .per(dynamic_scaffold.list.pagination.per_page)
147
149
  end
150
+
151
+ def sort_validation_error_title(record)
152
+ "ID: #{record.id}"
153
+ end
148
154
  end
149
155
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'classnames-rails-view'
2
4
  module DynamicScaffold
3
5
  class Engine < ::Rails::Engine
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module DynamicScaffold
2
4
  module Error
3
5
  class Base < StandardError
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module DynamicScaffold
2
4
  module Error
3
5
  class InvalidIcon < Base
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module DynamicScaffold
2
4
  module Error
3
5
  class InvalidOperation < Base
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module DynamicScaffold
2
4
  module Error
3
5
  class InvalidParameter < Base
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module DynamicScaffold
2
4
  module Form
3
5
  module Item
@@ -102,8 +104,7 @@ module DynamicScaffold
102
104
  # )
103
105
  # return label unless label.nil?
104
106
  # end
105
-
106
- view.tag.label(proxy_field.label, label_attrs) if proxy_field.label.present?
107
+ view.tag.label(proxy_field.label, **label_attrs) if proxy_field.label.present?
107
108
  end
108
109
 
109
110
  def extract_parameters(permitting)
@@ -171,7 +172,7 @@ module DynamicScaffold
171
172
  def errors(form)
172
173
  msg = form.object.errors.full_messages_for(proxy_field.name)
173
174
  rel = @config.model.reflect_on_all_associations.find {|r| r.foreign_key.to_s == name.to_s }
174
- msg.concat(form.object.errors.full_messages_for(rel.name)) if rel.present?
175
+ msg = msg.dup.concat(form.object.errors.full_messages_for(rel.name)) if rel.present?
175
176
  msg
176
177
  end
177
178
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module DynamicScaffold
2
4
  module Form
3
5
  module Item
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module DynamicScaffold
2
4
  module Form
3
5
  module Item
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module DynamicScaffold
2
4
  module Form
3
5
  module Item
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module DynamicScaffold
2
4
  module Form
3
5
  module Item
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module DynamicScaffold
2
4
  module Form
3
5
  module Item
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module DynamicScaffold
2
4
  module Form
3
5
  module Item
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module DynamicScaffold
2
4
  module Form
3
5
  module Item
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module DynamicScaffold
2
4
  module Form
3
5
  module Item
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module DynamicScaffold
2
4
  module Form
3
5
  module Item
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module DynamicScaffold
2
4
  class FormBuilder
3
5
  attr_accessor :parent_item
@@ -12,7 +14,7 @@ module DynamicScaffold
12
14
  if @items.empty?
13
15
  @config.model.column_names.each do |column|
14
16
  type = :text_field
15
- type = :hidden_field if @config.scope && @config.scope.include?(column.to_sym)
17
+ type = :hidden_field if @config.scope&.include?(column.to_sym)
16
18
  item = Form::Item::SingleOption.new(@config, type, column)
17
19
  item.parent_item = parent_item
18
20
  @items << item
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module DynamicScaffold
2
4
  module Fontawesome
3
5
  def self.inline_svg(path)
@@ -13,35 +15,35 @@ Rails.application.config.dynamic_scaffold.icons = proc do |name|
13
15
  # This function is called in view scope.
14
16
  # https://github.com/gomo/dynamic_scaffold/blob/b4066bbd40cd6e7307ce283d5a9bd526ae124e00/lib/dynamic_scaffold/controller_utilities.rb#L104-L106
15
17
  case name
16
- when :up then
18
+ when :up
17
19
  DynamicScaffold::Fontawesome.inline_svg('chevron-up.svg')
18
- when :down then
20
+ when :down
19
21
  DynamicScaffold::Fontawesome.inline_svg('chevron-down.svg')
20
- when :delete then
22
+ when :delete
21
23
  DynamicScaffold::Fontawesome.inline_svg('times.svg')
22
- when :edit then
24
+ when :edit
23
25
  DynamicScaffold::Fontawesome.inline_svg('pencil-alt.svg')
24
- when :add then
26
+ when :add
25
27
  DynamicScaffold::Fontawesome.inline_svg('plus.svg')
26
- when :save then
28
+ when :save
27
29
  DynamicScaffold::Fontawesome.inline_svg('hdd.svg')
28
- when :back then
30
+ when :back
29
31
  DynamicScaffold::Fontawesome.inline_svg('chevron-left.svg')
30
- when :error then
32
+ when :error
31
33
  DynamicScaffold::Fontawesome.inline_svg('exclamation-circle.svg')
32
- when :first then
34
+ when :first
33
35
  DynamicScaffold::Fontawesome.inline_svg('step-backward.svg')
34
- when :last then
36
+ when :last
35
37
  DynamicScaffold::Fontawesome.inline_svg('step-forward.svg')
36
- when :next then
38
+ when :next
37
39
  DynamicScaffold::Fontawesome.inline_svg('chevron-right.svg')
38
- when :prev then
40
+ when :prev
39
41
  DynamicScaffold::Fontawesome.inline_svg('chevron-left.svg')
40
- when :top then
42
+ when :top
41
43
  DynamicScaffold::Fontawesome.inline_svg('angle-double-up.svg')
42
- when :bottom then
44
+ when :bottom
43
45
  DynamicScaffold::Fontawesome.inline_svg('angle-double-down.svg')
44
- when :times then
46
+ when :times
45
47
  DynamicScaffold::Fontawesome.inline_svg('times.svg')
46
48
  else
47
49
  raise DynamicScaffold::Error::InvalidIcon, "Unknown icon type #{name} specified."
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module DynamicScaffold
2
4
  module JSONObject
3
5
  module Attribute
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module DynamicScaffold
2
4
  module JSONObject
3
5
  module Model
@@ -6,7 +8,7 @@ module DynamicScaffold
6
8
  module ClassMethods
7
9
  def dump(obj)
8
10
  obj = obj.attributes if obj.is_a? ActiveModel::Attributes
9
- obj.to_json if obj
11
+ obj&.to_json
10
12
  end
11
13
 
12
14
  def load(source)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module DynamicScaffold
2
4
  module List
3
5
  class Item
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module DynamicScaffold
2
4
  module List
3
5
  class Pagination
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module DynamicScaffold
2
4
  class ListBuilder
3
5
  attr_writer :add_button, :edit_buttons, :destroy_buttons
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ActionView
2
4
  module Helpers
3
5
  class FormBuilder
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module DynamicScaffold
2
4
  module Routes
3
5
  extend ActiveSupport::Concern
@@ -20,4 +22,4 @@ module DynamicScaffold
20
22
  end
21
23
  end
22
24
 
23
- ::ActionDispatch::Routing::Mapper.send :include, DynamicScaffold::Routes
25
+ ::ActionDispatch::Routing::Mapper.include DynamicScaffold::Routes
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module DynamicScaffold
2
4
  class Title
3
5
  attr_writer :name
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module DynamicScaffold
2
4
  class Vars
3
5
  def initialize(config)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module DynamicScaffold
2
- VERSION = '1.12.0'.freeze
4
+ VERSION = '2.0.1'
3
5
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'dynamic_scaffold/version'
2
4
  require 'dynamic_scaffold/engine'
3
5
  require 'dynamic_scaffold/monkeypatch/action_view/helpers/form_builder'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class DynamicScaffoldGenerator < Rails::Generators::Base
2
4
  source_root File.expand_path('templates', __dir__)
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # desc "Explaining what the task does"
2
4
  # task :dynamic_scaffold do
3
5
  # # Task goes here
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynamic_scaffold
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masamoto Miyata
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-03 00:00:00.000000000 Z
11
+ date: 2022-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: classnames-rails-view
@@ -47,7 +47,7 @@ dependencies:
47
47
  version: '5.0'
48
48
  - - "<="
49
49
  - !ruby/object:Gem::Version
50
- version: '6.1'
50
+ version: 6.1.4.4
51
51
  type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
@@ -57,7 +57,7 @@ dependencies:
57
57
  version: '5.0'
58
58
  - - "<="
59
59
  - !ruby/object:Gem::Version
60
- version: '6.1'
60
+ version: 6.1.4.4
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: capybara
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -118,100 +118,128 @@ dependencies:
118
118
  name: pry-byebug
119
119
  requirement: !ruby/object:Gem::Requirement
120
120
  requirements:
121
- - - "~>"
121
+ - - ">="
122
122
  - !ruby/object:Gem::Version
123
- version: '3.5'
123
+ version: '0'
124
124
  type: :development
125
125
  prerelease: false
126
126
  version_requirements: !ruby/object:Gem::Requirement
127
127
  requirements:
128
- - - "~>"
128
+ - - ">="
129
129
  - !ruby/object:Gem::Version
130
- version: '3.5'
130
+ version: '0'
131
131
  - !ruby/object:Gem::Dependency
132
132
  name: pry-doc
133
133
  requirement: !ruby/object:Gem::Requirement
134
134
  requirements:
135
- - - "~>"
135
+ - - ">="
136
136
  - !ruby/object:Gem::Version
137
- version: '0.11'
137
+ version: '0'
138
138
  type: :development
139
139
  prerelease: false
140
140
  version_requirements: !ruby/object:Gem::Requirement
141
141
  requirements:
142
- - - "~>"
142
+ - - ">="
143
143
  - !ruby/object:Gem::Version
144
- version: '0.11'
144
+ version: '0'
145
145
  - !ruby/object:Gem::Dependency
146
146
  name: pry-rails
147
147
  requirement: !ruby/object:Gem::Requirement
148
148
  requirements:
149
- - - "~>"
149
+ - - ">="
150
150
  - !ruby/object:Gem::Version
151
- version: '0.3'
151
+ version: '0'
152
152
  type: :development
153
153
  prerelease: false
154
154
  version_requirements: !ruby/object:Gem::Requirement
155
155
  requirements:
156
- - - "~>"
156
+ - - ">="
157
157
  - !ruby/object:Gem::Version
158
- version: '0.3'
158
+ version: '0'
159
159
  - !ruby/object:Gem::Dependency
160
160
  name: pry-stack_explorer
161
+ requirement: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - ">="
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - ">="
171
+ - !ruby/object:Gem::Version
172
+ version: '0'
173
+ - !ruby/object:Gem::Dependency
174
+ name: psych
161
175
  requirement: !ruby/object:Gem::Requirement
162
176
  requirements:
163
177
  - - "~>"
164
178
  - !ruby/object:Gem::Version
165
- version: '0.4'
179
+ version: '3.1'
166
180
  type: :development
167
181
  prerelease: false
168
182
  version_requirements: !ruby/object:Gem::Requirement
169
183
  requirements:
170
184
  - - "~>"
171
185
  - !ruby/object:Gem::Version
172
- version: '0.4'
186
+ version: '3.1'
187
+ - !ruby/object:Gem::Dependency
188
+ name: rspec
189
+ requirement: !ruby/object:Gem::Requirement
190
+ requirements:
191
+ - - '='
192
+ - !ruby/object:Gem::Version
193
+ version: '3.10'
194
+ type: :development
195
+ prerelease: false
196
+ version_requirements: !ruby/object:Gem::Requirement
197
+ requirements:
198
+ - - '='
199
+ - !ruby/object:Gem::Version
200
+ version: '3.10'
173
201
  - !ruby/object:Gem::Dependency
174
202
  name: rspec-rails
175
203
  requirement: !ruby/object:Gem::Requirement
176
204
  requirements:
177
- - - "~>"
205
+ - - ">="
178
206
  - !ruby/object:Gem::Version
179
- version: 4.0.0.beta2
207
+ version: '0'
180
208
  type: :development
181
209
  prerelease: false
182
210
  version_requirements: !ruby/object:Gem::Requirement
183
211
  requirements:
184
- - - "~>"
212
+ - - ">="
185
213
  - !ruby/object:Gem::Version
186
- version: 4.0.0.beta2
214
+ version: '0'
187
215
  - !ruby/object:Gem::Dependency
188
216
  name: rubocop
189
217
  requirement: !ruby/object:Gem::Requirement
190
218
  requirements:
191
- - - "~>"
219
+ - - '='
192
220
  - !ruby/object:Gem::Version
193
- version: 0.67.2
221
+ version: 0.75.0
194
222
  type: :development
195
223
  prerelease: false
196
224
  version_requirements: !ruby/object:Gem::Requirement
197
225
  requirements:
198
- - - "~>"
226
+ - - '='
199
227
  - !ruby/object:Gem::Version
200
- version: 0.67.2
228
+ version: 0.75.0
201
229
  - !ruby/object:Gem::Dependency
202
- name: rubocop-performance
230
+ name: rubocop-rails
203
231
  requirement: !ruby/object:Gem::Requirement
204
232
  requirements:
205
- - - "~>"
233
+ - - ">="
206
234
  - !ruby/object:Gem::Version
207
- version: 1.0.0
235
+ version: '0'
208
236
  type: :development
209
237
  prerelease: false
210
238
  version_requirements: !ruby/object:Gem::Requirement
211
239
  requirements:
212
- - - "~>"
240
+ - - ">="
213
241
  - !ruby/object:Gem::Version
214
- version: 1.0.0
242
+ version: '0'
215
243
  - !ruby/object:Gem::Dependency
216
244
  name: sqlite3
217
245
  requirement: !ruby/object:Gem::Requirement
@@ -324,7 +352,7 @@ homepage: https://github.com/gomo/dynamic_scaffold
324
352
  licenses:
325
353
  - MIT
326
354
  metadata: {}
327
- post_install_message:
355
+ post_install_message:
328
356
  rdoc_options: []
329
357
  require_paths:
330
358
  - lib
@@ -332,15 +360,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
332
360
  requirements:
333
361
  - - ">="
334
362
  - !ruby/object:Gem::Version
335
- version: '0'
363
+ version: 2.6.0
336
364
  required_rubygems_version: !ruby/object:Gem::Requirement
337
365
  requirements:
338
366
  - - ">="
339
367
  - !ruby/object:Gem::Version
340
368
  version: '0'
341
369
  requirements: []
342
- rubygems_version: 3.0.6
343
- signing_key:
370
+ rubygems_version: 3.2.32
371
+ signing_key:
344
372
  specification_version: 4
345
373
  summary: The Scaffold system which dynamically generates CRUD and sort functions.
346
374
  test_files: []