spree 0.4.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of spree might be problematic. Click here for more details.

Files changed (182) hide show
  1. data/CHANGELOG +35 -0
  2. data/CONTRIBUTORS +2 -1
  3. data/README.markdown +8 -52
  4. data/app/controllers/account_controller.rb +1 -1
  5. data/app/controllers/addresses_controller.rb +5 -1
  6. data/app/controllers/admin/inventory_settings_controller.rb +13 -0
  7. data/app/controllers/admin/option_types_controller.rb +1 -1
  8. data/app/controllers/admin/orders_controller.rb +14 -8
  9. data/app/controllers/admin/products_controller.rb +2 -0
  10. data/app/controllers/admin/variants_controller.rb +7 -0
  11. data/app/controllers/content_controller.rb +5 -0
  12. data/app/controllers/creditcard_payments_controller.rb +2 -2
  13. data/app/controllers/orders_controller.rb +18 -2
  14. data/app/helpers/admin/inventory_settings_helper.rb +5 -0
  15. data/app/helpers/admin/product_properties_helper.rb +10 -2
  16. data/app/helpers/products_helper.rb +2 -2
  17. data/app/models/address.rb +2 -2
  18. data/app/models/app_configuration.rb +1 -0
  19. data/app/models/creditcard_payment.rb +6 -14
  20. data/app/models/order.rb +6 -12
  21. data/app/models/order_filter.rb +1 -0
  22. data/app/models/product.rb +9 -0
  23. data/app/models/product_property.rb +1 -0
  24. data/app/models/property.rb +0 -1
  25. data/app/models/zone.rb +17 -3
  26. data/app/views/account/login.html.erb +2 -14
  27. data/app/views/admin/configurations/index.html.erb +4 -0
  28. data/app/views/admin/inventory_settings/edit.html.erb +18 -0
  29. data/app/views/admin/inventory_settings/show.html.erb +11 -0
  30. data/app/views/admin/orders/_address.html.erb +1 -1
  31. data/app/views/admin/orders/index.html.erb +5 -1
  32. data/app/views/admin/orders/show.html.erb +3 -3
  33. data/app/views/admin/product_properties/_product_property.html.erb +6 -3
  34. data/app/views/admin/products/_form.html.erb +9 -1
  35. data/app/views/admin/prototypes/select.rjs +3 -1
  36. data/app/views/admin/variants/_form.html.erb +6 -0
  37. data/app/views/admin/variants/index.html.erb +7 -1
  38. data/app/views/creditcard_payments/_form_credit_card.html.erb +1 -1
  39. data/app/views/creditcard_payments/new.html.erb +7 -2
  40. data/app/views/products/show.html.erb +8 -2
  41. data/app/views/shared/_login.html.erb +17 -0
  42. data/app/views/shared/_products.html.erb +1 -1
  43. data/app/views/users/_form.html.erb +1 -1
  44. data/app/views/users/new.html.erb +19 -8
  45. data/config/boot.rb +1 -1
  46. data/config/database.yml +7 -3
  47. data/config/environment.rb +16 -2
  48. data/config/routes.rb +4 -0
  49. data/db/migrate/20081016002224_remove_defunct_order_fields.rb +10 -0
  50. data/db/migrate/20081016162924_drop_category_id_from_products.rb +9 -0
  51. data/db/sample/addresses.yml +14 -0
  52. data/db/sample/orders.yml +0 -1
  53. data/lang/ui/de-DE.yml +2 -1
  54. data/lang/ui/en-US.yml +50 -25
  55. data/lang/ui/es-ES.yml +2 -1
  56. data/lang/ui/it-IT.yml +2 -1
  57. data/lang/ui/pl-PL.yml +1 -0
  58. data/lang/ui/pt-BR.yml +5 -2
  59. data/lib/authenticated_system.rb +1 -1
  60. data/lib/generators/extension/extension_generator.rb +1 -0
  61. data/lib/generators/extension/templates/extension.rb +4 -5
  62. data/lib/generators/extension/templates/tasks.rake +12 -0
  63. data/lib/generators/extension_migration/extension_migration_generator.rb +32 -0
  64. data/lib/generators/extension_migration/templates/migration.rb +7 -0
  65. data/lib/spree.rb +2 -2
  66. data/lib/spree/extension.rb +0 -7
  67. data/lib/spree/extension_loader.rb +0 -8
  68. data/lib/tasks/extensions.rake +47 -0
  69. data/public/javascripts/application.js +34 -0
  70. data/public/javascripts/spree-yui.js +2 -2
  71. data/public/stylesheets/spree.css +11 -1
  72. data/spec/fixtures/preferences.yml +14 -6
  73. data/spec/models/address_spec.rb +78 -0
  74. data/spec/models/country_spec.rb +29 -0
  75. data/spec/models/option_type_spec.rb +36 -0
  76. data/spec/models/option_value_spec.rb +39 -0
  77. data/spec/models/product_option_type_spec.rb +38 -0
  78. data/spec/models/product_property_spec.rb +36 -0
  79. data/spec/models/product_spec.rb +109 -32
  80. data/spec/models/property_spec.rb +38 -0
  81. data/spec/models/prototype_spec.rb +35 -0
  82. data/spec/models/state_spec.rb +28 -0
  83. data/spec/models/taxon_spec.rb +38 -0
  84. data/spec/models/taxonomy_spec.rb +37 -0
  85. data/spec/models/variant_spec.rb +73 -12
  86. data/spec/models/zone_spec.rb +35 -15
  87. data/spec/spec_helper.rb +15 -0
  88. data/spec/views/admin/configurations/index.html.erb_spec.rb +29 -0
  89. data/spec/views/admin/mail_settings/show.html.erb_spec.rb +3 -3
  90. data/spec/views/products/index.html.erb_spec.rb +46 -0
  91. data/spec/views/products/show.html.erb_spec.rb +46 -0
  92. data/vendor/extensions/flat_rate_shipping/README.markdown +3 -0
  93. data/vendor/extensions/flat_rate_shipping/Rakefile +120 -0
  94. data/vendor/extensions/flat_rate_shipping/flat_rate_shipping_extension.rb +17 -0
  95. data/vendor/extensions/flat_rate_shipping/lib/flat_rate_shipping_configuration.rb +7 -0
  96. data/vendor/extensions/flat_rate_shipping/lib/spree/flat_rate_shipping/calculator.rb +9 -0
  97. data/vendor/extensions/flat_rate_shipping/lib/spree/flat_rate_shipping/config.rb +22 -0
  98. data/vendor/extensions/flat_rate_shipping/lib/tasks/flat_rate_shipping_extension_tasks.rake +29 -0
  99. data/vendor/extensions/flat_rate_shipping/spec/spec.opts +6 -0
  100. data/vendor/extensions/flat_rate_shipping/spec/spec_helper.rb +37 -0
  101. data/vendor/extensions/localization/localization_extension.rb +1 -6
  102. data/vendor/extensions/payment_gateway/lib/gateway_config.rb +7 -0
  103. data/vendor/extensions/payment_gateway/lib/spree/gateway/config.rb +22 -0
  104. data/vendor/extensions/payment_gateway/lib/spree/payment_gateway.rb +27 -3
  105. data/vendor/extensions/payment_gateway/payment_gateway_extension.rb +0 -4
  106. data/vendor/extensions/shipping/README.markdown +3 -0
  107. data/vendor/extensions/shipping/Rakefile +120 -0
  108. data/vendor/extensions/shipping/app/controllers/admin/shipping_categories_controller.rb +17 -0
  109. data/vendor/extensions/shipping/app/controllers/admin/shipping_methods_controller.rb +21 -0
  110. data/vendor/extensions/shipping/app/controllers/shipments_controller.rb +84 -0
  111. data/vendor/extensions/shipping/app/helpers/admin/shipping_categories_helper.rb +2 -0
  112. data/vendor/extensions/shipping/app/helpers/admin/shipping_methods_helper.rb +2 -0
  113. data/vendor/extensions/shipping/app/helpers/shipments_helper.rb +20 -0
  114. data/vendor/extensions/shipping/app/models/shipment.rb +11 -0
  115. data/vendor/extensions/shipping/app/models/shipping_category.rb +3 -0
  116. data/vendor/extensions/shipping/app/models/shipping_method.rb +12 -0
  117. data/vendor/extensions/shipping/app/views/admin/shipping_categories/_form.html.erb +6 -0
  118. data/vendor/extensions/shipping/app/views/admin/shipping_categories/edit.html.erb +8 -0
  119. data/vendor/extensions/shipping/app/views/admin/shipping_categories/index.html.erb +24 -0
  120. data/vendor/extensions/shipping/app/views/admin/shipping_categories/new.html.erb +10 -0
  121. data/vendor/extensions/shipping/app/views/admin/shipping_methods/_form.html.erb +14 -0
  122. data/vendor/extensions/shipping/app/views/admin/shipping_methods/edit.html.erb +8 -0
  123. data/vendor/extensions/shipping/app/views/admin/shipping_methods/index.html.erb +28 -0
  124. data/vendor/extensions/shipping/app/views/admin/shipping_methods/new.html.erb +10 -0
  125. data/vendor/extensions/shipping/app/views/orders/fatal_shipping.html.erb +6 -0
  126. data/vendor/extensions/shipping/app/views/shipments/_form.html.erb +46 -0
  127. data/vendor/extensions/shipping/app/views/shipments/edit.html.erb +8 -0
  128. data/vendor/extensions/shipping/app/views/shipments/new.html.erb +8 -0
  129. data/vendor/extensions/shipping/db/migrate/20081003211336_create_shipping_methods.rb +14 -0
  130. data/vendor/extensions/shipping/db/migrate/20081003233427_create_shipping_categories.rb +15 -0
  131. data/vendor/extensions/shipping/db/migrate/20081015001711_create_shipments.rb +14 -0
  132. data/vendor/extensions/shipping/db/migrate/20081023134446_add_product_dimensions.rb +19 -0
  133. data/vendor/extensions/shipping/db/sample/shipping_categories.yml +2 -0
  134. data/vendor/extensions/shipping/db/sample/shipping_methods.yml +12 -0
  135. data/vendor/extensions/shipping/db/sample/zone_members.yml +8 -0
  136. data/vendor/extensions/shipping/db/sample/zones.yml +3 -0
  137. data/vendor/extensions/shipping/lang/en-US.yml +9 -0
  138. data/vendor/extensions/shipping/lib/spree/shipping_calculator.rb +37 -0
  139. data/vendor/extensions/shipping/lib/spree/shipping_error.rb +3 -0
  140. data/vendor/extensions/shipping/lib/tasks/shipping_extension_tasks.rake +29 -0
  141. data/vendor/extensions/shipping/shipping_extension.rb +39 -0
  142. data/vendor/extensions/shipping/spec/controllers/admin/shipping_categories_controller_spec.rb +10 -0
  143. data/vendor/extensions/shipping/spec/controllers/admin/shipping_methods_controller_spec.rb +10 -0
  144. data/vendor/extensions/shipping/spec/models/order_spec.rb +98 -0
  145. data/vendor/extensions/shipping/spec/models/shipment_spec.rb +26 -0
  146. data/vendor/extensions/shipping/spec/models/shipping_category_spec.rb +8 -0
  147. data/vendor/extensions/shipping/spec/models/shipping_method_spec.rb +53 -0
  148. data/vendor/extensions/shipping/spec/spec.opts +6 -0
  149. data/vendor/extensions/shipping/spec/spec_helper.rb +37 -0
  150. data/vendor/extensions/tax_calculator/lib/spree/sales_tax_calculator.rb +12 -4
  151. data/vendor/extensions/tax_calculator/spec/controllers/tax_calculator_spec.rb +0 -4
  152. data/vendor/extensions/tax_calculator/spec/models/sales_tax_calculator_spec.rb +14 -14
  153. data/vendor/extensions/tax_calculator/tax_calculator_extension.rb +0 -4
  154. data/vendor/plugins/resource_controller/README.rdoc +38 -6
  155. data/vendor/plugins/resource_controller/Rakefile +7 -20
  156. data/vendor/plugins/resource_controller/TODO +0 -1
  157. data/vendor/plugins/resource_controller/lib/resource_controller/helpers/current_objects.rb +71 -69
  158. data/vendor/plugins/resource_controller/lib/resource_controller/helpers/internal.rb +69 -65
  159. data/vendor/plugins/resource_controller/lib/resource_controller/helpers/nested.rb +62 -57
  160. data/vendor/plugins/resource_controller/lib/resource_controller/helpers/singleton_customizations.rb +50 -46
  161. data/vendor/plugins/resource_controller/lib/resource_controller/helpers/urls.rb +73 -69
  162. data/vendor/plugins/resource_controller/resource_controller.gemspec +4 -3
  163. data/vendor/plugins/resource_controller/test/app/controllers/cms/personnel_controller.rb +2 -0
  164. data/vendor/plugins/resource_controller/test/app/controllers/cms/photos_controller.rb +6 -0
  165. data/vendor/plugins/resource_controller/test/app/models/personnel.rb +3 -0
  166. data/vendor/plugins/resource_controller/test/app/models/photo.rb +1 -0
  167. data/vendor/plugins/resource_controller/test/app/views/cms/photos/edit.rhtml +17 -0
  168. data/vendor/plugins/resource_controller/test/app/views/cms/photos/index.rhtml +20 -0
  169. data/vendor/plugins/resource_controller/test/app/views/cms/photos/new.rhtml +16 -0
  170. data/vendor/plugins/resource_controller/test/app/views/cms/photos/show.rhtml +8 -0
  171. data/vendor/plugins/resource_controller/test/config/database.yml +9 -0
  172. data/vendor/plugins/resource_controller/test/config/environment.rb +1 -18
  173. data/vendor/plugins/resource_controller/test/config/initializers/inflections.rb +14 -0
  174. data/vendor/plugins/resource_controller/test/config/routes.rb +3 -0
  175. data/vendor/plugins/resource_controller/test/db/migrate/013_create_personnel.rb +11 -0
  176. data/vendor/plugins/resource_controller/test/db/migrate/014_add_personnel_id_to_photos.rb +9 -0
  177. data/vendor/plugins/resource_controller/test/test/fixtures/personnel.yml +5 -0
  178. data/vendor/plugins/resource_controller/test/test/functional/cms/photos_controller_test.rb +43 -0
  179. metadata +136 -6
  180. data/app/models/spree/extension_meta.rb +0 -5
  181. data/app/models/variants.rb +0 -2
  182. data/vendor/plugins/resource_controller/lib/resource_controller/version.rb +0 -9
