greedo 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +25 -0
  3. data/.rspec +1 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE.txt +22 -0
  6. data/README.md +87 -0
  7. data/Rakefile +2 -0
  8. data/app/views/greedo/_grid.html.haml +28 -0
  9. data/greedo.gemspec +32 -0
  10. data/lib/greedo.rb +15 -0
  11. data/lib/greedo/engine.rb +4 -0
  12. data/lib/greedo/grid_helper.rb +180 -0
  13. data/lib/greedo/paginator.rb +61 -0
  14. data/lib/greedo/railtie.rb +7 -0
  15. data/lib/greedo/version.rb +3 -0
  16. data/spec/dummy/README.rdoc +28 -0
  17. data/spec/dummy/Rakefile +6 -0
  18. data/spec/dummy/app/assets/images/.keep +0 -0
  19. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  20. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  21. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  22. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  23. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  24. data/spec/dummy/app/mailers/.keep +0 -0
  25. data/spec/dummy/app/models/.keep +0 -0
  26. data/spec/dummy/app/models/concerns/.keep +0 -0
  27. data/spec/dummy/app/models/project.rb +2 -0
  28. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  29. data/spec/dummy/bin/bundle +3 -0
  30. data/spec/dummy/bin/rails +4 -0
  31. data/spec/dummy/bin/rake +4 -0
  32. data/spec/dummy/bin/setup +29 -0
  33. data/spec/dummy/config.ru +4 -0
  34. data/spec/dummy/config/application.rb +32 -0
  35. data/spec/dummy/config/boot.rb +5 -0
  36. data/spec/dummy/config/database.yml +25 -0
  37. data/spec/dummy/config/environment.rb +5 -0
  38. data/spec/dummy/config/environments/development.rb +41 -0
  39. data/spec/dummy/config/environments/production.rb +79 -0
  40. data/spec/dummy/config/environments/test.rb +42 -0
  41. data/spec/dummy/config/initializers/assets.rb +11 -0
  42. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  43. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  44. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  45. data/spec/dummy/config/initializers/inflections.rb +16 -0
  46. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  47. data/spec/dummy/config/initializers/session_store.rb +3 -0
  48. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  49. data/spec/dummy/config/locales/en.yml +23 -0
  50. data/spec/dummy/config/routes.rb +57 -0
  51. data/spec/dummy/config/secrets.yml +22 -0
  52. data/spec/dummy/db/development.sqlite3 +0 -0
  53. data/spec/dummy/db/migrate/20150918151106_create_projects.rb +9 -0
  54. data/spec/dummy/db/schema.rb +23 -0
  55. data/spec/dummy/db/test.sqlite3 +0 -0
  56. data/spec/dummy/lib/assets/.keep +0 -0
  57. data/spec/dummy/public/404.html +67 -0
  58. data/spec/dummy/public/422.html +67 -0
  59. data/spec/dummy/public/500.html +66 -0
  60. data/spec/dummy/public/favicon.ico +0 -0
  61. data/spec/greedo/grid_helper_spec.rb +161 -0
  62. data/spec/spec_helper.rb +14 -0
  63. metadata +294 -0
