forgeos_commerce_front 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. data/COPYING +339 -0
  2. data/COPYING.LESSER +165 -0
  3. data/Gemfile +2 -0
  4. data/LICENSE +2 -0
  5. data/README.textile +28 -0
  6. data/app/assets/images/commerce_front/cart/calulate.png +0 -0
  7. data/app/assets/images/commerce_front/cart/cart.png +0 -0
  8. data/app/assets/images/commerce_front/cart/change_quantity.png +0 -0
  9. data/app/assets/images/commerce_front/cart/delete.png +0 -0
  10. data/app/assets/images/commerce_front/cart/reduction.png +0 -0
  11. data/app/assets/images/commerce_front/cart/steps_left.png +0 -0
  12. data/app/assets/images/commerce_front/cart/steps_right.png +0 -0
  13. data/app/assets/images/commerce_front/product.jpg +0 -0
  14. data/app/assets/javascripts/commerce_front/functions.js +10 -0
  15. data/app/assets/javascripts/commerce_front/init.js +4 -0
  16. data/app/assets/javascripts/commerce_front/jquery.jnotify.min.js +21 -0
  17. data/app/assets/stylesheets/commerce_front/_cart.css.sass +97 -0
  18. data/app/assets/stylesheets/commerce_front/_common.css.sass +13 -0
  19. data/app/assets/stylesheets/commerce_front/_forms.css.sass +15 -0
  20. data/app/assets/stylesheets/commerce_front/_jnotify.css.sass +65 -0
  21. data/app/assets/stylesheets/commerce_front/style.css.sass +4 -0
  22. data/app/controllers/addresses_controller.rb +71 -0
  23. data/app/controllers/application_controller.rb +21 -0
  24. data/app/controllers/cart_controller.rb +144 -0
  25. data/app/controllers/newsletters_controller.rb +20 -0
  26. data/app/controllers/order_controller.rb +413 -0
  27. data/app/controllers/orders_controller.rb +32 -0
  28. data/app/controllers/person_sessions_controller.rb +23 -0
  29. data/app/controllers/users_controller.rb +164 -0
  30. data/app/helpers/application_helper.rb +73 -0
  31. data/app/helpers/cart_helper.rb +25 -0
  32. data/app/helpers/order_helper.rb +59 -0
  33. data/app/models/address.rb +18 -0
  34. data/app/models/notifier.rb +88 -0
  35. data/app/models/order.rb +13 -0
  36. data/app/models/user.rb +16 -0
  37. data/app/models/user_address.rb +15 -0
  38. data/app/views/addresses/_address_form.html.haml +18 -0
  39. data/app/views/addresses/_multiple_address_form.html.haml +27 -0
  40. data/app/views/cart/_free_products.html.haml +3 -0
  41. data/app/views/cart/_tbody.html.haml +25 -0
  42. data/app/views/cart/_total.html.haml +46 -0
  43. data/app/views/cart/index.html.haml +32 -0
  44. data/app/views/notifier/newsletter.html.haml +2 -0
  45. data/app/views/notifier/reset_password.html.haml +9 -0
  46. data/app/views/notifier/validation_user_account.html.haml +9 -0
  47. data/app/views/notifier/waiting_for_cheque_notification.html.haml +2 -0
  48. data/app/views/order/_form_address.html.haml +44 -0
  49. data/app/views/order/_tbody.html.haml +21 -0
  50. data/app/views/order/_total.html.haml +50 -0
  51. data/app/views/order/cheque_payment.html.haml +1 -0
  52. data/app/views/order/create.html.haml +76 -0
  53. data/app/views/order/deliveries.html.haml +28 -0
  54. data/app/views/order/new.html.haml +26 -0
  55. data/app/views/order/so_colissimo.html.haml +8 -0
  56. data/app/views/orders/index.html.haml +34 -0
  57. data/app/views/person_sessions/_form.html.haml +23 -0
  58. data/app/views/person_sessions/new.html.haml +1 -0
  59. data/app/views/person_sessions/new_reset_password.html.haml +7 -0
  60. data/app/views/users/_edit_form.html.haml +61 -0
  61. data/app/views/users/_form_create.html.haml +27 -0
  62. data/app/views/users/_form_quick_create.html.haml +16 -0
  63. data/app/views/users/_login_or_new.html.haml +10 -0
  64. data/app/views/users/forgotten_password.html.haml +12 -0
  65. data/app/views/users/new.html.haml +1 -0
  66. data/app/views/users/new_password.html.haml +10 -0
  67. data/app/views/users/show.html.haml +1 -0
  68. data/config/commerce.example.yml +27 -0
  69. data/config/initializers/commerce_front.rb +6 -0
  70. data/config/locales/fr.yml +85 -0
  71. data/config/routes.rb +17 -0
  72. data/db/migrate/20110311134232_add_form_attributes_to_addresses.rb +9 -0
  73. data/lib/field_error_proc_changer.rb +19 -0
  74. data/lib/forgeos/commerce_front.rb +6 -0
  75. data/lib/forgeos/commerce_front/engine.rb +10 -0
  76. data/lib/forgeos/commerce_front/version.rb +5 -0
  77. data/lib/forgeos_commerce_front.rb +1 -0
  78. data/lib/tasks/install.rake +13 -0
  79. data/recipes/deploy.rb +6 -0
  80. data/test/dummy/Rakefile +7 -0
  81. data/test/dummy/app/assets/javascripts/application.js +9 -0
  82. data/test/dummy/app/assets/stylesheets/application.css +7 -0
  83. data/test/dummy/app/controllers/application_controller.rb +3 -0
  84. data/test/dummy/app/helpers/application_helper.rb +2 -0
  85. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  86. data/test/dummy/config.ru +4 -0
  87. data/test/dummy/config/application.rb +42 -0
  88. data/test/dummy/config/boot.rb +10 -0
  89. data/test/dummy/config/database.yml +25 -0
  90. data/test/dummy/config/environment.rb +5 -0
  91. data/test/dummy/config/environments/development.rb +27 -0
  92. data/test/dummy/config/environments/production.rb +51 -0
  93. data/test/dummy/config/environments/test.rb +39 -0
  94. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  95. data/test/dummy/config/initializers/inflections.rb +10 -0
  96. data/test/dummy/config/initializers/mime_types.rb +5 -0
  97. data/test/dummy/config/initializers/secret_token.rb +7 -0
  98. data/test/dummy/config/initializers/session_store.rb +8 -0
  99. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  100. data/test/dummy/config/locales/en.yml +5 -0
  101. data/test/dummy/config/routes.rb +58 -0
  102. data/test/dummy/log/development.log +0 -0
  103. data/test/dummy/public/404.html +26 -0
  104. data/test/dummy/public/422.html +26 -0
  105. data/test/dummy/public/500.html +26 -0
  106. data/test/dummy/public/favicon.ico +0 -0
  107. data/test/dummy/script/rails +6 -0
  108. data/test/forgeos_commerce_front_test.rb +7 -0
  109. data/test/test_helper.rb +10 -0
  110. metadata +197 -0