@@ -5,8 +5,8 @@
5
5
  # ENV['RAILS_ENV'] ||= 'production'
6
6
 
7
7
  # Specifies gem version of Rails to use when vendor/rails is not present
8
- SPREE_GEM_VERSION = '0.4.1' unless defined? SPREE_GEM_VERSION
9
- RAILS_GEM_VERSION = "2.1.0" unless defined? RAILS_GEM_VERSION
8
+ SPREE_GEM_VERSION = '0.5.0' unless defined? SPREE_GEM_VERSION
9
+ RAILS_GEM_VERSION = "2.1.2" unless defined? RAILS_GEM_VERSION
10
10
 
11
11
  # Bootstrap the Rails environment, frameworks, and default configuration
12
12
  require File.join(File.dirname(__FILE__), 'boot')
@@ -75,6 +75,20 @@ Spree::Initializer.run do |config|
75
75
  # config.active_record.observers = :cacher, :garbage_collector
76
76
  end
77
77
 
78
+
79
+ # Load extension gems.
80
+ config = Rails::Configuration.new
81
+ Object.subclasses_of(Spree::Extension).each do |extension|
82
+ if extension.respond_to? :require_gems
83
+ extension.require_gems(config)
84
+ end
85
+ end
86
+
87
+ config.gems.each do |gem|
88
+ gem.add_load_paths
89
+ gem.load
90
+ end
91
+
78
92
  # Add new inflection rules using the following format