@@ -0,0 +1,14 @@
1
+ ENV['RAILS_ENV'] ||= 'test'
2
+
3
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
4
+
5
+ require "rspec/rails"
6
+ require "capybara/rspec"
7
+ require "greedo"
8
+
9
+ RSpec.configure do |config|
10
+ config.mock_with :rspec
11
+ config.use_transactional_fixtures = true
12
+ config.infer_base_class_for_anonymous_controllers = false
13
+ config.order = "random"
14
+ end
metadata ADDED
@@ -0,0 +1,294 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: greedo
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.7
5
+ platform: ruby
6
+ authors:
7
+ - Adam Pohorecki
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-07-21 00:00:00.000000000 Z
12
+ 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.6'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.6'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec-core
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: capybara
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rails
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '4.2'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '4.2'
97
+ - !ruby/object:Gem::Dependency
98
+ name: sqlite3
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: haml
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: will_paginate
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: will_paginate-bootstrap
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ description: Shortens the syntax for creating tables
154
+ email:
155
+ - adam@pohorecki.pl
156
+ executables: []
157
+ extensions: []
158
+ extra_rdoc_files: []
159
+ files:
160
+ - ".gitignore"
161
+ - ".rspec"
162
+ - Gemfile
163
+ - LICENSE.txt
164
+ - README.md
165
+ - Rakefile
166
+ - app/views/greedo/_grid.html.haml
167
+ - greedo.gemspec
168
+ - lib/greedo.rb
169
+ - lib/greedo/engine.rb
170
+ - lib/greedo/grid_helper.rb
171
+ - lib/greedo/paginator.rb
172
+ - lib/greedo/railtie.rb
173
+ - lib/greedo/version.rb
174
+ - spec/dummy/README.rdoc
175
+ - spec/dummy/Rakefile
176
+ - spec/dummy/app/assets/images/.keep
177
+ - spec/dummy/app/assets/javascripts/application.js
178
+ - spec/dummy/app/assets/stylesheets/application.css
179
+ - spec/dummy/app/controllers/application_controller.rb
180
+ - spec/dummy/app/controllers/concerns/.keep
181
+ - spec/dummy/app/helpers/application_helper.rb
182
+ - spec/dummy/app/mailers/.keep
183
+ - spec/dummy/app/models/.keep
184
+ - spec/dummy/app/models/concerns/.keep
185
+ - spec/dummy/app/models/project.rb
186
+ - spec/dummy/app/views/layouts/application.html.erb
187
+ - spec/dummy/bin/bundle
188
+ - spec/dummy/bin/rails
189
+ - spec/dummy/bin/rake
190
+ - spec/dummy/bin/setup
191
+ - spec/dummy/config.ru
192
+ - spec/dummy/config/application.rb
193
+ - spec/dummy/config/boot.rb
194
+ - spec/dummy/config/database.yml
195
+ - spec/dummy/config/environment.rb
196
+ - spec/dummy/config/environments/development.rb
197
+ - spec/dummy/config/environments/production.rb
198
+ - spec/dummy/config/environments/test.rb
199
+ - spec/dummy/config/initializers/assets.rb
200
+ - spec/dummy/config/initializers/backtrace_silencers.rb
201
+ - spec/dummy/config/initializers/cookies_serializer.rb
202
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
203
+ - spec/dummy/config/initializers/inflections.rb
204
+ - spec/dummy/config/initializers/mime_types.rb
205
+ - spec/dummy/config/initializers/session_store.rb
206
+ - spec/dummy/config/initializers/wrap_parameters.rb
207
+ - spec/dummy/config/locales/en.yml
208
+ - spec/dummy/config/routes.rb
209
+ - spec/dummy/config/secrets.yml
210
+ - spec/dummy/db/development.sqlite3
211
+ - spec/dummy/db/migrate/20150918151106_create_projects.rb
212
+ - spec/dummy/db/schema.rb
213
+ - spec/dummy/db/test.sqlite3
214
+ - spec/dummy/lib/assets/.keep
215
+ - spec/dummy/log/.keep
216
+ - spec/dummy/public/404.html
217
+ - spec/dummy/public/422.html
218
+ - spec/dummy/public/500.html
219
+ - spec/dummy/public/favicon.ico
220
+ - spec/greedo/grid_helper_spec.rb
221
+ - spec/spec_helper.rb
222
+ homepage: https://github.com/gunpowderlabs/greedo
223
+ licenses:
224
+ - MIT
225
+ metadata: {}
226
+ post_install_message:
227
+ rdoc_options: []
228
+ require_paths:
229
+ - lib
230
+ required_ruby_version: !ruby/object:Gem::Requirement
231
+ requirements:
232
+ - - ">="
233
+ - !ruby/object:Gem::Version
234
+ version: '0'
235
+ required_rubygems_version: !ruby/object:Gem::Requirement
236
+ requirements:
237
+ - - ">="
238
+ - !ruby/object:Gem::Version
239
+ version: '0'
240
+ requirements: []
241
+ rubyforge_project:
242
+ rubygems_version: 2.7.6
243
+ signing_key:
244
+ specification_version: 4
245
+ summary: A very simple grid library
246
+ test_files:
247
+ - spec/dummy/README.rdoc
248
+ - spec/dummy/Rakefile
249
+ - spec/dummy/app/assets/images/.keep
250
+ - spec/dummy/app/assets/javascripts/application.js
251
+ - spec/dummy/app/assets/stylesheets/application.css
252
+ - spec/dummy/app/controllers/application_controller.rb
253
+ - spec/dummy/app/controllers/concerns/.keep
254
+ - spec/dummy/app/helpers/application_helper.rb
255
+ - spec/dummy/app/mailers/.keep
256
+ - spec/dummy/app/models/.keep
257
+ - spec/dummy/app/models/concerns/.keep
258
+ - spec/dummy/app/models/project.rb
259
+ - spec/dummy/app/views/layouts/application.html.erb
260
+ - spec/dummy/bin/bundle
261
+ - spec/dummy/bin/rails
262
+ - spec/dummy/bin/rake
263
+ - spec/dummy/bin/setup
264
+ - spec/dummy/config.ru
265
+ - spec/dummy/config/application.rb
266
+ - spec/dummy/config/boot.rb
267
+ - spec/dummy/config/database.yml
268
+ - spec/dummy/config/environment.rb
269
+ - spec/dummy/config/environments/development.rb
270
+ - spec/dummy/config/environments/production.rb
271
+ - spec/dummy/config/environments/test.rb
272
+ - spec/dummy/config/initializers/assets.rb
273
+ - spec/dummy/config/initializers/backtrace_silencers.rb
274
+ - spec/dummy/config/initializers/cookies_serializer.rb
275
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
276
+ - spec/dummy/config/initializers/inflections.rb
277
+ - spec/dummy/config/initializers/mime_types.rb
278
+ - spec/dummy/config/initializers/session_store.rb
279
+ - spec/dummy/config/initializers/wrap_parameters.rb
280
+ - spec/dummy/config/locales/en.yml
281
+ - spec/dummy/config/routes.rb
282
+ - spec/dummy/config/secrets.yml
283
+ - spec/dummy/db/development.sqlite3
284
+ - spec/dummy/db/migrate/20150918151106_create_projects.rb
285
+ - spec/dummy/db/schema.rb
286
+ - spec/dummy/db/test.sqlite3
287
+ - spec/dummy/lib/assets/.keep
288
+ - spec/dummy/log/.keep
289
+ - spec/dummy/public/404.html
290
+ - spec/dummy/public/422.html
291
+ - spec/dummy/public/500.html
292
+ - spec/dummy/public/favicon.ico
293
+ - spec/greedo/grid_helper_spec.rb
294
+ - spec/spec_helper.rb