credit_card_type_field 1.0 → 1.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -9,6 +9,7 @@ InstalledFiles
9
9
  _yardoc
10
10
  coverage
11
11
  doc/
12
+ pec/dummy/log
12
13
  .DS_Store
13
14
  lib/bundler/man
14
15
  pkg
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # CreditCardField
1
+ # CreditCardTypeField
2
2
 
3
3
  Credit card type field auto detected by the credit card number.
4
4
 
@@ -29,11 +29,31 @@ application.css
29
29
 
30
30
  ## Tutorial
31
31
 
32
+ Support form_for and simple_form_for. Examples:
32
33
 
34
+ ```ruby
35
+ <%= form_for @credit_card do |f| %>
36
+ <%= f.text_field :credit_card_no %>
37
+ <%= f.credit_card_type_field :card_type %>
38
+ <% end %>
39
+ ```
33
40
 
34
- ## Demo
35
-
41
+ Specify the credit card number name and supported credit card types:
42
+
43
+ ```ruby
44
+ <%= form_for @credit_card do |f| %>
45
+ <%= f.text_field :card_no %>
46
+ <%= f.credit_card_type_field :card_type, card_number_field_name: 'card_no', accept_types: %(visa master) %>
47
+ <% end %>
48
+ ```
49
+
50
+ Done! CreditCardTypeField gem will add javascript keyup event listening to the credit card number field. It is able to detect what kind of the input
51
+ credit card is according to the credit card number. At present, only visa master american_express diners_club are supported.
36
52
 
53
+ ## TODO
54
+ add credit_card_type_tag
55
+
56
+ add DEMO
37
57
 
38
58
  ## Contributing
39
59
 
@@ -42,3 +62,7 @@ application.css
42
62
  3. Commit your changes (`git commit -am 'Add some feature'`)
43
63
  4. Push to the branch (`git push origin my-new-feature`)
44
64
  5. Create new Pull Request
65
+
66
+ ## License
67
+
68
+ MIT
@@ -1,3 +1,3 @@
1
1
  module CreditCardField
2
- VERSION = "1.0"
2
+ VERSION = "1.2"
3
3
  end
@@ -1,25 +1,42 @@
1
1
  module CreditCardTypeField
2
2
  module ViewHelper
3
3
 
4
- def credit_card_type_field(method, options = {})
5
- options[:card_number_field_name] ||= 'credit_card_no'
6
- field_name = "#{@object_name}\\\\[#{options[:card_number_field_name]}\\\\]"
7
- options[:accept_types] ||= %w(visa master american_express diners_club)
8
- html = '<ul class="credit-card-type clearfix">'.html_safe
9
- options[:accept_types].each {|type| html << "<li class=\"icon #{type} #{'active' if self.object.try(method) == type}\">#{type.camelize}</li>".html_safe }
10
- html << %Q(<li class="icon not_valid #{'active' unless self.object.try(method)}">Invalid Card</li>
11
- <li class="hint not_valid"><strong>Not a Valid Credit Card Number</strong></li>
12
- </ul>).html_safe
13
- html << hidden_field(method, rel: 'credit-card-type')
14
- html << %Q(
15
- <script>
16
- $('input[rel=credit-card-type]').closest('form').find('input[name=#{field_name}]').keyup(CreditCardField.keyup);
17
- </script>
18
- ).html_safe
4
+ module FormHelper
5
+ def credit_card_type_field(method, options = {})
6
+ options[:card_number_field_name] ||= 'credit_card_no'
7
+ field_name = "#{@object_name}\\\\[#{options[:card_number_field_name]}\\\\]"
8
+ options[:accept_types] ||= %w(visa master american_express diners_club)
9
+ html = '<ul class="credit-card-type clearfix">'.html_safe
10
+ options[:accept_types].each {|type| html << "<li class=\"icon #{type} #{'active' if self.object.try(method) == type}\">#{type.camelize}</li>".html_safe }
11
+ html << %Q(<li class="icon not_valid #{'active' unless self.object.try(method)}">Invalid Card</li>
12
+ <li class="hint not_valid"><strong>Not a Valid Credit Card Number</strong></li>
13
+ </ul>).html_safe
14
+ html << hidden_field(method, rel: 'credit-card-type')
15
+ html << %Q(
16
+ <script>
17
+ $('input[rel=credit-card-type]').closest('form').find('input[name=#{field_name}]').keyup(CreditCardField.keyup);
18
+ </script>
19
+ ).html_safe
20
+ end
19
21
  end
20
22
 
21
- def credit_card_type_field_tag(object_name, method, options = {})
22
-
23
+ module FormTagHelper
24
+ def credit_card_type_field_tag(name, value = nil, options = {})
25
+ options[:card_number_field_name] ||= 'credit_card_no'
26
+ field_name = options[:card_number_field_name]
27
+ options[:accept_types] ||= %w(visa master american_express diners_club)
28
+ html = '<ul class="credit-card-type clearfix">'.html_safe
29
+ options[:accept_types].each {|type| html << "<li class=\"icon #{type} #{'active' if value == type}\">#{type.camelize}</li>".html_safe }
30
+ html << %Q(<li class="icon not_valid">Invalid Card</li>
31
+ <li class="hint not_valid"><strong>Not a Valid Credit Card Number</strong></li>
32
+ </ul>).html_safe
33
+ html << hidden_field_tag(name, value, rel: 'credit-card-type')
34
+ html << %Q(
35
+ <script>
36
+ $('input[rel=credit-card-type]').closest('form').find('input[name=#{field_name}]').keyup(CreditCardField.keyup);
37
+ </script>
38
+ ).html_safe
39
+ end
23
40
  end
24
41
 
25
42
  end
@@ -7,13 +7,14 @@ module CreditCardField
7
7
  ActiveSupport.on_load(:action_view) do
8
8
  require "credit_card_type_field/view_helper"
9
9
  class ActionView::Helpers::FormBuilder
10
- include CreditCardTypeField::ViewHelper
10
+ include CreditCardTypeField::ViewHelper::FormHelper
11
11
  end
12
+ ActionView::Base.send :include, CreditCardTypeField::ViewHelper::FormTagHelper
12
13
 
13
14
  begin
14
15
  require 'simple_form'
15
16
  class SimpleForm::FormBuilder
16
- include CreditCardTypeField::ViewHelper
17
+ include CreditCardTypeField::ViewHelper::FormHelper
17
18
  end
18
19
  rescue LoadError
19
20
  end
@@ -6,4 +6,9 @@
6
6
  <%= form_for @credit_card, html: {id: 'credit-card-form2'} do |f| %>
7
7
  <%= f.text_field :card_number, id: 'card-no-2' %>
8
8
  <%= f.credit_card_type_field :card_type, card_number_field_name: 'card_number' %>
9
+ <% end %>
10
+
11
+ <%= form_tag '', id: 'credit-card-form3' do %>
12
+ <%= text_field_tag 'credit_card_no', '', id: 'card-no-3' %>
13
+ <%= credit_card_type_field_tag('credit_card_type') %>
9
14
  <% end %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: credit_card_type_field
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.0'
4
+ version: '1.2'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-15 00:00:00.000000000 Z
12
+ date: 2013-01-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -173,7 +173,6 @@ files:
173
173
  - spec/dummy/db/schema.rb
174
174
  - spec/dummy/db/test.sqlite3
175
175
  - spec/dummy/log/development.log
176
- - spec/dummy/log/test.log
177
176
  - spec/dummy/public/404.html
178
177
  - spec/dummy/public/422.html
179
178
  - spec/dummy/public/500.html
@@ -181,7 +180,6 @@ files:
181
180
  - spec/dummy/script/rails
182
181
  - spec/dummy/test/functional/projects_controller_test.rb
183
182
  - spec/dummy/test/unit/helpers/projects_helper_test.rb
184
- - spec/form_spec.rb
185
183
  - spec/spec_helper.rb
186
184
  - vendor/assets/images/credit_cards/american_express_32.png
187
185
  - vendor/assets/images/credit_cards/credit_card_bg.png
@@ -249,7 +247,6 @@ test_files:
249
247
  - spec/dummy/db/schema.rb
250
248
  - spec/dummy/db/test.sqlite3
251
249
  - spec/dummy/log/development.log
252
- - spec/dummy/log/test.log
253
250
  - spec/dummy/public/404.html
254
251
  - spec/dummy/public/422.html
255
252
  - spec/dummy/public/500.html
@@ -257,5 +254,4 @@ test_files:
257
254
  - spec/dummy/script/rails
258
255
  - spec/dummy/test/functional/projects_controller_test.rb
259
256
  - spec/dummy/test/unit/helpers/projects_helper_test.rb
260
- - spec/form_spec.rb
261
257
  - spec/spec_helper.rb