79
93
  # (all these examples are active by default):
80
94
  # Inflector.inflections do |inflect|
data/config/routes.rb CHANGED
@@ -51,6 +51,7 @@ ActionController::Routing::Routes.draw do |map|
51
51
  admin.resources :properties, :collection => {:filtered => :get}
52
52
  admin.resources :prototypes, :member => {:select => :post}, :collection => {:available => :get}
53
53
  admin.resource :mail_settings
54
+ admin.resource :inventory_settings
54
55
  admin.resources :orders, :member => {:fire => :put, :resend => :post}
55
56
  admin.resources :taxonomies do |taxonomy|
56
57
  taxonomy.resources :taxons
@@ -61,4 +62,7 @@ ActionController::Routing::Routes.draw do |map|
61
62
  map.connect ':controller/:action/:id.:format'
62
63
  map.connect ':controller/:action/:id'
63
64
 
65
+ # a catchall route for "static" content
66
+ map.connect '*path', :controller => 'content', :action => 'show'
67
+
64
68
  end
@@ -0,0 +1,10 @@
1
+ class RemoveDefunctOrderFields < ActiveRecord::Migration
2
+ def self.up
3
+ change_table :orders do |t|
4
+ t.remove :ship_method
5
+ end
6
+ end
7
+
8
+ def self.down
9
+ end
10
+ end
@@ -0,0 +1,9 @@
1
+ class DropCategoryIdFromProducts < ActiveRecord::Migration
2
+ def self.up
3
+ remove_column :products, :category_id
4
+ end
5
+
6
+ def self.down
7
+ add_column :products, :category_id, :integer
8
+ end
9
+ end
@@ -12,6 +12,20 @@ frank_address_<%= i %>:
12
12
  addressable: order_<%= i %>