@@ -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,26 @@
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
+ <p>We've been notified about this issue and we'll take a look at it shortly.</p>
24
+ </div>
25
+ </body>
26
+ </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,7 @@
1
+ require 'test_helper'
2
+
3
+ class ForgeosCommerceFrontTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, Forgeos::CommerceFront
6
+ end
7
+ end
@@ -0,0 +1,10 @@
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 }
metadata ADDED
@@ -0,0 +1,197 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: forgeos_commerce_front
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.9.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Cyril LEPAGNOT
9
+ - Jean Charles Lefrancois
10
+ - Sebastien Deloor
11
+ - Garry Ysenbaert
12
+ autorequire:
13
+ bindir: bin
14
+ cert_chain: []
15
+ date: 2011-10-20 00:00:00.000000000Z
16
+ dependencies:
17
+ - !ruby/object:Gem::Dependency
18
+ name: forgeos_commerce
19
+ requirement: &13187120 !ruby/object:Gem::Requirement
20
+ none: false
21
+ requirements:
22
+ - - =
23
+ - !ruby/object:Gem::Version
24
+ version: 1.9.0
25
+ type: :runtime
26
+ prerelease: false
27
+ version_requirements: *13187120
28
+ description: Forgeos Commerce Front provide a configurable eCommerce website
29
+ email: dev@webpulser.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - app/controllers/cart_controller.rb
35
+ - app/controllers/order_controller.rb
36
+ - app/controllers/addresses_controller.rb
37
+ - app/controllers/person_sessions_controller.rb
38
+ - app/controllers/users_controller.rb
39
+ - app/controllers/orders_controller.rb
40
+ - app/controllers/newsletters_controller.rb
41
+ - app/controllers/application_controller.rb
42
+ - app/assets/javascripts/commerce_front/init.js
43
+ - app/assets/javascripts/commerce_front/jquery.jnotify.min.js
44
+ - app/assets/javascripts/commerce_front/functions.js
45
+ - app/assets/images/commerce_front/cart/reduction.png
46
+ - app/assets/images/commerce_front/cart/calulate.png
47
+ - app/assets/images/commerce_front/cart/steps_right.png
48
+ - app/assets/images/commerce_front/cart/cart.png
49
+ - app/assets/images/commerce_front/cart/delete.png
50
+ - app/assets/images/commerce_front/cart/change_quantity.png
51
+ - app/assets/images/commerce_front/cart/steps_left.png
52
+ - app/assets/images/commerce_front/product.jpg
53
+ - app/assets/stylesheets/commerce_front/_forms.css.sass
54
+ - app/assets/stylesheets/commerce_front/style.css.sass
55
+ - app/assets/stylesheets/commerce_front/_jnotify.css.sass
56
+ - app/assets/stylesheets/commerce_front/_cart.css.sass
57
+ - app/assets/stylesheets/commerce_front/_common.css.sass
58
+ - app/models/user_address.rb
59
+ - app/models/order.rb
60
+ - app/models/user.rb
61
+ - app/models/address.rb
62
+ - app/models/notifier.rb
63
+ - app/helpers/cart_helper.rb
64
+ - app/helpers/order_helper.rb
65
+ - app/helpers/application_helper.rb
66
+ - app/views/users/new_password.html.haml
67
+ - app/views/users/_login_or_new.html.haml
68
+ - app/views/users/forgotten_password.html.haml
69
+ - app/views/users/new.html.haml
70
+ - app/views/users/show.html.haml
71
+ - app/views/users/_form_create.html.haml
72
+ - app/views/users/_edit_form.html.haml
73
+ - app/views/users/_form_quick_create.html.haml
74
+ - app/views/cart/_free_products.html.haml
75
+ - app/views/cart/index.html.haml
76
+ - app/views/cart/_total.html.haml
77
+ - app/views/cart/_tbody.html.haml
78
+ - app/views/addresses/_multiple_address_form.html.haml
79
+ - app/views/addresses/_address_form.html.haml
80
+ - app/views/orders/index.html.haml
81
+ - app/views/notifier/reset_password.html.haml
82
+ - app/views/notifier/newsletter.html.haml
83
+ - app/views/notifier/validation_user_account.html.haml
84
+ - app/views/notifier/waiting_for_cheque_notification.html.haml
85
+ - app/views/person_sessions/new.html.haml
86
+ - app/views/person_sessions/_form.html.haml
87
+ - app/views/person_sessions/new_reset_password.html.haml
88
+ - app/views/order/create.html.haml
89
+ - app/views/order/_form_address.html.haml
90
+ - app/views/order/new.html.haml
91
+ - app/views/order/cheque_payment.html.haml
92
+ - app/views/order/so_colissimo.html.haml
93
+ - app/views/order/_total.html.haml
94
+ - app/views/order/_tbody.html.haml
95
+ - app/views/order/deliveries.html.haml
96
+ - lib/forgeos_commerce_front.rb
97
+ - lib/forgeos/commerce_front/engine.rb
98
+ - lib/forgeos/commerce_front/version.rb
99
+ - lib/forgeos/commerce_front.rb
100
+ - lib/tasks/install.rake
101
+ - lib/field_error_proc_changer.rb
102
+ - config/locales/fr.yml
103
+ - config/commerce.example.yml
104
+ - config/routes.rb
105
+ - config/initializers/commerce_front.rb
106
+ - db/migrate/20110311134232_add_form_attributes_to_addresses.rb
107
+ - recipes/deploy.rb
108
+ - README.textile
109
+ - LICENSE
110
+ - COPYING.LESSER
111
+ - COPYING
112
+ - Gemfile
113
+ - test/test_helper.rb
114
+ - test/dummy/script/rails
115
+ - test/dummy/app/controllers/application_controller.rb
116
+ - test/dummy/app/assets/javascripts/application.js
117
+ - test/dummy/app/assets/stylesheets/application.css
118
+ - test/dummy/app/helpers/application_helper.rb
119
+ - test/dummy/app/views/layouts/application.html.erb
120
+ - test/dummy/log/development.log
121
+ - test/dummy/config/locales/en.yml
122
+ - test/dummy/config/boot.rb
123
+ - test/dummy/config/application.rb
124
+ - test/dummy/config/database.yml
125
+ - test/dummy/config/environment.rb
126
+ - test/dummy/config/routes.rb
127
+ - test/dummy/config/initializers/mime_types.rb
128
+ - test/dummy/config/initializers/inflections.rb
129
+ - test/dummy/config/initializers/backtrace_silencers.rb
130
+ - test/dummy/config/initializers/secret_token.rb
131
+ - test/dummy/config/initializers/wrap_parameters.rb
132
+ - test/dummy/config/initializers/session_store.rb
133
+ - test/dummy/config/environments/development.rb
134
+ - test/dummy/config/environments/production.rb
135
+ - test/dummy/config/environments/test.rb
136
+ - test/dummy/public/422.html
137
+ - test/dummy/public/404.html
138
+ - test/dummy/public/500.html
139
+ - test/dummy/public/favicon.ico
140
+ - test/dummy/Rakefile
141
+ - test/dummy/config.ru
142
+ - test/forgeos_commerce_front_test.rb
143
+ homepage: http://github.com/webpulser/forgeos_commerce_front
144
+ licenses: []
145
+ post_install_message:
146
+ rdoc_options: []
147
+ require_paths:
148
+ - lib
149
+ required_ruby_version: !ruby/object:Gem::Requirement
150
+ none: false
151
+ requirements:
152
+ - - ! '>='
153
+ - !ruby/object:Gem::Version
154
+ version: '0'
155
+ required_rubygems_version: !ruby/object:Gem::Requirement
156
+ none: false
157
+ requirements:
158
+ - - ! '>='
159
+ - !ruby/object:Gem::Version
160
+ version: '0'
161
+ requirements: []
162
+ rubyforge_project:
163
+ rubygems_version: 1.8.6
164
+ signing_key:
165
+ specification_version: 3
166
+ summary: CommerceFront of Forgeos plugins suite
167
+ test_files:
168
+ - test/test_helper.rb
169
+ - test/dummy/script/rails
170
+ - test/dummy/app/controllers/application_controller.rb
171
+ - test/dummy/app/assets/javascripts/application.js
172
+ - test/dummy/app/assets/stylesheets/application.css
173
+ - test/dummy/app/helpers/application_helper.rb
174
+ - test/dummy/app/views/layouts/application.html.erb
175
+ - test/dummy/log/development.log
176
+ - test/dummy/config/locales/en.yml
177
+ - test/dummy/config/boot.rb
178
+ - test/dummy/config/application.rb
179
+ - test/dummy/config/database.yml
180
+ - test/dummy/config/environment.rb
181
+ - test/dummy/config/routes.rb
182
+ - test/dummy/config/initializers/mime_types.rb
183
+ - test/dummy/config/initializers/inflections.rb
184
+ - test/dummy/config/initializers/backtrace_silencers.rb
185
+ - test/dummy/config/initializers/secret_token.rb
186
+ - test/dummy/config/initializers/wrap_parameters.rb
187
+ - test/dummy/config/initializers/session_store.rb
188
+ - test/dummy/config/environments/development.rb
189
+ - test/dummy/config/environments/production.rb
190
+ - test/dummy/config/environments/test.rb
191
+ - test/dummy/public/422.html
192
+ - test/dummy/public/404.html
193
+ - test/dummy/public/500.html
194
+ - test/dummy/public/favicon.ico
195
+ - test/dummy/Rakefile
196
+ - test/dummy/config.ru
197
+ - test/forgeos_commerce_front_test.rb