acts_as_indexable 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +38 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +7 -0
  5. data/Gemfile +15 -0
  6. data/Gemfile.lock +197 -0
  7. data/Guardfile +42 -0
  8. data/LICENSE +22 -0
  9. data/README.md +95 -0
  10. data/Rakefile +23 -0
  11. data/acts_as_indexable.gemspec +31 -0
  12. data/app/helpers/acts_as_indexable/acts_as_indexable_helper.rb +12 -0
  13. data/app/views/acts_as_indexable/_index.html.erb +9 -0
  14. data/app/views/acts_as_indexable/_row.html.erb +15 -0
  15. data/app/views/acts_as_indexable/_thead.html.erb +7 -0
  16. data/lib/acts_as_indexable.rb +7 -0
  17. data/lib/acts_as_indexable/attribute.rb +59 -0
  18. data/lib/acts_as_indexable/engine.rb +4 -0
  19. data/lib/acts_as_indexable/version.rb +3 -0
  20. data/lib/acts_as_indexable/view.rb +26 -0
  21. data/spec/dummy/README.rdoc +28 -0
  22. data/spec/dummy/Rakefile +6 -0
  23. data/spec/dummy/app/assets/images/.keep +0 -0
  24. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  25. data/spec/dummy/app/assets/javascripts/widgets.js +2 -0
  26. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  27. data/spec/dummy/app/assets/stylesheets/widgets.css +4 -0
  28. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  29. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  30. data/spec/dummy/app/controllers/widgets_controller.rb +18 -0
  31. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  32. data/spec/dummy/app/helpers/widgets_helper.rb +2 -0
  33. data/spec/dummy/app/mailers/.keep +0 -0
  34. data/spec/dummy/app/models/.keep +0 -0
  35. data/spec/dummy/app/models/concerns/.keep +0 -0
  36. data/spec/dummy/app/models/widget.rb +3 -0
  37. data/spec/dummy/app/views/layouts/application.html.erb +17 -0
  38. data/spec/dummy/app/views/widgets/_date.html.erb +1 -0
  39. data/spec/dummy/app/views/widgets/index.html.erb +4 -0
  40. data/spec/dummy/bin/bundle +3 -0
  41. data/spec/dummy/bin/rails +4 -0
  42. data/spec/dummy/bin/rake +4 -0
  43. data/spec/dummy/bin/setup +29 -0
  44. data/spec/dummy/config.ru +4 -0
  45. data/spec/dummy/config/application.rb +32 -0
  46. data/spec/dummy/config/boot.rb +5 -0
  47. data/spec/dummy/config/database.yml +25 -0
  48. data/spec/dummy/config/environment.rb +5 -0
  49. data/spec/dummy/config/environments/development.rb +41 -0
  50. data/spec/dummy/config/environments/production.rb +79 -0
  51. data/spec/dummy/config/environments/test.rb +42 -0
  52. data/spec/dummy/config/initializers/assets.rb +11 -0
  53. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  54. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  55. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  56. data/spec/dummy/config/initializers/inflections.rb +16 -0
  57. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  58. data/spec/dummy/config/initializers/session_store.rb +3 -0
  59. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  60. data/spec/dummy/config/locales/en.yml +25 -0
  61. data/spec/dummy/config/routes.rb +4 -0
  62. data/spec/dummy/config/secrets.yml +22 -0
  63. data/spec/dummy/db/migrate/20151123200106_create_widgets.rb +10 -0
  64. data/spec/dummy/db/schema.rb +23 -0
  65. data/spec/dummy/db/seeds.rb +6 -0
  66. data/spec/dummy/lib/assets/.keep +0 -0
  67. data/spec/dummy/public/404.html +67 -0
  68. data/spec/dummy/public/422.html +67 -0
  69. data/spec/dummy/public/500.html +66 -0
  70. data/spec/dummy/public/favicon.ico +0 -0
  71. data/spec/factories/widget.rb +8 -0
  72. data/spec/features/acts_as_indexable/view_spec.rb +90 -0
  73. data/spec/helpers/acts_as_indexable_helper_spec.rb +16 -0
  74. data/spec/models/attribute_spec.rb +39 -0
  75. data/spec/spec_helper.rb +30 -0
  76. data/spec/support/database_cleaner.rb +13 -0
  77. data/spec/support/indexable_views.rb +3 -0
  78. metadata +402 -0
