blue_csv 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +3 -0
  3. data/Rakefile +38 -0
  4. data/lib/blue_csv.rb +42 -0
  5. data/lib/blue_csv/version.rb +3 -0
  6. data/lib/tasks/blue_csv_tasks.rake +4 -0
  7. data/test/blue_csv_test.rb +18 -0
  8. data/test/dummy/README.rdoc +261 -0
  9. data/test/dummy/Rakefile +7 -0
  10. data/test/dummy/app/assets/javascripts/application.js +15 -0
  11. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  12. data/test/dummy/app/controllers/application_controller.rb +3 -0
  13. data/test/dummy/app/controllers/home_controller.rb +9 -0
  14. data/test/dummy/app/helpers/application_helper.rb +2 -0
  15. data/test/dummy/app/models/book.rb +18 -0
  16. data/test/dummy/app/views/home/index.csv.blue +5 -0
  17. data/test/dummy/app/views/home/index.html.erb +1 -0
  18. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  19. data/test/dummy/config.ru +4 -0
  20. data/test/dummy/config/application.rb +56 -0
  21. data/test/dummy/config/boot.rb +10 -0
  22. data/test/dummy/config/database.yml +25 -0
  23. data/test/dummy/config/environment.rb +5 -0
  24. data/test/dummy/config/environments/development.rb +37 -0
  25. data/test/dummy/config/environments/production.rb +67 -0
  26. data/test/dummy/config/environments/test.rb +37 -0
  27. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  28. data/test/dummy/config/initializers/inflections.rb +15 -0
  29. data/test/dummy/config/initializers/mime_types.rb +5 -0
  30. data/test/dummy/config/initializers/secret_token.rb +7 -0
  31. data/test/dummy/config/initializers/session_store.rb +8 -0
  32. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  33. data/test/dummy/config/locales/en.yml +5 -0
  34. data/test/dummy/config/routes.rb +62 -0
  35. data/test/dummy/db/development.sqlite3 +0 -0
  36. data/test/dummy/db/test.sqlite3 +0 -0
  37. data/test/dummy/log/development.log +681 -0
  38. data/test/dummy/log/test.log +105 -0
  39. data/test/dummy/public/404.html +26 -0
  40. data/test/dummy/public/422.html +26 -0
  41. data/test/dummy/public/500.html +25 -0
  42. data/test/dummy/public/favicon.ico +0 -0
  43. data/test/dummy/script/rails +6 -0
  44. data/test/dummy/tmp/cache/assets/C7F/E50/sprockets%2Fe160568f241c17537759cb246e1c44a5 +0 -0
  45. data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  46. data/test/dummy/tmp/cache/assets/D26/4E0/sprockets%2F28fbf2cc2d5401172eab41b96b30251e +0 -0
  47. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  48. data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  49. data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  50. data/test/dummy/tmp/cache/assets/DCF/F90/sprockets%2Fa2be717be9db9497053338becbaec17d +0 -0
  51. data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  52. data/test/dummy/tmp/cache/assets/DFB/4A0/sprockets%2Feabee50702831b1a0e1969ecf4efce7e +0 -0
  53. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  54. data/test/dummy/tmp/pids/server.pid +1 -0
  55. data/test/test_helper.rb +15 -0
  56. metadata +182 -0
