flexirails 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +20 -0
- data/README.md +171 -0
- data/Rakefile +39 -0
- data/app/assets/stylesheets/flexirails.scss +55 -0
- data/app/helpers/flexirails_helper.rb +25 -0
- data/app/models/flexirails/array_view.rb +17 -0
- data/app/models/flexirails/view.rb +123 -0
- data/app/views/flexirails/_container.html.erb +28 -0
- data/app/views/flexirails/_navigation.html.erb +66 -0
- data/lib/flexirails.rb +5 -0
- data/lib/flexirails/engine.rb +4 -0
- data/lib/flexirails/version.rb +3 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +9 -0
- data/test/dummy/app/assets/stylesheets/application.scss +7 -0
- data/test/dummy/app/controllers/active_record_controller.rb +70 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/controllers/static_controller.rb +68 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/models/active_record_view.rb +23 -0
- data/test/dummy/app/models/person.rb +2 -0
- data/test/dummy/app/models/static.rb +5 -0
- data/test/dummy/app/models/static_view.rb +5 -0
- data/test/dummy/app/views/active_record/index.html.erb +7 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/static/index.html.erb +7 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +44 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +30 -0
- data/test/dummy/config/environments/production.rb +60 -0
- data/test/dummy/config/environments/test.rb +42 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +10 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +8 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/de.yml +8 -0
- data/test/dummy/config/locales/en.yml +8 -0
- data/test/dummy/config/routes.rb +60 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20131109204431_create_people.rb +9 -0
- data/test/dummy/db/schema.rb +23 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +5482 -0
- data/test/dummy/log/test.log +4932 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +26 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/tmp/cache/assets/development/sass/62614c0f166e45da36cfbb2781f9667e47799670/application.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/9178b5a65ff97d4c91c8e2380e5ac8d8eb939b91/flexirails.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/b2a814b45c3cca5078e8af8655d3f89a5f705998/flexirails.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/e91bee6f7bc4c18550721ba1f2d7361da7e3d2e5/application.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/24585794383ac6ae2640d6c9e4affdbd +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2edad7c2ee0e34d5988da78ef799ca6c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2ef811475ef30c8afbab72317974e714 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/33fea692ac14771a738e10ee5d76ae96 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/352bab412d75fa19d0a07504553b59df +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5584751febc87e8b2ba4b7f38285eceb +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/69e627a9d109212088a08e7938543d9d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6e1bd95023705b5529e7ccc754a02867 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/836b5f0381caa8a96cebbee674df2708 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/85c3b8d54510866ae2cc33aedc247eb0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/889b9afc807369ef171867cb782dd99c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/92613a75279536c4bcf4f3ba6cfde494 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c0f4ca569d58f951461e6ccadfdd2649 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/dcea77c9b7315ca8f48eb8357e38a219 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e714eeaf481f5a44ddca306c4a9c7137 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/9178b5a65ff97d4c91c8e2380e5ac8d8eb939b91/flexirails.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/e91bee6f7bc4c18550721ba1f2d7361da7e3d2e5/application.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2ef811475ef30c8afbab72317974e714 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/352bab412d75fa19d0a07504553b59df +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/5584751febc87e8b2ba4b7f38285eceb +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/6e1bd95023705b5529e7ccc754a02867 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/836b5f0381caa8a96cebbee674df2708 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/85c3b8d54510866ae2cc33aedc247eb0 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/889b9afc807369ef171867cb782dd99c +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/92613a75279536c4bcf4f3ba6cfde494 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/c0f4ca569d58f951461e6ccadfdd2649 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/pids/server.pid +1 -0
- data/test/models/flexirails/array_view_test.rb +44 -0
- data/test/models/flexirails/view_test.rb +46 -0
- data/test/rails-localization-engine_test.rb +7 -0
- data/test/test_helper.rb +14 -0
- data/test/views/flexirails/navigation_test.rb +65 -0
- metadata +306 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
<p>We've been notified about this issue and we'll take a look at it shortly.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/test/dummy/tmp/cache/assets/test/sass/9178b5a65ff97d4c91c8e2380e5ac8d8eb939b91/flexirails.scssc
ADDED
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
3534
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require "test_helper"
|
2
|
+
|
3
|
+
module Flexirails
|
4
|
+
class ArrayViewTest < ActiveSupport::TestCase
|
5
|
+
Point = Struct.new(:x, :y)
|
6
|
+
|
7
|
+
class TestView < ::Flexirails::ArrayView
|
8
|
+
def columns
|
9
|
+
%w(x, y)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
attr_reader :items
|
14
|
+
def setup
|
15
|
+
@items = []
|
16
|
+
10.times do |i|
|
17
|
+
@items << Point.new(i, i)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
test "test_view correct total" do
|
22
|
+
assert_equal items.size, TestView.new({}, items).total
|
23
|
+
end
|
24
|
+
|
25
|
+
test "returns all items if per_page > total" do
|
26
|
+
view = TestView.new({ :per_page => "25" }, items)
|
27
|
+
assert_equal view.items, view.rows
|
28
|
+
end
|
29
|
+
|
30
|
+
test "returns correct items for current_page" do
|
31
|
+
view = TestView.new({ :per_page => "3", :current_page => "1" }, items)
|
32
|
+
assert_equal view.items[0..2], view.rows
|
33
|
+
|
34
|
+
refute view.has_prev_path
|
35
|
+
assert view.has_next_path
|
36
|
+
|
37
|
+
view = TestView.new({ :per_page => "3", :current_page => "2" }, items)
|
38
|
+
assert_equal view.items[3..5], view.rows
|
39
|
+
|
40
|
+
assert view.has_prev_path
|
41
|
+
assert view.has_next_path
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
require "test_helper"
|
2
|
+
|
3
|
+
module Flexirails
|
4
|
+
class ViewTest < ActiveSupport::TestCase
|
5
|
+
class TestView < ::Flexirails::View
|
6
|
+
def total
|
7
|
+
10
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
test "initialize with empty params" do
|
12
|
+
view = TestView.new({})
|
13
|
+
assert_equal 1, view.current_page
|
14
|
+
assert_equal 0, view.offset
|
15
|
+
assert_equal 25, view.per_page
|
16
|
+
assert_equal nil, view.order
|
17
|
+
assert_equal nil, view.direction
|
18
|
+
end
|
19
|
+
|
20
|
+
test "only accepts ASC and DESC as direction" do
|
21
|
+
view = TestView.new({ :per_page => "5" })
|
22
|
+
end
|
23
|
+
|
24
|
+
test "initialize with different per_page" do
|
25
|
+
view = TestView.new({ :per_page => "5" })
|
26
|
+
assert_equal 5, view.per_page
|
27
|
+
|
28
|
+
view = TestView.new({ :pagination => { :per_page => "5" } })
|
29
|
+
assert_equal 5, view.per_page
|
30
|
+
end
|
31
|
+
|
32
|
+
test "initialize with current_page" do
|
33
|
+
view = TestView.new({ :per_page => "5", :current_page => "2" })
|
34
|
+
assert_equal 2, view.current_page
|
35
|
+
|
36
|
+
view = TestView.new({ :pagination => { :per_page => "5", :current_page => "2" } })
|
37
|
+
assert_equal 2, view.current_page
|
38
|
+
|
39
|
+
view = TestView.new({ :per_page => "25", :current_page => "2" })
|
40
|
+
assert_equal 1, view.current_page
|
41
|
+
|
42
|
+
view = TestView.new({ :pagination => { :per_page => "25", :current_page => "2" } })
|
43
|
+
assert_equal 1, view.current_page
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
require "rails/test_help"
|
6
|
+
require "capybara/rails"
|
7
|
+
require 'capybara/poltergeist'
|
8
|
+
|
9
|
+
Capybara.javascript_driver = :poltergeist
|
10
|
+
|
11
|
+
Rails.backtrace_cleaner.remove_silencers!
|
12
|
+
|
13
|
+
# Load support files
|
14
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
@@ -0,0 +1,65 @@
|
|
1
|
+
require "test_helper"
|
2
|
+
|
3
|
+
class NavigationTest < ActionDispatch::IntegrationTest
|
4
|
+
include Capybara::DSL
|
5
|
+
|
6
|
+
test "renders per_page and current_page options" do
|
7
|
+
visit "/static"
|
8
|
+
|
9
|
+
assert page.has_selector?("nav.flexirails")
|
10
|
+
assert page.has_selector?("#per_page")
|
11
|
+
assert page.has_selector?("#current_page")
|
12
|
+
end
|
13
|
+
|
14
|
+
test "handles next_page and prev_page clicks properly" do
|
15
|
+
visit "/static"
|
16
|
+
|
17
|
+
assert page.has_selector?(".row-25")
|
18
|
+
refute page.has_selector?(".row-50")
|
19
|
+
|
20
|
+
find(".pagination .next").click
|
21
|
+
|
22
|
+
refute page.has_selector?(".row-25")
|
23
|
+
assert page.has_selector?(".row-50")
|
24
|
+
|
25
|
+
find(".pagination .prev").click
|
26
|
+
|
27
|
+
assert page.has_selector?(".row-25")
|
28
|
+
refute page.has_selector?(".row-50")
|
29
|
+
end
|
30
|
+
|
31
|
+
test "handles first_page and last_page clicks properly" do
|
32
|
+
Capybara.current_driver = Capybara.javascript_driver
|
33
|
+
|
34
|
+
visit "/static"
|
35
|
+
|
36
|
+
page.select("5", :from => "per_page")
|
37
|
+
assert page.has_selector?(".row-5")
|
38
|
+
refute page.has_selector?(".row-6")
|
39
|
+
|
40
|
+
find(".pagination .last").click
|
41
|
+
assert page.has_selector?(".row-46")
|
42
|
+
refute page.has_selector?(".row-45")
|
43
|
+
|
44
|
+
find(".pagination .first").click
|
45
|
+
assert page.has_selector?(".row-5")
|
46
|
+
refute page.has_selector?(".row-6")
|
47
|
+
|
48
|
+
Capybara.use_default_driver
|
49
|
+
end
|
50
|
+
|
51
|
+
test "handles current_page properly on per_page changes" do
|
52
|
+
Capybara.current_driver = Capybara.javascript_driver
|
53
|
+
|
54
|
+
visit "/static"
|
55
|
+
|
56
|
+
page.select("5", :from => "per_page")
|
57
|
+
find(".pagination .last").click
|
58
|
+
assert_equal "10", find("#current_page").value
|
59
|
+
|
60
|
+
page.select("50", :from => "per_page")
|
61
|
+
assert_equal "1", find("#current_page").value
|
62
|
+
|
63
|
+
Capybara.use_default_driver
|
64
|
+
end
|
65
|
+
end
|
metadata
ADDED
@@ -0,0 +1,306 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: flexirails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Raphael Randschau
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-11-09 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: url_plumber
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>'
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 3.2.12
|
34
|
+
- - <
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '5.0'
|
37
|
+
type: :runtime
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - '>'
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 3.2.12
|
44
|
+
- - <
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '5.0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: sqlite3
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - '>='
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: capybara
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - '>='
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - '>='
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: poltergeist
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - '>='
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - '>='
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
description: Dynamic tables in Ruby on Rails using simple ORM independent OO
|
90
|
+
email:
|
91
|
+
- nicolai86@me.com
|
92
|
+
executables: []
|
93
|
+
extensions: []
|
94
|
+
extra_rdoc_files: []
|
95
|
+
files:
|
96
|
+
- app/assets/stylesheets/flexirails.scss
|
97
|
+
- app/helpers/flexirails_helper.rb
|
98
|
+
- app/models/flexirails/array_view.rb
|
99
|
+
- app/models/flexirails/view.rb
|
100
|
+
- app/views/flexirails/_container.html.erb
|
101
|
+
- app/views/flexirails/_navigation.html.erb
|
102
|
+
- lib/flexirails/engine.rb
|
103
|
+
- lib/flexirails/version.rb
|
104
|
+
- lib/flexirails.rb
|
105
|
+
- LICENSE
|
106
|
+
- Rakefile
|
107
|
+
- README.md
|
108
|
+
- test/dummy/app/assets/javascripts/application.js
|
109
|
+
- test/dummy/app/assets/stylesheets/application.scss
|
110
|
+
- test/dummy/app/controllers/active_record_controller.rb
|
111
|
+
- test/dummy/app/controllers/application_controller.rb
|
112
|
+
- test/dummy/app/controllers/static_controller.rb
|
113
|
+
- test/dummy/app/helpers/application_helper.rb
|
114
|
+
- test/dummy/app/models/active_record_view.rb
|
115
|
+
- test/dummy/app/models/person.rb
|
116
|
+
- test/dummy/app/models/static.rb
|
117
|
+
- test/dummy/app/models/static_view.rb
|
118
|
+
- test/dummy/app/views/active_record/index.html.erb
|
119
|
+
- test/dummy/app/views/layouts/application.html.erb
|
120
|
+
- test/dummy/app/views/static/index.html.erb
|
121
|
+
- test/dummy/config/application.rb
|
122
|
+
- test/dummy/config/boot.rb
|
123
|
+
- test/dummy/config/database.yml
|
124
|
+
- test/dummy/config/environment.rb
|
125
|
+
- test/dummy/config/environments/development.rb
|
126
|
+
- test/dummy/config/environments/production.rb
|
127
|
+
- test/dummy/config/environments/test.rb
|
128
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
129
|
+
- test/dummy/config/initializers/inflections.rb
|
130
|
+
- test/dummy/config/initializers/mime_types.rb
|
131
|
+
- test/dummy/config/initializers/secret_token.rb
|
132
|
+
- test/dummy/config/initializers/session_store.rb
|
133
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
134
|
+
- test/dummy/config/locales/de.yml
|
135
|
+
- test/dummy/config/locales/en.yml
|
136
|
+
- test/dummy/config/routes.rb
|
137
|
+
- test/dummy/config.ru
|
138
|
+
- test/dummy/db/development.sqlite3
|
139
|
+
- test/dummy/db/migrate/20131109204431_create_people.rb
|
140
|
+
- test/dummy/db/schema.rb
|
141
|
+
- test/dummy/db/test.sqlite3
|
142
|
+
- test/dummy/log/development.log
|
143
|
+
- test/dummy/log/test.log
|
144
|
+
- test/dummy/public/404.html
|
145
|
+
- test/dummy/public/422.html
|
146
|
+
- test/dummy/public/500.html
|
147
|
+
- test/dummy/public/favicon.ico
|
148
|
+
- test/dummy/Rakefile
|
149
|
+
- test/dummy/script/rails
|
150
|
+
- test/dummy/tmp/cache/assets/development/sass/62614c0f166e45da36cfbb2781f9667e47799670/application.scssc
|
151
|
+
- test/dummy/tmp/cache/assets/development/sass/9178b5a65ff97d4c91c8e2380e5ac8d8eb939b91/flexirails.scssc
|
152
|
+
- test/dummy/tmp/cache/assets/development/sass/b2a814b45c3cca5078e8af8655d3f89a5f705998/flexirails.scssc
|
153
|
+
- test/dummy/tmp/cache/assets/development/sass/e91bee6f7bc4c18550721ba1f2d7361da7e3d2e5/application.scssc
|
154
|
+
- test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
|
155
|
+
- test/dummy/tmp/cache/assets/development/sprockets/24585794383ac6ae2640d6c9e4affdbd
|
156
|
+
- test/dummy/tmp/cache/assets/development/sprockets/2edad7c2ee0e34d5988da78ef799ca6c
|
157
|
+
- test/dummy/tmp/cache/assets/development/sprockets/2ef811475ef30c8afbab72317974e714
|
158
|
+
- test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
159
|
+
- test/dummy/tmp/cache/assets/development/sprockets/33fea692ac14771a738e10ee5d76ae96
|
160
|
+
- test/dummy/tmp/cache/assets/development/sprockets/352bab412d75fa19d0a07504553b59df
|
161
|
+
- test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
|
162
|
+
- test/dummy/tmp/cache/assets/development/sprockets/5584751febc87e8b2ba4b7f38285eceb
|
163
|
+
- test/dummy/tmp/cache/assets/development/sprockets/69e627a9d109212088a08e7938543d9d
|
164
|
+
- test/dummy/tmp/cache/assets/development/sprockets/6e1bd95023705b5529e7ccc754a02867
|
165
|
+
- test/dummy/tmp/cache/assets/development/sprockets/836b5f0381caa8a96cebbee674df2708
|
166
|
+
- test/dummy/tmp/cache/assets/development/sprockets/85c3b8d54510866ae2cc33aedc247eb0
|
167
|
+
- test/dummy/tmp/cache/assets/development/sprockets/889b9afc807369ef171867cb782dd99c
|
168
|
+
- test/dummy/tmp/cache/assets/development/sprockets/92613a75279536c4bcf4f3ba6cfde494
|
169
|
+
- test/dummy/tmp/cache/assets/development/sprockets/c0f4ca569d58f951461e6ccadfdd2649
|
170
|
+
- test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
171
|
+
- test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
172
|
+
- test/dummy/tmp/cache/assets/development/sprockets/dcea77c9b7315ca8f48eb8357e38a219
|
173
|
+
- test/dummy/tmp/cache/assets/development/sprockets/e714eeaf481f5a44ddca306c4a9c7137
|
174
|
+
- test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
175
|
+
- test/dummy/tmp/cache/assets/test/sass/9178b5a65ff97d4c91c8e2380e5ac8d8eb939b91/flexirails.scssc
|
176
|
+
- test/dummy/tmp/cache/assets/test/sass/e91bee6f7bc4c18550721ba1f2d7361da7e3d2e5/application.scssc
|
177
|
+
- test/dummy/tmp/cache/assets/test/sprockets/2ef811475ef30c8afbab72317974e714
|
178
|
+
- test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
179
|
+
- test/dummy/tmp/cache/assets/test/sprockets/352bab412d75fa19d0a07504553b59df
|
180
|
+
- test/dummy/tmp/cache/assets/test/sprockets/5584751febc87e8b2ba4b7f38285eceb
|
181
|
+
- test/dummy/tmp/cache/assets/test/sprockets/6e1bd95023705b5529e7ccc754a02867
|
182
|
+
- test/dummy/tmp/cache/assets/test/sprockets/836b5f0381caa8a96cebbee674df2708
|
183
|
+
- test/dummy/tmp/cache/assets/test/sprockets/85c3b8d54510866ae2cc33aedc247eb0
|
184
|
+
- test/dummy/tmp/cache/assets/test/sprockets/889b9afc807369ef171867cb782dd99c
|
185
|
+
- test/dummy/tmp/cache/assets/test/sprockets/92613a75279536c4bcf4f3ba6cfde494
|
186
|
+
- test/dummy/tmp/cache/assets/test/sprockets/c0f4ca569d58f951461e6ccadfdd2649
|
187
|
+
- test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
188
|
+
- test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
189
|
+
- test/dummy/tmp/pids/server.pid
|
190
|
+
- test/models/flexirails/array_view_test.rb
|
191
|
+
- test/models/flexirails/view_test.rb
|
192
|
+
- test/rails-localization-engine_test.rb
|
193
|
+
- test/test_helper.rb
|
194
|
+
- test/views/flexirails/navigation_test.rb
|
195
|
+
homepage: http://blog.nicolai86.eu
|
196
|
+
licenses:
|
197
|
+
- MIT
|
198
|
+
metadata: {}
|
199
|
+
post_install_message:
|
200
|
+
rdoc_options: []
|
201
|
+
require_paths:
|
202
|
+
- lib
|
203
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
204
|
+
requirements:
|
205
|
+
- - '>='
|
206
|
+
- !ruby/object:Gem::Version
|
207
|
+
version: '0'
|
208
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
209
|
+
requirements:
|
210
|
+
- - '>='
|
211
|
+
- !ruby/object:Gem::Version
|
212
|
+
version: '0'
|
213
|
+
requirements: []
|
214
|
+
rubyforge_project:
|
215
|
+
rubygems_version: 2.1.10
|
216
|
+
signing_key:
|
217
|
+
specification_version: 4
|
218
|
+
summary: Dynamic tables in Ruby on Rails
|
219
|
+
test_files:
|
220
|
+
- test/dummy/app/assets/javascripts/application.js
|
221
|
+
- test/dummy/app/assets/stylesheets/application.scss
|
222
|
+
- test/dummy/app/controllers/active_record_controller.rb
|
223
|
+
- test/dummy/app/controllers/application_controller.rb
|
224
|
+
- test/dummy/app/controllers/static_controller.rb
|
225
|
+
- test/dummy/app/helpers/application_helper.rb
|
226
|
+
- test/dummy/app/models/active_record_view.rb
|
227
|
+
- test/dummy/app/models/person.rb
|
228
|
+
- test/dummy/app/models/static.rb
|
229
|
+
- test/dummy/app/models/static_view.rb
|
230
|
+
- test/dummy/app/views/active_record/index.html.erb
|
231
|
+
- test/dummy/app/views/layouts/application.html.erb
|
232
|
+
- test/dummy/app/views/static/index.html.erb
|
233
|
+
- test/dummy/config/application.rb
|
234
|
+
- test/dummy/config/boot.rb
|
235
|
+
- test/dummy/config/database.yml
|
236
|
+
- test/dummy/config/environment.rb
|
237
|
+
- test/dummy/config/environments/development.rb
|
238
|
+
- test/dummy/config/environments/production.rb
|
239
|
+
- test/dummy/config/environments/test.rb
|
240
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
241
|
+
- test/dummy/config/initializers/inflections.rb
|
242
|
+
- test/dummy/config/initializers/mime_types.rb
|
243
|
+
- test/dummy/config/initializers/secret_token.rb
|
244
|
+
- test/dummy/config/initializers/session_store.rb
|
245
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
246
|
+
- test/dummy/config/locales/de.yml
|
247
|
+
- test/dummy/config/locales/en.yml
|
248
|
+
- test/dummy/config/routes.rb
|
249
|
+
- test/dummy/config.ru
|
250
|
+
- test/dummy/db/development.sqlite3
|
251
|
+
- test/dummy/db/migrate/20131109204431_create_people.rb
|
252
|
+
- test/dummy/db/schema.rb
|
253
|
+
- test/dummy/db/test.sqlite3
|
254
|
+
- test/dummy/log/development.log
|
255
|
+
- test/dummy/log/test.log
|
256
|
+
- test/dummy/public/404.html
|
257
|
+
- test/dummy/public/422.html
|
258
|
+
- test/dummy/public/500.html
|
259
|
+
- test/dummy/public/favicon.ico
|
260
|
+
- test/dummy/Rakefile
|
261
|
+
- test/dummy/script/rails
|
262
|
+
- test/dummy/tmp/cache/assets/development/sass/62614c0f166e45da36cfbb2781f9667e47799670/application.scssc
|
263
|
+
- test/dummy/tmp/cache/assets/development/sass/9178b5a65ff97d4c91c8e2380e5ac8d8eb939b91/flexirails.scssc
|
264
|
+
- test/dummy/tmp/cache/assets/development/sass/b2a814b45c3cca5078e8af8655d3f89a5f705998/flexirails.scssc
|
265
|
+
- test/dummy/tmp/cache/assets/development/sass/e91bee6f7bc4c18550721ba1f2d7361da7e3d2e5/application.scssc
|
266
|
+
- test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
|
267
|
+
- test/dummy/tmp/cache/assets/development/sprockets/24585794383ac6ae2640d6c9e4affdbd
|
268
|
+
- test/dummy/tmp/cache/assets/development/sprockets/2edad7c2ee0e34d5988da78ef799ca6c
|
269
|
+
- test/dummy/tmp/cache/assets/development/sprockets/2ef811475ef30c8afbab72317974e714
|
270
|
+
- test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
271
|
+
- test/dummy/tmp/cache/assets/development/sprockets/33fea692ac14771a738e10ee5d76ae96
|
272
|
+
- test/dummy/tmp/cache/assets/development/sprockets/352bab412d75fa19d0a07504553b59df
|
273
|
+
- test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
|
274
|
+
- test/dummy/tmp/cache/assets/development/sprockets/5584751febc87e8b2ba4b7f38285eceb
|
275
|
+
- test/dummy/tmp/cache/assets/development/sprockets/69e627a9d109212088a08e7938543d9d
|
276
|
+
- test/dummy/tmp/cache/assets/development/sprockets/6e1bd95023705b5529e7ccc754a02867
|
277
|
+
- test/dummy/tmp/cache/assets/development/sprockets/836b5f0381caa8a96cebbee674df2708
|
278
|
+
- test/dummy/tmp/cache/assets/development/sprockets/85c3b8d54510866ae2cc33aedc247eb0
|
279
|
+
- test/dummy/tmp/cache/assets/development/sprockets/889b9afc807369ef171867cb782dd99c
|
280
|
+
- test/dummy/tmp/cache/assets/development/sprockets/92613a75279536c4bcf4f3ba6cfde494
|
281
|
+
- test/dummy/tmp/cache/assets/development/sprockets/c0f4ca569d58f951461e6ccadfdd2649
|
282
|
+
- test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
283
|
+
- test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
284
|
+
- test/dummy/tmp/cache/assets/development/sprockets/dcea77c9b7315ca8f48eb8357e38a219
|
285
|
+
- test/dummy/tmp/cache/assets/development/sprockets/e714eeaf481f5a44ddca306c4a9c7137
|
286
|
+
- test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
287
|
+
- test/dummy/tmp/cache/assets/test/sass/9178b5a65ff97d4c91c8e2380e5ac8d8eb939b91/flexirails.scssc
|
288
|
+
- test/dummy/tmp/cache/assets/test/sass/e91bee6f7bc4c18550721ba1f2d7361da7e3d2e5/application.scssc
|
289
|
+
- test/dummy/tmp/cache/assets/test/sprockets/2ef811475ef30c8afbab72317974e714
|
290
|
+
- test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
291
|
+
- test/dummy/tmp/cache/assets/test/sprockets/352bab412d75fa19d0a07504553b59df
|
292
|
+
- test/dummy/tmp/cache/assets/test/sprockets/5584751febc87e8b2ba4b7f38285eceb
|
293
|
+
- test/dummy/tmp/cache/assets/test/sprockets/6e1bd95023705b5529e7ccc754a02867
|
294
|
+
- test/dummy/tmp/cache/assets/test/sprockets/836b5f0381caa8a96cebbee674df2708
|
295
|
+
- test/dummy/tmp/cache/assets/test/sprockets/85c3b8d54510866ae2cc33aedc247eb0
|
296
|
+
- test/dummy/tmp/cache/assets/test/sprockets/889b9afc807369ef171867cb782dd99c
|
297
|
+
- test/dummy/tmp/cache/assets/test/sprockets/92613a75279536c4bcf4f3ba6cfde494
|
298
|
+
- test/dummy/tmp/cache/assets/test/sprockets/c0f4ca569d58f951461e6ccadfdd2649
|
299
|
+
- test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
300
|
+
- test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
301
|
+
- test/dummy/tmp/pids/server.pid
|
302
|
+
- test/models/flexirails/array_view_test.rb
|
303
|
+
- test/models/flexirails/view_test.rb
|
304
|
+
- test/rails-localization-engine_test.rb
|
305
|
+
- test/test_helper.rb
|
306
|
+
- test/views/flexirails/navigation_test.rb
|