cloudxls-rails 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. data/.gitignore +15 -0
  2. data/Gemfile +9 -0
  3. data/README.md +3 -0
  4. data/Rakefile +9 -0
  5. data/cloudxls-rails.gemspec +25 -0
  6. data/lib/cloudxls-rails/action_controller.rb +66 -0
  7. data/lib/cloudxls-rails/csv_writer.rb +103 -0
  8. data/lib/cloudxls-rails/version.rb +5 -0
  9. data/lib/cloudxls-rails.rb +6 -0
  10. data/spec/ci.sh +2 -0
  11. data/spec/csv_writer_spec.rb +86 -0
  12. data/spec/integration_spec.rb +34 -0
  13. data/spec/mime_types_spec.rb +28 -0
  14. data/spec/spec_helper.rb +22 -0
  15. data/spec/test_3.1.sh +16 -0
  16. data/spec/test_3.2.sh +16 -0
  17. data/spec/test_4.0.sh +16 -0
  18. data/spec/test_all_rails.sh +6 -0
  19. data/spec/test_app/.rspec +1 -0
  20. data/spec/test_app/README.rdoc +261 -0
  21. data/spec/test_app/Rakefile +7 -0
  22. data/spec/test_app/app/controllers/application_controller.rb +3 -0
  23. data/spec/test_app/app/controllers/posts_controller.rb +12 -0
  24. data/spec/test_app/app/helpers/application_helper.rb +2 -0
  25. data/spec/test_app/app/mailers/.gitkeep +0 -0
  26. data/spec/test_app/app/models/.gitkeep +0 -0
  27. data/spec/test_app/app/models/post.rb +2 -0
  28. data/spec/test_app/app/views/layouts/application.html.erb +12 -0
  29. data/spec/test_app/app/views/posts/index.html.erb +1 -0
  30. data/spec/test_app/config/application.rb +14 -0
  31. data/spec/test_app/config/boot.rb +10 -0
  32. data/spec/test_app/config/database.yml +11 -0
  33. data/spec/test_app/config/environment.rb +5 -0
  34. data/spec/test_app/config/environments/development.rb +39 -0
  35. data/spec/test_app/config/environments/production.rb +69 -0
  36. data/spec/test_app/config/environments/test.rb +40 -0
  37. data/spec/test_app/config/initializers/backtrace_silencers.rb +7 -0
  38. data/spec/test_app/config/initializers/inflections.rb +15 -0
  39. data/spec/test_app/config/initializers/mime_types.rb +5 -0
  40. data/spec/test_app/config/initializers/secret_token.rb +8 -0
  41. data/spec/test_app/config/initializers/session_store.rb +8 -0
  42. data/spec/test_app/config/initializers/wrap_parameters.rb +14 -0
  43. data/spec/test_app/config/locales/en.yml +5 -0
  44. data/spec/test_app/config/routes.rb +5 -0
  45. data/spec/test_app/config.ru +4 -0
  46. data/spec/test_app/db/migrate/20120717192452_create_posts.rb +14 -0
  47. data/spec/test_app/db/schema.rb +28 -0
  48. data/spec/test_app/db/test.sqlite3 +0 -0
  49. data/spec/test_app/lib/assets/.gitkeep +0 -0
  50. data/spec/test_app/log/.gitkeep +0 -0
  51. data/spec/test_app/public/404.html +26 -0
  52. data/spec/test_app/public/422.html +26 -0
  53. data/spec/test_app/public/500.html +25 -0
  54. data/spec/test_app/public/favicon.ico +0 -0
  55. data/spec/test_app/script/rails +6 -0
  56. data/spec/test_revert.sh +3 -0
  57. metadata +244 -0
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,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,3 @@
1
+ unset RAILS_VERSION
2
+ cp Gemfile.lock.orig Gemfile.lock
3
+ bundle install
metadata ADDED
@@ -0,0 +1,244 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cloudxls-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Sebastian Burkhard
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-11-20 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: cloudxls
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 0.3.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 0.3.0
30
+ - !ruby/object:Gem::Dependency
31
+ name: rake
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: webmock
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: rspec-rails
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: capybara
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: sqlite3
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ description: Rails wrapper for the CloudXLS xpipe API
111
+ email:
112
+ - seb@cloudxls.com
113
+ executables: []
114
+ extensions: []
115
+ extra_rdoc_files: []
116
+ files:
117
+ - .gitignore
118
+ - Gemfile
119
+ - README.md
120
+ - Rakefile
121
+ - cloudxls-rails.gemspec
122
+ - lib/cloudxls-rails.rb
123
+ - lib/cloudxls-rails/action_controller.rb
124
+ - lib/cloudxls-rails/csv_writer.rb
125
+ - lib/cloudxls-rails/version.rb
126
+ - spec/ci.sh
127
+ - spec/csv_writer_spec.rb
128
+ - spec/integration_spec.rb
129
+ - spec/mime_types_spec.rb
130
+ - spec/spec_helper.rb
131
+ - spec/test_3.1.sh
132
+ - spec/test_3.2.sh
133
+ - spec/test_4.0.sh
134
+ - spec/test_all_rails.sh
135
+ - spec/test_app/.rspec
136
+ - spec/test_app/README.rdoc
137
+ - spec/test_app/Rakefile
138
+ - spec/test_app/app/controllers/application_controller.rb
139
+ - spec/test_app/app/controllers/posts_controller.rb
140
+ - spec/test_app/app/helpers/application_helper.rb
141
+ - spec/test_app/app/mailers/.gitkeep
142
+ - spec/test_app/app/models/.gitkeep
143
+ - spec/test_app/app/models/post.rb
144
+ - spec/test_app/app/views/layouts/application.html.erb
145
+ - spec/test_app/app/views/posts/index.html.erb
146
+ - spec/test_app/config.ru
147
+ - spec/test_app/config/application.rb
148
+ - spec/test_app/config/boot.rb
149
+ - spec/test_app/config/database.yml
150
+ - spec/test_app/config/environment.rb
151
+ - spec/test_app/config/environments/development.rb
152
+ - spec/test_app/config/environments/production.rb
153
+ - spec/test_app/config/environments/test.rb
154
+ - spec/test_app/config/initializers/backtrace_silencers.rb
155
+ - spec/test_app/config/initializers/inflections.rb
156
+ - spec/test_app/config/initializers/mime_types.rb
157
+ - spec/test_app/config/initializers/secret_token.rb
158
+ - spec/test_app/config/initializers/session_store.rb
159
+ - spec/test_app/config/initializers/wrap_parameters.rb
160
+ - spec/test_app/config/locales/en.yml
161
+ - spec/test_app/config/routes.rb
162
+ - spec/test_app/db/migrate/20120717192452_create_posts.rb
163
+ - spec/test_app/db/schema.rb
164
+ - spec/test_app/db/test.sqlite3
165
+ - spec/test_app/lib/assets/.gitkeep
166
+ - spec/test_app/log/.gitkeep
167
+ - spec/test_app/public/404.html
168
+ - spec/test_app/public/422.html
169
+ - spec/test_app/public/500.html
170
+ - spec/test_app/public/favicon.ico
171
+ - spec/test_app/script/rails
172
+ - spec/test_revert.sh
173
+ homepage: https://cloudxls.com
174
+ licenses: []
175
+ post_install_message:
176
+ rdoc_options: []
177
+ require_paths:
178
+ - lib
179
+ required_ruby_version: !ruby/object:Gem::Requirement
180
+ none: false
181
+ requirements:
182
+ - - ! '>='
183
+ - !ruby/object:Gem::Version
184
+ version: '0'
185
+ required_rubygems_version: !ruby/object:Gem::Requirement
186
+ none: false
187
+ requirements:
188
+ - - ! '>='
189
+ - !ruby/object:Gem::Version
190
+ version: '0'
191
+ requirements: []
192
+ rubyforge_project:
193
+ rubygems_version: 1.8.23
194
+ signing_key:
195
+ specification_version: 3
196
+ summary: Rails wrapper for the CloudXLS xpipe API
197
+ test_files:
198
+ - spec/ci.sh
199
+ - spec/csv_writer_spec.rb
200
+ - spec/integration_spec.rb
201
+ - spec/mime_types_spec.rb
202
+ - spec/spec_helper.rb
203
+ - spec/test_3.1.sh
204
+ - spec/test_3.2.sh
205
+ - spec/test_4.0.sh
206
+ - spec/test_all_rails.sh
207
+ - spec/test_app/.rspec
208
+ - spec/test_app/README.rdoc
209
+ - spec/test_app/Rakefile
210
+ - spec/test_app/app/controllers/application_controller.rb
211
+ - spec/test_app/app/controllers/posts_controller.rb
212
+ - spec/test_app/app/helpers/application_helper.rb
213
+ - spec/test_app/app/mailers/.gitkeep
214
+ - spec/test_app/app/models/.gitkeep
215
+ - spec/test_app/app/models/post.rb
216
+ - spec/test_app/app/views/layouts/application.html.erb
217
+ - spec/test_app/app/views/posts/index.html.erb
218
+ - spec/test_app/config.ru
219
+ - spec/test_app/config/application.rb
220
+ - spec/test_app/config/boot.rb
221
+ - spec/test_app/config/database.yml
222
+ - spec/test_app/config/environment.rb
223
+ - spec/test_app/config/environments/development.rb
224
+ - spec/test_app/config/environments/production.rb
225
+ - spec/test_app/config/environments/test.rb
226
+ - spec/test_app/config/initializers/backtrace_silencers.rb
227
+ - spec/test_app/config/initializers/inflections.rb
228
+ - spec/test_app/config/initializers/mime_types.rb
229
+ - spec/test_app/config/initializers/secret_token.rb
230
+ - spec/test_app/config/initializers/session_store.rb
231
+ - spec/test_app/config/initializers/wrap_parameters.rb
232
+ - spec/test_app/config/locales/en.yml
233
+ - spec/test_app/config/routes.rb
234
+ - spec/test_app/db/migrate/20120717192452_create_posts.rb
235
+ - spec/test_app/db/schema.rb
236
+ - spec/test_app/db/test.sqlite3
237
+ - spec/test_app/lib/assets/.gitkeep
238
+ - spec/test_app/log/.gitkeep
239
+ - spec/test_app/public/404.html
240
+ - spec/test_app/public/422.html
241
+ - spec/test_app/public/500.html
242
+ - spec/test_app/public/favicon.ico
243
+ - spec/test_app/script/rails
244
+ - spec/test_revert.sh