@@ -0,0 +1,105 @@
1
+  (0.4ms) begin transaction
2
+  (0.0ms) rollback transaction
3
+  (0.4ms) begin transaction
4
+  (0.0ms) rollback transaction
5
+  (0.4ms) begin transaction
6
+  (0.1ms) rollback transaction
7
+  (0.4ms) begin transaction
8
+
9
+
10
+ Started GET "/home.csv" for 127.0.0.1 at 2012-03-21 22:49:57 +0000
11
+  (0.1ms) rollback transaction
12
+  (0.4ms) begin transaction
13
+
14
+
15
+ Started GET "/home.csv" for 127.0.0.1 at 2012-03-21 22:51:40 +0000
16
+ Processing by HomeController#index as CSV
17
+ Completed 500 Internal Server Error in 41ms
18
+  (0.1ms) rollback transaction
19
+  (0.4ms) begin transaction
20
+  (0.0ms) rollback transaction
21
+  (0.4ms) begin transaction
22
+
23
+
24
+ Started GET "/home.csv" for 127.0.0.1 at 2012-03-21 22:52:46 +0000
25
+ Processing by HomeController#index as CSV
26
+ Completed 500 Internal Server Error in 14ms
27
+  (0.1ms) rollback transaction
28
+  (0.4ms) begin transaction
29
+
30
+
31
+ Started GET "/home.csv" for 127.0.0.1 at 2012-03-21 22:53:35 +0000
32
+ Processing by HomeController#index as CSV
33
+ Completed 500 Internal Server Error in 12ms
34
+  (0.1ms) rollback transaction
35
+  (0.4ms) begin transaction
36
+
37
+
38
+ Started GET "/home.csv" for 127.0.0.1 at 2012-03-21 22:53:58 +0000
39
+ Processing by HomeController#index as CSV
40
+ Rendered home/index.csv.erb (2.0ms)
41
+ Completed 200 OK in 12ms (Views: 11.2ms | ActiveRecord: 0.0ms)
42
+  (0.1ms) rollback transaction
43
+  (0.4ms) begin transaction
44
+
45
+
46
+ Started GET "/home.csv" for 127.0.0.1 at 2012-03-21 22:56:26 +0000
47
+ Processing by HomeController#index as CSV
48
+ Rendered home/index.csv.erb (2.0ms)
49
+ Completed 200 OK in 11ms (Views: 10.9ms | ActiveRecord: 0.0ms)
50
+  (0.1ms) rollback transaction
51
+  (0.4ms) begin transaction
52
+
53
+
54
+ Started GET "/home.csv" for 127.0.0.1 at 2012-03-21 22:59:23 +0000
55
+ Processing by HomeController#index as CSV
56
+ Rendered home/index.csv.erb (2.0ms)
57
+ Completed 200 OK in 11ms (Views: 10.5ms | ActiveRecord: 0.0ms)
58
+  (0.1ms) rollback transaction
59
+  (0.4ms) begin transaction
60
+
61
+
62
+ Started GET "/home.csv" for 127.0.0.1 at 2012-03-21 23:01:04 +0000
63
+ Processing by HomeController#index as CSV
64
+ Rendered home/index.csv.erb (1.9ms)
65
+ Completed 200 OK in 11ms (Views: 10.4ms | ActiveRecord: 0.0ms)
66
+  (0.1ms) rollback transaction
67
+  (0.4ms) begin transaction
68
+
69
+
70
+ Started GET "/home.csv" for 127.0.0.1 at 2012-03-21 23:01:56 +0000
71
+ Processing by HomeController#index as CSV
72
+ Rendered home/index.csv.erb (2.6ms)
73
+ Completed 200 OK in 13ms (Views: 12.3ms | ActiveRecord: 0.0ms)
74
+  (0.1ms) rollback transaction
75
+  (0.4ms) begin transaction
76
+
77
+
78
+ Started GET "/home.csv" for 127.0.0.1 at 2012-03-21 23:02:30 +0000
79
+ Processing by HomeController#index as CSV
80
+ Completed 500 Internal Server Error in 12ms
81
+  (0.1ms) rollback transaction
82
+  (0.4ms) begin transaction
83
+
84
+
85
+ Started GET "/home.csv" for 127.0.0.1 at 2012-03-21 23:02:45 +0000
86
+ Processing by HomeController#index as CSV
87
+ Rendered home/index.csv.erb (2.0ms)
88
+ Completed 200 OK in 11ms (Views: 10.5ms | ActiveRecord: 0.0ms)
89
+  (0.1ms) rollback transaction
90
+  (0.4ms) begin transaction
91
+
92
+
93
+ Started GET "/home.csv" for 127.0.0.1 at 2012-03-21 23:10:26 +0000
94
+ Processing by HomeController#index as CSV
95
+ Rendered home/index.csv.blue (0.7ms)
96
+ Completed 200 OK in 27ms (Views: 20.7ms | ActiveRecord: 0.0ms)
97
+  (0.1ms) rollback transaction
98
+  (0.5ms) begin transaction
99
+
100
+
101
+ Started GET "/home.csv" for 127.0.0.1 at 2012-03-23 21:34:13 +0000
102
+ Processing by HomeController#index as CSV
103
+ Rendered home/index.csv.blue (1.4ms)
104
+ Completed 200 OK in 38ms (Views: 37.6ms | ActiveRecord: 0.0ms)
105
+  (0.1ms) rollback transaction
@@ -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'
@@ -0,0 +1 @@
1
+ 4460
@@ -0,0 +1,15 @@
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
+ # Configure capybara for integration testing
13
+ require "capybara/rails"
14
+ Capybara.default_driver = :rack_test
15
+ Capybara.default_selector = :css
metadata ADDED
@@ -0,0 +1,182 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: blue_csv
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Artan Sinani
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-03-23 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: &70250653679320 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 3.2.2
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70250653679320
25
+ - !ruby/object:Gem::Dependency
26
+ name: capybara
27
+ requirement: &70250653677520 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *70250653677520
36
+ - !ruby/object:Gem::Dependency
37
+ name: sqlite3
38
+ requirement: &70250653675960 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *70250653675960
47
+ description: Renders CSV files as view templates.
48
+ email:
49
+ - artisinani@gmail.com
50
+ executables: []
51
+ extensions: []
52
+ extra_rdoc_files: []
53
+ files:
54
+ - lib/blue_csv/version.rb
55
+ - lib/blue_csv.rb
56
+ - lib/tasks/blue_csv_tasks.rake
57
+ - MIT-LICENSE
58
+ - Rakefile
59
+ - README.rdoc
60
+ - test/blue_csv_test.rb
61
+ - test/dummy/app/assets/javascripts/application.js
62
+ - test/dummy/app/assets/stylesheets/application.css
63
+ - test/dummy/app/controllers/application_controller.rb
64
+ - test/dummy/app/controllers/home_controller.rb
65
+ - test/dummy/app/helpers/application_helper.rb
66
+ - test/dummy/app/models/book.rb
67
+ - test/dummy/app/views/home/index.csv.blue
68
+ - test/dummy/app/views/home/index.html.erb
69
+ - test/dummy/app/views/layouts/application.html.erb
70
+ - test/dummy/config/application.rb
71
+ - test/dummy/config/boot.rb
72
+ - test/dummy/config/database.yml
73
+ - test/dummy/config/environment.rb
74
+ - test/dummy/config/environments/development.rb
75
+ - test/dummy/config/environments/production.rb
76
+ - test/dummy/config/environments/test.rb
77
+ - test/dummy/config/initializers/backtrace_silencers.rb
78
+ - test/dummy/config/initializers/inflections.rb
79
+ - test/dummy/config/initializers/mime_types.rb
80
+ - test/dummy/config/initializers/secret_token.rb
81
+ - test/dummy/config/initializers/session_store.rb
82
+ - test/dummy/config/initializers/wrap_parameters.rb
83
+ - test/dummy/config/locales/en.yml
84
+ - test/dummy/config/routes.rb
85
+ - test/dummy/config.ru
86
+ - test/dummy/db/development.sqlite3
87
+ - test/dummy/db/test.sqlite3
88
+ - test/dummy/log/development.log
89
+ - test/dummy/log/test.log
90
+ - test/dummy/public/404.html
91
+ - test/dummy/public/422.html
92
+ - test/dummy/public/500.html
93
+ - test/dummy/public/favicon.ico
94
+ - test/dummy/Rakefile
95
+ - test/dummy/README.rdoc
96
+ - test/dummy/script/rails
97
+ - test/dummy/tmp/cache/assets/C7F/E50/sprockets%2Fe160568f241c17537759cb246e1c44a5
98
+ - test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
99
+ - test/dummy/tmp/cache/assets/D26/4E0/sprockets%2F28fbf2cc2d5401172eab41b96b30251e
100
+ - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
101
+ - test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
102
+ - test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
103
+ - test/dummy/tmp/cache/assets/DCF/F90/sprockets%2Fa2be717be9db9497053338becbaec17d
104
+ - test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
105
+ - test/dummy/tmp/cache/assets/DFB/4A0/sprockets%2Feabee50702831b1a0e1969ecf4efce7e
106
+ - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
107
+ - test/dummy/tmp/pids/server.pid
108
+ - test/test_helper.rb
109
+ homepage: https://github.com/rtsinani/blue_csv
110
+ licenses: []
111
+ post_install_message:
112
+ rdoc_options: []
113
+ require_paths:
114
+ - lib
115
+ required_ruby_version: !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - ! '>='
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
121
+ required_rubygems_version: !ruby/object:Gem::Requirement
122
+ none: false
123
+ requirements:
124
+ - - ! '>='
125
+ - !ruby/object:Gem::Version
126
+ version: '0'
127
+ requirements: []
128
+ rubyforge_project:
129
+ rubygems_version: 1.8.17
130
+ signing_key:
131
+ specification_version: 3
132
+ summary: Renders CSV files as view templates.
133
+ test_files:
134
+ - test/blue_csv_test.rb
135
+ - test/dummy/app/assets/javascripts/application.js
136
+ - test/dummy/app/assets/stylesheets/application.css
137
+ - test/dummy/app/controllers/application_controller.rb
138
+ - test/dummy/app/controllers/home_controller.rb
139
+ - test/dummy/app/helpers/application_helper.rb
140
+ - test/dummy/app/models/book.rb
141
+ - test/dummy/app/views/home/index.csv.blue
142
+ - test/dummy/app/views/home/index.html.erb
143
+ - test/dummy/app/views/layouts/application.html.erb
144
+ - test/dummy/config/application.rb
145
+ - test/dummy/config/boot.rb
146
+ - test/dummy/config/database.yml
147
+ - test/dummy/config/environment.rb
148
+ - test/dummy/config/environments/development.rb
149
+ - test/dummy/config/environments/production.rb
150
+ - test/dummy/config/environments/test.rb
151
+ - test/dummy/config/initializers/backtrace_silencers.rb
152
+ - test/dummy/config/initializers/inflections.rb
153
+ - test/dummy/config/initializers/mime_types.rb
154
+ - test/dummy/config/initializers/secret_token.rb
155
+ - test/dummy/config/initializers/session_store.rb
156
+ - test/dummy/config/initializers/wrap_parameters.rb
157
+ - test/dummy/config/locales/en.yml
158
+ - test/dummy/config/routes.rb
159
+ - test/dummy/config.ru
160
+ - test/dummy/db/development.sqlite3
161
+ - test/dummy/db/test.sqlite3
162
+ - test/dummy/log/development.log
163
+ - test/dummy/log/test.log
164
+ - test/dummy/public/404.html
165
+ - test/dummy/public/422.html
166
+ - test/dummy/public/500.html
167
+ - test/dummy/public/favicon.ico
168
+ - test/dummy/Rakefile
169
+ - test/dummy/README.rdoc
170
+ - test/dummy/script/rails
171
+ - test/dummy/tmp/cache/assets/C7F/E50/sprockets%2Fe160568f241c17537759cb246e1c44a5
172
+ - test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
173
+ - test/dummy/tmp/cache/assets/D26/4E0/sprockets%2F28fbf2cc2d5401172eab41b96b30251e
174
+ - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
175
+ - test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
176
+ - test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
177
+ - test/dummy/tmp/cache/assets/DCF/F90/sprockets%2Fa2be717be9db9497053338becbaec17d
178
+ - test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
179
+ - test/dummy/tmp/cache/assets/DFB/4A0/sprockets%2Feabee50702831b1a0e1969ecf4efce7e
180
+ - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
181
+ - test/dummy/tmp/pids/server.pid
182
+ - test/test_helper.rb