@@ -0,0 +1,66 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/500.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>We're sorry, but something went wrong.</h1>
62
+ </div>
63
+ <p>If you are the application owner check the logs for more information.</p>
64
+ </div>
65
+ </body>
66
+ </html>
File without changes
@@ -0,0 +1,8 @@
1
+ FactoryGirl.define do
2
+
3
+ factory :widget do
4
+ sequence(:title){|n| "Widget ##{n}" }
5
+ body 'Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.'
6
+ end
7
+
8
+ end
@@ -0,0 +1,90 @@
1
+ require 'spec_helper'
2
+
3
+ describe ActsAsIndexable::View do
4
+
5
+ before do
6
+ @widgets = create_list(:widget, 10)
7
+ @attrs = {
8
+ title: {},
9
+ body: {},
10
+ created_at: {}
11
+ }
12
+ allow_any_instance_of(WidgetsController).to receive(:current_attrs).and_return(@attrs)
13
+ end
14
+
15
+ it 'should render columns based on current attributes' do
16
+ visit root_path
17
+ expect(page.find('thead').text).to match('Title Body')
18
+ end
19
+
20
+ it 'should render labels if defined' do
21
+ # Set label key on the first attr object
22
+ @attrs[:title][:label] = 'Name'
23
+
24
+ visit root_path
25
+ expect(page.find('thead').text).to match('Name Body')
26
+ end
27
+
28
+ it 'should link to self' do
29
+ # Set label key on the first attr object
30
+ @attrs[:title][:link_to] = :self
31
+
32
+ visit root_path
33
+ expect(page).to have_link(@widgets.first.to_s)
34
+ end
35
+
36
+ it 'should render custom partial if defined' do
37
+ # Set label key on the first attr object
38
+ @attrs[:created_at][:partial] = 'date'
39
+
40
+ visit root_path
41
+ within("#widget_#{@widgets.first.id}") do
42
+ expect(page).to have_content(@widgets.first.created_at.strftime('%B %Y'))
43
+ end
44
+ end
45
+
46
+ context 'with an actions column' do
47
+
48
+ before do
49
+ @attrs[:actions] = {
50
+ edit: {},
51
+ delete: {}
52
+ }
53
+ end
54
+
55
+ it 'should render restful links by default' do
56
+ visit root_path
57
+ within("#widget_#{@widgets.first.id}") do
58
+ expect(page).to have_link('Edit', href: "/widgets/#{@widgets.first.id}/edit")
59
+ expect(page).to have_link('Delete', href: "/widgets/#{@widgets.first.id}")
60
+ end
61
+ end
62
+
63
+ it 'should observe link_to value for each action' do
64
+ @attrs[:actions][:edit][:link_to] = '/some/path/with/some/:id/here'
65
+ visit root_path
66
+ within("#widget_#{@widgets.first.id}") do
67
+ expect(page).to have_link('Edit', href: "/some/path/with/some/#{@widgets.first.id}/here")
68
+ end
69
+ end
70
+
71
+ it 'should observe label value for each action' do
72
+ @attrs[:actions][:edit][:label] = 'Testing'
73
+ visit root_path
74
+ within("#widget_#{@widgets.first.id}") do
75
+ expect(page).to have_link('Testing')
76
+ end
77
+ end
78
+
79
+ it 'should pass along any custom attributes for each each action' do
80
+ @attrs[:actions][:edit][:class] = 'some-class-selector'
81
+ @attrs[:actions][:edit][:data] = { role: 'some-role' }
82
+ visit root_path
83
+ within("#widget_#{@widgets.first.id}") do
84
+ expect(page).to have_xpath("//a[@class='some-class-selector']")
85
+ expect(page).to have_xpath("//a[@data-role='some-role']")
86
+ end
87
+ end
88
+
89
+ end
90
+ end
@@ -0,0 +1,16 @@
1
+ require 'spec_helper'
2
+
3
+ describe ActsAsIndexable::ActsAsIndexableHelper do
4
+
5
+ before do
6
+ @widgets = create_list :widget, 10
7
+ end
8
+
9
+ it 'should provide method for rendering indexable views' do
10
+ html = helper.render_indexable(Widget.all)
11
+ @widgets.each do |widget|
12
+ expect(html).to have_content(widget.to_s)
13
+ end
14
+ end
15
+
16
+ end
@@ -0,0 +1,39 @@
1
+ require 'spec_helper'
2
+
3
+ describe ActsAsIndexable::Attribute do
4
+
5
+ before do
6
+ @widget = create(:widget)
7
+ @col = ActsAsIndexable::Attribute.new(:id, {})
8
+ end
9
+
10
+ it 'should respond_to key' do
11
+ expect(@col.key).to eq(:id)
12
+ end
13
+
14
+ it 'should return label' do
15
+ allow_any_instance_of(ActsAsIndexable::Attribute).to receive(:label).and_return('Something')
16
+ expect(@col.label).to eq('Something')
17
+ end
18
+
19
+ it 'should humanize label unless defined' do
20
+ expect(@col.label).to eq('Id')
21
+ end
22
+
23
+ it 'should return context object if link_to value equals self' do
24
+ @col = ActsAsIndexable::Attribute.new(:id, { link_to: :self })
25
+ expect(@col.href(@widget)).to eq(@widget)
26
+ end
27
+
28
+ it 'should return interpolated path if link_to value contains :id' do
29
+ @col = ActsAsIndexable::Attribute.new(:id, { link_to: '/widgets/:id/edit' })
30
+ expect(@col.href(@widget)).to eq("/widgets/#{@widget.id}/edit")
31
+ end
32
+
33
+ it 'should return formatted date object' do
34
+ @col = ActsAsIndexable::Attribute.new(:created_at, { format: :short })
35
+ formatted_date = I18n.l Widget.first.created_at, format: @col.format
36
+ expect(@col.l(Widget.first)).to eq(formatted_date)
37
+ end
38
+
39
+ end
@@ -0,0 +1,30 @@
1
+ ENV["RAILS_ENV"] ||= 'test'
2
+ require File.expand_path("../dummy/config/environment", __FILE__)
3
+ require 'rspec/rails'
4
+ require 'capybara/rspec'
5
+ require 'database_cleaner'
6
+ require 'factory_girl_rails'
7
+ require 'shoulda/matchers'
8
+ require 'pry'
9
+
10
+ Dir[Rails.root.join("../support/**/*.rb")].each { |f| require f }
11
+ ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)
12
+
13
+ RSpec.configure do |config|
14
+
15
+ config.expect_with :rspec do |expectations|
16
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
17
+ end
18
+
19
+ config.mock_with :rspec do |mocks|
20
+ mocks.verify_partial_doubles = true
21
+ end
22
+
23
+ Capybara.javascript_driver = :webkit
24
+
25
+ config.include FactoryGirl::Syntax::Methods
26
+ config.infer_base_class_for_anonymous_controllers = false
27
+ config.infer_spec_type_from_file_location!
28
+ config.order = "random"
29
+
30
+ end
@@ -0,0 +1,13 @@
1
+ DatabaseCleaner.strategy = :truncation
2
+
3
+ RSpec.configure do |config|
4
+ config.use_transactional_fixtures = false
5
+
6
+ config.before :each do
7
+ DatabaseCleaner.start
8
+ end
9
+
10
+ config.after :each do
11
+ DatabaseCleaner.clean
12
+ end
13
+ end
@@ -0,0 +1,3 @@
1
+ ActionView::TestCase::TestController.class_eval do
2
+ include ActsAsIndexable::View
3
+ end
metadata ADDED
@@ -0,0 +1,402 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: acts_as_indexable
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Taylor C. MacDonald
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-11-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.2'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 4.2.3
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '4.2'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 4.2.3
33
+ - !ruby/object:Gem::Dependency
34
+ name: sqlite3
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '1.3'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 1.3.11
43
+ type: :development
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '1.3'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 1.3.11
53
+ - !ruby/object:Gem::Dependency
54
+ name: rspec-rails
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '3.4'
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: 3.4.0
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '3.4'
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: 3.4.0
73
+ - !ruby/object:Gem::Dependency
74
+ name: shoulda-matchers
75
+ requirement: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - "~>"
78
+ - !ruby/object:Gem::Version
79
+ version: '3.0'
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: 3.0.1
83
+ type: :development
84
+ prerelease: false
85
+ version_requirements: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '3.0'
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: 3.0.1
93
+ - !ruby/object:Gem::Dependency
94
+ name: database_cleaner
95
+ requirement: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - "~>"
98
+ - !ruby/object:Gem::Version
99
+ version: '1.4'
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: 1.5.1
103
+ type: :development
104
+ prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '1.4'
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: 1.5.1
113
+ - !ruby/object:Gem::Dependency
114
+ name: guard-rspec
115
+ requirement: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - "~>"
118
+ - !ruby/object:Gem::Version
119
+ version: '4.6'
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: 4.6.4
123
+ type: :development
124
+ prerelease: false
125
+ version_requirements: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - "~>"
128
+ - !ruby/object:Gem::Version
129
+ version: '4.6'
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: 4.6.4
133
+ - !ruby/object:Gem::Dependency
134
+ name: launchy
135
+ requirement: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - "~>"
138
+ - !ruby/object:Gem::Version
139
+ version: '2.4'
140
+ - - ">="
141
+ - !ruby/object:Gem::Version
142
+ version: 2.4.3
143
+ type: :development
144
+ prerelease: false
145
+ version_requirements: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - "~>"
148
+ - !ruby/object:Gem::Version
149
+ version: '2.4'
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: 2.4.3
153
+ - !ruby/object:Gem::Dependency
154
+ name: capybara
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '2.5'
160
+ - - ">="
161
+ - !ruby/object:Gem::Version
162
+ version: 2.5.0
163
+ type: :development
164
+ prerelease: false
165
+ version_requirements: !ruby/object:Gem::Requirement
166
+ requirements:
167
+ - - "~>"
168
+ - !ruby/object:Gem::Version
169
+ version: '2.5'
170
+ - - ">="
171
+ - !ruby/object:Gem::Version
172
+ version: 2.5.0
173
+ - !ruby/object:Gem::Dependency
174
+ name: capybara-webkit
175
+ requirement: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - "~>"
178
+ - !ruby/object:Gem::Version
179
+ version: '1.7'
180
+ - - ">="
181
+ - !ruby/object:Gem::Version
182
+ version: 1.7.1
183
+ type: :development
184
+ prerelease: false
185
+ version_requirements: !ruby/object:Gem::Requirement
186
+ requirements:
187
+ - - "~>"
188
+ - !ruby/object:Gem::Version
189
+ version: '1.7'
190
+ - - ">="
191
+ - !ruby/object:Gem::Version
192
+ version: 1.7.1
193
+ - !ruby/object:Gem::Dependency
194
+ name: factory_girl_rails
195
+ requirement: !ruby/object:Gem::Requirement
196
+ requirements:
197
+ - - "~>"
198
+ - !ruby/object:Gem::Version
199
+ version: '4.5'
200
+ - - ">="
201
+ - !ruby/object:Gem::Version
202
+ version: 4.5.0
203
+ type: :development
204
+ prerelease: false
205
+ version_requirements: !ruby/object:Gem::Requirement
206
+ requirements:
207
+ - - "~>"
208
+ - !ruby/object:Gem::Version
209
+ version: '4.5'
210
+ - - ">="
211
+ - !ruby/object:Gem::Version
212
+ version: 4.5.0
213
+ - !ruby/object:Gem::Dependency
214
+ name: pry
215
+ requirement: !ruby/object:Gem::Requirement
216
+ requirements:
217
+ - - "~>"
218
+ - !ruby/object:Gem::Version
219
+ version: '0.10'
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: 0.10.3
223
+ type: :development
224
+ prerelease: false
225
+ version_requirements: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - "~>"
228
+ - !ruby/object:Gem::Version
229
+ version: '0.10'
230
+ - - ">="
231
+ - !ruby/object:Gem::Version
232
+ version: 0.10.3
233
+ description: ActsAsIndexable is a Rails engine that provides a configurable DSL for
234
+ rendering tables in index views of your application. It works with any collection
235
+ of enumerable objects, ActiveRecord or otherwise.
236
+ email:
237
+ - tcmacdonald@gmail.com
238
+ executables: []
239
+ extensions: []
240
+ extra_rdoc_files: []
241
+ files:
242
+ - ".gitignore"
243
+ - ".rspec"
244
+ - ".travis.yml"
245
+ - Gemfile
246
+ - Gemfile.lock
247
+ - Guardfile
248
+ - LICENSE
249
+ - README.md
250
+ - Rakefile
251
+ - acts_as_indexable.gemspec
252
+ - app/helpers/acts_as_indexable/acts_as_indexable_helper.rb
253
+ - app/views/acts_as_indexable/_index.html.erb
254
+ - app/views/acts_as_indexable/_row.html.erb
255
+ - app/views/acts_as_indexable/_thead.html.erb
256
+ - lib/acts_as_indexable.rb
257
+ - lib/acts_as_indexable/attribute.rb
258
+ - lib/acts_as_indexable/engine.rb
259
+ - lib/acts_as_indexable/version.rb
260
+ - lib/acts_as_indexable/view.rb
261
+ - spec/dummy/README.rdoc
262
+ - spec/dummy/Rakefile
263
+ - spec/dummy/app/assets/images/.keep
264
+ - spec/dummy/app/assets/javascripts/application.js
265
+ - spec/dummy/app/assets/javascripts/widgets.js
266
+ - spec/dummy/app/assets/stylesheets/application.css
267
+ - spec/dummy/app/assets/stylesheets/widgets.css
268
+ - spec/dummy/app/controllers/application_controller.rb
269
+ - spec/dummy/app/controllers/concerns/.keep
270
+ - spec/dummy/app/controllers/widgets_controller.rb
271
+ - spec/dummy/app/helpers/application_helper.rb
272
+ - spec/dummy/app/helpers/widgets_helper.rb
273
+ - spec/dummy/app/mailers/.keep
274
+ - spec/dummy/app/models/.keep
275
+ - spec/dummy/app/models/concerns/.keep
276
+ - spec/dummy/app/models/widget.rb
277
+ - spec/dummy/app/views/layouts/application.html.erb
278
+ - spec/dummy/app/views/widgets/_date.html.erb
279
+ - spec/dummy/app/views/widgets/index.html.erb
280
+ - spec/dummy/bin/bundle
281
+ - spec/dummy/bin/rails
282
+ - spec/dummy/bin/rake
283
+ - spec/dummy/bin/setup
284
+ - spec/dummy/config.ru
285
+ - spec/dummy/config/application.rb
286
+ - spec/dummy/config/boot.rb
287
+ - spec/dummy/config/database.yml
288
+ - spec/dummy/config/environment.rb
289
+ - spec/dummy/config/environments/development.rb
290
+ - spec/dummy/config/environments/production.rb
291
+ - spec/dummy/config/environments/test.rb
292
+ - spec/dummy/config/initializers/assets.rb
293
+ - spec/dummy/config/initializers/backtrace_silencers.rb
294
+ - spec/dummy/config/initializers/cookies_serializer.rb
295
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
296
+ - spec/dummy/config/initializers/inflections.rb
297
+ - spec/dummy/config/initializers/mime_types.rb
298
+ - spec/dummy/config/initializers/session_store.rb
299
+ - spec/dummy/config/initializers/wrap_parameters.rb
300
+ - spec/dummy/config/locales/en.yml
301
+ - spec/dummy/config/routes.rb
302
+ - spec/dummy/config/secrets.yml
303
+ - spec/dummy/db/migrate/20151123200106_create_widgets.rb
304
+ - spec/dummy/db/schema.rb
305
+ - spec/dummy/db/seeds.rb
306
+ - spec/dummy/lib/assets/.keep
307
+ - spec/dummy/log/.keep
308
+ - spec/dummy/public/404.html
309
+ - spec/dummy/public/422.html
310
+ - spec/dummy/public/500.html
311
+ - spec/dummy/public/favicon.ico
312
+ - spec/factories/widget.rb
313
+ - spec/features/acts_as_indexable/view_spec.rb
314
+ - spec/helpers/acts_as_indexable_helper_spec.rb
315
+ - spec/models/attribute_spec.rb
316
+ - spec/spec_helper.rb
317
+ - spec/support/database_cleaner.rb
318
+ - spec/support/indexable_views.rb
319
+ homepage: https://github.com/tcmacdonald/acts_as_indexable
320
+ licenses:
321
+ - MIT
322
+ metadata: {}
323
+ post_install_message:
324
+ rdoc_options: []
325
+ require_paths:
326
+ - lib
327
+ - app
328
+ required_ruby_version: !ruby/object:Gem::Requirement
329
+ requirements:
330
+ - - ">="
331
+ - !ruby/object:Gem::Version
332
+ version: '0'
333
+ required_rubygems_version: !ruby/object:Gem::Requirement
334
+ requirements:
335
+ - - ">="
336
+ - !ruby/object:Gem::Version
337
+ version: '0'
338
+ requirements: []
339
+ rubyforge_project:
340
+ rubygems_version: 2.4.5
341
+ signing_key:
342
+ specification_version: 4
343
+ summary: Utilities for building and extending table views in your Rails application.
344
+ test_files:
345
+ - spec/dummy/README.rdoc
346
+ - spec/dummy/Rakefile
347
+ - spec/dummy/app/assets/images/.keep
348
+ - spec/dummy/app/assets/javascripts/application.js
349
+ - spec/dummy/app/assets/javascripts/widgets.js
350
+ - spec/dummy/app/assets/stylesheets/application.css
351
+ - spec/dummy/app/assets/stylesheets/widgets.css
352
+ - spec/dummy/app/controllers/application_controller.rb
353
+ - spec/dummy/app/controllers/concerns/.keep
354
+ - spec/dummy/app/controllers/widgets_controller.rb
355
+ - spec/dummy/app/helpers/application_helper.rb
356
+ - spec/dummy/app/helpers/widgets_helper.rb
357
+ - spec/dummy/app/mailers/.keep
358
+ - spec/dummy/app/models/.keep
359
+ - spec/dummy/app/models/concerns/.keep
360
+ - spec/dummy/app/models/widget.rb
361
+ - spec/dummy/app/views/layouts/application.html.erb
362
+ - spec/dummy/app/views/widgets/_date.html.erb
363
+ - spec/dummy/app/views/widgets/index.html.erb
364
+ - spec/dummy/bin/bundle
365
+ - spec/dummy/bin/rails
366
+ - spec/dummy/bin/rake
367
+ - spec/dummy/bin/setup
368
+ - spec/dummy/config.ru
369
+ - spec/dummy/config/application.rb
370
+ - spec/dummy/config/boot.rb
371
+ - spec/dummy/config/database.yml
372
+ - spec/dummy/config/environment.rb
373
+ - spec/dummy/config/environments/development.rb
374
+ - spec/dummy/config/environments/production.rb
375
+ - spec/dummy/config/environments/test.rb
376
+ - spec/dummy/config/initializers/assets.rb
377
+ - spec/dummy/config/initializers/backtrace_silencers.rb
378
+ - spec/dummy/config/initializers/cookies_serializer.rb
379
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
380
+ - spec/dummy/config/initializers/inflections.rb
381
+ - spec/dummy/config/initializers/mime_types.rb
382
+ - spec/dummy/config/initializers/session_store.rb
383
+ - spec/dummy/config/initializers/wrap_parameters.rb
384
+ - spec/dummy/config/locales/en.yml
385
+ - spec/dummy/config/routes.rb
386
+ - spec/dummy/config/secrets.yml
387
+ - spec/dummy/db/migrate/20151123200106_create_widgets.rb
388
+ - spec/dummy/db/schema.rb
389
+ - spec/dummy/db/seeds.rb
390
+ - spec/dummy/lib/assets/.keep
391
+ - spec/dummy/log/.keep
392
+ - spec/dummy/public/404.html
393
+ - spec/dummy/public/422.html
394
+ - spec/dummy/public/500.html
395
+ - spec/dummy/public/favicon.ico
396
+ - spec/factories/widget.rb
397
+ - spec/features/acts_as_indexable/view_spec.rb
398
+ - spec/helpers/acts_as_indexable_helper_spec.rb
399
+ - spec/models/attribute_spec.rb
400
+ - spec/spec_helper.rb
401
+ - spec/support/database_cleaner.rb
402
+ - spec/support/indexable_views.rb