@@ -1,990 +0,0 @@
1
- Connecting to database specified by database.yml
2
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-09 23:30:35 +1030
3
- Processing by CreditCardsController#new as HTML
4
- Rendered credit_cards/new.html.erb within layouts/application (24.1ms)
5
- Completed 500 Internal Server Error in 40ms
6
- Connecting to database specified by database.yml
7
- Connecting to database specified by database.yml
8
- Connecting to database specified by database.yml
9
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-09 23:50:13 +1030
10
- Processing by CreditCardsController#new as HTML
11
- Rendered credit_cards/new.html.erb within layouts/application (3.9ms)
12
- Completed 200 OK in 43ms (Views: 38.6ms | ActiveRecord: 0.0ms)
13
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-09 23:50:13 +1030
14
- Compiled jquery.js (1ms) (pid 2308)
15
- Served asset /jquery.js - 200 OK (11ms)
16
- Connecting to database specified by database.yml
17
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-10 00:03:15 +1030
18
- Processing by CreditCardsController#new as HTML
19
- Rendered credit_cards/new.html.erb within layouts/application (3.8ms)
20
- Completed 200 OK in 42ms (Views: 37.1ms | ActiveRecord: 0.0ms)
21
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-10 00:03:15 +1030
22
- Served asset /jquery.js - 200 OK (3ms)
23
- Connecting to database specified by database.yml
24
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-10 00:03:40 +1030
25
- Processing by CreditCardsController#new as HTML
26
- Rendered credit_cards/new.html.erb within layouts/application (4.4ms)
27
- Completed 200 OK in 20ms (Views: 14.9ms | ActiveRecord: 0.0ms)
28
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-10 00:03:40 +1030
29
- Served asset /jquery.js - 200 OK (3ms)
30
- Connecting to database specified by database.yml
31
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-10 00:04:29 +1030
32
- Processing by CreditCardsController#new as HTML
33
- Rendered credit_cards/new.html.erb within layouts/application (3.9ms)
34
- Completed 200 OK in 42ms (Views: 37.1ms | ActiveRecord: 0.0ms)
35
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-10 00:04:29 +1030
36
- Served asset /jquery.js - 200 OK (3ms)
37
- Connecting to database specified by database.yml
38
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-10 00:09:48 +1030
39
- Processing by CreditCardsController#new as HTML
40
- Rendered credit_cards/new.html.erb within layouts/application (3.7ms)
41
- Completed 200 OK in 42ms (Views: 37.4ms | ActiveRecord: 0.0ms)
42
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-10 00:09:48 +1030
43
- Served asset /jquery.js - 200 OK (5ms)
44
- Connecting to database specified by database.yml
45
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-10 00:13:27 +1030
46
- Processing by CreditCardsController#new as HTML
47
- Rendered credit_cards/new.html.erb within layouts/application (3.9ms)
48
- Completed 200 OK in 42ms (Views: 37.1ms | ActiveRecord: 0.0ms)
49
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-10 00:13:27 +1030
50
- Served asset /jquery.js - 200 OK (3ms)
51
- Connecting to database specified by database.yml
52
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-10 00:14:11 +1030
53
- Processing by CreditCardsController#new as HTML
54
- Rendered credit_cards/new.html.erb within layouts/application (3.8ms)
55
- Completed 200 OK in 42ms (Views: 37.6ms | ActiveRecord: 0.0ms)
56
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-10 00:14:11 +1030
57
- Served asset /jquery.js - 200 OK (3ms)
58
- Connecting to database specified by database.yml
59
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-10 00:14:25 +1030
60
- Processing by CreditCardsController#new as HTML
61
- Rendered credit_cards/new.html.erb within layouts/application (4.0ms)
62
- Completed 200 OK in 44ms (Views: 38.9ms | ActiveRecord: 0.0ms)
63
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-10 00:14:25 +1030
64
- Served asset /jquery.js - 200 OK (5ms)
65
- Connecting to database specified by database.yml
66
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 11:55:18 +1030
67
- Processing by CreditCardsController#new as HTML
68
- Rendered credit_cards/new.html.erb within layouts/application (5.6ms)
69
- Completed 200 OK in 26ms (Views: 20.9ms | ActiveRecord: 0.0ms)
70
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 11:55:18 +1030
71
- Served asset /jquery.js - 200 OK (14ms)
72
- Connecting to database specified by database.yml
73
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 12:09:57 +1030
74
- Processing by CreditCardsController#new as HTML
75
- Rendered credit_cards/new.html.erb within layouts/application (3.8ms)
76
- Completed 200 OK in 42ms (Views: 37.0ms | ActiveRecord: 0.0ms)
77
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 12:09:57 +1030
78
- Served asset /jquery.js - 200 OK (3ms)
79
- Connecting to database specified by database.yml
80
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 12:11:29 +1030
81
- Processing by CreditCardsController#new as HTML
82
- Rendered credit_cards/new.html.erb within layouts/application (3.9ms)
83
- Completed 200 OK in 17ms (Views: 13.2ms | ActiveRecord: 0.0ms)
84
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 12:11:30 +1030
85
- Served asset /jquery.js - 200 OK (3ms)
86
- Connecting to database specified by database.yml
87
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 12:12:52 +1030
88
- Processing by CreditCardsController#new as HTML
89
- Rendered credit_cards/new.html.erb within layouts/application (4.4ms)
90
- Completed 200 OK in 20ms (Views: 14.8ms | ActiveRecord: 0.0ms)
91
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 12:12:52 +1030
92
- Served asset /jquery.js - 200 OK (4ms)
93
- Connecting to database specified by database.yml
94
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 12:13:25 +1030
95
- Processing by CreditCardsController#new as HTML
96
- Rendered credit_cards/new.html.erb within layouts/application (4.3ms)
97
- Completed 200 OK in 19ms (Views: 14.1ms | ActiveRecord: 0.0ms)
98
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 12:13:25 +1030
99
- Served asset /jquery.js - 200 OK (3ms)
100
- Connecting to database specified by database.yml
101
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 12:26:39 +1030
102
- Processing by CreditCardsController#new as HTML
103
- Rendered credit_cards/new.html.erb within layouts/application (4.0ms)
104
- Completed 200 OK in 17ms (Views: 12.7ms | ActiveRecord: 0.0ms)
105
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 12:26:39 +1030
106
- Served asset /jquery.js - 200 OK (3ms)
107
- Connecting to database specified by database.yml
108
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 12:27:11 +1030
109
- Processing by CreditCardsController#new as HTML
110
- Rendered credit_cards/new.html.erb within layouts/application (4.2ms)
111
- Completed 200 OK in 17ms (Views: 12.8ms | ActiveRecord: 0.0ms)
112
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 12:27:11 +1030
113
- Served asset /jquery.js - 200 OK (3ms)
114
- Connecting to database specified by database.yml
115
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 13:46:22 +1030
116
- Processing by CreditCardsController#new as HTML
117
- Rendered credit_cards/new.html.erb within layouts/application (4.3ms)
118
- Completed 200 OK in 19ms (Views: 14.1ms | ActiveRecord: 0.0ms)
119
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 13:46:22 +1030
120
- Served asset /jquery.js - 200 OK (4ms)
121
- Connecting to database specified by database.yml
122
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 13:47:50 +1030
123
- Processing by CreditCardsController#new as HTML
124
- Rendered credit_cards/new.html.erb within layouts/application (4.5ms)
125
- Completed 200 OK in 20ms (Views: 15.1ms | ActiveRecord: 0.0ms)
126
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 13:47:50 +1030
127
- Served asset /jquery.js - 200 OK (3ms)
128
- Connecting to database specified by database.yml
129
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 13:48:09 +1030
130
- Processing by CreditCardsController#new as HTML
131
- Rendered credit_cards/new.html.erb within layouts/application (4.3ms)
132
- Completed 200 OK in 19ms (Views: 14.3ms | ActiveRecord: 0.0ms)
133
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 13:48:09 +1030
134
- Served asset /jquery.js - 200 OK (3ms)
135
- Connecting to database specified by database.yml
136
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 13:50:23 +1030
137
- Processing by CreditCardsController#new as HTML
138
- Rendered credit_cards/new.html.erb within layouts/application (4.2ms)
139
- Completed 200 OK in 19ms (Views: 14.1ms | ActiveRecord: 0.0ms)
140
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 13:50:23 +1030
141
- Served asset /jquery.js - 200 OK (3ms)
142
- Connecting to database specified by database.yml
143
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 13:53:31 +1030
144
- Processing by CreditCardsController#new as HTML
145
- Rendered credit_cards/new.html.erb within layouts/application (4.3ms)
146
- Completed 200 OK in 17ms (Views: 13.0ms | ActiveRecord: 0.0ms)
147
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 13:53:31 +1030
148
- Served asset /jquery.js - 200 OK (3ms)
149
- Connecting to database specified by database.yml
150
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 13:54:28 +1030
151
- Processing by CreditCardsController#new as HTML
152
- Rendered credit_cards/new.html.erb within layouts/application (4.3ms)
153
- Completed 200 OK in 18ms (Views: 13.3ms | ActiveRecord: 0.0ms)
154
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 13:54:28 +1030
155
- Served asset /jquery.js - 200 OK (3ms)
156
- Connecting to database specified by database.yml
157
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 13:56:27 +1030
158
- Processing by CreditCardsController#new as HTML
159
- Rendered credit_cards/new.html.erb within layouts/application (4.4ms)
160
- Completed 200 OK in 19ms (Views: 14.5ms | ActiveRecord: 0.0ms)
161
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 13:56:27 +1030
162
- Served asset /jquery.js - 200 OK (3ms)
163
- Connecting to database specified by database.yml
164
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 13:56:57 +1030
165
- Processing by CreditCardsController#new as HTML
166
- Rendered credit_cards/new.html.erb within layouts/application (4.1ms)
167
- Completed 200 OK in 19ms (Views: 13.9ms | ActiveRecord: 0.0ms)
168
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 13:56:57 +1030
169
- Served asset /jquery.js - 200 OK (3ms)
170
- Connecting to database specified by database.yml
171
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 13:57:47 +1030
172
- Processing by CreditCardsController#new as HTML
173
- Rendered credit_cards/new.html.erb within layouts/application (4.4ms)
174
- Completed 200 OK in 20ms (Views: 14.8ms | ActiveRecord: 0.0ms)
175
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 13:57:47 +1030
176
- Served asset /jquery.js - 200 OK (3ms)
177
- Connecting to database specified by database.yml
178
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 14:17:13 +1030
179
- Processing by CreditCardsController#new as HTML
180
- Rendered credit_cards/new.html.erb within layouts/application (4.3ms)
181
- Completed 200 OK in 19ms (Views: 14.8ms | ActiveRecord: 0.0ms)
182
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 14:17:13 +1030
183
- Served asset /jquery.js - 200 OK (31ms)
184
- Started GET "/assets/credit_card_field.js" for 127.0.0.1 at 2012-12-15 14:17:13 +1030
185
- Compiled credit_card_field.js (0ms) (pid 1539)
186
- Served asset /credit_card_field.js - 200 OK (9ms)
187
- Started GET "/assets/credit_card_field.css" for 127.0.0.1 at 2012-12-15 14:17:13 +1030
188
- Compiled credit_card_field.css (0ms) (pid 1539)
189
- Served asset /credit_card_field.css - 200 OK (6ms)
190
- Connecting to database specified by database.yml
191
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 14:19:09 +1030
192
- Processing by CreditCardsController#new as HTML
193
- Rendered credit_cards/new.html.erb within layouts/application (4.4ms)
194
- Completed 200 OK in 20ms (Views: 15.1ms | ActiveRecord: 0.0ms)
195
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 14:19:09 +1030
196
- Served asset /jquery.js - 200 OK (6ms)
197
- Started GET "/assets/credit_card_field.css" for 127.0.0.1 at 2012-12-15 14:19:09 +1030
198
- Served asset /credit_card_field.css - 200 OK (1ms)
199
- Started GET "/assets/credit_card_field.js" for 127.0.0.1 at 2012-12-15 14:19:09 +1030
200
- Served asset /credit_card_field.js - 200 OK (1ms)
201
- Connecting to database specified by database.yml
202
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 14:19:57 +1030
203
- Processing by CreditCardsController#new as HTML
204
- Rendered credit_cards/new.html.erb within layouts/application (4.5ms)
205
- Completed 200 OK in 20ms (Views: 15.6ms | ActiveRecord: 0.0ms)
206
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 14:19:57 +1030
207
- Served asset /jquery.js - 200 OK (30ms)
208
- Started GET "/assets/credit_card_field.js" for 127.0.0.1 at 2012-12-15 14:19:57 +1030
209
- Served asset /credit_card_field.js - 200 OK (2ms)
210
- Started GET "/assets/credit_card_field.css" for 127.0.0.1 at 2012-12-15 14:19:57 +1030
211
- Served asset /credit_card_field.css - 200 OK (1ms)
212
- Connecting to database specified by database.yml
213
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 14:20:20 +1030
214
- Processing by CreditCardsController#new as HTML
215
- Rendered credit_cards/new.html.erb within layouts/application (4.4ms)
216
- Completed 200 OK in 20ms (Views: 15.4ms | ActiveRecord: 0.0ms)
217
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 14:20:20 +1030
218
- Served asset /jquery.js - 200 OK (30ms)
219
- Started GET "/assets/credit_card_field.css" for 127.0.0.1 at 2012-12-15 14:20:20 +1030
220
- Served asset /credit_card_field.css - 200 OK (1ms)
221
- Started GET "/assets/credit_card_field.js" for 127.0.0.1 at 2012-12-15 14:20:20 +1030
222
- Served asset /credit_card_field.js - 200 OK (1ms)
223
- Connecting to database specified by database.yml
224
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 14:20:37 +1030
225
- Processing by CreditCardsController#new as HTML
226
- Rendered credit_cards/new.html.erb within layouts/application (4.4ms)
227
- Completed 200 OK in 20ms (Views: 15.2ms | ActiveRecord: 0.0ms)
228
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 14:20:37 +1030
229
- Served asset /jquery.js - 200 OK (30ms)
230
- Started GET "/assets/credit_card_field.js" for 127.0.0.1 at 2012-12-15 14:20:37 +1030
231
- Served asset /credit_card_field.js - 200 OK (2ms)
232
- Started GET "/assets/credit_card_field.css" for 127.0.0.1 at 2012-12-15 14:20:37 +1030
233
- Served asset /credit_card_field.css - 200 OK (1ms)
234
- Connecting to database specified by database.yml
235
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 14:26:29 +1030
236
- Processing by CreditCardsController#new as HTML
237
- Rendered credit_cards/new.html.erb within layouts/application (4.6ms)
238
- Completed 200 OK in 20ms (Views: 15.1ms | ActiveRecord: 0.0ms)
239
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 14:26:29 +1030
240
- Served asset /jquery.js - 200 OK (28ms)
241
- Started GET "/assets/credit_card_field.css" for 127.0.0.1 at 2012-12-15 14:26:29 +1030
242
- Served asset /credit_card_field.css - 200 OK (1ms)
243
- Started GET "/assets/credit_card_field.js" for 127.0.0.1 at 2012-12-15 14:26:29 +1030
244
- Served asset /credit_card_field.js - 200 OK (1ms)
245
- Connecting to database specified by database.yml
246
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 14:27:21 +1030
247
- Processing by CreditCardsController#new as HTML
248
- Rendered credit_cards/new.html.erb within layouts/application (4.5ms)
249
- Completed 200 OK in 21ms (Views: 16.0ms | ActiveRecord: 0.0ms)
250
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 14:27:21 +1030
251
- Served asset /jquery.js - 200 OK (30ms)
252
- Started GET "/assets/credit_card_field.js" for 127.0.0.1 at 2012-12-15 14:27:21 +1030
253
- Served asset /credit_card_field.js - 200 OK (1ms)
254
- Started GET "/assets/credit_card_field.css" for 127.0.0.1 at 2012-12-15 14:27:21 +1030
255
- Served asset /credit_card_field.css - 200 OK (1ms)
256
- Connecting to database specified by database.yml
257
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 14:29:11 +1030
258
- Processing by CreditCardsController#new as HTML
259
- Rendered credit_cards/new.html.erb within layouts/application (4.6ms)
260
- Completed 200 OK in 21ms (Views: 16.3ms | ActiveRecord: 0.0ms)
261
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 14:29:11 +1030
262
- Served asset /jquery.js - 200 OK (30ms)
263
- Started GET "/assets/credit_card_field.css" for 127.0.0.1 at 2012-12-15 14:29:11 +1030
264
- Served asset /credit_card_field.css - 200 OK (1ms)
265
- Started GET "/assets/credit_card_field.js" for 127.0.0.1 at 2012-12-15 14:29:11 +1030
266
- Served asset /credit_card_field.js - 200 OK (1ms)
267
- Connecting to database specified by database.yml
268
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 14:29:33 +1030
269
- Processing by CreditCardsController#new as HTML
270
- Rendered credit_cards/new.html.erb within layouts/application (4.4ms)
271
- Completed 200 OK in 21ms (Views: 16.1ms | ActiveRecord: 0.0ms)
272
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 14:29:33 +1030
273
- Served asset /jquery.js - 200 OK (31ms)
274
- Started GET "/assets/credit_card_field.js" for 127.0.0.1 at 2012-12-15 14:29:33 +1030
275
- Served asset /credit_card_field.js - 200 OK (1ms)
276
- Started GET "/assets/credit_card_field.css" for 127.0.0.1 at 2012-12-15 14:29:33 +1030
277
- Served asset /credit_card_field.css - 200 OK (1ms)
278
- Connecting to database specified by database.yml
279
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 14:30:40 +1030
280
- Processing by CreditCardsController#new as HTML
281
- Rendered credit_cards/new.html.erb within layouts/application (4.4ms)
282
- Completed 200 OK in 20ms (Views: 14.9ms | ActiveRecord: 0.0ms)
283
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 14:30:40 +1030
284
- Served asset /jquery.js - 200 OK (31ms)
285
- Started GET "/assets/credit_card_field.js" for 127.0.0.1 at 2012-12-15 14:30:40 +1030
286
- Served asset /credit_card_field.js - 200 OK (2ms)
287
- Started GET "/assets/credit_card_field.css" for 127.0.0.1 at 2012-12-15 14:30:40 +1030
288
- Served asset /credit_card_field.css - 200 OK (1ms)
289
- Connecting to database specified by database.yml
290
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 14:40:49 +1030
291
- Processing by CreditCardsController#new as HTML
292
- Rendered credit_cards/new.html.erb within layouts/application (4.5ms)
293
- Completed 200 OK in 19ms (Views: 14.9ms | ActiveRecord: 0.0ms)
294
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 14:40:49 +1030
295
- Served asset /jquery.js - 200 OK (31ms)
296
- Started GET "/assets/credit_card_field.js" for 127.0.0.1 at 2012-12-15 14:40:49 +1030
297
- Served asset /credit_card_field.js - 200 OK (1ms)
298
- Started GET "/assets/credit_card_field.css" for 127.0.0.1 at 2012-12-15 14:40:49 +1030
299
- Served asset /credit_card_field.css - 200 OK (1ms)
300
- Connecting to database specified by database.yml
301
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 14:41:02 +1030
302
- Processing by CreditCardsController#new as HTML
303
- Rendered credit_cards/new.html.erb within layouts/application (4.4ms)
304
- Completed 200 OK in 20ms (Views: 15.1ms | ActiveRecord: 0.0ms)
305
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 14:41:02 +1030
306
- Served asset /jquery.js - 200 OK (5ms)
307
- Started GET "/assets/credit_card_field.css" for 127.0.0.1 at 2012-12-15 14:41:02 +1030
308
- Served asset /credit_card_field.css - 200 OK (1ms)
309
- Started GET "/assets/credit_card_field.js" for 127.0.0.1 at 2012-12-15 14:41:02 +1030
310
- Served asset /credit_card_field.js - 200 OK (1ms)
311
- Connecting to database specified by database.yml
312
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 14:41:50 +1030
313
- Processing by CreditCardsController#new as HTML
314
- Rendered credit_cards/new.html.erb within layouts/application (3.8ms)
315
- Completed 200 OK in 42ms (Views: 37.0ms | ActiveRecord: 0.0ms)
316
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 14:41:50 +1030
317
- Served asset /jquery.js - 200 OK (6ms)
318
- Started GET "/assets/credit_card_field.js" for 127.0.0.1 at 2012-12-15 14:41:50 +1030
319
- Error compiling asset credit_card_field.js:
320
- LoadError: cannot load such file -- coffee_script
321
- (in /Users/ben/workspace/credit_card_type_field/vendor/assets/javascripts/credit_card_field.js.coffee)
322
- Served asset /credit_card_field.js - 500 Internal Server Error
323
-
324
-
325
- Started GET "/assets/credit_card_field.css" for 127.0.0.1 at 2012-12-15 14:41:50 +1030
326
- Served asset /credit_card_field.css - 200 OK (3ms)
327
- Connecting to database specified by database.yml
328
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 15:02:50 +1030
329
- Processing by CreditCardsController#new as HTML
330
- Rendered credit_cards/new.html.erb within layouts/application (4.2ms)
331
- Completed 200 OK in 43ms (Views: 38.6ms | ActiveRecord: 0.0ms)
332
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 15:02:50 +1030
333
- Served asset /jquery.js - 200 OK (6ms)
334
- Started GET "/assets/credit_card_field.js" for 127.0.0.1 at 2012-12-15 15:02:50 +1030
335
- Served asset /credit_card_field.js - 200 OK (2ms)
336
- Started GET "/assets/credit_card_field.css" for 127.0.0.1 at 2012-12-15 15:02:50 +1030
337
- Served asset /credit_card_field.css - 200 OK (1ms)
338
- Connecting to database specified by database.yml
339
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 15:03:03 +1030
340
- Processing by CreditCardsController#new as HTML
341
- Rendered credit_cards/new.html.erb within layouts/application (4.0ms)
342
- Completed 200 OK in 41ms (Views: 36.5ms | ActiveRecord: 0.0ms)
343
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 15:03:03 +1030
344
- Served asset /jquery.js - 200 OK (6ms)
345
- Started GET "/assets/credit_card_field.js" for 127.0.0.1 at 2012-12-15 15:03:03 +1030
346
- Served asset /credit_card_field.js - 200 OK (1ms)
347
- Started GET "/assets/credit_card_field.css" for 127.0.0.1 at 2012-12-15 15:03:03 +1030
348
- Served asset /credit_card_field.css - 200 OK (2ms)
349
- Connecting to database specified by database.yml
350
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 15:20:14 +1030
351
- Processing by CreditCardsController#new as HTML
352
- Rendered credit_cards/new.html.erb within layouts/application (4.2ms)
353
- Completed 200 OK in 44ms (Views: 39.1ms | ActiveRecord: 0.0ms)
354
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 15:20:14 +1030
355
- Served asset /jquery.js - 200 OK (6ms)
356
- Started GET "/assets/credit_card_field.css" for 127.0.0.1 at 2012-12-15 15:20:14 +1030
357
- Served asset /credit_card_field.css - 200 OK (1ms)
358
- Started GET "/assets/credit_card_field.js" for 127.0.0.1 at 2012-12-15 15:20:14 +1030
359
- Error compiling asset credit_card_field.js:
360
- LoadError: cannot load such file -- coffee_script
361
- (in /Users/ben/workspace/credit_card_type_field/vendor/assets/javascripts/credit_card_field.js.coffee)
362
- Served asset /credit_card_field.js - 500 Internal Server Error
363
-
364
-
365
- Connecting to database specified by database.yml
366
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 15:22:22 +1030
367
- Processing by CreditCardsController#new as HTML
368
- Rendered credit_cards/new.html.erb within layouts/application (4.4ms)
369
- Completed 200 OK in 44ms (Views: 39.0ms | ActiveRecord: 0.0ms)
370
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 15:22:22 +1030
371
- Served asset /jquery.js - 200 OK (7ms)
372
- Started GET "/assets/credit_card_field.js" for 127.0.0.1 at 2012-12-15 15:22:22 +1030
373
- Compiled credit_card_field.js (0ms) (pid 1898)
374
- Served asset /credit_card_field.js - 200 OK (4ms)
375
- Started GET "/assets/credit_card_field.css" for 127.0.0.1 at 2012-12-15 15:22:22 +1030
376
- Served asset /credit_card_field.css - 200 OK (2ms)
377
- Connecting to database specified by database.yml
378
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 15:23:55 +1030
379
- Processing by CreditCardsController#new as HTML
380
- Rendered credit_cards/new.html.erb within layouts/application (4.1ms)
381
- Completed 200 OK in 42ms (Views: 37.2ms | ActiveRecord: 0.0ms)
382
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 15:23:55 +1030
383
- Served asset /jquery.js - 200 OK (7ms)
384
- Started GET "/assets/credit_card_field.css" for 127.0.0.1 at 2012-12-15 15:23:55 +1030
385
- Served asset /credit_card_field.css - 200 OK (1ms)
386
- Started GET "/assets/application.js" for 127.0.0.1 at 2012-12-15 15:23:55 +1030
387
- Error compiling asset application.js:
388
- LoadError: cannot load such file -- coffee_script
389
- (in /Users/ben/workspace/credit_card_type_field/vendor/assets/javascripts/credit_card_field.js.coffee)
390
- Served asset /application.js - 500 Internal Server Error
391
-
392
-
393
- Connecting to database specified by database.yml
394
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 15:24:12 +1030
395
- Processing by CreditCardsController#new as HTML
396
- Rendered credit_cards/new.html.erb within layouts/application (3.9ms)
397
- Completed 200 OK in 43ms (Views: 38.3ms | ActiveRecord: 0.0ms)
398
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 15:24:12 +1030
399
- Served asset /jquery.js - 200 OK (6ms)
400
- Started GET "/assets/application.js" for 127.0.0.1 at 2012-12-15 15:24:12 +1030
401
- Error compiling asset application.js:
402
- LoadError: cannot load such file -- coffee_script
403
- (in /Users/ben/workspace/credit_card_type_field/vendor/assets/javascripts/credit_card_field.js.coffee)
404
- Served asset /application.js - 500 Internal Server Error
405
-
406
-
407
- Started GET "/assets/credit_card_field.css" for 127.0.0.1 at 2012-12-15 15:24:12 +1030
408
- Served asset /credit_card_field.css - 200 OK (2ms)
409
- Connecting to database specified by database.yml
410
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 15:25:32 +1030
411
- Processing by CreditCardsController#new as HTML
412
- Rendered credit_cards/new.html.erb within layouts/application (3.7ms)
413
- Completed 200 OK in 42ms (Views: 37.7ms | ActiveRecord: 0.0ms)
414
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 15:25:32 +1030
415
- Served asset /jquery.js - 200 OK (5ms)
416
- Started GET "/assets/application.js" for 127.0.0.1 at 2012-12-15 15:25:32 +1030
417
- Compiled credit_card_field.js (0ms) (pid 1918)
418
- Compiled application.js (5ms) (pid 1918)
419
- Served asset /application.js - 200 OK (11ms)
420
- Started GET "/assets/credit_card_field.css" for 127.0.0.1 at 2012-12-15 15:25:32 +1030
421
- Served asset /credit_card_field.css - 200 OK (2ms)
422
- Connecting to database specified by database.yml
423
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 15:27:27 +1030
424
- Processing by CreditCardsController#new as HTML
425
- Rendered credit_cards/new.html.erb within layouts/application (4.3ms)
426
- Completed 200 OK in 20ms (Views: 14.7ms | ActiveRecord: 0.0ms)
427
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 15:27:27 +1030
428
- Served asset /jquery.js - 200 OK (6ms)
429
- Started GET "/assets/application.js" for 127.0.0.1 at 2012-12-15 15:27:27 +1030
430
- Compiled credit_card_field.js (195ms) (pid 1934)
431
- Compiled application.js (202ms) (pid 1934)
432
- Served asset /application.js - 200 OK (208ms)
433
- Started GET "/assets/credit_card_field.css" for 127.0.0.1 at 2012-12-15 15:27:28 +1030
434
- Served asset /credit_card_field.css - 200 OK (2ms)
435
- Connecting to database specified by database.yml
436
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 15:27:40 +1030
437
- Processing by CreditCardsController#new as HTML
438
- Rendered credit_cards/new.html.erb within layouts/application (4.3ms)
439
- Completed 200 OK in 20ms (Views: 15.1ms | ActiveRecord: 0.0ms)
440
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 15:27:40 +1030
441
- Served asset /jquery.js - 200 OK (6ms)
442
- Started GET "/assets/credit_card_field.css" for 127.0.0.1 at 2012-12-15 15:27:40 +1030
443
- Served asset /credit_card_field.css - 200 OK (1ms)
444
- Started GET "/assets/application.js" for 127.0.0.1 at 2012-12-15 15:27:40 +1030
445
- Served asset /application.js - 200 OK (2ms)
446
- Connecting to database specified by database.yml
447
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 15:28:04 +1030
448
- Processing by CreditCardsController#new as HTML
449
- Rendered credit_cards/new.html.erb within layouts/application (4.6ms)
450
- Completed 200 OK in 20ms (Views: 15.3ms | ActiveRecord: 0.0ms)
451
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 15:28:04 +1030
452
- Served asset /jquery.js - 200 OK (6ms)
453
- Started GET "/assets/application.js" for 127.0.0.1 at 2012-12-15 15:28:04 +1030
454
- Served asset /application.js - 200 OK (2ms)
455
- Started GET "/assets/credit_card_field.css" for 127.0.0.1 at 2012-12-15 15:28:04 +1030
456
- Served asset /credit_card_field.css - 200 OK (1ms)
457
- Connecting to database specified by database.yml
458
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 15:28:56 +1030
459
- Processing by CreditCardsController#new as HTML
460
- Rendered credit_cards/new.html.erb within layouts/application (4.5ms)
461
- Completed 200 OK in 21ms (Views: 15.9ms | ActiveRecord: 0.0ms)
462
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 15:28:56 +1030
463
- Served asset /jquery.js - 200 OK (5ms)
464
- Started GET "/assets/application.js" for 127.0.0.1 at 2012-12-15 15:28:56 +1030
465
- Compiled credit_card_field.js (132ms) (pid 1951)
466
- Compiled application.js (1ms) (pid 1951)
467
- Served asset /application.js - 200 OK (141ms)
468
- Started GET "/assets/credit_card_field.css" for 127.0.0.1 at 2012-12-15 15:28:56 +1030
469
- Served asset /credit_card_field.css - 200 OK (1ms)
470
- Connecting to database specified by database.yml
471
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 15:30:05 +1030
472
- Processing by CreditCardsController#new as HTML
473
- Rendered credit_cards/new.html.erb within layouts/application (4.6ms)
474
- Completed 200 OK in 21ms (Views: 15.7ms | ActiveRecord: 0.0ms)
475
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 15:30:05 +1030
476
- Served asset /jquery.js - 200 OK (29ms)
477
- Started GET "/assets/application.js" for 127.0.0.1 at 2012-12-15 15:30:05 +1030
478
- Served asset /application.js - 200 OK (2ms)
479
- Started GET "/assets/application.css" for 127.0.0.1 at 2012-12-15 15:30:05 +1030
480
- Error compiling asset application.css:
481
- Sprockets::FileNotFound: couldn't find file '../../../../../vendor/assets/javascripts/credit_card_field'
482
- (in /Users/ben/workspace/credit_card_type_field/spec/dummy/app/assets/stylesheets/application.css:6)
483
- Served asset /application.css - 500 Internal Server Error
484
-
485
-
486
- Connecting to database specified by database.yml
487
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 15:30:28 +1030
488
- Processing by CreditCardsController#new as HTML
489
- Rendered credit_cards/new.html.erb within layouts/application (4.6ms)
490
- Completed 200 OK in 20ms (Views: 15.5ms | ActiveRecord: 0.0ms)
491
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 15:30:28 +1030
492
- Served asset /jquery.js - 200 OK (5ms)
493
- Started GET "/assets/application.js" for 127.0.0.1 at 2012-12-15 15:30:28 +1030
494
- Served asset /application.js - 200 OK (2ms)
495
- Started GET "/assets/application.css" for 127.0.0.1 at 2012-12-15 15:30:28 +1030
496
- Error compiling asset application.css:
497
- Sprockets::FileNotFound: couldn't find file '../../../../../vendor/assets/javascripts/credit_card_field'
498
- (in /Users/ben/workspace/credit_card_type_field/spec/dummy/app/assets/stylesheets/application.css:6)
499
- Served asset /application.css - 500 Internal Server Error
500
-
501
-
502
- Connecting to database specified by database.yml
503
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 15:30:46 +1030
504
- Processing by CreditCardsController#new as HTML
505
- Rendered credit_cards/new.html.erb within layouts/application (4.5ms)
506
- Completed 200 OK in 21ms (Views: 15.8ms | ActiveRecord: 0.0ms)
507
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 15:30:46 +1030
508
- Served asset /jquery.js - 200 OK (6ms)
509
- Started GET "/assets/application.js" for 127.0.0.1 at 2012-12-15 15:30:46 +1030
510
- Served asset /application.js - 200 OK (2ms)
511
- Started GET "/assets/application.css" for 127.0.0.1 at 2012-12-15 15:30:46 +1030
512
- Error compiling asset application.css:
513
- Sprockets::FileNotFound: couldn't find file '../../../../../vendor/assets/javascripts/credit_card_field'
514
- (in /Users/ben/workspace/credit_card_type_field/spec/dummy/app/assets/stylesheets/application.css:6)
515
- Served asset /application.css - 500 Internal Server Error
516
-
517
-
518
- Connecting to database specified by database.yml
519
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 15:31:33 +1030
520
- Processing by CreditCardsController#new as HTML
521
- Rendered credit_cards/new.html.erb within layouts/application (4.3ms)
522
- Completed 200 OK in 19ms (Views: 14.8ms | ActiveRecord: 0.0ms)
523
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 15:31:33 +1030
524
- Served asset /jquery.js - 200 OK (5ms)
525
- Started GET "/assets/application.js" for 127.0.0.1 at 2012-12-15 15:31:33 +1030
526
- Served asset /application.js - 200 OK (2ms)
527
- Started GET "/assets/application.css" for 127.0.0.1 at 2012-12-15 15:31:33 +1030
528
- Error compiling asset application.css:
529
- LoadError: cannot load such file -- sass
530
- (in /Users/ben/workspace/credit_card_type_field/vendor/assets/stylesheets/credit_card_field.css.scss)
531
- Served asset /application.css - 500 Internal Server Error
532
-
533
-
534
- Connecting to database specified by database.yml
535
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 15:32:35 +1030
536
- Processing by CreditCardsController#new as HTML
537
- Rendered credit_cards/new.html.erb within layouts/application (4.3ms)
538
- Completed 200 OK in 44ms (Views: 39.5ms | ActiveRecord: 0.0ms)
539
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 15:32:35 +1030
540
- Served asset /jquery.js - 200 OK (6ms)
541
- Started GET "/assets/application.css" for 127.0.0.1 at 2012-12-15 15:32:35 +1030
542
- Compiled credit_card_field.css (248ms) (pid 1987)
543
- Compiled application.css (254ms) (pid 1987)
544
- Served asset /application.css - 200 OK (261ms)
545
- Started GET "/assets/application.js" for 127.0.0.1 at 2012-12-15 15:32:36 +1030
546
- Served asset /application.js - 200 OK (2ms)
547
- Started GET "/assets/credit_cards/visa_32.png" for 127.0.0.1 at 2012-12-15 15:32:36 +1030
548
- Served asset /credit_cards/visa_32.png - 200 OK (8ms)
549
- Started GET "/assets/credit_cards/mastercard_32.png" for 127.0.0.1 at 2012-12-15 15:32:36 +1030
550
- Served asset /credit_cards/mastercard_32.png - 200 OK (4ms)
551
- Started GET "/assets/credit_cards/not_valid_32.png" for 127.0.0.1 at 2012-12-15 15:32:36 +1030
552
- Served asset /credit_cards/not_valid_32.png - 200 OK (4ms)
553
- Started GET "/assets/credit_cards/american_express_32.png" for 127.0.0.1 at 2012-12-15 15:32:36 +1030
554
- Served asset /credit_cards/american_express_32.png - 200 OK (4ms)
555
- Started GET "/assets/credit_cards/diners_club_32.png" for 127.0.0.1 at 2012-12-15 15:32:36 +1030
556
- Served asset /credit_cards/diners_club_32.png - 200 OK (4ms)
557
- Connecting to database specified by database.yml
558
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 15:33:26 +1030
559
- Processing by CreditCardsController#new as HTML
560
- Rendered credit_cards/new.html.erb within layouts/application (3.8ms)
561
- Completed 200 OK in 42ms (Views: 37.2ms | ActiveRecord: 0.0ms)
562
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 15:33:26 +1030
563
- Served asset /jquery.js - 200 OK (5ms)
564
- Started GET "/assets/application.js" for 127.0.0.1 at 2012-12-15 15:33:26 +1030
565
- Served asset /application.js - 200 OK (2ms)
566
- Started GET "/assets/application.css" for 127.0.0.1 at 2012-12-15 15:33:26 +1030
567
- Served asset /application.css - 200 OK (3ms)
568
- Started GET "/assets/credit_cards/american_express_32.png" for 127.0.0.1 at 2012-12-15 15:33:26 +1030
569
- Served asset /credit_cards/american_express_32.png - 200 OK (1ms)
570
- Started GET "/assets/credit_cards/mastercard_32.png" for 127.0.0.1 at 2012-12-15 15:33:26 +1030
571
- Served asset /credit_cards/mastercard_32.png - 200 OK (1ms)
572
- Started GET "/assets/credit_cards/visa_32.png" for 127.0.0.1 at 2012-12-15 15:33:26 +1030
573
- Served asset /credit_cards/visa_32.png - 200 OK (1ms)
574
- Started GET "/assets/credit_cards/diners_club_32.png" for 127.0.0.1 at 2012-12-15 15:33:26 +1030
575
- Served asset /credit_cards/diners_club_32.png - 200 OK (1ms)
576
- Started GET "/assets/credit_cards/not_valid_32.png" for 127.0.0.1 at 2012-12-15 15:33:26 +1030
577
- Served asset /credit_cards/not_valid_32.png - 200 OK (1ms)
578
- Connecting to database specified by database.yml
579
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 15:38:16 +1030
580
- Processing by CreditCardsController#new as HTML
581
- Rendered credit_cards/new.html.erb within layouts/application (4.1ms)
582
- Completed 200 OK in 18ms (Views: 13.6ms | ActiveRecord: 0.0ms)
583
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 15:38:16 +1030
584
- Served asset /jquery.js - 200 OK (6ms)
585
- Started GET "/assets/application.css" for 127.0.0.1 at 2012-12-15 15:38:16 +1030
586
- Served asset /application.css - 200 OK (2ms)
587
- Started GET "/assets/application.js" for 127.0.0.1 at 2012-12-15 15:38:16 +1030
588
- Served asset /application.js - 200 OK (2ms)
589
- Started GET "/assets/credit_cards/american_express_32.png" for 127.0.0.1 at 2012-12-15 15:38:17 +1030
590
- Served asset /credit_cards/american_express_32.png - 200 OK (1ms)
591
- Started GET "/assets/credit_cards/visa_32.png" for 127.0.0.1 at 2012-12-15 15:38:17 +1030
592
- Served asset /credit_cards/visa_32.png - 200 OK (1ms)
593
- Started GET "/assets/credit_cards/diners_club_32.png" for 127.0.0.1 at 2012-12-15 15:38:17 +1030
594
- Served asset /credit_cards/diners_club_32.png - 200 OK (1ms)
595
- Started GET "/assets/credit_cards/mastercard_32.png" for 127.0.0.1 at 2012-12-15 15:38:17 +1030
596
- Served asset /credit_cards/mastercard_32.png - 200 OK (1ms)
597
- Started GET "/assets/credit_cards/not_valid_32.png" for 127.0.0.1 at 2012-12-15 15:38:17 +1030
598
- Served asset /credit_cards/not_valid_32.png - 200 OK (1ms)
599
- Connecting to database specified by database.yml
600
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 15:38:46 +1030
601
- Processing by CreditCardsController#new as HTML
602
- Rendered credit_cards/new.html.erb within layouts/application (4.1ms)
603
- Completed 200 OK in 18ms (Views: 13.6ms | ActiveRecord: 0.0ms)
604
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 15:38:46 +1030
605
- Served asset /jquery.js - 200 OK (5ms)
606
- Started GET "/assets/application.js" for 127.0.0.1 at 2012-12-15 15:38:46 +1030
607
- Served asset /application.js - 200 OK (2ms)
608
- Started GET "/assets/application.css" for 127.0.0.1 at 2012-12-15 15:38:46 +1030
609
- Served asset /application.css - 200 OK (2ms)
610
- Started GET "/assets/credit_cards/mastercard_32.png" for 127.0.0.1 at 2012-12-15 15:38:46 +1030
611
- Served asset /credit_cards/mastercard_32.png - 200 OK (1ms)
612
- Started GET "/assets/credit_cards/american_express_32.png" for 127.0.0.1 at 2012-12-15 15:38:46 +1030
613
- Served asset /credit_cards/american_express_32.png - 200 OK (1ms)
614
- Started GET "/assets/credit_cards/visa_32.png" for 127.0.0.1 at 2012-12-15 15:38:46 +1030
615
- Served asset /credit_cards/visa_32.png - 200 OK (1ms)
616
- Started GET "/assets/credit_cards/diners_club_32.png" for 127.0.0.1 at 2012-12-15 15:38:46 +1030
617
- Served asset /credit_cards/diners_club_32.png - 200 OK (1ms)
618
- Started GET "/assets/credit_cards/not_valid_32.png" for 127.0.0.1 at 2012-12-15 15:38:46 +1030
619
- Served asset /credit_cards/not_valid_32.png - 200 OK (1ms)
620
- Connecting to database specified by database.yml
621
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 15:41:40 +1030
622
- Processing by CreditCardsController#new as HTML
623
- Rendered credit_cards/new.html.erb within layouts/application (5.2ms)
624
- Completed 200 OK in 19ms (Views: 15.2ms | ActiveRecord: 0.0ms)
625
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 15:41:40 +1030
626
- Served asset /jquery.js - 200 OK (6ms)
627
- Started GET "/assets/application.js" for 127.0.0.1 at 2012-12-15 15:41:40 +1030
628
- Served asset /application.js - 200 OK (2ms)
629
- Started GET "/assets/application.css" for 127.0.0.1 at 2012-12-15 15:41:40 +1030
630
- Served asset /application.css - 200 OK (2ms)
631
- Started GET "/assets/credit_cards/mastercard_32.png" for 127.0.0.1 at 2012-12-15 15:41:40 +1030
632
- Served asset /credit_cards/mastercard_32.png - 200 OK (1ms)
633
- Started GET "/assets/credit_cards/american_express_32.png" for 127.0.0.1 at 2012-12-15 15:41:40 +1030
634
- Served asset /credit_cards/american_express_32.png - 200 OK (2ms)
635
- Started GET "/assets/credit_cards/diners_club_32.png" for 127.0.0.1 at 2012-12-15 15:41:40 +1030
636
- Served asset /credit_cards/diners_club_32.png - 200 OK (1ms)
637
- Started GET "/assets/credit_cards/visa_32.png" for 127.0.0.1 at 2012-12-15 15:41:40 +1030
638
- Served asset /credit_cards/visa_32.png - 200 OK (1ms)
639
- Started GET "/assets/credit_cards/not_valid_32.png" for 127.0.0.1 at 2012-12-15 15:41:40 +1030
640
- Served asset /credit_cards/not_valid_32.png - 200 OK (1ms)
641
- Connecting to database specified by database.yml
642
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 15:42:41 +1030
643
- Processing by CreditCardsController#new as HTML
644
- Rendered credit_cards/new.html.erb within layouts/application (3.8ms)
645
- Completed 200 OK in 41ms (Views: 36.8ms | ActiveRecord: 0.0ms)
646
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 15:42:41 +1030
647
- Served asset /jquery.js - 200 OK (6ms)
648
- Started GET "/assets/application.js" for 127.0.0.1 at 2012-12-15 15:42:41 +1030
649
- Served asset /application.js - 200 OK (2ms)
650
- Started GET "/assets/application.css" for 127.0.0.1 at 2012-12-15 15:42:41 +1030
651
- Served asset /application.css - 200 OK (2ms)
652
- Started GET "/assets/credit_cards/american_express_32.png" for 127.0.0.1 at 2012-12-15 15:42:41 +1030
653
- Served asset /credit_cards/american_express_32.png - 200 OK (1ms)
654
- Started GET "/assets/credit_cards/mastercard_32.png" for 127.0.0.1 at 2012-12-15 15:42:41 +1030
655
- Served asset /credit_cards/mastercard_32.png - 200 OK (1ms)
656
- Started GET "/assets/credit_cards/visa_32.png" for 127.0.0.1 at 2012-12-15 15:42:41 +1030
657
- Served asset /credit_cards/visa_32.png - 200 OK (1ms)
658
- Started GET "/assets/credit_cards/diners_club_32.png" for 127.0.0.1 at 2012-12-15 15:42:41 +1030
659
- Served asset /credit_cards/diners_club_32.png - 200 OK (1ms)
660
- Started GET "/assets/credit_cards/not_valid_32.png" for 127.0.0.1 at 2012-12-15 15:42:41 +1030
661
- Served asset /credit_cards/not_valid_32.png - 200 OK (1ms)
662
- Connecting to database specified by database.yml
663
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 15:44:40 +1030
664
- Processing by CreditCardsController#new as HTML
665
- Rendered credit_cards/new.html.erb within layouts/application (3.8ms)
666
- Completed 200 OK in 41ms (Views: 36.8ms | ActiveRecord: 0.0ms)
667
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 15:44:40 +1030
668
- Served asset /jquery.js - 200 OK (6ms)
669
- Started GET "/assets/application.js" for 127.0.0.1 at 2012-12-15 15:44:40 +1030
670
- Served asset /application.js - 200 OK (2ms)
671
- Started GET "/assets/application.css" for 127.0.0.1 at 2012-12-15 15:44:40 +1030
672
- Served asset /application.css - 200 OK (2ms)
673
- Started GET "/assets/credit_cards/mastercard_32.png" for 127.0.0.1 at 2012-12-15 15:44:40 +1030
674
- Served asset /credit_cards/mastercard_32.png - 200 OK (1ms)
675
- Started GET "/assets/credit_cards/visa_32.png" for 127.0.0.1 at 2012-12-15 15:44:40 +1030
676
- Served asset /credit_cards/visa_32.png - 200 OK (2ms)
677
- Started GET "/assets/credit_cards/american_express_32.png" for 127.0.0.1 at 2012-12-15 15:44:40 +1030
678
- Served asset /credit_cards/american_express_32.png - 200 OK (1ms)
679
- Started GET "/assets/credit_cards/not_valid_32.png" for 127.0.0.1 at 2012-12-15 15:44:40 +1030
680
- Served asset /credit_cards/not_valid_32.png - 200 OK (1ms)
681
- Started GET "/assets/credit_cards/diners_club_32.png" for 127.0.0.1 at 2012-12-15 15:44:40 +1030
682
- Served asset /credit_cards/diners_club_32.png - 200 OK (2ms)
683
- Connecting to database specified by database.yml
684
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 15:49:04 +1030
685
- Processing by CreditCardsController#new as HTML
686
- Rendered credit_cards/new.html.erb within layouts/application (4.2ms)
687
- Completed 200 OK in 42ms (Views: 37.4ms | ActiveRecord: 0.0ms)
688
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 15:49:04 +1030
689
- Served asset /jquery.js - 200 OK (6ms)
690
- Started GET "/assets/application.css" for 127.0.0.1 at 2012-12-15 15:49:04 +1030
691
- Served asset /application.css - 200 OK (2ms)
692
- Started GET "/assets/application.js" for 127.0.0.1 at 2012-12-15 15:49:04 +1030
693
- Served asset /application.js - 200 OK (2ms)
694
- Started GET "/assets/credit_cards/visa_32.png" for 127.0.0.1 at 2012-12-15 15:49:04 +1030
695
- Served asset /credit_cards/visa_32.png - 200 OK (2ms)
696
- Started GET "/assets/credit_cards/american_express_32.png" for 127.0.0.1 at 2012-12-15 15:49:04 +1030
697
- Served asset /credit_cards/american_express_32.png - 200 OK (1ms)
698
- Started GET "/assets/credit_cards/mastercard_32.png" for 127.0.0.1 at 2012-12-15 15:49:04 +1030
699
- Served asset /credit_cards/mastercard_32.png - 200 OK (1ms)
700
- Started GET "/assets/credit_cards/not_valid_32.png" for 127.0.0.1 at 2012-12-15 15:49:04 +1030
701
- Served asset /credit_cards/not_valid_32.png - 200 OK (1ms)
702
- Started GET "/assets/credit_cards/diners_club_32.png" for 127.0.0.1 at 2012-12-15 15:49:04 +1030
703
- Served asset /credit_cards/diners_club_32.png - 200 OK (1ms)
704
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 15:49:08 +1030
705
- Processing by CreditCardsController#new as HTML
706
- Rendered credit_cards/new.html.erb within layouts/application (0.9ms)
707
- Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)
708
- Connecting to database specified by database.yml
709
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 15:49:56 +1030
710
- Processing by CreditCardsController#new as HTML
711
- Rendered credit_cards/new.html.erb within layouts/application (4.3ms)
712
- Completed 200 OK in 43ms (Views: 38.4ms | ActiveRecord: 0.0ms)
713
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 15:49:56 +1030
714
- Served asset /jquery.js - 200 OK (6ms)
715
- Started GET "/assets/application.js" for 127.0.0.1 at 2012-12-15 15:49:56 +1030
716
- Served asset /application.js - 200 OK (2ms)
717
- Started GET "/assets/application.css" for 127.0.0.1 at 2012-12-15 15:49:56 +1030
718
- Served asset /application.css - 200 OK (2ms)
719
- Started GET "/assets/credit_cards/mastercard_32.png" for 127.0.0.1 at 2012-12-15 15:49:56 +1030
720
- Served asset /credit_cards/mastercard_32.png - 200 OK (2ms)
721
- Started GET "/assets/credit_cards/american_express_32.png" for 127.0.0.1 at 2012-12-15 15:49:56 +1030
722
- Served asset /credit_cards/american_express_32.png - 200 OK (1ms)
723
- Started GET "/assets/credit_cards/not_valid_32.png" for 127.0.0.1 at 2012-12-15 15:49:56 +1030
724
- Served asset /credit_cards/not_valid_32.png - 200 OK (1ms)
725
- Started GET "/assets/credit_cards/visa_32.png" for 127.0.0.1 at 2012-12-15 15:49:56 +1030
726
- Served asset /credit_cards/visa_32.png - 200 OK (1ms)
727
- Started GET "/assets/credit_cards/diners_club_32.png" for 127.0.0.1 at 2012-12-15 15:49:56 +1030
728
- Served asset /credit_cards/diners_club_32.png - 200 OK (1ms)
729
- Connecting to database specified by database.yml
730
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 15:51:12 +1030
731
- Processing by CreditCardsController#new as HTML
732
- Rendered credit_cards/new.html.erb within layouts/application (4.2ms)
733
- Completed 200 OK in 44ms (Views: 38.8ms | ActiveRecord: 0.0ms)
734
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 15:51:12 +1030
735
- Served asset /jquery.js - 200 OK (6ms)
736
- Started GET "/assets/application.js" for 127.0.0.1 at 2012-12-15 15:51:12 +1030
737
- Served asset /application.js - 200 OK (2ms)
738
- Started GET "/assets/application.css" for 127.0.0.1 at 2012-12-15 15:51:12 +1030
739
- Served asset /application.css - 200 OK (2ms)
740
- Started GET "/assets/credit_cards/visa_32.png" for 127.0.0.1 at 2012-12-15 15:51:12 +1030
741
- Served asset /credit_cards/visa_32.png - 200 OK (1ms)
742
- Started GET "/assets/credit_cards/mastercard_32.png" for 127.0.0.1 at 2012-12-15 15:51:12 +1030
743
- Served asset /credit_cards/mastercard_32.png - 200 OK (3ms)
744
- Started GET "/assets/credit_cards/american_express_32.png" for 127.0.0.1 at 2012-12-15 15:51:12 +1030
745
- Served asset /credit_cards/american_express_32.png - 200 OK (1ms)
746
- Started GET "/assets/credit_cards/diners_club_32.png" for 127.0.0.1 at 2012-12-15 15:51:12 +1030
747
- Served asset /credit_cards/diners_club_32.png - 200 OK (1ms)
748
- Started GET "/assets/credit_cards/not_valid_32.png" for 127.0.0.1 at 2012-12-15 15:51:12 +1030
749
- Served asset /credit_cards/not_valid_32.png - 200 OK (1ms)
750
- Connecting to database specified by database.yml
751
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 15:51:38 +1030
752
- Processing by CreditCardsController#new as HTML
753
- Rendered credit_cards/new.html.erb within layouts/application (4.2ms)
754
- Completed 200 OK in 43ms (Views: 38.8ms | ActiveRecord: 0.0ms)
755
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 15:51:38 +1030
756
- Served asset /jquery.js - 200 OK (6ms)
757
- Started GET "/assets/application.js" for 127.0.0.1 at 2012-12-15 15:51:38 +1030
758
- Served asset /application.js - 200 OK (2ms)
759
- Started GET "/assets/application.css" for 127.0.0.1 at 2012-12-15 15:51:38 +1030
760
- Served asset /application.css - 200 OK (2ms)
761
- Started GET "/assets/credit_cards/mastercard_32.png" for 127.0.0.1 at 2012-12-15 15:51:38 +1030
762
- Served asset /credit_cards/mastercard_32.png - 200 OK (1ms)
763
- Started GET "/assets/credit_cards/visa_32.png" for 127.0.0.1 at 2012-12-15 15:51:38 +1030
764
- Served asset /credit_cards/visa_32.png - 200 OK (1ms)
765
- Started GET "/assets/credit_cards/american_express_32.png" for 127.0.0.1 at 2012-12-15 15:51:38 +1030
766
- Served asset /credit_cards/american_express_32.png - 200 OK (1ms)
767
- Started GET "/assets/credit_cards/diners_club_32.png" for 127.0.0.1 at 2012-12-15 15:51:38 +1030
768
- Served asset /credit_cards/diners_club_32.png - 200 OK (2ms)
769
- Started GET "/assets/credit_cards/not_valid_32.png" for 127.0.0.1 at 2012-12-15 15:51:38 +1030
770
- Served asset /credit_cards/not_valid_32.png - 200 OK (1ms)
771
- Connecting to database specified by database.yml
772
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 15:52:21 +1030
773
- Processing by CreditCardsController#new as HTML
774
- Rendered credit_cards/new.html.erb within layouts/application (4.2ms)
775
- Completed 200 OK in 44ms (Views: 38.8ms | ActiveRecord: 0.0ms)
776
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 15:52:21 +1030
777
- Served asset /jquery.js - 200 OK (7ms)
778
- Started GET "/assets/application.css" for 127.0.0.1 at 2012-12-15 15:52:21 +1030
779
- Served asset /application.css - 200 OK (3ms)
780
- Started GET "/assets/application.js" for 127.0.0.1 at 2012-12-15 15:52:21 +1030
781
- Served asset /application.js - 200 OK (2ms)
782
- Started GET "/assets/credit_cards/american_express_32.png" for 127.0.0.1 at 2012-12-15 15:52:21 +1030
783
- Served asset /credit_cards/american_express_32.png - 200 OK (1ms)
784
- Started GET "/assets/credit_cards/visa_32.png" for 127.0.0.1 at 2012-12-15 15:52:21 +1030
785
- Served asset /credit_cards/visa_32.png - 200 OK (1ms)
786
- Started GET "/assets/credit_cards/mastercard_32.png" for 127.0.0.1 at 2012-12-15 15:52:21 +1030
787
- Served asset /credit_cards/mastercard_32.png - 200 OK (1ms)
788
- Started GET "/assets/credit_cards/diners_club_32.png" for 127.0.0.1 at 2012-12-15 15:52:21 +1030
789
- Served asset /credit_cards/diners_club_32.png - 200 OK (1ms)
790
- Started GET "/assets/credit_cards/not_valid_32.png" for 127.0.0.1 at 2012-12-15 15:52:21 +1030
791
- Served asset /credit_cards/not_valid_32.png - 200 OK (1ms)
792
- Connecting to database specified by database.yml
793
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 16:11:48 +1030
794
- Processing by CreditCardsController#new as HTML
795
- Rendered credit_cards/new.html.erb within layouts/application (5.5ms)
796
- Completed 200 OK in 45ms (Views: 40.1ms | ActiveRecord: 0.0ms)
797
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 16:11:48 +1030
798
- Served asset /jquery.js - 200 OK (6ms)
799
- Started GET "/assets/application.css" for 127.0.0.1 at 2012-12-15 16:11:48 +1030
800
- Served asset /application.css - 200 OK (2ms)
801
- Started GET "/assets/application.js" for 127.0.0.1 at 2012-12-15 16:11:48 +1030
802
- Served asset /application.js - 200 OK (2ms)
803
- Started GET "/assets/credit_cards/american_express_32.png" for 127.0.0.1 at 2012-12-15 16:11:48 +1030
804
- Served asset /credit_cards/american_express_32.png - 200 OK (3ms)
805
- Started GET "/assets/credit_cards/visa_32.png" for 127.0.0.1 at 2012-12-15 16:11:48 +1030
806
- Served asset /credit_cards/visa_32.png - 200 OK (1ms)
807
- Started GET "/assets/credit_cards/diners_club_32.png" for 127.0.0.1 at 2012-12-15 16:11:48 +1030
808
- Served asset /credit_cards/diners_club_32.png - 200 OK (2ms)
809
- Started GET "/assets/credit_cards/mastercard_32.png" for 127.0.0.1 at 2012-12-15 16:11:48 +1030
810
- Served asset /credit_cards/mastercard_32.png - 200 OK (1ms)
811
- Started GET "/assets/credit_cards/not_valid_32.png" for 127.0.0.1 at 2012-12-15 16:11:48 +1030
812
- Served asset /credit_cards/not_valid_32.png - 200 OK (1ms)
813
- Connecting to database specified by database.yml
814
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 16:12:10 +1030
815
- Processing by CreditCardsController#new as HTML
816
- Rendered credit_cards/new.html.erb within layouts/application (4.5ms)
817
- Completed 200 OK in 42ms (Views: 37.1ms | ActiveRecord: 0.0ms)
818
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 16:12:10 +1030
819
- Served asset /jquery.js - 200 OK (6ms)
820
- Started GET "/assets/application.js" for 127.0.0.1 at 2012-12-15 16:12:10 +1030
821
- Served asset /application.js - 200 OK (2ms)
822
- Started GET "/assets/application.css" for 127.0.0.1 at 2012-12-15 16:12:10 +1030
823
- Served asset /application.css - 200 OK (2ms)
824
- Started GET "/assets/credit_cards/american_express_32.png" for 127.0.0.1 at 2012-12-15 16:12:11 +1030
825
- Served asset /credit_cards/american_express_32.png - 200 OK (2ms)
826
- Started GET "/assets/credit_cards/visa_32.png" for 127.0.0.1 at 2012-12-15 16:12:11 +1030
827
- Served asset /credit_cards/visa_32.png - 200 OK (1ms)
828
- Started GET "/assets/credit_cards/mastercard_32.png" for 127.0.0.1 at 2012-12-15 16:12:11 +1030
829
- Served asset /credit_cards/mastercard_32.png - 200 OK (1ms)
830
- Started GET "/assets/credit_cards/not_valid_32.png" for 127.0.0.1 at 2012-12-15 16:12:11 +1030
831
- Served asset /credit_cards/not_valid_32.png - 200 OK (1ms)
832
- Started GET "/assets/credit_cards/diners_club_32.png" for 127.0.0.1 at 2012-12-15 16:12:11 +1030
833
- Served asset /credit_cards/diners_club_32.png - 200 OK (1ms)
834
- Connecting to database specified by database.yml
835
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 16:12:35 +1030
836
- Processing by CreditCardsController#new as HTML
837
- Rendered credit_cards/new.html.erb within layouts/application (5.0ms)
838
- Completed 200 OK in 43ms (Views: 38.2ms | ActiveRecord: 0.0ms)
839
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 16:12:35 +1030
840
- Served asset /jquery.js - 200 OK (6ms)
841
- Started GET "/assets/application.js" for 127.0.0.1 at 2012-12-15 16:12:35 +1030
842
- Served asset /application.js - 200 OK (2ms)
843
- Started GET "/assets/application.css" for 127.0.0.1 at 2012-12-15 16:12:35 +1030
844
- Served asset /application.css - 200 OK (2ms)
845
- Started GET "/assets/credit_cards/mastercard_32.png" for 127.0.0.1 at 2012-12-15 16:12:35 +1030
846
- Served asset /credit_cards/mastercard_32.png - 200 OK (3ms)
847
- Started GET "/assets/credit_cards/visa_32.png" for 127.0.0.1 at 2012-12-15 16:12:35 +1030
848
- Served asset /credit_cards/visa_32.png - 200 OK (1ms)
849
- Started GET "/assets/credit_cards/american_express_32.png" for 127.0.0.1 at 2012-12-15 16:12:35 +1030
850
- Served asset /credit_cards/american_express_32.png - 200 OK (1ms)
851
- Started GET "/assets/credit_cards/diners_club_32.png" for 127.0.0.1 at 2012-12-15 16:12:35 +1030
852
- Served asset /credit_cards/diners_club_32.png - 200 OK (1ms)
853
- Started GET "/assets/credit_cards/not_valid_32.png" for 127.0.0.1 at 2012-12-15 16:12:35 +1030
854
- Served asset /credit_cards/not_valid_32.png - 200 OK (1ms)
855
- Connecting to database specified by database.yml
856
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 16:14:47 +1030
857
- Processing by CreditCardsController#new as HTML
858
- Rendered credit_cards/new.html.erb within layouts/application (3.9ms)
859
- Completed 200 OK in 39ms (Views: 35.3ms | ActiveRecord: 0.0ms)
860
- Connecting to database specified by database.yml
861
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 16:15:03 +1030
862
- Processing by CreditCardsController#new as HTML
863
- Rendered credit_cards/new.html.erb within layouts/application (4.2ms)
864
- Completed 200 OK in 17ms (Views: 13.5ms | ActiveRecord: 0.0ms)
865
- Connecting to database specified by database.yml
866
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 16:15:18 +1030
867
- Processing by CreditCardsController#new as HTML
868
- Rendered credit_cards/new.html.erb within layouts/application (5.2ms)
869
- Completed 200 OK in 45ms (Views: 40.1ms | ActiveRecord: 0.0ms)
870
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 16:15:18 +1030
871
- Served asset /jquery.js - 200 OK (6ms)
872
- Started GET "/assets/application.js" for 127.0.0.1 at 2012-12-15 16:15:18 +1030
873
- Served asset /application.js - 200 OK (2ms)
874
- Started GET "/assets/application.css" for 127.0.0.1 at 2012-12-15 16:15:18 +1030
875
- Served asset /application.css - 200 OK (2ms)
876
- Started GET "/assets/credit_cards/visa_32.png" for 127.0.0.1 at 2012-12-15 16:15:18 +1030
877
- Served asset /credit_cards/visa_32.png - 200 OK (2ms)
878
- Started GET "/assets/credit_cards/mastercard_32.png" for 127.0.0.1 at 2012-12-15 16:15:18 +1030
879
- Served asset /credit_cards/mastercard_32.png - 200 OK (1ms)
880
- Started GET "/assets/credit_cards/american_express_32.png" for 127.0.0.1 at 2012-12-15 16:15:18 +1030
881
- Served asset /credit_cards/american_express_32.png - 200 OK (1ms)
882
- Started GET "/assets/credit_cards/diners_club_32.png" for 127.0.0.1 at 2012-12-15 16:15:18 +1030
883
- Served asset /credit_cards/diners_club_32.png - 200 OK (1ms)
884
- Started GET "/assets/credit_cards/not_valid_32.png" for 127.0.0.1 at 2012-12-15 16:15:18 +1030
885
- Served asset /credit_cards/not_valid_32.png - 200 OK (1ms)
886
- Connecting to database specified by database.yml
887
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 16:15:59 +1030
888
- Processing by CreditCardsController#new as HTML
889
- Rendered credit_cards/new.html.erb within layouts/application (4.8ms)
890
- Completed 200 OK in 44ms (Views: 39.3ms | ActiveRecord: 0.0ms)
891
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 16:15:59 +1030
892
- Served asset /jquery.js - 200 OK (6ms)
893
- Started GET "/assets/application.js" for 127.0.0.1 at 2012-12-15 16:15:59 +1030
894
- Served asset /application.js - 200 OK (2ms)
895
- Started GET "/assets/application.css" for 127.0.0.1 at 2012-12-15 16:15:59 +1030
896
- Served asset /application.css - 200 OK (2ms)
897
- Started GET "/assets/credit_cards/visa_32.png" for 127.0.0.1 at 2012-12-15 16:15:59 +1030
898
- Served asset /credit_cards/visa_32.png - 200 OK (3ms)
899
- Started GET "/assets/credit_cards/american_express_32.png" for 127.0.0.1 at 2012-12-15 16:15:59 +1030
900
- Served asset /credit_cards/american_express_32.png - 200 OK (2ms)
901
- Started GET "/assets/credit_cards/mastercard_32.png" for 127.0.0.1 at 2012-12-15 16:15:59 +1030
902
- Served asset /credit_cards/mastercard_32.png - 200 OK (1ms)
903
- Started GET "/assets/credit_cards/not_valid_32.png" for 127.0.0.1 at 2012-12-15 16:15:59 +1030
904
- Served asset /credit_cards/not_valid_32.png - 200 OK (1ms)
905
- Started GET "/assets/credit_cards/diners_club_32.png" for 127.0.0.1 at 2012-12-15 16:15:59 +1030
906
- Served asset /credit_cards/diners_club_32.png - 200 OK (1ms)
907
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 16:15:59 +1030
908
- Processing by CreditCardsController#new as HTML
909
- Rendered credit_cards/new.html.erb within layouts/application (1.6ms)
910
- Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
911
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 16:16:06 +1030
912
- Processing by CreditCardsController#new as HTML
913
- Rendered credit_cards/new.html.erb within layouts/application (1.5ms)
914
- Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
915
- Connecting to database specified by database.yml
916
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 16:16:51 +1030
917
- Processing by CreditCardsController#new as HTML
918
- Rendered credit_cards/new.html.erb within layouts/application (4.0ms)
919
- Completed 200 OK in 16ms (Views: 12.6ms | ActiveRecord: 0.0ms)
920
- Connecting to database specified by database.yml
921
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 16:17:20 +1030
922
- Processing by CreditCardsController#new as HTML
923
- Rendered credit_cards/new.html.erb within layouts/application (5.2ms)
924
- Completed 200 OK in 44ms (Views: 39.1ms | ActiveRecord: 0.0ms)
925
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 16:17:20 +1030
926
- Served asset /jquery.js - 200 OK (6ms)
927
- Started GET "/assets/application.js" for 127.0.0.1 at 2012-12-15 16:17:20 +1030
928
- Served asset /application.js - 200 OK (3ms)
929
- Started GET "/assets/application.css" for 127.0.0.1 at 2012-12-15 16:17:20 +1030
930
- Served asset /application.css - 200 OK (2ms)
931
- Started GET "/assets/credit_cards/visa_32.png" for 127.0.0.1 at 2012-12-15 16:17:20 +1030
932
- Served asset /credit_cards/visa_32.png - 200 OK (2ms)
933
- Started GET "/assets/credit_cards/american_express_32.png" for 127.0.0.1 at 2012-12-15 16:17:20 +1030
934
- Served asset /credit_cards/american_express_32.png - 200 OK (1ms)
935
- Started GET "/assets/credit_cards/mastercard_32.png" for 127.0.0.1 at 2012-12-15 16:17:20 +1030
936
- Served asset /credit_cards/mastercard_32.png - 200 OK (2ms)
937
- Started GET "/assets/credit_cards/not_valid_32.png" for 127.0.0.1 at 2012-12-15 16:17:20 +1030
938
- Served asset /credit_cards/not_valid_32.png - 200 OK (1ms)
939
- Started GET "/assets/credit_cards/diners_club_32.png" for 127.0.0.1 at 2012-12-15 16:17:20 +1030
940
- Served asset /credit_cards/diners_club_32.png - 200 OK (1ms)
941
- Connecting to database specified by database.yml
942
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 16:18:01 +1030
943
- Processing by CreditCardsController#new as HTML
944
- Rendered credit_cards/new.html.erb within layouts/application (4.6ms)
945
- Completed 200 OK in 42ms (Views: 37.7ms | ActiveRecord: 0.0ms)
946
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 16:18:01 +1030
947
- Served asset /jquery.js - 200 OK (6ms)
948
- Started GET "/assets/application.js" for 127.0.0.1 at 2012-12-15 16:18:01 +1030
949
- Served asset /application.js - 200 OK (2ms)
950
- Started GET "/assets/application.css" for 127.0.0.1 at 2012-12-15 16:18:01 +1030
951
- Served asset /application.css - 200 OK (2ms)
952
- Started GET "/assets/credit_cards/american_express_32.png" for 127.0.0.1 at 2012-12-15 16:18:01 +1030
953
- Served asset /credit_cards/american_express_32.png - 200 OK (2ms)
954
- Started GET "/assets/credit_cards/mastercard_32.png" for 127.0.0.1 at 2012-12-15 16:18:01 +1030
955
- Served asset /credit_cards/mastercard_32.png - 200 OK (1ms)
956
- Started GET "/assets/credit_cards/visa_32.png" for 127.0.0.1 at 2012-12-15 16:18:01 +1030
957
- Served asset /credit_cards/visa_32.png - 200 OK (1ms)
958
- Started GET "/assets/credit_cards/diners_club_32.png" for 127.0.0.1 at 2012-12-15 16:18:01 +1030
959
- Served asset /credit_cards/diners_club_32.png - 200 OK (1ms)
960
- Started GET "/assets/credit_cards/not_valid_32.png" for 127.0.0.1 at 2012-12-15 16:18:01 +1030
961
- Served asset /credit_cards/not_valid_32.png - 200 OK (1ms)
962
- Connecting to database specified by database.yml
963
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 16:18:24 +1030
964
- Processing by CreditCardsController#new as HTML
965
- Rendered credit_cards/new.html.erb within layouts/application (5.2ms)
966
- Completed 200 OK in 44ms (Views: 39.5ms | ActiveRecord: 0.0ms)
967
- Started GET "/assets/jquery.js" for 127.0.0.1 at 2012-12-15 16:18:24 +1030
968
- Served asset /jquery.js - 200 OK (6ms)
969
- Started GET "/assets/application.css" for 127.0.0.1 at 2012-12-15 16:18:24 +1030
970
- Served asset /application.css - 200 OK (2ms)
971
- Started GET "/assets/application.js" for 127.0.0.1 at 2012-12-15 16:18:24 +1030
972
- Served asset /application.js - 200 OK (2ms)
973
- Started GET "/assets/credit_cards/visa_32.png" for 127.0.0.1 at 2012-12-15 16:18:24 +1030
974
- Served asset /credit_cards/visa_32.png - 200 OK (2ms)
975
- Started GET "/assets/credit_cards/american_express_32.png" for 127.0.0.1 at 2012-12-15 16:18:24 +1030
976
- Served asset /credit_cards/american_express_32.png - 200 OK (1ms)
977
- Started GET "/assets/credit_cards/mastercard_32.png" for 127.0.0.1 at 2012-12-15 16:18:24 +1030
978
- Served asset /credit_cards/mastercard_32.png - 200 OK (1ms)
979
- Started GET "/assets/credit_cards/diners_club_32.png" for 127.0.0.1 at 2012-12-15 16:18:24 +1030
980
- Served asset /credit_cards/diners_club_32.png - 200 OK (1ms)
981
- Started GET "/assets/credit_cards/not_valid_32.png" for 127.0.0.1 at 2012-12-15 16:18:24 +1030
982
- Served asset /credit_cards/not_valid_32.png - 200 OK (1ms)
983
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 16:18:25 +1030
984
- Processing by CreditCardsController#new as HTML
985
- Rendered credit_cards/new.html.erb within layouts/application (1.5ms)
986
- Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
987
- Started GET "/credit_cards/new" for 127.0.0.1 at 2012-12-15 16:18:31 +1030
988
- Processing by CreditCardsController#new as HTML
989
- Rendered credit_cards/new.html.erb within layouts/application (1.5ms)
990
- Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
data/spec/form_spec.rb DELETED
@@ -1,33 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe 'FormBuilder' do
4
- include Capybara::DSL
5
-
6
- describe 'should hightlight VISA card' do
7
- it 'default setting', :js => true do
8
- visit '/credit_cards/new'
9
- page.should_not have_css('#credit-card-form1 li.visa.active')
10
- page.should have_css('#credit-card-form1 li.not_valid.active')
11
- fill_in 'card-no-1', with: '4239540005113352'
12
- page.should have_css('#credit-card-form1 li.visa.active')
13
- page.should_not have_css('#credit-card-form1 li.master.active')
14
- page.should_not have_css('#credit-card-form1 li.not_valid.active')
15
-
16
- fill_in 'card-no-2', with: '4239540005113352'
17
- page.should have_css('#credit-card-form2 li.visa.active')
18
- page.should_not have_css('#credit-card-form2 li.master.active')
19
- page.should_not have_css('#credit-card-form2 li.not_valid.active')
20
- end
21
-
22
- end
23
-
24
- it 'should hightlight not valid card', :js => true do
25
- visit '/credit_cards/new'
26
- fill_in 'card-no-1', with: '123456789'
27
- page.should have_css('#credit-card-form1 li.not_valid.active')
28
- end
29
-
30
-
31
-
32
- end
33
-