13
13
  addressable_type: Order
14
14
  <% end %>
15
+ <% 1.upto(30) do |i| %>
16
+ frank_bill_address_<%= i %>:
17
+ firstname: Frank
18
+ lastname: Foo
19
+ address1: 123 Foo St.
20
+ address2: Apt. F
21
+ city: Fooville
22
+ state: new_york
23
+ zipcode: 16804
24
+ country_id: 214
25
+ phone: 614-555-1212
26
+ addressable: visa_<%= i %>
27
+ addressable_type: CreditcardPayment
28
+ <% end %>
15
29
  foo_street:
16
30
  id: 101
17
31
  firstname: joe
data/db/sample/orders.yml CHANGED
@@ -3,7 +3,6 @@ order_<%= i %>:
3
3
  user: frank
4
4
  number: <%= Array.new(9){rand(9)}.join %>
5
5
  state: authorized
6
- ship_method: 1
7
6
  ship_amount: 5.00
8
7
  tax_amount: 2.78
9
8
  item_total: 37.97
data/lang/ui/de-DE.yml CHANGED
@@ -70,6 +70,7 @@ image: Bild
70
70
  images: Bilder
71
71
  inventory_adjustment: Lager Anpassung
72
72
  inventory: Lager
73
+ inventory_setting_description: Inventory Configuration, Backordering, Zero-Stock Display
73
74
  item_description: Artikelbeschreibung
