greedo 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +25 -0
- data/.rspec +1 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +54 -0
- data/Rakefile +2 -0
- data/app/views/greedo/_grid.html.haml +17 -0
- data/greedo.gemspec +32 -0
- data/lib/greedo.rb +15 -0
- data/lib/greedo/engine.rb +4 -0
- data/lib/greedo/grid_helper.rb +96 -0
- data/lib/greedo/paginator.rb +42 -0
- data/lib/greedo/railtie.rb +7 -0
- data/lib/greedo/version.rb +3 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/images/.keep +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/.keep +0 -0
- data/spec/dummy/app/models/.keep +0 -0
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/models/project.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +32 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +41 -0
- data/spec/dummy/config/environments/production.rb +79 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +57 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20150918151106_create_projects.rb +9 -0
- data/spec/dummy/db/schema.rb +23 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/greedo/grid_helper_spec.rb +124 -0
- data/spec/spec_helper.rb +14 -0
- metadata +294 -0
@@ -0,0 +1,22 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rake secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure the secrets in this file are kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
|
13
|
+
development:
|
14
|
+
secret_key_base: 8a8e7c5877a0433278688dc51d84368410a54f11e96f6e6de9b11a4ae7e22504ba924e93f52f7395baa3d64d5822c042852ebc828a926f2c579043fc0656fadf
|
15
|
+
|
16
|
+
test:
|
17
|
+
secret_key_base: 4d9f507cd98f716cf1e6870ea64a627a696f5bc6f976d8999cd074bc3dee271659d17e5ab8ec0ef648eb848566a67e1c9f1448efb2d502da733a5ee32123c58d
|
18
|
+
|
19
|
+
# Do not keep production secrets in the repository,
|
20
|
+
# instead read values from the environment.
|
21
|
+
production:
|
22
|
+
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
Binary file
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended that you check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(version: 20150918151106) do
|
15
|
+
|
16
|
+
create_table "projects", force: :cascade do |t|
|
17
|
+
t.string "name"
|
18
|
+
t.string "description"
|
19
|
+
t.datetime "created_at"
|
20
|
+
t.datetime "updated_at"
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
Binary file
|
File without changes
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</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/404.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
62
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</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/422.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The change you wanted was rejected.</h1>
|
62
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -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,124 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
RSpec.describe Greedo::GridHelper, type: :helper do
|
4
|
+
it "renders a table" do
|
5
|
+
create_project(name: "Foo")
|
6
|
+
|
7
|
+
html = helper.greedo(Project.all)
|
8
|
+
|
9
|
+
expect(html).to have_selector("table.table.table-striped")
|
10
|
+
end
|
11
|
+
|
12
|
+
it "renders a column header for each column specified" do
|
13
|
+
create_project(name: "Foo")
|
14
|
+
|
15
|
+
html = helper.greedo(Project.all) do |g|
|
16
|
+
g.column :id, label: "ID"
|
17
|
+
g.column :name
|
18
|
+
end
|
19
|
+
|
20
|
+
expect(html).to include("<th>ID</th>")
|
21
|
+
expect(html).to include("<th>Name</th>")
|
22
|
+
end
|
23
|
+
|
24
|
+
it "renders values for each of the columns specified" do
|
25
|
+
foo = create_project(name: "Foo")
|
26
|
+
bar = create_project(name: "Bar")
|
27
|
+
|
28
|
+
html = helper.greedo(Project.all) do |g|
|
29
|
+
g.column :id, label: "ID"
|
30
|
+
g.column :name
|
31
|
+
end
|
32
|
+
|
33
|
+
expect(html).to include("Foo")
|
34
|
+
expect(html).to include(foo.id.to_s)
|
35
|
+
expect(html).to include("Bar")
|
36
|
+
expect(html).to include(bar.id.to_s)
|
37
|
+
end
|
38
|
+
|
39
|
+
it "allows customizing how the content will be displayed" do
|
40
|
+
create_project(name: "Foo")
|
41
|
+
|
42
|
+
html = helper.greedo(Project.all) do |g|
|
43
|
+
g.column :name do |p|
|
44
|
+
p.name.upcase
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
expect(html).to include("FOO")
|
49
|
+
end
|
50
|
+
|
51
|
+
it "adds pagination" do
|
52
|
+
create_project(name: "Bar")
|
53
|
+
create_project(name: "Baz")
|
54
|
+
create_project(name: "Foo")
|
55
|
+
|
56
|
+
params[:controller] = "projects"
|
57
|
+
html = helper.greedo(Project.all, per_page: 2) do |g|
|
58
|
+
g.column :id
|
59
|
+
g.column :name
|
60
|
+
end
|
61
|
+
|
62
|
+
expect(html).not_to include("Foo")
|
63
|
+
expect(html).to include("Bar")
|
64
|
+
expect(html).to include("Baz")
|
65
|
+
end
|
66
|
+
|
67
|
+
it "allows changing the page param name" do
|
68
|
+
create_project(name: "Bar")
|
69
|
+
create_project(name: "Baz")
|
70
|
+
create_project(name: "Foo")
|
71
|
+
|
72
|
+
params[:controller] = "projects"
|
73
|
+
params[:foo_page] = "2"
|
74
|
+
html = helper.greedo(Project.all, param_name: :foo_page, per_page: 2) do |g|
|
75
|
+
g.column :id
|
76
|
+
g.column :name
|
77
|
+
end
|
78
|
+
|
79
|
+
expect(html).to include("Foo")
|
80
|
+
expect(html).not_to include("Bar")
|
81
|
+
expect(html).not_to include("Baz")
|
82
|
+
end
|
83
|
+
|
84
|
+
it "adds row id" do
|
85
|
+
foo = create_project(name: "foo")
|
86
|
+
bar = create_project(name: "Bar")
|
87
|
+
|
88
|
+
html = helper.greedo(Project.all) do |g|
|
89
|
+
g.column :id
|
90
|
+
g.column :name
|
91
|
+
end
|
92
|
+
|
93
|
+
expect(html).to have_selector("tr#project-#{foo.id}")
|
94
|
+
expect(html).to have_selector("tr#project-#{bar.id}")
|
95
|
+
end
|
96
|
+
|
97
|
+
it "adds custom row id" do
|
98
|
+
foo = create_project(name: "foo")
|
99
|
+
bar = create_project(name: "Bar")
|
100
|
+
|
101
|
+
html = helper.greedo(Project.all) do |g|
|
102
|
+
g.row_id { |p| "asdf-#{p.id}" }
|
103
|
+
g.column :id
|
104
|
+
g.column :name
|
105
|
+
end
|
106
|
+
|
107
|
+
expect(html).to have_selector("tr#asdf-#{foo.id}")
|
108
|
+
expect(html).to have_selector("tr#asdf-#{bar.id}")
|
109
|
+
end
|
110
|
+
|
111
|
+
it "show a no records message" do
|
112
|
+
html = helper.greedo(Project.all) do |g|
|
113
|
+
g.column :id
|
114
|
+
end
|
115
|
+
|
116
|
+
expect(html).to include("No data to show.")
|
117
|
+
end
|
118
|
+
|
119
|
+
def create_project(attrs = {})
|
120
|
+
Project.create!({
|
121
|
+
name: "Project #{Project.count + 1}"
|
122
|
+
}.merge(attrs))
|
123
|
+
end
|
124
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -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.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Adam Pohorecki
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-09-18 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: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
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.4.8
|
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
|