dataclips 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/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +34 -0
- data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.svg +288 -0
- data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.woff2 +0 -0
- data/app/assets/images/dataclips/slickgrid/sort-asc.png +0 -0
- data/app/assets/images/dataclips/slickgrid/sort-desc.png +0 -0
- data/app/assets/javascripts/dataclips/application.js +26 -0
- data/app/assets/javascripts/dataclips/backbone.js +1608 -0
- data/app/assets/javascripts/dataclips/dataclips.js.coffee +168 -0
- data/app/assets/javascripts/dataclips/formatters.js.coffee +14 -0
- data/app/assets/javascripts/dataclips/namespace.js.coffee +1 -0
- data/app/assets/javascripts/dataclips/record.js.coffee +39 -0
- data/app/assets/javascripts/dataclips/slickgrid.js +5 -0
- data/app/assets/javascripts/dataclips/slickgrid/jquery.event.drag-2.2.js +402 -0
- data/app/assets/javascripts/dataclips/slickgrid/plugins/slick.rowselectionmodel.js +187 -0
- data/app/assets/javascripts/dataclips/slickgrid/slick.core.js +458 -0
- data/app/assets/javascripts/dataclips/slickgrid/slick.dataview.js +1063 -0
- data/app/assets/javascripts/dataclips/slickgrid/slick.grid.js +3309 -0
- data/app/assets/javascripts/dataclips/underscore.js +1416 -0
- data/app/assets/stylesheets/bootstrap/_alerts.scss +68 -0
- data/app/assets/stylesheets/bootstrap/_badges.scss +63 -0
- data/app/assets/stylesheets/bootstrap/_breadcrumbs.scss +26 -0
- data/app/assets/stylesheets/bootstrap/_button-groups.scss +243 -0
- data/app/assets/stylesheets/bootstrap/_buttons.scss +160 -0
- data/app/assets/stylesheets/bootstrap/_carousel.scss +267 -0
- data/app/assets/stylesheets/bootstrap/_close.scss +35 -0
- data/app/assets/stylesheets/bootstrap/_code.scss +69 -0
- data/app/assets/stylesheets/bootstrap/_component-animations.scss +38 -0
- data/app/assets/stylesheets/bootstrap/_dropdowns.scss +213 -0
- data/app/assets/stylesheets/bootstrap/_forms.scss +548 -0
- data/app/assets/stylesheets/bootstrap/_glyphicons.scss +234 -0
- data/app/assets/stylesheets/bootstrap/_grid.scss +84 -0
- data/app/assets/stylesheets/bootstrap/_input-groups.scss +166 -0
- data/app/assets/stylesheets/bootstrap/_jumbotron.scss +49 -0
- data/app/assets/stylesheets/bootstrap/_labels.scss +66 -0
- data/app/assets/stylesheets/bootstrap/_list-group.scss +124 -0
- data/app/assets/stylesheets/bootstrap/_media.scss +47 -0
- data/app/assets/stylesheets/bootstrap/_mixins.scss +39 -0
- data/app/assets/stylesheets/bootstrap/_modals.scss +148 -0
- data/app/assets/stylesheets/bootstrap/_navbar.scss +662 -0
- data/app/assets/stylesheets/bootstrap/_navs.scss +244 -0
- data/app/assets/stylesheets/bootstrap/_normalize.scss +427 -0
- data/app/assets/stylesheets/bootstrap/_pager.scss +54 -0
- data/app/assets/stylesheets/bootstrap/_pagination.scss +88 -0
- data/app/assets/stylesheets/bootstrap/_panels.scss +261 -0
- data/app/assets/stylesheets/bootstrap/_popovers.scss +135 -0
- data/app/assets/stylesheets/bootstrap/_print.scss +107 -0
- data/app/assets/stylesheets/bootstrap/_progress-bars.scss +87 -0
- data/app/assets/stylesheets/bootstrap/_responsive-embed.scss +35 -0
- data/app/assets/stylesheets/bootstrap/_responsive-utilities.scss +174 -0
- data/app/assets/stylesheets/bootstrap/_scaffolding.scss +150 -0
- data/app/assets/stylesheets/bootstrap/_tables.scss +234 -0
- data/app/assets/stylesheets/bootstrap/_theme.scss +272 -0
- data/app/assets/stylesheets/bootstrap/_thumbnails.scss +38 -0
- data/app/assets/stylesheets/bootstrap/_tooltip.scss +103 -0
- data/app/assets/stylesheets/bootstrap/_type.scss +298 -0
- data/app/assets/stylesheets/bootstrap/_utilities.scss +56 -0
- data/app/assets/stylesheets/bootstrap/_variables.scss +864 -0
- data/app/assets/stylesheets/bootstrap/_wells.scss +29 -0
- data/app/assets/stylesheets/bootstrap/mixins/_alerts.scss +14 -0
- data/app/assets/stylesheets/bootstrap/mixins/_background-variant.scss +11 -0
- data/app/assets/stylesheets/bootstrap/mixins/_border-radius.scss +18 -0
- data/app/assets/stylesheets/bootstrap/mixins/_buttons.scss +52 -0
- data/app/assets/stylesheets/bootstrap/mixins/_center-block.scss +7 -0
- data/app/assets/stylesheets/bootstrap/mixins/_clearfix.scss +22 -0
- data/app/assets/stylesheets/bootstrap/mixins/_forms.scss +88 -0
- data/app/assets/stylesheets/bootstrap/mixins/_gradients.scss +58 -0
- data/app/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +81 -0
- data/app/assets/stylesheets/bootstrap/mixins/_grid.scss +122 -0
- data/app/assets/stylesheets/bootstrap/mixins/_hide-text.scss +21 -0
- data/app/assets/stylesheets/bootstrap/mixins/_image.scss +33 -0
- data/app/assets/stylesheets/bootstrap/mixins/_labels.scss +12 -0
- data/app/assets/stylesheets/bootstrap/mixins/_list-group.scss +31 -0
- data/app/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +10 -0
- data/app/assets/stylesheets/bootstrap/mixins/_nav-vertical-align.scss +9 -0
- data/app/assets/stylesheets/bootstrap/mixins/_opacity.scss +8 -0
- data/app/assets/stylesheets/bootstrap/mixins/_pagination.scss +23 -0
- data/app/assets/stylesheets/bootstrap/mixins/_panels.scss +24 -0
- data/app/assets/stylesheets/bootstrap/mixins/_progress-bar.scss +10 -0
- data/app/assets/stylesheets/bootstrap/mixins/_reset-filter.scss +8 -0
- data/app/assets/stylesheets/bootstrap/mixins/_resize.scss +6 -0
- data/app/assets/stylesheets/bootstrap/mixins/_responsive-visibility.scss +21 -0
- data/app/assets/stylesheets/bootstrap/mixins/_size.scss +10 -0
- data/app/assets/stylesheets/bootstrap/mixins/_tab-focus.scss +9 -0
- data/app/assets/stylesheets/bootstrap/mixins/_table-row.scss +28 -0
- data/app/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +11 -0
- data/app/assets/stylesheets/bootstrap/mixins/_text-overflow.scss +8 -0
- data/app/assets/stylesheets/bootstrap/mixins/_vendor-prefixes.scss +222 -0
- data/app/assets/stylesheets/dataclips/_bootstrap.scss +53 -0
- data/app/assets/stylesheets/dataclips/application.css +18 -0
- data/app/assets/stylesheets/dataclips/slickgrid/slickgrid.sass +341 -0
- data/app/controllers/dataclips/application_controller.rb +31 -0
- data/app/controllers/dataclips/clips_controller.rb +46 -0
- data/app/controllers/dataclips/insights_controller.rb +45 -0
- data/app/helpers/dataclips/application_helper.rb +4 -0
- data/app/models/dataclips/clip.rb +79 -0
- data/app/models/dataclips/insight.rb +18 -0
- data/app/models/dataclips/sql_query.rb +36 -0
- data/app/views/dataclips/application/_boolean.html.erb +1 -0
- data/app/views/dataclips/application/_date.html.erb +22 -0
- data/app/views/dataclips/application/_datetime.html.erb +25 -0
- data/app/views/dataclips/application/_float.html.erb +7 -0
- data/app/views/dataclips/application/_integer.html.erb +7 -0
- data/app/views/dataclips/application/_text.html.erb +10 -0
- data/app/views/dataclips/application/_time.html.erb +23 -0
- data/app/views/dataclips/clips/edit.html.erb +14 -0
- data/app/views/dataclips/clips/show.html.erb +109 -0
- data/app/views/dataclips/insights/show.html.erb +99 -0
- data/app/views/layouts/dataclips/application.html.erb +14 -0
- data/config/initializers/assets.rb +1 -0
- data/config/routes.rb +9 -0
- data/db/migrate/20150101143530_create_dataclips_insights.rb +12 -0
- data/lib/dataclips.rb +47 -0
- data/lib/dataclips/engine.rb +29 -0
- data/lib/dataclips/version.rb +3 -0
- data/lib/tasks/dataclips_tasks.rake +4 -0
- data/test/dataclips_test.rb +7 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +23 -0
- data/test/dummy/config/boot.rb +5 -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 +78 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config/initializers/assets.rb +8 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/test_helper.rb +17 -0
- metadata +348 -0
@@ -0,0 +1,8 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Version of your assets, change this if you want to expire all your assets.
|
4
|
+
Rails.application.config.assets.version = '1.0'
|
5
|
+
|
6
|
+
# Precompile additional assets.
|
7
|
+
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
8
|
+
# Rails.application.config.assets.precompile += %w( search.js )
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format. Inflections
|
4
|
+
# are locale specific, and you may define rules for as many different
|
5
|
+
# locales as you wish. All of these examples are active by default:
|
6
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
7
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
8
|
+
# inflect.singular /^(ox)en/i, '\1'
|
9
|
+
# inflect.irregular 'person', 'people'
|
10
|
+
# inflect.uncountable %w( fish sheep )
|
11
|
+
# end
|
12
|
+
|
13
|
+
# These inflection rules are supported but not enabled by default:
|
14
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
15
|
+
# inflect.acronym 'RESTful'
|
16
|
+
# end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
9
|
+
end
|
10
|
+
|
11
|
+
# To enable root element in JSON for ActiveRecord objects.
|
12
|
+
# ActiveSupport.on_load(:active_record) do
|
13
|
+
# self.include_root_in_json = true
|
14
|
+
# end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
+
# than English, add the necessary files in this directory.
|
4
|
+
#
|
5
|
+
# To use the locales, use `I18n.t`:
|
6
|
+
#
|
7
|
+
# I18n.t 'hello'
|
8
|
+
#
|
9
|
+
# In views, this is aliased to just `t`:
|
10
|
+
#
|
11
|
+
# <%= t('hello') %>
|
12
|
+
#
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
14
|
+
#
|
15
|
+
# I18n.locale = :es
|
16
|
+
#
|
17
|
+
# This would use the information in config/locales/es.yml.
|
18
|
+
#
|
19
|
+
# To learn more, please read the Rails Internationalization guide
|
20
|
+
# available at http://guides.rubyonrails.org/i18n.html.
|
21
|
+
|
22
|
+
en:
|
23
|
+
hello: "Hello world"
|
@@ -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: 979c330e161c6d585c49e3ea99961df0b7fb632ea87d7583dc73dbd14dbdcc970800bb207cb64638aded4fef3c84096bdcc465394306a61d5940b50b3be37eff
|
15
|
+
|
16
|
+
test:
|
17
|
+
secret_key_base: 125e4097c86ecace1b693fd32394930ac0a03e8658aa8a1c15509547e0e3802bada44dcaa6fb7e7aa419d2487fc50c83363f5d06219474cb526beecb6d045ef9
|
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"] %>
|
@@ -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
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
|
5
|
+
ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
|
6
|
+
ActiveRecord::Migrator.migrations_paths << File.expand_path('../../db/migrate', __FILE__)
|
7
|
+
require "rails/test_help"
|
8
|
+
|
9
|
+
Rails.backtrace_cleaner.remove_silencers!
|
10
|
+
|
11
|
+
# Load support files
|
12
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
13
|
+
|
14
|
+
# Load fixtures from the engine
|
15
|
+
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
16
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
17
|
+
end
|
metadata
ADDED
@@ -0,0 +1,348 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: dataclips
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tomasz Mazur
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-03-18 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4.2'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '4.2'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: pg
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
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: jquery-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
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: will_paginate
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
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: hashids
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
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: twitter-bootstrap-rails
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
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: momentjs-rails
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '2.9'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '2.9'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: bootstrap3-datetimepicker-rails
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 4.7.14
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 4.7.14
|
125
|
+
description: Heroku inspired dataclips for your application.
|
126
|
+
email:
|
127
|
+
- defkode@gmail.com
|
128
|
+
executables: []
|
129
|
+
extensions: []
|
130
|
+
extra_rdoc_files: []
|
131
|
+
files:
|
132
|
+
- MIT-LICENSE
|
133
|
+
- README.rdoc
|
134
|
+
- Rakefile
|
135
|
+
- app/assets/fonts/bootstrap/glyphicons-halflings-regular.eot
|
136
|
+
- app/assets/fonts/bootstrap/glyphicons-halflings-regular.svg
|
137
|
+
- app/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf
|
138
|
+
- app/assets/fonts/bootstrap/glyphicons-halflings-regular.woff
|
139
|
+
- app/assets/fonts/bootstrap/glyphicons-halflings-regular.woff2
|
140
|
+
- app/assets/images/dataclips/slickgrid/sort-asc.png
|
141
|
+
- app/assets/images/dataclips/slickgrid/sort-desc.png
|
142
|
+
- app/assets/javascripts/dataclips/application.js
|
143
|
+
- app/assets/javascripts/dataclips/backbone.js
|
144
|
+
- app/assets/javascripts/dataclips/dataclips.js.coffee
|
145
|
+
- app/assets/javascripts/dataclips/formatters.js.coffee
|
146
|
+
- app/assets/javascripts/dataclips/namespace.js.coffee
|
147
|
+
- app/assets/javascripts/dataclips/record.js.coffee
|
148
|
+
- app/assets/javascripts/dataclips/slickgrid.js
|
149
|
+
- app/assets/javascripts/dataclips/slickgrid/jquery.event.drag-2.2.js
|
150
|
+
- app/assets/javascripts/dataclips/slickgrid/plugins/slick.rowselectionmodel.js
|
151
|
+
- app/assets/javascripts/dataclips/slickgrid/slick.core.js
|
152
|
+
- app/assets/javascripts/dataclips/slickgrid/slick.dataview.js
|
153
|
+
- app/assets/javascripts/dataclips/slickgrid/slick.grid.js
|
154
|
+
- app/assets/javascripts/dataclips/underscore.js
|
155
|
+
- app/assets/stylesheets/bootstrap/_alerts.scss
|
156
|
+
- app/assets/stylesheets/bootstrap/_badges.scss
|
157
|
+
- app/assets/stylesheets/bootstrap/_breadcrumbs.scss
|
158
|
+
- app/assets/stylesheets/bootstrap/_button-groups.scss
|
159
|
+
- app/assets/stylesheets/bootstrap/_buttons.scss
|
160
|
+
- app/assets/stylesheets/bootstrap/_carousel.scss
|
161
|
+
- app/assets/stylesheets/bootstrap/_close.scss
|
162
|
+
- app/assets/stylesheets/bootstrap/_code.scss
|
163
|
+
- app/assets/stylesheets/bootstrap/_component-animations.scss
|
164
|
+
- app/assets/stylesheets/bootstrap/_dropdowns.scss
|
165
|
+
- app/assets/stylesheets/bootstrap/_forms.scss
|
166
|
+
- app/assets/stylesheets/bootstrap/_glyphicons.scss
|
167
|
+
- app/assets/stylesheets/bootstrap/_grid.scss
|
168
|
+
- app/assets/stylesheets/bootstrap/_input-groups.scss
|
169
|
+
- app/assets/stylesheets/bootstrap/_jumbotron.scss
|
170
|
+
- app/assets/stylesheets/bootstrap/_labels.scss
|
171
|
+
- app/assets/stylesheets/bootstrap/_list-group.scss
|
172
|
+
- app/assets/stylesheets/bootstrap/_media.scss
|
173
|
+
- app/assets/stylesheets/bootstrap/_mixins.scss
|
174
|
+
- app/assets/stylesheets/bootstrap/_modals.scss
|
175
|
+
- app/assets/stylesheets/bootstrap/_navbar.scss
|
176
|
+
- app/assets/stylesheets/bootstrap/_navs.scss
|
177
|
+
- app/assets/stylesheets/bootstrap/_normalize.scss
|
178
|
+
- app/assets/stylesheets/bootstrap/_pager.scss
|
179
|
+
- app/assets/stylesheets/bootstrap/_pagination.scss
|
180
|
+
- app/assets/stylesheets/bootstrap/_panels.scss
|
181
|
+
- app/assets/stylesheets/bootstrap/_popovers.scss
|
182
|
+
- app/assets/stylesheets/bootstrap/_print.scss
|
183
|
+
- app/assets/stylesheets/bootstrap/_progress-bars.scss
|
184
|
+
- app/assets/stylesheets/bootstrap/_responsive-embed.scss
|
185
|
+
- app/assets/stylesheets/bootstrap/_responsive-utilities.scss
|
186
|
+
- app/assets/stylesheets/bootstrap/_scaffolding.scss
|
187
|
+
- app/assets/stylesheets/bootstrap/_tables.scss
|
188
|
+
- app/assets/stylesheets/bootstrap/_theme.scss
|
189
|
+
- app/assets/stylesheets/bootstrap/_thumbnails.scss
|
190
|
+
- app/assets/stylesheets/bootstrap/_tooltip.scss
|
191
|
+
- app/assets/stylesheets/bootstrap/_type.scss
|
192
|
+
- app/assets/stylesheets/bootstrap/_utilities.scss
|
193
|
+
- app/assets/stylesheets/bootstrap/_variables.scss
|
194
|
+
- app/assets/stylesheets/bootstrap/_wells.scss
|
195
|
+
- app/assets/stylesheets/bootstrap/mixins/_alerts.scss
|
196
|
+
- app/assets/stylesheets/bootstrap/mixins/_background-variant.scss
|
197
|
+
- app/assets/stylesheets/bootstrap/mixins/_border-radius.scss
|
198
|
+
- app/assets/stylesheets/bootstrap/mixins/_buttons.scss
|
199
|
+
- app/assets/stylesheets/bootstrap/mixins/_center-block.scss
|
200
|
+
- app/assets/stylesheets/bootstrap/mixins/_clearfix.scss
|
201
|
+
- app/assets/stylesheets/bootstrap/mixins/_forms.scss
|
202
|
+
- app/assets/stylesheets/bootstrap/mixins/_gradients.scss
|
203
|
+
- app/assets/stylesheets/bootstrap/mixins/_grid-framework.scss
|
204
|
+
- app/assets/stylesheets/bootstrap/mixins/_grid.scss
|
205
|
+
- app/assets/stylesheets/bootstrap/mixins/_hide-text.scss
|
206
|
+
- app/assets/stylesheets/bootstrap/mixins/_image.scss
|
207
|
+
- app/assets/stylesheets/bootstrap/mixins/_labels.scss
|
208
|
+
- app/assets/stylesheets/bootstrap/mixins/_list-group.scss
|
209
|
+
- app/assets/stylesheets/bootstrap/mixins/_nav-divider.scss
|
210
|
+
- app/assets/stylesheets/bootstrap/mixins/_nav-vertical-align.scss
|
211
|
+
- app/assets/stylesheets/bootstrap/mixins/_opacity.scss
|
212
|
+
- app/assets/stylesheets/bootstrap/mixins/_pagination.scss
|
213
|
+
- app/assets/stylesheets/bootstrap/mixins/_panels.scss
|
214
|
+
- app/assets/stylesheets/bootstrap/mixins/_progress-bar.scss
|
215
|
+
- app/assets/stylesheets/bootstrap/mixins/_reset-filter.scss
|
216
|
+
- app/assets/stylesheets/bootstrap/mixins/_resize.scss
|
217
|
+
- app/assets/stylesheets/bootstrap/mixins/_responsive-visibility.scss
|
218
|
+
- app/assets/stylesheets/bootstrap/mixins/_size.scss
|
219
|
+
- app/assets/stylesheets/bootstrap/mixins/_tab-focus.scss
|
220
|
+
- app/assets/stylesheets/bootstrap/mixins/_table-row.scss
|
221
|
+
- app/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss
|
222
|
+
- app/assets/stylesheets/bootstrap/mixins/_text-overflow.scss
|
223
|
+
- app/assets/stylesheets/bootstrap/mixins/_vendor-prefixes.scss
|
224
|
+
- app/assets/stylesheets/dataclips/_bootstrap.scss
|
225
|
+
- app/assets/stylesheets/dataclips/application.css
|
226
|
+
- app/assets/stylesheets/dataclips/slickgrid/slickgrid.sass
|
227
|
+
- app/controllers/dataclips/application_controller.rb
|
228
|
+
- app/controllers/dataclips/clips_controller.rb
|
229
|
+
- app/controllers/dataclips/insights_controller.rb
|
230
|
+
- app/helpers/dataclips/application_helper.rb
|
231
|
+
- app/models/dataclips/clip.rb
|
232
|
+
- app/models/dataclips/insight.rb
|
233
|
+
- app/models/dataclips/sql_query.rb
|
234
|
+
- app/views/dataclips/application/_boolean.html.erb
|
235
|
+
- app/views/dataclips/application/_date.html.erb
|
236
|
+
- app/views/dataclips/application/_datetime.html.erb
|
237
|
+
- app/views/dataclips/application/_float.html.erb
|
238
|
+
- app/views/dataclips/application/_integer.html.erb
|
239
|
+
- app/views/dataclips/application/_text.html.erb
|
240
|
+
- app/views/dataclips/application/_time.html.erb
|
241
|
+
- app/views/dataclips/clips/edit.html.erb
|
242
|
+
- app/views/dataclips/clips/show.html.erb
|
243
|
+
- app/views/dataclips/insights/show.html.erb
|
244
|
+
- app/views/layouts/dataclips/application.html.erb
|
245
|
+
- config/initializers/assets.rb
|
246
|
+
- config/routes.rb
|
247
|
+
- db/migrate/20150101143530_create_dataclips_insights.rb
|
248
|
+
- lib/dataclips.rb
|
249
|
+
- lib/dataclips/engine.rb
|
250
|
+
- lib/dataclips/version.rb
|
251
|
+
- lib/tasks/dataclips_tasks.rake
|
252
|
+
- test/dataclips_test.rb
|
253
|
+
- test/dummy/README.rdoc
|
254
|
+
- test/dummy/Rakefile
|
255
|
+
- test/dummy/app/assets/javascripts/application.js
|
256
|
+
- test/dummy/app/assets/stylesheets/application.css
|
257
|
+
- test/dummy/app/controllers/application_controller.rb
|
258
|
+
- test/dummy/app/helpers/application_helper.rb
|
259
|
+
- test/dummy/app/views/layouts/application.html.erb
|
260
|
+
- test/dummy/bin/bundle
|
261
|
+
- test/dummy/bin/rails
|
262
|
+
- test/dummy/bin/rake
|
263
|
+
- test/dummy/config.ru
|
264
|
+
- test/dummy/config/application.rb
|
265
|
+
- test/dummy/config/boot.rb
|
266
|
+
- test/dummy/config/database.yml
|
267
|
+
- test/dummy/config/environment.rb
|
268
|
+
- test/dummy/config/environments/development.rb
|
269
|
+
- test/dummy/config/environments/production.rb
|
270
|
+
- test/dummy/config/environments/test.rb
|
271
|
+
- test/dummy/config/initializers/assets.rb
|
272
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
273
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
274
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
275
|
+
- test/dummy/config/initializers/inflections.rb
|
276
|
+
- test/dummy/config/initializers/mime_types.rb
|
277
|
+
- test/dummy/config/initializers/session_store.rb
|
278
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
279
|
+
- test/dummy/config/locales/en.yml
|
280
|
+
- test/dummy/config/routes.rb
|
281
|
+
- test/dummy/config/secrets.yml
|
282
|
+
- test/dummy/public/404.html
|
283
|
+
- test/dummy/public/422.html
|
284
|
+
- test/dummy/public/500.html
|
285
|
+
- test/dummy/public/favicon.ico
|
286
|
+
- test/integration/navigation_test.rb
|
287
|
+
- test/test_helper.rb
|
288
|
+
homepage: http://www.trix.pl
|
289
|
+
licenses:
|
290
|
+
- MIT
|
291
|
+
metadata: {}
|
292
|
+
post_install_message:
|
293
|
+
rdoc_options: []
|
294
|
+
require_paths:
|
295
|
+
- lib
|
296
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
297
|
+
requirements:
|
298
|
+
- - ">="
|
299
|
+
- !ruby/object:Gem::Version
|
300
|
+
version: '0'
|
301
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
302
|
+
requirements:
|
303
|
+
- - ">="
|
304
|
+
- !ruby/object:Gem::Version
|
305
|
+
version: '0'
|
306
|
+
requirements: []
|
307
|
+
rubyforge_project:
|
308
|
+
rubygems_version: 2.2.2
|
309
|
+
signing_key:
|
310
|
+
specification_version: 4
|
311
|
+
summary: Dataclips - shareable reports.
|
312
|
+
test_files:
|
313
|
+
- test/dataclips_test.rb
|
314
|
+
- test/dummy/app/assets/javascripts/application.js
|
315
|
+
- test/dummy/app/assets/stylesheets/application.css
|
316
|
+
- test/dummy/app/controllers/application_controller.rb
|
317
|
+
- test/dummy/app/helpers/application_helper.rb
|
318
|
+
- test/dummy/app/views/layouts/application.html.erb
|
319
|
+
- test/dummy/bin/bundle
|
320
|
+
- test/dummy/bin/rails
|
321
|
+
- test/dummy/bin/rake
|
322
|
+
- test/dummy/config/application.rb
|
323
|
+
- test/dummy/config/boot.rb
|
324
|
+
- test/dummy/config/database.yml
|
325
|
+
- test/dummy/config/environment.rb
|
326
|
+
- test/dummy/config/environments/development.rb
|
327
|
+
- test/dummy/config/environments/production.rb
|
328
|
+
- test/dummy/config/environments/test.rb
|
329
|
+
- test/dummy/config/initializers/assets.rb
|
330
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
331
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
332
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
333
|
+
- test/dummy/config/initializers/inflections.rb
|
334
|
+
- test/dummy/config/initializers/mime_types.rb
|
335
|
+
- test/dummy/config/initializers/session_store.rb
|
336
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
337
|
+
- test/dummy/config/locales/en.yml
|
338
|
+
- test/dummy/config/routes.rb
|
339
|
+
- test/dummy/config/secrets.yml
|
340
|
+
- test/dummy/config.ru
|
341
|
+
- test/dummy/public/404.html
|
342
|
+
- test/dummy/public/422.html
|
343
|
+
- test/dummy/public/500.html
|
344
|
+
- test/dummy/public/favicon.ico
|
345
|
+
- test/dummy/Rakefile
|
346
|
+
- test/dummy/README.rdoc
|
347
|
+
- test/integration/navigation_test.rb
|
348
|
+
- test/test_helper.rb
|