74
75
  item: Artikel
75
76
  item_total: Artikel Gesamt
@@ -204,4 +205,4 @@ order_operation_cancel:
204
205
  order_operation_return:
205
206
  order_operation_ship:
206
207
  order_operation_comp:
207
- order_operation_delete:
208
+ order_operation_delete:
data/lang/ui/en-US.yml CHANGED
@@ -1,25 +1,30 @@
1
1
  abbreviation: Abbreviation
2
2
  account: Account
3
3
  action: Action
4
+ add: Add
4
5
  add_category: Add Category
5
6
  add_option_type: Add Option Type
6
7
  add_option_types: Add Option Types
7
8
  add_product_properties: Add Product Properties
8
- address_information: Address Information
9
9
  add_to_cart: Add To Cart
10
+ address: Address
11
+ address_information: Address Information
10
12
  adjustment: Adjustment
11
13
  administration: Administration
12
14
  amount: Amount
13
15
  are_you_sure_category: Are you sure you want to delete this category?
16
+ are_you_sure_delete: Are you sure you want to delete this record?
14
17
  are_you_sure_delete_image: Are you sure you want to delete this image?
15
18
  are_you_sure_option_type: Are you sure you want to delete this option type?
16
- are_you_sure_delete: Are you sure you want to delete this record?
19
+ authorized: Authorized
17
20
  available_on: Available On
18
21
  back: Back
19
22
  back_to_store: Go Back To Store
20
23
  bill_address: Bill Address
21
24
  billing_address: Billing Address
22
25
  cancel: Cancel
26
+ cancel: cancel
27
+ capture: capture
23
28
  card_code: Card Code
24
29
  card_number: Card Number
25
30
  cart: Cart
