tabular-text 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/tabular-text/version.rb +1 -1
- data/test/dummy/Gemfile +45 -0
- data/test/dummy/Gemfile.lock +119 -0
- data/test/dummy/README.rdoc +15 -248
- data/test/dummy/Rakefile +0 -1
- data/test/dummy/app/assets/javascripts/application.js +4 -3
- data/test/dummy/app/assets/stylesheets/application.css +1 -1
- data/test/dummy/app/controllers/application_controller.rb +3 -1
- data/test/dummy/app/views/layouts/application.html.erb +2 -2
- 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 +1 -1
- data/test/dummy/config/application.rb +7 -37
- data/test/dummy/config/boot.rb +3 -8
- data/test/dummy/config/environment.rb +2 -2
- data/test/dummy/config/environments/development.rb +9 -20
- data/test/dummy/config/environments/production.rb +40 -27
- data/test/dummy/config/environments/test.rb +13 -14
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +6 -5
- data/test/dummy/config/initializers/secret_token.rb +7 -2
- data/test/dummy/config/initializers/session_store.rb +0 -5
- data/test/dummy/config/initializers/wrap_parameters.rb +6 -6
- data/test/dummy/config/locales/en.yml +20 -2
- data/test/dummy/config/routes.rb +22 -24
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/schema.rb +16 -0
- data/test/dummy/db/seeds.rb +7 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +3 -0
- data/test/dummy/log/test.log +343 -0
- data/test/dummy/public/404.html +43 -11
- data/test/dummy/public/422.html +43 -11
- data/test/dummy/public/500.html +43 -11
- data/test/dummy/public/robots.txt +5 -0
- data/test/dummy/test/test_helper.rb +15 -0
- data/test/test_helper.rb +1 -1
- metadata +46 -28
- data/test/dummy/config/database.yml +0 -25
data/test/dummy/public/404.html
CHANGED
@@ -2,17 +2,48 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
-
<style
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
16
47
|
</style>
|
17
48
|
</head>
|
18
49
|
|
@@ -22,5 +53,6 @@
|
|
22
53
|
<h1>The page you were looking for doesn't exist.</h1>
|
23
54
|
<p>You may have mistyped the address or the page may have moved.</p>
|
24
55
|
</div>
|
56
|
+
<p>If you are the application owner check the logs for more information.</p>
|
25
57
|
</body>
|
26
58
|
</html>
|
data/test/dummy/public/422.html
CHANGED
@@ -2,17 +2,48 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<title>The change you wanted was rejected (422)</title>
|
5
|
-
<style
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
16
47
|
</style>
|
17
48
|
</head>
|
18
49
|
|
@@ -22,5 +53,6 @@
|
|
22
53
|
<h1>The change you wanted was rejected.</h1>
|
23
54
|
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
55
|
</div>
|
56
|
+
<p>If you are the application owner check the logs for more information.</p>
|
25
57
|
</body>
|
26
58
|
</html>
|
data/test/dummy/public/500.html
CHANGED
@@ -2,17 +2,48 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<title>We're sorry, but something went wrong (500)</title>
|
5
|
-
<style
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
16
47
|
</style>
|
17
48
|
</head>
|
18
49
|
|
@@ -21,5 +52,6 @@
|
|
21
52
|
<div class="dialog">
|
22
53
|
<h1>We're sorry, but something went wrong.</h1>
|
23
54
|
</div>
|
55
|
+
<p>If you are the application owner check the logs for more information.</p>
|
24
56
|
</body>
|
25
57
|
</html>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
ENV["RAILS_ENV"] ||= "test"
|
2
|
+
require File.expand_path('../../config/environment', __FILE__)
|
3
|
+
require 'rails/test_help'
|
4
|
+
|
5
|
+
class ActiveSupport::TestCase
|
6
|
+
ActiveRecord::Migration.check_pending!
|
7
|
+
|
8
|
+
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
|
9
|
+
#
|
10
|
+
# Note: You'll currently still have to declare fixtures explicitly in integration tests
|
11
|
+
# -- they do not yet inherit this setting
|
12
|
+
fixtures :all
|
13
|
+
|
14
|
+
# Add more helper methods to be used by all tests here...
|
15
|
+
end
|
data/test/test_helper.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Configure Rails Environment
|
2
2
|
ENV["RAILS_ENV"] = "test"
|
3
3
|
|
4
|
-
require File.expand_path(
|
4
|
+
require ::File.expand_path('../dummy/config/environment', __FILE__)
|
5
5
|
require "rails/test_help"
|
6
6
|
|
7
7
|
Rails.backtrace_cleaner.remove_silencers!
|
metadata
CHANGED
@@ -1,67 +1,60 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tabular-text
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Elomar Souza
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-08-29 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rails
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: 3.2
|
19
|
+
version: '3.2'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: 3.2
|
26
|
+
version: '3.2'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: sqlite3
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: capybara
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - '>='
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - '>='
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '0'
|
62
|
-
description:
|
63
|
-
|
64
|
-
|
55
|
+
description: |-
|
56
|
+
You know those times when you're dealing with a 10-year-old government API and they require a text file
|
57
|
+
where every field has to be in a certain position? TabularText for the rescue!
|
65
58
|
email:
|
66
59
|
- elomar@elomar.me
|
67
60
|
executables: []
|
@@ -86,14 +79,17 @@ files:
|
|
86
79
|
- test/dummy/app/views/home/index.text.tab
|
87
80
|
- test/dummy/app/views/home/index.txt.tab
|
88
81
|
- test/dummy/app/views/layouts/application.html.erb
|
82
|
+
- test/dummy/bin/bundle
|
83
|
+
- test/dummy/bin/rails
|
84
|
+
- test/dummy/bin/rake
|
89
85
|
- test/dummy/config/application.rb
|
90
86
|
- test/dummy/config/boot.rb
|
91
|
-
- test/dummy/config/database.yml
|
92
87
|
- test/dummy/config/environment.rb
|
93
88
|
- test/dummy/config/environments/development.rb
|
94
89
|
- test/dummy/config/environments/production.rb
|
95
90
|
- test/dummy/config/environments/test.rb
|
96
91
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
92
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
97
93
|
- test/dummy/config/initializers/inflections.rb
|
98
94
|
- test/dummy/config/initializers/mime_types.rb
|
99
95
|
- test/dummy/config/initializers/secret_token.rb
|
@@ -102,13 +98,23 @@ files:
|
|
102
98
|
- test/dummy/config/locales/en.yml
|
103
99
|
- test/dummy/config/routes.rb
|
104
100
|
- test/dummy/config.ru
|
101
|
+
- test/dummy/db/development.sqlite3
|
102
|
+
- test/dummy/db/schema.rb
|
103
|
+
- test/dummy/db/seeds.rb
|
104
|
+
- test/dummy/db/test.sqlite3
|
105
|
+
- test/dummy/Gemfile
|
106
|
+
- test/dummy/Gemfile.lock
|
107
|
+
- test/dummy/log/development.log
|
108
|
+
- test/dummy/log/test.log
|
105
109
|
- test/dummy/public/404.html
|
106
110
|
- test/dummy/public/422.html
|
107
111
|
- test/dummy/public/500.html
|
108
112
|
- test/dummy/public/favicon.ico
|
113
|
+
- test/dummy/public/robots.txt
|
109
114
|
- test/dummy/Rakefile
|
110
115
|
- test/dummy/README.rdoc
|
111
116
|
- test/dummy/script/rails
|
117
|
+
- test/dummy/test/test_helper.rb
|
112
118
|
- test/integration/navigation_test.rb
|
113
119
|
- test/support/integration_case.rb
|
114
120
|
- test/tabular-text_test.rb
|
@@ -118,27 +124,26 @@ files:
|
|
118
124
|
- test/unit/line_test.rb
|
119
125
|
homepage: http://github.com/elomar/tabular-text
|
120
126
|
licenses: []
|
127
|
+
metadata: {}
|
121
128
|
post_install_message:
|
122
129
|
rdoc_options: []
|
123
130
|
require_paths:
|
124
131
|
- lib
|
125
132
|
required_ruby_version: !ruby/object:Gem::Requirement
|
126
|
-
none: false
|
127
133
|
requirements:
|
128
|
-
- -
|
134
|
+
- - '>='
|
129
135
|
- !ruby/object:Gem::Version
|
130
136
|
version: '0'
|
131
137
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
132
|
-
none: false
|
133
138
|
requirements:
|
134
|
-
- -
|
139
|
+
- - '>='
|
135
140
|
- !ruby/object:Gem::Version
|
136
141
|
version: '0'
|
137
142
|
requirements: []
|
138
143
|
rubyforge_project:
|
139
|
-
rubygems_version:
|
144
|
+
rubygems_version: 2.0.3
|
140
145
|
signing_key:
|
141
|
-
specification_version:
|
146
|
+
specification_version: 4
|
142
147
|
summary: Generate position-based text files
|
143
148
|
test_files:
|
144
149
|
- test/dummy/app/assets/javascripts/application.js
|
@@ -149,14 +154,17 @@ test_files:
|
|
149
154
|
- test/dummy/app/views/home/index.text.tab
|
150
155
|
- test/dummy/app/views/home/index.txt.tab
|
151
156
|
- test/dummy/app/views/layouts/application.html.erb
|
157
|
+
- test/dummy/bin/bundle
|
158
|
+
- test/dummy/bin/rails
|
159
|
+
- test/dummy/bin/rake
|
152
160
|
- test/dummy/config/application.rb
|
153
161
|
- test/dummy/config/boot.rb
|
154
|
-
- test/dummy/config/database.yml
|
155
162
|
- test/dummy/config/environment.rb
|
156
163
|
- test/dummy/config/environments/development.rb
|
157
164
|
- test/dummy/config/environments/production.rb
|
158
165
|
- test/dummy/config/environments/test.rb
|
159
166
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
167
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
160
168
|
- test/dummy/config/initializers/inflections.rb
|
161
169
|
- test/dummy/config/initializers/mime_types.rb
|
162
170
|
- test/dummy/config/initializers/secret_token.rb
|
@@ -165,13 +173,23 @@ test_files:
|
|
165
173
|
- test/dummy/config/locales/en.yml
|
166
174
|
- test/dummy/config/routes.rb
|
167
175
|
- test/dummy/config.ru
|
176
|
+
- test/dummy/db/development.sqlite3
|
177
|
+
- test/dummy/db/schema.rb
|
178
|
+
- test/dummy/db/seeds.rb
|
179
|
+
- test/dummy/db/test.sqlite3
|
180
|
+
- test/dummy/Gemfile
|
181
|
+
- test/dummy/Gemfile.lock
|
182
|
+
- test/dummy/log/development.log
|
183
|
+
- test/dummy/log/test.log
|
168
184
|
- test/dummy/public/404.html
|
169
185
|
- test/dummy/public/422.html
|
170
186
|
- test/dummy/public/500.html
|
171
187
|
- test/dummy/public/favicon.ico
|
188
|
+
- test/dummy/public/robots.txt
|
172
189
|
- test/dummy/Rakefile
|
173
190
|
- test/dummy/README.rdoc
|
174
191
|
- test/dummy/script/rails
|
192
|
+
- test/dummy/test/test_helper.rb
|
175
193
|
- test/integration/navigation_test.rb
|
176
194
|
- test/support/integration_case.rb
|
177
195
|
- test/tabular-text_test.rb
|
@@ -1,25 +0,0 @@
|
|
1
|
-
# SQLite version 3.x
|
2
|
-
# gem install sqlite3
|
3
|
-
#
|
4
|
-
# Ensure the SQLite 3 gem is defined in your Gemfile
|
5
|
-
# gem 'sqlite3'
|
6
|
-
development:
|
7
|
-
adapter: sqlite3
|
8
|
-
database: db/development.sqlite3
|
9
|
-
pool: 5
|
10
|
-
timeout: 5000
|
11
|
-
|
12
|
-
# Warning: The database defined as "test" will be erased and
|
13
|
-
# re-generated from your development database when you run "rake".
|
14
|
-
# Do not set this db to the same as development or production.
|
15
|
-
test:
|
16
|
-
adapter: sqlite3
|
17
|
-
database: db/test.sqlite3
|
18
|
-
pool: 5
|
19
|
-
timeout: 5000
|
20
|
-
|
21
|
-
production:
|
22
|
-
adapter: sqlite3
|
23
|
-
database: db/production.sqlite3
|
24
|
-
pool: 5
|
25
|
-
timeout: 5000
|