greentable 0.0.9 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.coveralls.yml +1 -0
- data/.gitignore +13 -0
- data/.travis.yml +8 -0
- data/Gemfile +17 -0
- data/Gemfile.lock +135 -0
- data/Guardfile +8 -0
- data/README.md +77 -24
- data/Rakefile +38 -1
- data/greentable.gemspec +30 -15
- data/lib/greentable/export.rb +38 -28
- data/lib/greentable/greentable_table.rb +40 -11
- data/lib/greentable/railtie.rb +3 -3
- data/lib/greentable/version.rb +3 -0
- data/lib/greentable/view_helpers.rb +0 -1
- data/lib/greentable.rb +1 -1
- data/lib/tasks/greentable_tasks.rake +4 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +16 -0
- data/test/dummy/app/controllers/application_controller.rb +7 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/mailers/.gitkeep +0 -0
- data/test/dummy/app/models/.gitkeep +0 -0
- data/test/dummy/app/views/application/home.html.erb +16 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config/application.rb +59 -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 +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -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/en.yml +5 -0
- data/test/dummy/config/routes.rb +3 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/lib/assets/.gitkeep +0 -0
- data/test/dummy/log/.gitkeep +0 -0
- data/test/dummy/log/development.log +2533 -0
- data/test/dummy/log/test.log +1881 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/tmp/cache/assets/C4C/3E0/sprockets%2F316d5a21a3694448e136215cf552c829 +0 -0
- data/test/dummy/tmp/cache/assets/C81/FF0/sprockets%2F839f902c241150aec5ba59751228875d +0 -0
- data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/DAA/B50/sprockets%2F7e7e12081cd77f6e2a99a61ee35b8cce +0 -0
- data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/E21/3E0/sprockets%2Ff9530da0d9bbb15351aef3eb378bddbc +0 -0
- data/test/export_test.rb +46 -0
- data/test/greentable_test.rb +90 -0
- data/test/test.iml +27 -0
- data/test/test_helper.rb +28 -0
- metadata +195 -5
|
@@ -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,25 @@
|
|
|
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
|
+
</div>
|
|
24
|
+
</body>
|
|
25
|
+
</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
|
data/test/export_test.rb
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
require 'test_helper'
|
|
2
|
+
require "rack/test"
|
|
3
|
+
|
|
4
|
+
OUTER_APP = Rack::Builder.parse_file('test/dummy/config.ru').first
|
|
5
|
+
|
|
6
|
+
class ExportTest < ActionController::TestCase
|
|
7
|
+
tests ApplicationController
|
|
8
|
+
include Rack::Test::Methods
|
|
9
|
+
|
|
10
|
+
def app
|
|
11
|
+
OUTER_APP
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def body
|
|
15
|
+
last_response.body
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def content_type
|
|
19
|
+
last_response.content_type
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
test "[OK] GET home" do
|
|
23
|
+
get '/'
|
|
24
|
+
assert body =~ /hello world/, body
|
|
25
|
+
assert body =~ /table id=.+greentable_id.+/, body
|
|
26
|
+
assert body !~ /window.print/, body
|
|
27
|
+
assert content_type =~ /text\/html/
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
test "[OK] GET home - print" do
|
|
31
|
+
get '/', :greentable_id => 'greentable_id', :greentable_export => 'print'
|
|
32
|
+
assert body !~ /hello world/, body
|
|
33
|
+
assert body =~ /table id=.+greentable_id.+/, body
|
|
34
|
+
assert body =~ /window.print/, body
|
|
35
|
+
assert content_type =~ /text\/html/
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
test "[OK] GET home - csv" do
|
|
39
|
+
get '/', :greentable_id => 'greentable_id', :greentable_export => 'csv'
|
|
40
|
+
assert body !~ /hello world/, body
|
|
41
|
+
assert body !~ /table id=.+greentable_id.+/, body
|
|
42
|
+
assert body !~ /window.print/, body
|
|
43
|
+
assert content_type =~ /text\/csv/
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
end
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
require 'test_helper'
|
|
2
|
+
|
|
3
|
+
class GreentableTest < ActiveSupport::TestCase
|
|
4
|
+
|
|
5
|
+
class String
|
|
6
|
+
def html_safe
|
|
7
|
+
self
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
test "empty" do
|
|
12
|
+
gt = Greentable::Table.new(self,[], {})
|
|
13
|
+
gt.process do |gt, x|
|
|
14
|
+
gt.col('col0') do
|
|
15
|
+
x
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
assert_equal "", gt.to_s
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
test "simple_2cols" do
|
|
22
|
+
gt = Greentable::Table.new(self,[0, 1], {})
|
|
23
|
+
gt.process do |gt, x|
|
|
24
|
+
gt.col('col0') do
|
|
25
|
+
x
|
|
26
|
+
end
|
|
27
|
+
gt.col('col1') do
|
|
28
|
+
x
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
assert_equal "<table><thead><tr><th>col0</th><th>col1</th></tr></thead><tbody><tr><td>0</td><td>0</td></tr><tr><td>1</td><td>1</td></tr></tbody></table>", gt.to_s
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
test "table_opts" do
|
|
35
|
+
gt = Greentable::Table.new(self,[0], :class => 'table_class')
|
|
36
|
+
gt.process do |gt, x|
|
|
37
|
+
gt.col('col0', :th => {:class => 'th_class'}) do
|
|
38
|
+
x
|
|
39
|
+
end
|
|
40
|
+
gt.col('col1', :td => {:class => 'td_class'}) do
|
|
41
|
+
x
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
assert_equal '<table class="table_class"><thead><tr><th class="th_class">col0</th><th>col1</th></tr></thead><tbody><tr><td>0</td><td class="td_class">0</td></tr></tbody></table>', gt.to_s
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
test "td_opts" do
|
|
49
|
+
gt = Greentable::Table.new(self,[0], {})
|
|
50
|
+
gt.process do |gt, x|
|
|
51
|
+
gt.col('col0', :class => 'a', :td => {:class => 'aa'}) do
|
|
52
|
+
x
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
assert_equal '<table><thead><tr><th class="a">col0</th></tr></thead><tbody><tr><td class="a aa">0</td></tr></tbody></table>', gt.to_s
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
test "th_opts" do
|
|
59
|
+
gt = Greentable::Table.new(self,[0], {})
|
|
60
|
+
gt.process do |gt, x|
|
|
61
|
+
gt.col('col0', :class => 'a', :th => {:class => 'aa'}) do
|
|
62
|
+
x
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
assert_equal '<table><thead><tr><th class="a aa">col0</th></tr></thead><tbody><tr><td class="a">0</td></tr></tbody></table>', gt.to_s
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
test "proc" do
|
|
69
|
+
gt = Greentable::Table.new(self,[0], {})
|
|
70
|
+
gt.process do |gt, x|
|
|
71
|
+
gt.col(Proc.new{'proc0'}, :class => Proc.new{'proc1'}, :td => {:style => Proc.new{'proc2'}}) do
|
|
72
|
+
x
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
assert_equal '<table><thead><tr><th class="proc1">proc0</th></tr></thead><tbody><tr><td style="proc2" class="proc1">0</td></tr></tbody></table>', gt.to_s
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
test "table_opts_comprehensive" do
|
|
79
|
+
gt = Greentable::Table.new(self,[0], :class => 'a aa', :style => 'b:c', :tr => {:class => 'd'}, :th => {:onclick => 'e();', :class => 'ee'}, :td => {'data-target' => 'f', :class => 'ff'})
|
|
80
|
+
gt.process do |gt, x|
|
|
81
|
+
gt.col('col0', :class => 'h', :th => {:class => 'i'}) do
|
|
82
|
+
x
|
|
83
|
+
end
|
|
84
|
+
gt.col('col1', :td => {:class => 'j'}) do
|
|
85
|
+
x
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
assert_equal '<table class="a aa" style="b:c"><thead><tr class="d"><th onclick="e();" class="h i ee">col0</th><th onclick="e();" class="ee">col1</th></tr></thead><tbody><tr class="d"><td data-target="f" class="h ff">0</td><td data-target="f" class="j ff">0</td></tr></tbody></table>', gt.to_s
|
|
89
|
+
end
|
|
90
|
+
end
|
data/test/test.iml
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
|
3
|
+
<component name="FacetManager">
|
|
4
|
+
<facet type="RailsFacetType" name="Ruby on Rails">
|
|
5
|
+
<configuration>
|
|
6
|
+
<RAILS_FACET_CONFIG_ID NAME="RAILS_FACET_SUPPORT_REMOVED" VALUE="false" />
|
|
7
|
+
<RAILS_FACET_CONFIG_ID NAME="RAILS_TESTS_SOURCES_PATCHED" VALUE="true" />
|
|
8
|
+
<RAILS_FACET_CONFIG_ID NAME="RAILS_FACET_APPLICATION_ROOT" VALUE="$MODULE_DIR$/dummy" />
|
|
9
|
+
</configuration>
|
|
10
|
+
</facet>
|
|
11
|
+
</component>
|
|
12
|
+
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
13
|
+
<exclude-output />
|
|
14
|
+
<content url="file://$MODULE_DIR$">
|
|
15
|
+
<sourceFolder url="file://$MODULE_DIR$" isTestSource="true" />
|
|
16
|
+
<excludeFolder url="file://$MODULE_DIR$/dummy/tmp" />
|
|
17
|
+
</content>
|
|
18
|
+
<orderEntry type="inheritedJdk" />
|
|
19
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
20
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.3.5, RVM: ruby-1.9.3-p125 [global]) [gem]" level="application" />
|
|
21
|
+
</component>
|
|
22
|
+
<component name="RModuleSettingsStorage">
|
|
23
|
+
<LOAD_PATH number="0" />
|
|
24
|
+
<I18N_FOLDERS number="1" string0="$MODULE_DIR$/dummy/config/locales" />
|
|
25
|
+
</component>
|
|
26
|
+
</module>
|
|
27
|
+
|
data/test/test_helper.rb
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
|
|
7
|
+
Rails.backtrace_cleaner.remove_silencers!
|
|
8
|
+
|
|
9
|
+
# Load support files
|
|
10
|
+
#Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
|
11
|
+
|
|
12
|
+
# Load fixtures from the engine
|
|
13
|
+
#if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
|
14
|
+
# ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
|
15
|
+
#end
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
require 'greentable'
|
|
19
|
+
#require 'simplecov'
|
|
20
|
+
#require 'coveralls'
|
|
21
|
+
#SimpleCov.start('rails')
|
|
22
|
+
#Coveralls.wear!
|
|
23
|
+
|
|
24
|
+
public
|
|
25
|
+
|
|
26
|
+
def capture(&block)
|
|
27
|
+
yield
|
|
28
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: greentable
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 0.9.0
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,10 +9,90 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2014-03-29 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
|
-
name:
|
|
15
|
+
name: rails
|
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
|
17
|
+
none: false
|
|
18
|
+
requirements:
|
|
19
|
+
- - ~>
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: 3.2.17
|
|
22
|
+
type: :development
|
|
23
|
+
prerelease: false
|
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
+
none: false
|
|
26
|
+
requirements:
|
|
27
|
+
- - ~>
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
version: 3.2.17
|
|
30
|
+
- !ruby/object:Gem::Dependency
|
|
31
|
+
name: sqlite3
|
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
|
33
|
+
none: false
|
|
34
|
+
requirements:
|
|
35
|
+
- - ! '>='
|
|
36
|
+
- !ruby/object:Gem::Version
|
|
37
|
+
version: '0'
|
|
38
|
+
type: :development
|
|
39
|
+
prerelease: false
|
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
41
|
+
none: false
|
|
42
|
+
requirements:
|
|
43
|
+
- - ! '>='
|
|
44
|
+
- !ruby/object:Gem::Version
|
|
45
|
+
version: '0'
|
|
46
|
+
- !ruby/object:Gem::Dependency
|
|
47
|
+
name: test-unit
|
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
|
49
|
+
none: false
|
|
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
|
+
none: false
|
|
58
|
+
requirements:
|
|
59
|
+
- - ! '>='
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '0'
|
|
62
|
+
- !ruby/object:Gem::Dependency
|
|
63
|
+
name: nokogiri
|
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
|
65
|
+
none: false
|
|
66
|
+
requirements:
|
|
67
|
+
- - ! '>='
|
|
68
|
+
- !ruby/object:Gem::Version
|
|
69
|
+
version: '0'
|
|
70
|
+
type: :development
|
|
71
|
+
prerelease: false
|
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
73
|
+
none: false
|
|
74
|
+
requirements:
|
|
75
|
+
- - ! '>='
|
|
76
|
+
- !ruby/object:Gem::Version
|
|
77
|
+
version: '0'
|
|
78
|
+
- !ruby/object:Gem::Dependency
|
|
79
|
+
name: fastercsv
|
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
|
81
|
+
none: false
|
|
82
|
+
requirements:
|
|
83
|
+
- - ! '>='
|
|
84
|
+
- !ruby/object:Gem::Version
|
|
85
|
+
version: '0'
|
|
86
|
+
type: :development
|
|
87
|
+
prerelease: false
|
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
89
|
+
none: false
|
|
90
|
+
requirements:
|
|
91
|
+
- - ! '>='
|
|
92
|
+
- !ruby/object:Gem::Version
|
|
93
|
+
version: '0'
|
|
94
|
+
- !ruby/object:Gem::Dependency
|
|
95
|
+
name: guard-test
|
|
16
96
|
requirement: !ruby/object:Gem::Requirement
|
|
17
97
|
none: false
|
|
18
98
|
requirements:
|
|
@@ -28,7 +108,7 @@ dependencies:
|
|
|
28
108
|
- !ruby/object:Gem::Version
|
|
29
109
|
version: '0'
|
|
30
110
|
- !ruby/object:Gem::Dependency
|
|
31
|
-
name:
|
|
111
|
+
name: rack-test
|
|
32
112
|
requirement: !ruby/object:Gem::Requirement
|
|
33
113
|
none: false
|
|
34
114
|
requirements:
|
|
@@ -50,6 +130,12 @@ executables: []
|
|
|
50
130
|
extensions: []
|
|
51
131
|
extra_rdoc_files: []
|
|
52
132
|
files:
|
|
133
|
+
- .coveralls.yml
|
|
134
|
+
- .gitignore
|
|
135
|
+
- .travis.yml
|
|
136
|
+
- Gemfile
|
|
137
|
+
- Gemfile.lock
|
|
138
|
+
- Guardfile
|
|
53
139
|
- LICENSE
|
|
54
140
|
- README.md
|
|
55
141
|
- Rakefile
|
|
@@ -60,8 +146,60 @@ files:
|
|
|
60
146
|
- lib/greentable/greentable_counter.rb
|
|
61
147
|
- lib/greentable/greentable_table.rb
|
|
62
148
|
- lib/greentable/railtie.rb
|
|
149
|
+
- lib/greentable/version.rb
|
|
63
150
|
- lib/greentable/view_helpers.rb
|
|
151
|
+
- lib/tasks/greentable_tasks.rake
|
|
152
|
+
- test/dummy/Rakefile
|
|
153
|
+
- test/dummy/app/assets/javascripts/application.js
|
|
154
|
+
- test/dummy/app/assets/stylesheets/application.css
|
|
155
|
+
- test/dummy/app/controllers/application_controller.rb
|
|
156
|
+
- test/dummy/app/helpers/application_helper.rb
|
|
157
|
+
- test/dummy/app/mailers/.gitkeep
|
|
158
|
+
- test/dummy/app/models/.gitkeep
|
|
159
|
+
- test/dummy/app/views/application/home.html.erb
|
|
160
|
+
- test/dummy/app/views/layouts/application.html.erb
|
|
161
|
+
- test/dummy/config.ru
|
|
162
|
+
- test/dummy/config/application.rb
|
|
163
|
+
- test/dummy/config/boot.rb
|
|
164
|
+
- test/dummy/config/database.yml
|
|
165
|
+
- test/dummy/config/environment.rb
|
|
166
|
+
- test/dummy/config/environments/development.rb
|
|
167
|
+
- test/dummy/config/environments/production.rb
|
|
168
|
+
- test/dummy/config/environments/test.rb
|
|
169
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
|
170
|
+
- test/dummy/config/initializers/inflections.rb
|
|
171
|
+
- test/dummy/config/initializers/mime_types.rb
|
|
172
|
+
- test/dummy/config/initializers/secret_token.rb
|
|
173
|
+
- test/dummy/config/initializers/session_store.rb
|
|
174
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
|
175
|
+
- test/dummy/config/locales/en.yml
|
|
176
|
+
- test/dummy/config/routes.rb
|
|
177
|
+
- test/dummy/db/development.sqlite3
|
|
178
|
+
- test/dummy/db/test.sqlite3
|
|
179
|
+
- test/dummy/lib/assets/.gitkeep
|
|
180
|
+
- test/dummy/log/.gitkeep
|
|
181
|
+
- test/dummy/public/404.html
|
|
182
|
+
- test/dummy/public/422.html
|
|
183
|
+
- test/dummy/public/500.html
|
|
184
|
+
- test/dummy/public/favicon.ico
|
|
185
|
+
- test/dummy/script/rails
|
|
186
|
+
- test/export_test.rb
|
|
187
|
+
- test/greentable_test.rb
|
|
188
|
+
- test/test_helper.rb
|
|
64
189
|
- todo.txt
|
|
190
|
+
- test/dummy/log/development.log
|
|
191
|
+
- test/dummy/log/test.log
|
|
192
|
+
- test/dummy/tmp/cache/assets/C4C/3E0/sprockets%2F316d5a21a3694448e136215cf552c829
|
|
193
|
+
- test/dummy/tmp/cache/assets/C81/FF0/sprockets%2F839f902c241150aec5ba59751228875d
|
|
194
|
+
- test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
|
|
195
|
+
- test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
|
|
196
|
+
- test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
|
|
197
|
+
- test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
|
|
198
|
+
- test/dummy/tmp/cache/assets/DAA/B50/sprockets%2F7e7e12081cd77f6e2a99a61ee35b8cce
|
|
199
|
+
- test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
|
|
200
|
+
- test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
|
|
201
|
+
- test/dummy/tmp/cache/assets/E21/3E0/sprockets%2Ff9530da0d9bbb15351aef3eb378bddbc
|
|
202
|
+
- test/test.iml
|
|
65
203
|
homepage: https://github.com/waelchatila/greentable
|
|
66
204
|
licenses:
|
|
67
205
|
- LGPLv3+
|
|
@@ -75,16 +213,68 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
75
213
|
- - ! '>='
|
|
76
214
|
- !ruby/object:Gem::Version
|
|
77
215
|
version: '0'
|
|
216
|
+
segments:
|
|
217
|
+
- 0
|
|
218
|
+
hash: 827704004142044330
|
|
78
219
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
220
|
none: false
|
|
80
221
|
requirements:
|
|
81
222
|
- - ! '>='
|
|
82
223
|
- !ruby/object:Gem::Version
|
|
83
224
|
version: '0'
|
|
225
|
+
segments:
|
|
226
|
+
- 0
|
|
227
|
+
hash: 827704004142044330
|
|
84
228
|
requirements: []
|
|
85
229
|
rubyforge_project:
|
|
86
230
|
rubygems_version: 1.8.25
|
|
87
231
|
signing_key:
|
|
88
232
|
specification_version: 3
|
|
89
233
|
summary: Rails declarative html tables with export features
|
|
90
|
-
test_files:
|
|
234
|
+
test_files:
|
|
235
|
+
- test/dummy/app/assets/javascripts/application.js
|
|
236
|
+
- test/dummy/app/assets/stylesheets/application.css
|
|
237
|
+
- test/dummy/app/controllers/application_controller.rb
|
|
238
|
+
- test/dummy/app/helpers/application_helper.rb
|
|
239
|
+
- test/dummy/app/views/application/home.html.erb
|
|
240
|
+
- test/dummy/app/views/layouts/application.html.erb
|
|
241
|
+
- test/dummy/config/application.rb
|
|
242
|
+
- test/dummy/config/boot.rb
|
|
243
|
+
- test/dummy/config/database.yml
|
|
244
|
+
- test/dummy/config/environment.rb
|
|
245
|
+
- test/dummy/config/environments/development.rb
|
|
246
|
+
- test/dummy/config/environments/production.rb
|
|
247
|
+
- test/dummy/config/environments/test.rb
|
|
248
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
|
249
|
+
- test/dummy/config/initializers/inflections.rb
|
|
250
|
+
- test/dummy/config/initializers/mime_types.rb
|
|
251
|
+
- test/dummy/config/initializers/secret_token.rb
|
|
252
|
+
- test/dummy/config/initializers/session_store.rb
|
|
253
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
|
254
|
+
- test/dummy/config/locales/en.yml
|
|
255
|
+
- test/dummy/config/routes.rb
|
|
256
|
+
- test/dummy/config.ru
|
|
257
|
+
- test/dummy/db/development.sqlite3
|
|
258
|
+
- test/dummy/db/test.sqlite3
|
|
259
|
+
- test/dummy/log/development.log
|
|
260
|
+
- test/dummy/log/test.log
|
|
261
|
+
- test/dummy/public/404.html
|
|
262
|
+
- test/dummy/public/422.html
|
|
263
|
+
- test/dummy/public/500.html
|
|
264
|
+
- test/dummy/public/favicon.ico
|
|
265
|
+
- test/dummy/Rakefile
|
|
266
|
+
- test/dummy/script/rails
|
|
267
|
+
- test/dummy/tmp/cache/assets/C4C/3E0/sprockets%2F316d5a21a3694448e136215cf552c829
|
|
268
|
+
- test/dummy/tmp/cache/assets/C81/FF0/sprockets%2F839f902c241150aec5ba59751228875d
|
|
269
|
+
- test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
|
|
270
|
+
- test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
|
|
271
|
+
- test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
|
|
272
|
+
- test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
|
|
273
|
+
- test/dummy/tmp/cache/assets/DAA/B50/sprockets%2F7e7e12081cd77f6e2a99a61ee35b8cce
|
|
274
|
+
- test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
|
|
275
|
+
- test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
|
|
276
|
+
- test/dummy/tmp/cache/assets/E21/3E0/sprockets%2Ff9530da0d9bbb15351aef3eb378bddbc
|
|
277
|
+
- test/export_test.rb
|
|
278
|
+
- test/greentable_test.rb
|
|
279
|
+
- test/test.iml
|
|
280
|
+
- test/test_helper.rb
|