@@ -36,12 +41,13 @@ configuration_options: Configuration Options
36
41
  configurations: Configurations
37
42
  confirm: Confirm
38
43
  confirm_password: Password Confirmation
39
- continue_shopping: Continue shopping
40
44
  continue_shopping: Continue Shopping
45
+ continue_shopping: Continue shopping
41
46
  country: Country
42
47
  create: Create
43
48
  create_a_new_account: Create a new account
44
49
  credit_card: Credit Card
50
+ creditcard_payment: Creditcard Payment
45
51
  current: Current
46
52
  customer: Customer
47
53
  date: Date
@@ -56,8 +62,8 @@ editing_option_types: Editing Option Types
56
62
  editing_state: Editing State
57
63
  editing_tax_category: Editing Tax Category
58
64
  editing_user: Editing User
59
- email_address: Email Address
60
65
  email: Email
66
+ email_address: Email Address
61
67
  email_server_settings_description: Set email server settings.
62
68
  empty_cart: Empty Cart
63
69
  error: error
@@ -69,24 +75,27 @@ filename: Filename
69
75
  final_confirmation: Final Confirmation
70
76
  first_name: First Name
71
77
  gateway: Gateway
78
+ gateway_error: Gateway Error
72
79
  gateway_setting_description: Select a payment gateway and configure its settings.
73
80
  hello_user: Hello User
74
81
  image: Image
75
82
  images: Images
76
- inventory_adjustment: Inventory Adjustment
83
+ in_progress: In Progress
77
84
  inventory: Inventory
78
- item_description: Item Description
85
+ inventory_adjustment: Inventory Adjustment
86
+ inventory_setting_description: Inventory Configuration, Backordering, Zero-Stock Display
79
87
  item: Item
88
+ item_description: Item Description
80
89
  item_total: Item Total
81
90
  last_name: Last Name
82
91
  listing_categories: Listing Categories
83
92
  listing_option_types: Listing Option Types
84
93
  listing_orders: Listing Orders
85
94
  listing_reports: Listing Reports
86
- listing_tax_categories: Listing Tax Categories
95
+ listing_tax_cateThe total amount charged to your card will be gories: Listing Tax Categories
87
96
  listing_users: Listing Users
88
- logged_in_as: Logged in as
89
97
  log_in: Log In
98
+ logged_in_as: Logged in as
90
99
  login_name: Login
91
100
  logout: Logout
92
101
  mail_server_settings: Mail Server Settings
@@ -112,22 +121,27 @@ none_available: None Available
112
121
  number: Number
113
122
  on_hand: On Hand
114
123
  operation: Operation
115
- options: Options
116
- option_types: Option Types
117
124
  option_Values: Option Values
118
- order_number: Order #
125
+ option_types: Option Types
126
+ options: Options
127
+ or: or
128
+ order: Order
119
129
  order_confirmation_note:
120
130
  order_date: Order Date
121
131
  order_details: Order Details
132
+ order_email_resent: Order Email Resent
122
133
  order_number: "Order #"
123
- order: Order
134
+ order_number: Order #
135
+ order_operation_authorize: Authorize
124
136
  order_processed_successfully: Your order has been processed successfully
125
- orders: Orders
126
137
  order_total: Order Total
127
- or: or
138
+ order_updated: Order Updated
139
+ order_total_message: The total amount charged to your card will be
140
+ orders: Orders
128
141
  overview: Overview
129
142
  parent_category: Parent Category
130
143
  password: Password
144
+ pay: pay
131
145
  payment: Payment
132
146
  payment_gateway: Payment Gateway
133
147
  phone: Phone
@@ -135,49 +149,52 @@ presentation: Presentation
135
149
  previous: previous
136
150
  price: Price
137
151
  problem_authorizing_card: Problem authorizing credit card
138
- problems_processing_order: We had problems processing your order
139
152
  problem_capturing_card: Problem capturing credit card
153
+ problems_processing_order: We had problems processing your order
140
154
  process: Process
141
155
  product: Product
142
- products: Products
143
156
  product_properties: Product Properties
144
- property: Property
157
+ products: Products
145
158
  properties: Properties
159
+ property: Property
146
160
  prototypes: Prototypes
147
161
  qty: Qty
148
162
  remember_me: Remember me
