record_collection 0.10.3 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.travis.yml +10 -6
- data/CHANGELOG.md +11 -0
- data/Gemfile +5 -11
- data/bin/rails +13 -0
- data/config/environment.rb +1 -0
- data/gemfiles/Gemfile.rails-4.2.x +10 -0
- data/gemfiles/Gemfile.rails-5.0.x +10 -0
- data/gemfiles/Gemfile.rails-master +13 -0
- data/lib/record_collection/base.rb +20 -38
- data/lib/record_collection/rails/form_helper.rb +7 -5
- data/lib/record_collection/version.rb +1 -1
- data/record_collection.gemspec +5 -5
- data/spec/base/finding_records_spec.rb +20 -0
- data/spec/dummy/app/assets/config/manifest.js +3 -0
- data/spec/dummy/app/assets/javascripts/application.js.coffee +10 -2
- data/spec/dummy/app/views/employees/index.html.slim +1 -1
- data/spec/dummy/app/views/projects/collection_edit.html.slim +1 -2
- data/spec/dummy/config/application.rb +1 -1
- data/spec/dummy/config/environments/development.rb +1 -1
- data/spec/dummy/config/environments/test.rb +8 -2
- data/spec/spec_helper.rb +4 -4
- metadata +20 -59
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 358430811e33ee498a102a67e6eedb74648a2877ae6f63be3197550aba98f6fb
|
4
|
+
data.tar.gz: 5a8977c74bdd35e712f32817394fc221113f155a85ed27cfaa6d7a4a9197607b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ba4c8d3ae3a99231ed48696468f0bac14e71f57a1423150b03971e27ef403833df6d0baed2d39d221a3ea84b62eebff4aca9431e72e1f855df44bde05a7a94c
|
7
|
+
data.tar.gz: 11d8edda2f8fa3ab3c7a71db49f61d1e6e6efe7ae3bc938c3204eed48cd80842d7fc3c52fc912f45bb2f95960fd4ad5ff9d6f2fc18d8f4a3f75c22f1817c5844
|
data/.travis.yml
CHANGED
@@ -1,11 +1,15 @@
|
|
1
1
|
language: ruby
|
2
|
+
gemfile:
|
3
|
+
- gemfiles/Gemfile.rails-4.2.x
|
4
|
+
- gemfiles/Gemfile.rails-5.0.x
|
2
5
|
rvm:
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
- 2.1.9
|
7
|
+
- 2.2.5
|
8
|
+
- 2.3.1
|
9
|
+
matrix:
|
10
|
+
exclude:
|
11
|
+
rvm: 2.1.9
|
12
|
+
gemfile: gemfiles/Gemfile.rails-5.0.x
|
9
13
|
addons:
|
10
14
|
code_climate:
|
11
15
|
repo_token: 22819b10ef9110a7fef884ab105239fc16fd0562ac79ae54c2204b5e07343919
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,17 @@
|
|
1
1
|
CHANGELOG
|
2
2
|
=========
|
3
3
|
|
4
|
+
2025-10-04 - v1.0.0
|
5
|
+
--------------------
|
6
|
+
### Changed
|
7
|
+
* Make it Rails 8.0.3 compatible. Might break older versions
|
8
|
+
|
9
|
+
2015-12-28 - v0.10.4
|
10
|
+
--------------------
|
11
|
+
### Added
|
12
|
+
* Allow #find(ids) on collection instance that could be the result of a
|
13
|
+
`joins` or an `includes` scope setup call
|
14
|
+
|
4
15
|
2015-12-26 - v0.10.3
|
5
16
|
--------------------
|
6
17
|
### Added
|
data/Gemfile
CHANGED
@@ -3,19 +3,13 @@ source 'https://rubygems.org'
|
|
3
3
|
# Specify your gem's dependencies in record_collection.gemspec
|
4
4
|
gemspec
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
when "default" then ">= 3.2.0"
|
11
|
-
else "~> #{rails_version}"
|
12
|
-
end
|
13
|
-
gem "rails", rails
|
14
|
-
if rails_version == 'master'
|
15
|
-
gem 'arel', github: 'rails/arel'
|
16
|
-
gem 'rack', github: 'rack/rack'
|
6
|
+
gem "rails", "~> 8.0"
|
7
|
+
|
8
|
+
group :development, :test do
|
9
|
+
gem 'puma'
|
17
10
|
end
|
18
11
|
|
19
12
|
group :test do
|
20
13
|
gem "codeclimate-test-reporter", require: nil
|
14
|
+
gem 'selenium-webdriver'
|
21
15
|
end
|
data/bin/rails
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 4 gems installed from the root of your application.
|
3
|
+
|
4
|
+
ENGINE_ROOT = File.expand_path('../..', __FILE__)
|
5
|
+
ENGINE_PATH = File.expand_path('../../lib/record_collection/engine', __FILE__)
|
6
|
+
APP_PATH = File.expand_path("../spec/dummy/config/application", __dir__)
|
7
|
+
|
8
|
+
# Set up gems listed in the Gemfile.
|
9
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
|
10
|
+
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
|
11
|
+
|
12
|
+
require 'rails/all'
|
13
|
+
require 'rails/engine/commands'
|
@@ -0,0 +1 @@
|
|
1
|
+
#NOTE: this file is only for vim-rails to recognize this as a rails project
|
@@ -0,0 +1,13 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
# Specify your gem's dependencies in record_collection.gemspec
|
4
|
+
gemspec path: '../'
|
5
|
+
|
6
|
+
gem "rails", github: 'rails/rails'
|
7
|
+
|
8
|
+
gem 'arel', github: 'rails/arel'
|
9
|
+
gem 'rack', github: 'rack/rack'
|
10
|
+
|
11
|
+
group :test do
|
12
|
+
gem "codeclimate-test-reporter", require: nil
|
13
|
+
end
|
@@ -46,7 +46,7 @@ module RecordCollection
|
|
46
46
|
alias_method :old_validates, :validates
|
47
47
|
def validates(attr, options)
|
48
48
|
# Collection nil attributes mean they do not play a role for the collection.
|
49
|
-
# So validating when the value is nil is not the default behaviour. I to be
|
49
|
+
# So validating when the value is nil is not the default behaviour. I to be used explicitly
|
50
50
|
# by specifying allow_nil: false
|
51
51
|
options[:allow_nil] = true unless options.has_key?(:allow_nil)
|
52
52
|
old_validates attr, options
|
@@ -63,23 +63,15 @@ module RecordCollection
|
|
63
63
|
self.new(collection)
|
64
64
|
end
|
65
65
|
|
66
|
-
#
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
# Create a new collection with the scope set to the result of the query on the record_class
|
77
|
-
def includes(*args)
|
78
|
-
self.new(record_class.includes(*args))
|
79
|
-
end
|
80
|
-
|
81
|
-
def all(*args)
|
82
|
-
self.new(record_class.all(*args))
|
66
|
+
# instantiate a new instance of the collection with the
|
67
|
+
# scope set to the received argument:
|
68
|
+
# Collection.joins(:project).where(projects: {state: 'active'})
|
69
|
+
# The joins returns the instance, the second where is handled by
|
70
|
+
# the instance itself as an instance delegate method
|
71
|
+
%i[where joins includes all].each do |delegate_method|
|
72
|
+
define_method delegate_method do |*args|
|
73
|
+
self.new(record_class.public_send(delegate_method, *args))
|
74
|
+
end
|
83
75
|
end
|
84
76
|
end
|
85
77
|
|
@@ -143,7 +135,7 @@ module RecordCollection
|
|
143
135
|
end
|
144
136
|
|
145
137
|
def persisted?
|
146
|
-
# Behave like
|
138
|
+
# Behave like a non persisted record in forms, this triggers plural (collection) routes
|
147
139
|
false
|
148
140
|
end
|
149
141
|
|
@@ -200,27 +192,17 @@ module RecordCollection
|
|
200
192
|
self
|
201
193
|
end
|
202
194
|
|
203
|
-
#
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
# update existing scope with new one having applied joins clause if possible
|
210
|
-
def joins(*args)
|
211
|
-
@collection = @collection.joins(*args)
|
212
|
-
self
|
213
|
-
end
|
214
|
-
|
215
|
-
# update existing scope with new one having applied includes clause if possible
|
216
|
-
def includes(*args)
|
217
|
-
@collection = @collection.includes(*args)
|
218
|
-
self
|
195
|
+
# delegate methods to the collection returning self
|
196
|
+
%i[joins includes where not].each do |delegate_method|
|
197
|
+
define_method delegate_method do |*args|
|
198
|
+
@collection = @collection.public_send(delegate_method, *args)
|
199
|
+
self
|
200
|
+
end
|
219
201
|
end
|
220
202
|
|
221
|
-
|
222
|
-
|
223
|
-
@collection = @collection.
|
203
|
+
def find(ids)
|
204
|
+
ids = ids.split(RecordCollection.ids_separator) if ids.is_a?(String)
|
205
|
+
@collection = @collection.find(Array.wrap(ids))
|
224
206
|
self
|
225
207
|
end
|
226
208
|
end
|
@@ -7,13 +7,15 @@ ActionView::Helpers::FormHelper.class_eval do
|
|
7
7
|
# = form_for @collection do |f|
|
8
8
|
# = f.text_field :name
|
9
9
|
alias_method :old_apply_form_for_options!, :apply_form_for_options!
|
10
|
-
def apply_form_for_options!(
|
11
|
-
if
|
10
|
+
def apply_form_for_options!(object, options) #:nodoc:
|
11
|
+
#binding.pry if object.is_a?(RecordCollection::Base)
|
12
|
+
if object.is_a?(RecordCollection::Base)
|
12
13
|
object = convert_to_model(object)
|
13
14
|
|
14
15
|
as = options[:as]
|
15
16
|
namespace = options[:namespace]
|
16
17
|
action, method = [:collection_update, :post]
|
18
|
+
options[:html] ||= {}
|
17
19
|
options[:html].reverse_merge!(
|
18
20
|
class: as ? "#{action}_#{as}" : dom_class(object, action),
|
19
21
|
id: (as ? [namespace, action, as] : [namespace, dom_id(object, action)]).compact.join("_").presence,
|
@@ -21,12 +23,12 @@ ActionView::Helpers::FormHelper.class_eval do
|
|
21
23
|
)
|
22
24
|
|
23
25
|
options[:url] ||= if options.key?(:format)
|
24
|
-
polymorphic_path([action,
|
26
|
+
polymorphic_path([action, object], format: options.delete(:format))
|
25
27
|
else
|
26
|
-
polymorphic_path([action,
|
28
|
+
polymorphic_path([action, object], {})
|
27
29
|
end
|
28
30
|
else
|
29
|
-
old_apply_form_for_options!(
|
31
|
+
old_apply_form_for_options!(object, options)
|
30
32
|
end
|
31
33
|
end
|
32
34
|
end
|
data/record_collection.gemspec
CHANGED
@@ -18,13 +18,13 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_development_dependency "bundler", "~> 1.7"
|
22
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
21
|
+
#spec.add_development_dependency "bundler", "~> 1.7"
|
22
|
+
#spec.add_development_dependency "rake", "~> 10.0"
|
23
23
|
#spec.add_development_dependency "rspec", ">= 3.1.0"
|
24
|
-
spec.add_development_dependency "rspec-rails"
|
24
|
+
spec.add_development_dependency "rspec-rails" #, "~> 3.1"
|
25
25
|
spec.add_development_dependency "rspec-its"
|
26
26
|
spec.add_development_dependency "pry", ">= 0.1"
|
27
|
-
spec.add_development_dependency "rails"
|
27
|
+
spec.add_development_dependency "rails" #, "~> 4.1"
|
28
28
|
spec.add_development_dependency "sqlite3"
|
29
29
|
spec.add_development_dependency "slim-rails"
|
30
30
|
spec.add_development_dependency "coffee-rails"
|
@@ -39,7 +39,7 @@ Gem::Specification.new do |spec|
|
|
39
39
|
spec.add_development_dependency "database_cleaner"
|
40
40
|
spec.add_development_dependency "spring"
|
41
41
|
spec.add_development_dependency "spring-commands-rspec"
|
42
|
-
spec.add_development_dependency "quiet_assets"
|
42
|
+
#spec.add_development_dependency "quiet_assets"
|
43
43
|
spec.add_development_dependency "simple_form"
|
44
44
|
spec.add_development_dependency "rspec-html-matchers"
|
45
45
|
|
@@ -23,6 +23,26 @@ RSpec.describe Employee::Collection do
|
|
23
23
|
employee2 = Employee.create name: 'E2', section: 'QNP', admin: false, vegan: false
|
24
24
|
described_class.find([employee1.id, employee2.id]).collection.should match_array [employee1, employee2]
|
25
25
|
end
|
26
|
+
|
27
|
+
it "works with an includes statement (find on instance)" do
|
28
|
+
employee1 = Employee.create name: 'E1', section: 'ABC', admin: true, vegan: false
|
29
|
+
described_class.includes(:project).find([employee1.id]).should be_a RecordCollection::Base
|
30
|
+
end
|
31
|
+
|
32
|
+
it "works with an includes statement (find on instance) and string argument" do
|
33
|
+
employee1 = Employee.create name: 'E1', section: 'ABC', admin: true, vegan: false
|
34
|
+
employee2 = Employee.create name: 'E2', section: 'QNP', admin: false, vegan: false
|
35
|
+
result = described_class.includes(:project).find("#{employee1.id}~#{employee2.id}")
|
36
|
+
result.should be_a RecordCollection::Base
|
37
|
+
result.collection.should match_array [employee1, employee2]
|
38
|
+
end
|
39
|
+
|
40
|
+
it "works with an includes statement (find on instance) and integer id argument" do
|
41
|
+
employee1 = Employee.create name: 'E1', section: 'ABC', admin: true, vegan: false
|
42
|
+
result = described_class.includes(:project).find(employee1.id)
|
43
|
+
result.should be_a RecordCollection::Base
|
44
|
+
result.collection.should eq [employee1]
|
45
|
+
end
|
26
46
|
end
|
27
47
|
|
28
48
|
it "finds single id as string as collection" do
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#= require jquery
|
2
2
|
#= require jquery_ujs
|
3
|
-
|
3
|
+
# require js-routes
|
4
4
|
#= require record_collection/all
|
5
5
|
#= require foundation.min
|
6
6
|
#= require_tree .
|
@@ -12,4 +12,12 @@ $ ->
|
|
12
12
|
$('#selected-records-action').click ->
|
13
13
|
ids = selector.selected_ids()
|
14
14
|
return alert "No records selected" unless ids.length
|
15
|
-
window.location = "/employees/collection_edit?#{$.param(ids: ids)}"
|
15
|
+
window.location.href = "/employees/collection_edit?#{$.param(ids: ids)}"
|
16
|
+
|
17
|
+
window.Routes =
|
18
|
+
collection_edit_projects_path: ({ids}) ->
|
19
|
+
param = ids.map((id) -> encodeURI("ids[]=#{id}")).join('&')
|
20
|
+
"/projects/collection_edit?#{param}"
|
21
|
+
collection_edit_employees_path: ({ids}) ->
|
22
|
+
param = ids.map((id) -> encodeURI("ids[]=#{id}")).join('&')
|
23
|
+
"/employees/collection_edit?#{param}"
|
@@ -23,6 +23,6 @@ table.with-selection
|
|
23
23
|
button#selected-records-action Actions
|
24
24
|
br
|
25
25
|
.page-actions
|
26
|
-
button.actions-button.button.warning onclick="window.location = Routes.collection_edit_employees_path({ids: MultiSelect.selected_ids()})" Actions
|
26
|
+
button.actions-button.button.warning onclick="window.location.href = 'http://'+window.location.host+Routes.collection_edit_employees_path({ids: MultiSelect.selected_ids()})" Actions
|
27
27
|
span.devider
|
28
28
|
= link_to 'New Employee', new_employee_path, class: 'info button'
|
@@ -7,6 +7,5 @@ h1 Edit multiple projects
|
|
7
7
|
.form-inputs= f.optional_input :description, hint: "Hint normal display for other attributes, use .optional-attribute-hint with data-hint='abc' in your simple_form config to use the record_collection styling"
|
8
8
|
.form-actions= f.submit
|
9
9
|
.page-actions
|
10
|
-
= link_to 'Back',
|
11
|
-
|
10
|
+
= link_to 'Back', projects_path
|
12
11
|
|
@@ -20,7 +20,7 @@ module Dummy
|
|
20
20
|
# config.i18n.default_locale = :de
|
21
21
|
|
22
22
|
# Do not swallow errors in after_commit/after_rollback callbacks.
|
23
|
-
config.active_record.raise_in_transactional_callbacks = true if Gem::Requirement.new(">= 4.2").satisfied_by?(Gem::Version.new(Rails.version))
|
23
|
+
# config.active_record.raise_in_transactional_callbacks = true if Gem::Requirement.new(">= 4.2").satisfied_by?(Gem::Version.new(Rails.version))
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
@@ -25,7 +25,7 @@ Rails.application.configure do
|
|
25
25
|
# Debug mode disables concatenation and preprocessing of assets.
|
26
26
|
# This option may cause significant delays in view rendering with a large
|
27
27
|
# number of complex assets.
|
28
|
-
config.assets.debug =
|
28
|
+
config.assets.debug = false
|
29
29
|
|
30
30
|
# Asset digests allow you to set far-future HTTP expiration dates on all assets,
|
31
31
|
# yet still be able to expire them through the digest params.
|
@@ -13,8 +13,14 @@ Rails.application.configure do
|
|
13
13
|
config.eager_load = false
|
14
14
|
|
15
15
|
# Configure static file server for tests with Cache-Control for performance.
|
16
|
-
|
17
|
-
|
16
|
+
if Rails.version.start_with?('4')
|
17
|
+
config.serve_static_files = true # rails < 5
|
18
|
+
config.static_cache_control = 'public, max-age=3600' # rails < 5
|
19
|
+
else
|
20
|
+
config.public_file_server.enabled = true
|
21
|
+
config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' }
|
22
|
+
end
|
23
|
+
|
18
24
|
|
19
25
|
# Show full error reports and disable caching.
|
20
26
|
config.consider_all_requests_local = true
|
data/spec/spec_helper.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
ENV["RAILS_ENV"] = "test"
|
2
|
-
require
|
3
|
-
|
2
|
+
#require 'simplecov'
|
3
|
+
#SimpleCov.start
|
4
4
|
|
5
5
|
require 'pry'
|
6
6
|
require File.expand_path("../../spec/dummy/config/environment.rb", __FILE__)
|
@@ -13,9 +13,9 @@ require 'record_collection'
|
|
13
13
|
require 'database_cleaner'
|
14
14
|
require 'capybara/rails'
|
15
15
|
require 'capybara/rspec'
|
16
|
-
require 'capybara/poltergeist'
|
16
|
+
#require 'capybara/poltergeist'
|
17
17
|
|
18
|
-
Capybara.javascript_driver = :
|
18
|
+
Capybara.javascript_driver = :selenium
|
19
19
|
DatabaseCleaner.clean_with :truncation
|
20
20
|
RSpec.configure do |config|
|
21
21
|
config.mock_with :rspec
|
metadata
CHANGED
@@ -1,57 +1,28 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: record_collection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benjamin ter Kuile
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.7'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '1.7'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rake
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '10.0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '10.0'
|
41
12
|
- !ruby/object:Gem::Dependency
|
42
13
|
name: rspec-rails
|
43
14
|
requirement: !ruby/object:Gem::Requirement
|
44
15
|
requirements:
|
45
|
-
- - "
|
16
|
+
- - ">="
|
46
17
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
18
|
+
version: '0'
|
48
19
|
type: :development
|
49
20
|
prerelease: false
|
50
21
|
version_requirements: !ruby/object:Gem::Requirement
|
51
22
|
requirements:
|
52
|
-
- - "
|
23
|
+
- - ">="
|
53
24
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
25
|
+
version: '0'
|
55
26
|
- !ruby/object:Gem::Dependency
|
56
27
|
name: rspec-its
|
57
28
|
requirement: !ruby/object:Gem::Requirement
|
@@ -84,16 +55,16 @@ dependencies:
|
|
84
55
|
name: rails
|
85
56
|
requirement: !ruby/object:Gem::Requirement
|
86
57
|
requirements:
|
87
|
-
- - "
|
58
|
+
- - ">="
|
88
59
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
60
|
+
version: '0'
|
90
61
|
type: :development
|
91
62
|
prerelease: false
|
92
63
|
version_requirements: !ruby/object:Gem::Requirement
|
93
64
|
requirements:
|
94
|
-
- - "
|
65
|
+
- - ">="
|
95
66
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
67
|
+
version: '0'
|
97
68
|
- !ruby/object:Gem::Dependency
|
98
69
|
name: sqlite3
|
99
70
|
requirement: !ruby/object:Gem::Requirement
|
@@ -290,20 +261,6 @@ dependencies:
|
|
290
261
|
- - ">="
|
291
262
|
- !ruby/object:Gem::Version
|
292
263
|
version: '0'
|
293
|
-
- !ruby/object:Gem::Dependency
|
294
|
-
name: quiet_assets
|
295
|
-
requirement: !ruby/object:Gem::Requirement
|
296
|
-
requirements:
|
297
|
-
- - ">="
|
298
|
-
- !ruby/object:Gem::Version
|
299
|
-
version: '0'
|
300
|
-
type: :development
|
301
|
-
prerelease: false
|
302
|
-
version_requirements: !ruby/object:Gem::Requirement
|
303
|
-
requirements:
|
304
|
-
- - ">="
|
305
|
-
- !ruby/object:Gem::Version
|
306
|
-
version: '0'
|
307
264
|
- !ruby/object:Gem::Dependency
|
308
265
|
name: simple_form
|
309
266
|
requirement: !ruby/object:Gem::Requirement
|
@@ -377,7 +334,8 @@ dependencies:
|
|
377
334
|
description: This gem helps you to work on subsets or rails models
|
378
335
|
email:
|
379
336
|
- bterkuile@gmail.com
|
380
|
-
executables:
|
337
|
+
executables:
|
338
|
+
- rails
|
381
339
|
extensions: []
|
382
340
|
extra_rdoc_files: []
|
383
341
|
files:
|
@@ -399,7 +357,12 @@ files:
|
|
399
357
|
- app/controllers/record_collection/application_controller.rb
|
400
358
|
- app/helpers/record_collection/application_helper.rb
|
401
359
|
- app/views/layouts/record_collection/application.html.erb
|
360
|
+
- bin/rails
|
361
|
+
- config/environment.rb
|
402
362
|
- config/spring.rb
|
363
|
+
- gemfiles/Gemfile.rails-4.2.x
|
364
|
+
- gemfiles/Gemfile.rails-5.0.x
|
365
|
+
- gemfiles/Gemfile.rails-master
|
403
366
|
- lib/generators/collection_scaffold/collection_scaffold_generator.rb
|
404
367
|
- lib/generators/collection_scaffold/templates/_form.html.haml
|
405
368
|
- lib/generators/collection_scaffold/templates/_form.html.slim
|
@@ -438,6 +401,7 @@ files:
|
|
438
401
|
- spec/base/validations_spec.rb
|
439
402
|
- spec/dummy/README.rdoc
|
440
403
|
- spec/dummy/Rakefile
|
404
|
+
- spec/dummy/app/assets/config/manifest.js
|
441
405
|
- spec/dummy/app/assets/images/.keep
|
442
406
|
- spec/dummy/app/assets/javascripts/application.js.coffee
|
443
407
|
- spec/dummy/app/assets/javascripts/foundation.min.js
|
@@ -531,7 +495,6 @@ homepage: https://github.com/bterkuile/record_collection
|
|
531
495
|
licenses:
|
532
496
|
- MIT
|
533
497
|
metadata: {}
|
534
|
-
post_install_message:
|
535
498
|
rdoc_options: []
|
536
499
|
require_paths:
|
537
500
|
- lib
|
@@ -546,9 +509,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
546
509
|
- !ruby/object:Gem::Version
|
547
510
|
version: '0'
|
548
511
|
requirements: []
|
549
|
-
|
550
|
-
rubygems_version: 2.4.5
|
551
|
-
signing_key:
|
512
|
+
rubygems_version: 3.7.2
|
552
513
|
specification_version: 4
|
553
514
|
summary: Manage collections of records in Ruby on Rails
|
554
515
|
test_files:
|
@@ -564,6 +525,7 @@ test_files:
|
|
564
525
|
- spec/base/validations_spec.rb
|
565
526
|
- spec/dummy/README.rdoc
|
566
527
|
- spec/dummy/Rakefile
|
528
|
+
- spec/dummy/app/assets/config/manifest.js
|
567
529
|
- spec/dummy/app/assets/images/.keep
|
568
530
|
- spec/dummy/app/assets/javascripts/application.js.coffee
|
569
531
|
- spec/dummy/app/assets/javascripts/foundation.min.js
|
@@ -653,4 +615,3 @@ test_files:
|
|
653
615
|
- spec/record_selection/base_spec.rb
|
654
616
|
- spec/record_selection/name_spec.rb
|
655
617
|
- spec/spec_helper.rb
|
656
|
-
has_rdoc:
|