149
163
  reports: Reports
150
164
  resend: Resend
151
165
  response_code: Response Code
152
- sales_totals_description: Sales Total For All Orders
166
+ return: return
153
167
  sales_total: Sales Total
154
168
  sales_totals: Sales Totals
169
+ sales_totals_description: Sales Total For All Orders
155
170
  search: Search
156
171
  select: Select
157
172
  select_from_prototype: Select From Prototype
173
+ ship: ship
158
174
  ship_address: Ship Address
175
+ shipping: Shipping
159
176
  shipping_address: Shipping Address
160
177
  shipping_method: Shipping Method
161
- shipping: Shipping
162
178
  shipping_total: Shipping Total
163
179
  shopping_cart: Shopping Cart
164
180
  sign_up: Sign up
165
181
  sku: SKU
166
182
  start: Start
167
183
  state: State
168
- states: States
169
184
  state_setting_description: Administer the list of states/provinces associated with each country.
185
+ states: States
170
186
  status: Status
171
187
  stop: Stop
172
188
  store: Store
173
- street_address_2: Street Address (cont'd)
174
189
  street_address: Street Address
190
+ street_address_2: Street Address (cont'd)
175
191
  subtotal: Subtotal
192
+ subtract: Subtract
176
193
  system: System
177
194
  tax: Tax
178
- tax_category: Tax Category
179
195
  tax_categories: Tax Categories
180
196
  tax_categories_setting_description: Set up tax categories to identify which products should be taxable.
197
+ tax_category: Tax Category
181
198
  tax_total: Tax Total
182
199
  thank_you_for_your_order: Thank you for your business. Please print out a copy of this confirmation page for your records.
183
200
  time: Time
@@ -187,8 +204,8 @@ try_again: Try Again
187
204
  type: Type
188
205
  update: Update
189
206
  use_different_shipping_address: Use Different Shipping Address
190
- users: Users
191
207
  user: User
208
+ users: Users
192
209
  value: Value
193
210
  variants: Variants
194
211
  version: Version
@@ -198,7 +215,6 @@ what_is_a_cvv: What is a (CVV) Credit Card Code?
198
215
  what_is_this: What's This?
199
216
  zip: Zip
200
217
  zone: Zone
201
- zones: Zones
202
218
  zone_setting_description: Collections of countries, states or other zones to be used in various calculations.
203
219
  order_operation_authorize: Authorize
204
220
  capture: capture
@@ -222,4 +238,13 @@ assign_taxons: Assign Taxons
222
238
  remove: Remove
223
239
  no_match_found: No Match Found
224
240
  taxonomies: Taxonomies
225
- taxonomies_setting_description: Create and manage taxonomies
241
+ taxonomies_setting_description: Create and manage taxonomies
242
+ zones: Zones
243
+ shipment: Shipment
244
+ weight: Weight
245
+ height: Height
246
+ depth: Depth
247
+ width: Width
248
+ shipping_error: Shipping Error
249
+ new_customer: New Customer
250
+ existing_customer: Existing Customer
data/lang/ui/es-ES.yml CHANGED
@@ -67,6 +67,7 @@ image: Imágen
67
67
  images: Imagenes
68
68
  inventory_adjustment: Ajuste de inventario
69
69
  inventory: Inventario
70
+ inventory_setting_description: Inventory Configuration, Backordering, Zero-Stock Display
70
71
  item_description: Descripción del artículo
71
72
  item: artículo
72
73
  item_total: Total de artículos
@@ -199,4 +200,4 @@ order_operation_cancel:
199
200
  order_operation_return:
200
201
  order_operation_ship:
201
202
  order_operation_comp:
202
- order_operation_delete:
203
+ order_operation_delete:
data/lang/ui/it-IT.yml CHANGED
@@ -64,6 +64,7 @@ image: Imagine
64
64
  images: Imagini
65
65
  inventory_adjustment: Edita magazzino
66
66
  inventory: Magazzino
67
+ inventory_setting_description: Inventory Configuration, Backordering, Zero-Stock Display
67
68
  item_description: Descrizione articolo
68
69
  item: Articolo
69
70
  item_total: Articolo totale
@@ -191,4 +192,4 @@ order_operation_cancel:
191
192
  order_operation_return:
192
193
  order_operation_ship:
193
194
  order_operation_comp:
194
- order_operation_delete:
195
+ order_operation_delete:
data/lang/ui/pl-PL.yml CHANGED
@@ -74,6 +74,7 @@ image: Obrazek
74
74
  images: Obrazki
75
75
  inventory_adjustment: Dostosowanie zapasów
76
76
  inventory: Zapasy
77
+ inventory_setting_description: Inventory Configuration, Backordering, Zero-Stock Display
77
78
  item_description: Opis pozycji
78
79
  item: Pozycja
79
80
  item_total: Liczba pozycji
data/lang/ui/pt-BR.yml CHANGED
@@ -1,6 +1,7 @@
1
1
  abbreviation: Abreviação
2
2
  account: Conta
3
- action: Ação
3
+ action: Ação
4
+ add: Adicionar
4
5
  add_category: Adicionar Categoria
5
6
  add_option_type: Adicionar Tipo de Opção
6
7
  add_option_types: Adicionar Tipo de Opção
@@ -75,6 +76,7 @@ image: Imagem
75
76
  images: Imagens
76
77
  inventory_adjustment: Ajuste de Inventário
77
78
  inventory: Inventário
79
+ inventory_setting_description: Inventory Configuration, Backordering, Zero-Stock Display
78
80
  item_description: Descrição de Item
79
81
  item: Item
80
82
  item_total: Total de Item
@@ -174,6 +176,7 @@ store: Loja
174
176
  street_address_2: Endereço (compl.)
175
177
  street_address: Endereço
176
178
  subtotal: Sub-total
179
+ subtract: Subtrair
177
180
  system: Sistema
178
181
  tax: Taxa
179
182
  tax_category: Categoria de Taxa
@@ -216,4 +219,4 @@ order_operation_cancel: Cancelar
216
219
  order_operation_return: Devolver
217
220
  order_operation_ship: Entregar
218
221
  order_operation_comp: Computar
219
- order_operation_delete: Apagar
222
+ order_operation_delete: Apagar
@@ -64,7 +64,7 @@ module AuthenticatedSystem
64
64
  respond_to do |format|
65
65
  format.html do
66
66
  store_location
67
- redirect_to signup_path
67
+ redirect_to login_path
68
68
  end
69
69
  format.xml do
70
70
  request_http_basic_authentication 'Web Password'
@@ -16,6 +16,7 @@ class ExtensionGenerator < Rails::Generator::NamedBase
16
16
  m.directory "#{extension_path}/app/models"
17
17
  m.directory "#{extension_path}/app/views"
18
18
  m.directory "#{extension_path}/db/migrate"
19
+ m.directory "#{extension_path}/db/sample"
19
20
  m.directory "#{extension_path}/lib/tasks"
20
21
  m.directory "#{extension_path}/public"
21
22
 
@@ -11,13 +11,12 @@ class <%= class_name %> < Spree::Extension
11
11
  # admin.resources :whatever
12
12
  # end
13
13
  # end
14
+
15
+ # def self.require_gems(config)
16
+ # config.gem "gemname-goes-here", :version => '1.2.3'
17
+ # end
14
18
 
15
19
  def activate
16
20
  # admin.tabs.add "<%= extension_name %>", "/admin/<%= file_name %>", :after => "Layouts", :visibility => [:all]
17
21
  end
18
-
19
- def deactivate
20
- # admin.tabs.remove "<%= extension_name %>"
21
- end
22
-
23
22
  end
@@ -1,3 +1,15 @@
1
+ namespace :db do
2
+ desc "Bootstrap your database for Spree."
3
+ task :bootstrap => :environment do
4
+ # load initial database fixtures (in db/sample/*.yml) into the current environment's database
5
+ ActiveRecord::Base.establish_connection(RAILS_ENV.to_sym)
6
+ Dir.glob(File.join(<%= class_name %>.root, "db", 'sample', '*.{yml,csv}')).each do |fixture_file|
7
+ Fixtures.create_fixtures("#{<%= class_name %>.root}/db/sample", File.basename(fixture_file, '.*'))
8
+ end
9
+
10
+ end
11
+ end
12
+
1
13
  namespace :spree do
2
14
  namespace :extensions do
3
15
  namespace :<%= file_name %> do