spree_core 1.0.7 → 1.1.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/javascripts/admin/admin.js.erb +9 -18
- data/app/assets/javascripts/admin/calculator.js +7 -6
- data/app/assets/javascripts/admin/checkouts/edit.js +2 -2
- data/app/assets/javascripts/admin/image_settings.js +49 -0
- data/app/assets/javascripts/admin/orders/edit_form.js +14 -14
- data/app/assets/stylesheets/admin/admin.css.erb +36 -54
- data/app/assets/stylesheets/store/screen.css.scss +25 -12
- data/app/controllers/spree/admin/base_controller.rb +3 -3
- data/app/controllers/spree/admin/image_settings_controller.rb +71 -0
- data/app/controllers/spree/admin/images_controller.rb +22 -21
- data/app/controllers/spree/admin/mail_methods_controller.rb +1 -1
- data/app/controllers/spree/admin/orders/customer_details_controller.rb +2 -2
- data/app/controllers/spree/admin/orders_controller.rb +13 -13
- data/app/controllers/spree/admin/payment_methods_controller.rb +1 -1
- data/app/controllers/spree/admin/payments_controller.rb +1 -1
- data/app/controllers/spree/admin/product_properties_controller.rb +3 -4
- data/app/controllers/spree/admin/products_controller.rb +49 -47
- data/app/controllers/spree/admin/properties_controller.rb +1 -1
- data/app/controllers/spree/admin/prototypes_controller.rb +12 -6
- data/app/controllers/spree/admin/reports_controller.rb +15 -16
- data/app/controllers/spree/admin/resource_controller.rb +1 -1
- data/app/controllers/spree/admin/return_authorizations_controller.rb +1 -1
- data/app/controllers/spree/admin/shipments_controller.rb +0 -3
- data/app/controllers/spree/admin/states_controller.rb +9 -9
- data/app/controllers/spree/admin/users_controller.rb +18 -42
- data/app/controllers/spree/admin/variants_controller.rb +22 -21
- data/app/controllers/spree/admin/zones_controller.rb +11 -11
- data/app/controllers/spree/content_controller.rb +1 -1
- data/app/controllers/spree/locale_controller.rb +2 -2
- data/app/controllers/spree/orders_controller.rb +4 -6
- data/app/controllers/spree/products_controller.rb +1 -1
- data/app/controllers/spree/states_controller.rb +4 -7
- data/app/helpers/spree/admin/base_helper.rb +4 -0
- data/app/helpers/spree/admin/navigation_helper.rb +4 -16
- data/app/helpers/spree/base_helper.rb +22 -3
- data/app/models/spree/activator.rb +4 -1
- data/app/models/spree/address.rb +45 -45
- data/app/models/spree/adjustment.rb +4 -4
- data/app/models/spree/app_configuration.rb +12 -0
- data/app/models/spree/calculator/default_tax.rb +1 -3
- data/app/models/spree/calculator/flat_percent_item_total.rb +0 -2
- data/app/models/spree/calculator/flat_rate.rb +0 -3
- data/app/models/spree/calculator/flexi_rate.rb +1 -3
- data/app/models/spree/calculator/per_item.rb +1 -6
- data/app/models/spree/calculator/price_sack.rb +0 -2
- data/app/models/spree/country.rb +1 -1
- data/app/models/spree/creditcard.rb +9 -10
- data/app/models/spree/gateway.rb +0 -2
- data/app/models/spree/image.rb +18 -2
- data/app/models/spree/inventory_unit.rb +4 -2
- data/app/models/spree/mail_method.rb +1 -6
- data/app/models/spree/option_type.rb +3 -1
- data/app/models/spree/order.rb +68 -62
- data/app/models/spree/payment.rb +1 -1
- data/app/models/spree/payment_method.rb +0 -6
- data/app/models/spree/product/scopes.rb +44 -44
- data/app/models/spree/product.rb +44 -26
- data/app/models/spree/product_property.rb +0 -2
- data/app/models/spree/property.rb +0 -16
- data/app/models/spree/prototype.rb +0 -1
- data/app/models/spree/return_authorization.rb +0 -2
- data/app/models/spree/shipment.rb +2 -3
- data/app/models/spree/shipping_category.rb +0 -2
- data/app/models/spree/shipping_method.rb +1 -2
- data/app/models/spree/shipping_rate.rb +9 -0
- data/app/models/spree/state.rb +10 -2
- data/app/models/spree/{state_event.rb → state_change.rb} +1 -4
- data/app/models/spree/tax_rate.rb +3 -3
- data/app/models/spree/taxon.rb +1 -6
- data/app/models/spree/taxonomy.rb +3 -6
- data/app/models/spree/user.rb +1 -0
- data/app/models/spree/variant.rb +3 -4
- data/app/models/spree/zone.rb +0 -10
- data/app/views/spree/admin/adjustments/_adjustments_table.html.erb +1 -1
- data/app/views/spree/admin/configurations/index.html.erb +4 -0
- data/app/views/spree/admin/image_settings/edit.html.erb +91 -0
- data/app/views/spree/admin/image_settings/show.html.erb +11 -0
- data/app/views/spree/admin/images/index.html.erb +3 -3
- data/app/views/spree/admin/mail_methods/_form.html.erb +1 -1
- data/app/views/spree/admin/mail_methods/index.html.erb +1 -1
- data/app/views/spree/admin/option_types/_option_value_fields.html.erb +1 -1
- data/app/views/spree/admin/option_types/index.html.erb +1 -1
- data/app/views/spree/admin/option_types/new.js.erb +1 -1
- data/app/views/spree/admin/orders/_form.html.erb +3 -5
- data/app/views/spree/admin/orders/_line_item.html.erb +1 -1
- data/app/views/spree/admin/orders/customer_details/_form.html.erb +1 -1
- data/app/views/spree/admin/orders/history.html.erb +2 -2
- data/app/views/spree/admin/orders/index.html.erb +19 -19
- data/app/views/spree/admin/payment_methods/_form.html.erb +1 -1
- data/app/views/spree/admin/payment_methods/index.html.erb +1 -3
- data/app/views/spree/admin/payments/_list.html.erb +1 -1
- data/app/views/spree/admin/product_properties/index.html.erb +1 -1
- data/app/views/spree/admin/products/_form.html.erb +30 -27
- data/app/views/spree/admin/products/index.html.erb +9 -9
- data/app/views/spree/admin/products/new.html.erb +28 -4
- data/app/views/spree/admin/products/new.js.erb +1 -1
- data/app/views/spree/admin/properties/index.html.erb +1 -1
- data/app/views/spree/admin/properties/new.js.erb +1 -1
- data/app/views/spree/admin/prototypes/index.html.erb +1 -1
- data/app/views/spree/admin/prototypes/new.js.erb +1 -1
- data/app/views/spree/admin/prototypes/show.html.erb +42 -0
- data/app/views/spree/admin/return_authorizations/index.html.erb +1 -1
- data/app/views/spree/admin/shared/_address_form.html.erb +1 -1
- data/app/views/spree/admin/shared/_calculator_fields.html.erb +2 -2
- data/app/views/spree/admin/shared/_head.html.erb +3 -3
- data/app/views/spree/admin/shared/_order_details.html.erb +1 -1
- data/app/views/spree/admin/shared/_order_tabs.html.erb +6 -6
- data/app/views/spree/admin/shared/_product_sub_menu.html.erb +0 -1
- data/app/views/spree/admin/shared/_report_criteria.html.erb +3 -3
- data/app/views/spree/admin/shared/_tabs.html.erb +1 -1
- data/app/views/spree/admin/shared/_update_order_state.js +5 -4
- data/app/views/spree/admin/shipments/index.html.erb +1 -1
- data/app/views/spree/admin/shipping_categories/index.html.erb +1 -1
- data/app/views/spree/admin/shipping_methods/index.html.erb +1 -1
- data/app/views/spree/admin/states/_state_list.html.erb +1 -1
- data/app/views/spree/admin/states/new.js.erb +1 -1
- data/app/views/spree/admin/tax_categories/index.html.erb +2 -2
- data/app/views/spree/admin/tax_rates/index.html.erb +2 -2
- data/app/views/spree/admin/taxonomies/_list.html.erb +1 -1
- data/app/views/spree/admin/trackers/_form.html.erb +1 -1
- data/app/views/spree/admin/trackers/index.html.erb +1 -1
- data/app/views/spree/admin/users/_form.html.erb +1 -16
- data/app/views/spree/admin/users/index.html.erb +3 -4
- data/app/views/spree/admin/variants/index.html.erb +2 -2
- data/app/views/spree/admin/variants/new.js.erb +1 -1
- data/app/views/spree/admin/zones/index.html.erb +1 -1
- data/app/views/spree/checkout/_address.html.erb +1 -1
- data/app/views/spree/checkout/edit.html.erb +1 -1
- data/app/views/spree/checkout/registration.html.erb +2 -2
- data/app/views/spree/order_mailer/confirm_email.text.erb +3 -3
- data/app/views/spree/orders/show.html.erb +2 -2
- data/app/views/spree/products/_cart_form.html.erb +1 -2
- data/app/views/spree/products/_image.html.erb +1 -1
- data/app/views/spree/products/show.html.erb +3 -3
- data/app/views/spree/shared/_filters.html.erb +26 -24
- data/app/views/spree/shared/_google_analytics.html.erb +26 -26
- data/app/views/spree/shared/_products.html.erb +2 -2
- data/app/views/spree/shared/_search.html.erb +1 -1
- data/app/views/spree/shared/_store_menu.html.erb +1 -1
- data/app/views/spree/states/index.js.erb +1 -1
- data/config/initializers/rails_3_1.rb +3 -3
- data/config/locales/en.yml +40 -35
- data/config/routes.rb +5 -13
- data/db/migrate/20101026184714_migrate_transactions_to_payment_state.rb +4 -4
- data/db/migrate/20111007143030_namespace_top_level_models.rb +0 -3
- data/db/migrate/20120203001428_rename_state_events_to_state_changes.rb +9 -0
- data/db/migrate/20120315064358_migrate_images_from_products_to_variants.rb +35 -0
- data/lib/generators/spree/dummy/templates/rails/database.yml +48 -20
- data/lib/generators/spree/install/install_generator.rb +17 -1
- data/lib/generators/spree/install/templates/app/assets/javascripts/admin/all.js +0 -1
- data/lib/generators/spree/install/templates/app/assets/javascripts/store/all.js +0 -1
- data/lib/generators/spree/install/templates/app/assets/stylesheets/admin/all.css +0 -1
- data/lib/generators/spree/install/templates/app/assets/stylesheets/store/all.css +0 -1
- data/lib/generators/spree/sandbox/sandbox_generator.rb +9 -2
- data/lib/spree/core/calculated_adjustments.rb +29 -34
- data/lib/spree/core/controller_helpers.rb +36 -34
- data/lib/spree/core/custom_fixtures.rb +1 -1
- data/lib/spree/core/delegate_belongs_to.rb +22 -24
- data/lib/spree/core/engine.rb +3 -3
- data/lib/spree/core/environment_extension.rb +12 -15
- data/lib/spree/core/mail_settings.rb +1 -1
- data/lib/spree/core/permalinks.rb +24 -16
- data/lib/spree/core/preference_rescue.rb +1 -1
- data/lib/spree/core/respond_with.rb +13 -8
- data/lib/spree/core/responder.rb +1 -2
- data/lib/spree/core/search/base.rb +36 -19
- data/lib/spree/core/ssl_requirement.rb +18 -10
- data/lib/spree/core/testing_support/common_rake.rb +1 -1
- data/lib/spree/core/testing_support/factories/product_factory.rb +9 -9
- data/lib/spree/core/testing_support/factories/role_factory.rb +1 -1
- data/lib/spree/core/testing_support/factories/shipping_category_factory.rb +1 -1
- data/lib/spree/core/testing_support/factories/shipping_method_factory.rb +3 -3
- data/lib/spree/core/testing_support/factories/user_factory.rb +1 -1
- data/lib/spree/core/testing_support/factories/zone_factory.rb +4 -2
- data/lib/spree/core/validators/email.rb +23 -0
- data/lib/spree/core/version.rb +1 -1
- data/lib/spree/core.rb +2 -2
- data/lib/spree/product_filters.rb +10 -19
- data/lib/tasks/core.rake +1 -1
- data/vendor/assets/javascripts/jquery.alerts/jquery.alerts.css.erb +5 -5
- data/vendor/assets/stylesheets/jquery-ui.datepicker.css.erb +1 -1
- metadata +68 -140
- data/app/assets/images/noimage/large.png +0 -0
- data/app/controllers/spree/admin/product_groups_controller.rb +0 -49
- data/app/controllers/spree/admin/product_scopes_controller.rb +0 -39
- data/app/helpers/spree/admin/product_groups_helper.rb +0 -14
- data/app/helpers/spree/admin/product_properties_helper.rb +0 -24
- data/app/models/spree/product_group.rb +0 -200
- data/app/models/spree/product_scope.rb +0 -79
- data/app/views/spree/admin/banners/_gateway.html.erb +0 -14
- data/app/views/spree/admin/product_groups/_preview.html.erb +0 -33
- data/app/views/spree/admin/product_groups/_product_scope.html.erb +0 -24
- data/app/views/spree/admin/product_groups/edit.html.erb +0 -59
- data/app/views/spree/admin/product_groups/index.html.erb +0 -37
- data/app/views/spree/admin/product_groups/new.html.erb +0 -12
- data/app/views/spree/admin/product_groups/show.html.erb +0 -32
- data/app/views/spree/admin/product_scopes/create.js.erb +0 -6
- data/app/views/spree/admin/product_scopes/destroy.js.erb +0 -3
- data/app/views/spree/admin/product_scopes/new.html.erb +0 -1
- data/app/views/spree/admin/shared/_group_from_products_form.html.erb +0 -12
- data/db/migrate/20091012120519_product_groups_and_scopes.rb +0 -18
- data/db/migrate/20100126103714_create_products_product_groups.rb +0 -8
- data/db/migrate/20100306153445_fix_by_popularity.rb +0 -9
- data/db/migrate/20120523061241_convert_sales_tax_to_default_tax.rb +0 -9
- data/lib/spree/core/testing_support/factories/product_group_factory.rb +0 -5
- data/lib/spree/core/testing_support/factories/product_scope_factory.rb +0 -7
- data/lib/spree/core/theme_support/hook_listener.rb +0 -145
- data/lib/spree/core/theme_support.rb +0 -1
- data/vendor/assets/javascripts/jquery.alerts/jquery.alerts.css +0 -57
metadata
CHANGED
@@ -1,99 +1,74 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.1.0.rc1
|
5
|
+
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Sean Schofield
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2012-04-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: acts_as_list
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirement: &70111187015640 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - =
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: 0.1.4
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - '='
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 0.1.4
|
24
|
+
version_requirements: *70111187015640
|
30
25
|
- !ruby/object:Gem::Dependency
|
31
26
|
name: nested_set
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
27
|
+
requirement: &70111187015020 !ruby/object:Gem::Requirement
|
33
28
|
none: false
|
34
29
|
requirements:
|
35
|
-
- -
|
30
|
+
- - =
|
36
31
|
- !ruby/object:Gem::Version
|
37
|
-
version: 1.
|
32
|
+
version: 1.7.0
|
38
33
|
type: :runtime
|
39
34
|
prerelease: false
|
40
|
-
version_requirements:
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - '='
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: 1.6.8
|
35
|
+
version_requirements: *70111187015020
|
46
36
|
- !ruby/object:Gem::Dependency
|
47
37
|
name: jquery-rails
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
38
|
+
requirement: &70111187014120 !ruby/object:Gem::Requirement
|
49
39
|
none: false
|
50
40
|
requirements:
|
51
41
|
- - ~>
|
52
42
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
43
|
+
version: 2.0.0
|
54
44
|
type: :runtime
|
55
45
|
prerelease: false
|
56
|
-
version_requirements:
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - ~>
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '2.1'
|
46
|
+
version_requirements: *70111187014120
|
62
47
|
- !ruby/object:Gem::Dependency
|
63
48
|
name: highline
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
+
requirement: &70111187013620 !ruby/object:Gem::Requirement
|
65
50
|
none: false
|
66
51
|
requirements:
|
67
|
-
- -
|
52
|
+
- - =
|
68
53
|
- !ruby/object:Gem::Version
|
69
|
-
version: 1.6.
|
54
|
+
version: 1.6.11
|
70
55
|
type: :runtime
|
71
56
|
prerelease: false
|
72
|
-
version_requirements:
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - '='
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: 1.6.8
|
57
|
+
version_requirements: *70111187013620
|
78
58
|
- !ruby/object:Gem::Dependency
|
79
59
|
name: state_machine
|
80
|
-
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirement: &70111187013080 !ruby/object:Gem::Requirement
|
81
61
|
none: false
|
82
62
|
requirements:
|
83
|
-
- -
|
63
|
+
- - =
|
84
64
|
- !ruby/object:Gem::Version
|
85
|
-
version: 1.1.
|
65
|
+
version: 1.1.2
|
86
66
|
type: :runtime
|
87
67
|
prerelease: false
|
88
|
-
version_requirements:
|
89
|
-
none: false
|
90
|
-
requirements:
|
91
|
-
- - '='
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
version: 1.1.1
|
68
|
+
version_requirements: *70111187013080
|
94
69
|
- !ruby/object:Gem::Dependency
|
95
70
|
name: ffaker
|
96
|
-
requirement: !ruby/object:Gem::Requirement
|
71
|
+
requirement: &70111187012380 !ruby/object:Gem::Requirement
|
97
72
|
none: false
|
98
73
|
requirements:
|
99
74
|
- - ~>
|
@@ -101,79 +76,68 @@ dependencies:
|
|
101
76
|
version: 1.12.0
|
102
77
|
type: :runtime
|
103
78
|
prerelease: false
|
104
|
-
version_requirements:
|
105
|
-
none: false
|
106
|
-
requirements:
|
107
|
-
- - ~>
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: 1.12.0
|
79
|
+
version_requirements: *70111187012380
|
110
80
|
- !ruby/object:Gem::Dependency
|
111
81
|
name: paperclip
|
112
|
-
requirement: !ruby/object:Gem::Requirement
|
82
|
+
requirement: &70111187011780 !ruby/object:Gem::Requirement
|
113
83
|
none: false
|
114
84
|
requirements:
|
115
85
|
- - ~>
|
116
86
|
- !ruby/object:Gem::Version
|
117
|
-
version: 2.
|
87
|
+
version: 2.7.0
|
118
88
|
type: :runtime
|
119
89
|
prerelease: false
|
120
|
-
version_requirements:
|
90
|
+
version_requirements: *70111187011780
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: aws-sdk
|
93
|
+
requirement: &70111187010620 !ruby/object:Gem::Requirement
|
121
94
|
none: false
|
122
95
|
requirements:
|
123
96
|
- - ~>
|
124
97
|
- !ruby/object:Gem::Version
|
125
|
-
version:
|
98
|
+
version: 1.3.4
|
99
|
+
type: :runtime
|
100
|
+
prerelease: false
|
101
|
+
version_requirements: *70111187010620
|
126
102
|
- !ruby/object:Gem::Dependency
|
127
|
-
name:
|
128
|
-
requirement: !ruby/object:Gem::Requirement
|
103
|
+
name: ransack
|
104
|
+
requirement: &70111187009560 !ruby/object:Gem::Requirement
|
129
105
|
none: false
|
130
106
|
requirements:
|
131
|
-
- -
|
107
|
+
- - ~>
|
132
108
|
- !ruby/object:Gem::Version
|
133
|
-
version:
|
109
|
+
version: 0.6.0
|
134
110
|
type: :runtime
|
135
111
|
prerelease: false
|
136
|
-
version_requirements:
|
137
|
-
none: false
|
138
|
-
requirements:
|
139
|
-
- - '='
|
140
|
-
- !ruby/object:Gem::Version
|
141
|
-
version: 1.1.1
|
112
|
+
version_requirements: *70111187009560
|
142
113
|
- !ruby/object:Gem::Dependency
|
143
114
|
name: activemerchant
|
144
|
-
requirement: !ruby/object:Gem::Requirement
|
115
|
+
requirement: &70111187008720 !ruby/object:Gem::Requirement
|
145
116
|
none: false
|
146
117
|
requirements:
|
147
|
-
- -
|
118
|
+
- - =
|
148
119
|
- !ruby/object:Gem::Version
|
149
120
|
version: 1.20.1
|
150
121
|
type: :runtime
|
151
122
|
prerelease: false
|
152
|
-
version_requirements:
|
153
|
-
none: false
|
154
|
-
requirements:
|
155
|
-
- - '='
|
156
|
-
- !ruby/object:Gem::Version
|
157
|
-
version: 1.20.1
|
123
|
+
version_requirements: *70111187008720
|
158
124
|
- !ruby/object:Gem::Dependency
|
159
125
|
name: rails
|
160
|
-
requirement: !ruby/object:Gem::Requirement
|
126
|
+
requirement: &70111187027200 !ruby/object:Gem::Requirement
|
161
127
|
none: false
|
162
128
|
requirements:
|
163
|
-
- -
|
129
|
+
- - ! '>='
|
164
130
|
- !ruby/object:Gem::Version
|
165
|
-
version: 3.
|
131
|
+
version: 3.2.2
|
132
|
+
- - <=
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: 3.2.3
|
166
135
|
type: :runtime
|
167
136
|
prerelease: false
|
168
|
-
version_requirements:
|
169
|
-
none: false
|
170
|
-
requirements:
|
171
|
-
- - ~>
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: 3.1.10
|
137
|
+
version_requirements: *70111187027200
|
174
138
|
- !ruby/object:Gem::Dependency
|
175
139
|
name: kaminari
|
176
|
-
requirement: !ruby/object:Gem::Requirement
|
140
|
+
requirement: &70111187026120 !ruby/object:Gem::Requirement
|
177
141
|
none: false
|
178
142
|
requirements:
|
179
143
|
- - ! '>='
|
@@ -181,31 +145,21 @@ dependencies:
|
|
181
145
|
version: 0.13.0
|
182
146
|
type: :runtime
|
183
147
|
prerelease: false
|
184
|
-
version_requirements:
|
185
|
-
none: false
|
186
|
-
requirements:
|
187
|
-
- - ! '>='
|
188
|
-
- !ruby/object:Gem::Version
|
189
|
-
version: 0.13.0
|
148
|
+
version_requirements: *70111187026120
|
190
149
|
- !ruby/object:Gem::Dependency
|
191
150
|
name: deface
|
192
|
-
requirement: !ruby/object:Gem::Requirement
|
151
|
+
requirement: &70111187025480 !ruby/object:Gem::Requirement
|
193
152
|
none: false
|
194
153
|
requirements:
|
195
154
|
- - ! '>='
|
196
155
|
- !ruby/object:Gem::Version
|
197
|
-
version: 0.
|
156
|
+
version: 0.8.0
|
198
157
|
type: :runtime
|
199
158
|
prerelease: false
|
200
|
-
version_requirements:
|
201
|
-
none: false
|
202
|
-
requirements:
|
203
|
-
- - ! '>='
|
204
|
-
- !ruby/object:Gem::Version
|
205
|
-
version: 0.9.0
|
159
|
+
version_requirements: *70111187025480
|
206
160
|
- !ruby/object:Gem::Dependency
|
207
161
|
name: stringex
|
208
|
-
requirement: !ruby/object:Gem::Requirement
|
162
|
+
requirement: &70111187024680 !ruby/object:Gem::Requirement
|
209
163
|
none: false
|
210
164
|
requirements:
|
211
165
|
- - ~>
|
@@ -213,12 +167,7 @@ dependencies:
|
|
213
167
|
version: 1.3.2
|
214
168
|
type: :runtime
|
215
169
|
prerelease: false
|
216
|
-
version_requirements:
|
217
|
-
none: false
|
218
|
-
requirements:
|
219
|
-
- - ~>
|
220
|
-
- !ruby/object:Gem::Version
|
221
|
-
version: 1.3.2
|
170
|
+
version_requirements: *70111187024680
|
222
171
|
description: Required dependency for Spree
|
223
172
|
email: sean@spreecommerce.com
|
224
173
|
executables: []
|
@@ -333,7 +282,6 @@ files:
|
|
333
282
|
- app/assets/images/icons/checkout.png
|
334
283
|
- app/assets/images/icons/delete.png
|
335
284
|
- app/assets/images/icons/update.png
|
336
|
-
- app/assets/images/noimage/large.png
|
337
285
|
- app/assets/images/noimage/mini.png
|
338
286
|
- app/assets/images/noimage/product.png
|
339
287
|
- app/assets/images/noimage/small.png
|
@@ -345,6 +293,7 @@ files:
|
|
345
293
|
- app/assets/javascripts/admin/calculator.js
|
346
294
|
- app/assets/javascripts/admin/checkouts/edit.js
|
347
295
|
- app/assets/javascripts/admin/gateway.js
|
296
|
+
- app/assets/javascripts/admin/image_settings.js
|
348
297
|
- app/assets/javascripts/admin/images/index.js
|
349
298
|
- app/assets/javascripts/admin/images/new.js
|
350
299
|
- app/assets/javascripts/admin/nested-attribute.js
|
@@ -375,6 +324,7 @@ files:
|
|
375
324
|
- app/controllers/spree/admin/base_controller.rb
|
376
325
|
- app/controllers/spree/admin/configurations_controller.rb
|
377
326
|
- app/controllers/spree/admin/general_settings_controller.rb
|
327
|
+
- app/controllers/spree/admin/image_settings_controller.rb
|
378
328
|
- app/controllers/spree/admin/images_controller.rb
|
379
329
|
- app/controllers/spree/admin/inventory_settings_controller.rb
|
380
330
|
- app/controllers/spree/admin/inventory_units_controller.rb
|
@@ -387,9 +337,7 @@ files:
|
|
387
337
|
- app/controllers/spree/admin/overview_controller.rb
|
388
338
|
- app/controllers/spree/admin/payment_methods_controller.rb
|
389
339
|
- app/controllers/spree/admin/payments_controller.rb
|
390
|
-
- app/controllers/spree/admin/product_groups_controller.rb
|
391
340
|
- app/controllers/spree/admin/product_properties_controller.rb
|
392
|
-
- app/controllers/spree/admin/product_scopes_controller.rb
|
393
341
|
- app/controllers/spree/admin/products_controller.rb
|
394
342
|
- app/controllers/spree/admin/properties_controller.rb
|
395
343
|
- app/controllers/spree/admin/prototypes_controller.rb
|
@@ -425,8 +373,6 @@ files:
|
|
425
373
|
- app/helpers/spree/admin/orders_helper.rb
|
426
374
|
- app/helpers/spree/admin/overview_helper.rb
|
427
375
|
- app/helpers/spree/admin/payments_helper.rb
|
428
|
-
- app/helpers/spree/admin/product_groups_helper.rb
|
429
|
-
- app/helpers/spree/admin/product_properties_helper.rb
|
430
376
|
- app/helpers/spree/admin/products_helper.rb
|
431
377
|
- app/helpers/spree/admin/taxons_helper.rb
|
432
378
|
- app/helpers/spree/admin/users_helper.rb
|
@@ -480,11 +426,9 @@ files:
|
|
480
426
|
- app/models/spree/preferences/store.rb
|
481
427
|
- app/models/spree/product/scopes.rb
|
482
428
|
- app/models/spree/product.rb
|
483
|
-
- app/models/spree/product_group.rb
|
484
429
|
- app/models/spree/product_option_type.rb
|
485
430
|
- app/models/spree/product_property.rb
|
486
431
|
- app/models/spree/product_scope/scopes.rb
|
487
|
-
- app/models/spree/product_scope.rb
|
488
432
|
- app/models/spree/property.rb
|
489
433
|
- app/models/spree/prototype.rb
|
490
434
|
- app/models/spree/return_authorization.rb
|
@@ -492,8 +436,9 @@ files:
|
|
492
436
|
- app/models/spree/shipment.rb
|
493
437
|
- app/models/spree/shipping_category.rb
|
494
438
|
- app/models/spree/shipping_method.rb
|
439
|
+
- app/models/spree/shipping_rate.rb
|
495
440
|
- app/models/spree/state.rb
|
496
|
-
- app/models/spree/
|
441
|
+
- app/models/spree/state_change.rb
|
497
442
|
- app/models/spree/tax_category.rb
|
498
443
|
- app/models/spree/tax_rate.rb
|
499
444
|
- app/models/spree/taxon.rb
|
@@ -510,10 +455,11 @@ files:
|
|
510
455
|
- app/views/spree/admin/adjustments/edit.html.erb
|
511
456
|
- app/views/spree/admin/adjustments/index.html.erb
|
512
457
|
- app/views/spree/admin/adjustments/new.html.erb
|
513
|
-
- app/views/spree/admin/banners/_gateway.html.erb
|
514
458
|
- app/views/spree/admin/configurations/index.html.erb
|
515
459
|
- app/views/spree/admin/general_settings/edit.html.erb
|
516
460
|
- app/views/spree/admin/general_settings/show.html.erb
|
461
|
+
- app/views/spree/admin/image_settings/edit.html.erb
|
462
|
+
- app/views/spree/admin/image_settings/show.html.erb
|
517
463
|
- app/views/spree/admin/images/_form.html.erb
|
518
464
|
- app/views/spree/admin/images/edit.html.erb
|
519
465
|
- app/views/spree/admin/images/index.html.erb
|
@@ -563,17 +509,8 @@ files:
|
|
563
509
|
- app/views/spree/admin/payments/source_forms/_gateway.html.erb
|
564
510
|
- app/views/spree/admin/payments/source_views/_check.html.erb
|
565
511
|
- app/views/spree/admin/payments/source_views/_gateway.html.erb
|
566
|
-
- app/views/spree/admin/product_groups/_preview.html.erb
|
567
|
-
- app/views/spree/admin/product_groups/_product_scope.html.erb
|
568
|
-
- app/views/spree/admin/product_groups/edit.html.erb
|
569
|
-
- app/views/spree/admin/product_groups/index.html.erb
|
570
|
-
- app/views/spree/admin/product_groups/new.html.erb
|
571
|
-
- app/views/spree/admin/product_groups/show.html.erb
|
572
512
|
- app/views/spree/admin/product_properties/_product_property_fields.html.erb
|
573
513
|
- app/views/spree/admin/product_properties/index.html.erb
|
574
|
-
- app/views/spree/admin/product_scopes/create.js.erb
|
575
|
-
- app/views/spree/admin/product_scopes/destroy.js.erb
|
576
|
-
- app/views/spree/admin/product_scopes/new.html.erb
|
577
514
|
- app/views/spree/admin/products/_form.html.erb
|
578
515
|
- app/views/spree/admin/products/_option_types.html.erb
|
579
516
|
- app/views/spree/admin/products/_properties_form.erb
|
@@ -595,6 +532,7 @@ files:
|
|
595
532
|
- app/views/spree/admin/prototypes/new.html.erb
|
596
533
|
- app/views/spree/admin/prototypes/new.js.erb
|
597
534
|
- app/views/spree/admin/prototypes/select.js.erb
|
535
|
+
- app/views/spree/admin/prototypes/show.html.erb
|
598
536
|
- app/views/spree/admin/reports/index.html.erb
|
599
537
|
- app/views/spree/admin/reports/sales_total.html.erb
|
600
538
|
- app/views/spree/admin/return_authorizations/_form.html.erb
|
@@ -609,7 +547,6 @@ files:
|
|
609
547
|
- app/views/spree/admin/shared/_configuration_menu.html.erb
|
610
548
|
- app/views/spree/admin/shared/_destroy.js.erb
|
611
549
|
- app/views/spree/admin/shared/_edit_resource_links.html.erb
|
612
|
-
- app/views/spree/admin/shared/_group_from_products_form.html.erb
|
613
550
|
- app/views/spree/admin/shared/_head.html.erb
|
614
551
|
- app/views/spree/admin/shared/_new_adjustment_button.html.erb
|
615
552
|
- app/views/spree/admin/shared/_new_resource_links.html.erb
|
@@ -797,10 +734,8 @@ files:
|
|
797
734
|
- lib/spree/core/testing_support/factories/payment_factory.rb
|
798
735
|
- lib/spree/core/testing_support/factories/payment_method_factory.rb
|
799
736
|
- lib/spree/core/testing_support/factories/product_factory.rb
|
800
|
-
- lib/spree/core/testing_support/factories/product_group_factory.rb
|
801
737
|
- lib/spree/core/testing_support/factories/product_option_type_factory.rb
|
802
738
|
- lib/spree/core/testing_support/factories/product_property_factory.rb
|
803
|
-
- lib/spree/core/testing_support/factories/product_scope_factory.rb
|
804
739
|
- lib/spree/core/testing_support/factories/property_factory.rb
|
805
740
|
- lib/spree/core/testing_support/factories/prototype_factory.rb
|
806
741
|
- lib/spree/core/testing_support/factories/return_authorization_factory.rb
|
@@ -819,10 +754,9 @@ files:
|
|
819
754
|
- lib/spree/core/testing_support/factories/zone_factory.rb
|
820
755
|
- lib/spree/core/testing_support/factories.rb
|
821
756
|
- lib/spree/core/testing_support/fixtures.rb
|
822
|
-
- lib/spree/core/theme_support/hook_listener.rb
|
823
|
-
- lib/spree/core/theme_support.rb
|
824
757
|
- lib/spree/core/url_helpers.rb
|
825
758
|
- lib/spree/core/user_banners.rb
|
759
|
+
- lib/spree/core/validators/email.rb
|
826
760
|
- lib/spree/core/version.rb
|
827
761
|
- lib/spree/core.rb
|
828
762
|
- lib/spree/product_filters.rb
|
@@ -843,7 +777,6 @@ files:
|
|
843
777
|
- db/migrate/20090923100315_add_count_on_hand_to_variants_and_products.rb
|
844
778
|
- db/migrate/20091007134354_change_taxons_to_nested_set.rb
|
845
779
|
- db/migrate/20091008091614_move_to_configurable_gateways.rb
|
846
|
-
- db/migrate/20091012120519_product_groups_and_scopes.rb
|
847
780
|
- db/migrate/20091015110842_add_open_id_authentication_tables.rb
|
848
781
|
- db/migrate/20091015153048_add_openid_field_to_users.rb
|
849
782
|
- db/migrate/20091016174634_change_preference_value_type.rb
|
@@ -866,7 +799,6 @@ files:
|
|
866
799
|
- db/migrate/20100121160010_creditcard_id_for_creditcard_txns.rb
|
867
800
|
- db/migrate/20100121183934_original_creditcard_txn_id_for_creditcard_txns.rb
|
868
801
|
- db/migrate/20100125145351_add_test_mode_to_billing_integration.rb
|
869
|
-
- db/migrate/20100126103714_create_products_product_groups.rb
|
870
802
|
- db/migrate/20100209025806_create_payment_methods.rb
|
871
803
|
- db/migrate/20100209144531_polymorphic_payments.rb
|
872
804
|
- db/migrate/20100213103131_change_payments_payment_method_to_belongs_to.rb
|
@@ -875,7 +807,6 @@ files:
|
|
875
807
|
- db/migrate/20100223183812_drop_billing_integrations.rb
|
876
808
|
- db/migrate/20100224153127_deleted_at_for_payment_methods.rb
|
877
809
|
- db/migrate/20100301163454_add_adjustments_index.rb
|
878
|
-
- db/migrate/20100306153445_fix_by_popularity.rb
|
879
810
|
- db/migrate/20100317120946_add_alt_text_to_images.rb
|
880
811
|
- db/migrate/20100419194457_fix_existing_coupon_credits.rb
|
881
812
|
- db/migrate/20100427121301_add_display_to_payment_methods.rb
|
@@ -932,8 +863,9 @@ files:
|
|
932
863
|
- db/migrate/20120105193911_associate_shipping_methods_and_shipping_categories.rb
|
933
864
|
- db/migrate/20120105195817_add_match_rules_to_shipping_methods.rb
|
934
865
|
- db/migrate/20120119024710_new_preferences.rb
|
866
|
+
- db/migrate/20120203001428_rename_state_events_to_state_changes.rb
|
935
867
|
- db/migrate/20120203153759_add_deleted_at_to_tax_category.rb
|
936
|
-
- db/migrate/
|
868
|
+
- db/migrate/20120315064358_migrate_images_from_products_to_variants.rb
|
937
869
|
- db/sample/users.rb
|
938
870
|
- db/seeds.rb
|
939
871
|
- vendor/assets/images/datepicker/cal.gif
|
@@ -956,7 +888,6 @@ files:
|
|
956
888
|
- vendor/assets/javascripts/jquery.alerts/images/important.gif
|
957
889
|
- vendor/assets/javascripts/jquery.alerts/images/info.gif
|
958
890
|
- vendor/assets/javascripts/jquery.alerts/images/title.gif
|
959
|
-
- vendor/assets/javascripts/jquery.alerts/jquery.alerts.css
|
960
891
|
- vendor/assets/javascripts/jquery.alerts/jquery.alerts.css.erb
|
961
892
|
- vendor/assets/javascripts/jquery.alerts/jquery.alerts.js
|
962
893
|
- vendor/assets/javascripts/jquery.alerts/jquery.alerts.spree.css
|
@@ -1030,16 +961,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
1030
961
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
1031
962
|
none: false
|
1032
963
|
requirements:
|
1033
|
-
- - ! '
|
964
|
+
- - ! '>'
|
1034
965
|
- !ruby/object:Gem::Version
|
1035
|
-
version:
|
1036
|
-
segments:
|
1037
|
-
- 0
|
1038
|
-
hash: 1804394564669674040
|
966
|
+
version: 1.3.1
|
1039
967
|
requirements:
|
1040
968
|
- none
|
1041
969
|
rubyforge_project: spree_core
|
1042
|
-
rubygems_version: 1.8.
|
970
|
+
rubygems_version: 1.8.10
|
1043
971
|
signing_key:
|
1044
972
|
specification_version: 3
|
1045
973
|
summary: Core e-commerce functionality for the Spree project.
|
Binary file
|
@@ -1,49 +0,0 @@
|
|
1
|
-
module Spree
|
2
|
-
module Admin
|
3
|
-
class ProductGroupsController < ResourceController
|
4
|
-
before_filter :patch_params, :only => [:update]
|
5
|
-
|
6
|
-
def preview
|
7
|
-
@product_group = ProductGroup.new(params[:product_group])
|
8
|
-
@product_group.name = "for_preview"
|
9
|
-
respond_with(@product_group) { |format| format.html { render :partial => 'preview', :layout => false } }
|
10
|
-
end
|
11
|
-
|
12
|
-
protected
|
13
|
-
|
14
|
-
def find_resource
|
15
|
-
ProductGroup.find_by_permalink!(params[:id])
|
16
|
-
end
|
17
|
-
|
18
|
-
def location_after_save
|
19
|
-
edit_admin_product_group_path(@product_group)
|
20
|
-
end
|
21
|
-
|
22
|
-
def collection
|
23
|
-
params[:search] ||= {}
|
24
|
-
params[:search][:meta_sort] ||= "name.asc"
|
25
|
-
@search = super.metasearch(params[:search])
|
26
|
-
@collection = @search.relation.page(params[:page]).per(Spree::Config[:admin_pgroup_per_page])
|
27
|
-
end
|
28
|
-
|
29
|
-
private
|
30
|
-
|
31
|
-
# Consolidate argument arrays for nested product_scope attributes
|
32
|
-
# Necessary for product scopes with multiple arguments
|
33
|
-
def patch_params
|
34
|
-
if params["product_group"] and params["product_group"]["product_scopes_attributes"].is_a?(Array)
|
35
|
-
params["product_group"]["product_scopes_attributes"] = params["product_group"]["product_scopes_attributes"].group_by {|a| a["id"]}.map do |scope_id, attrs|
|
36
|
-
a = { "id" => scope_id, "arguments" => attrs.map{|a| a["arguments"] }.flatten }
|
37
|
-
if name = attrs.first["name"]
|
38
|
-
a["name"] = name
|
39
|
-
end
|
40
|
-
a
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
@@ -1,39 +0,0 @@
|
|
1
|
-
module Spree
|
2
|
-
module Admin
|
3
|
-
class ProductScopesController < BaseController
|
4
|
-
helper 'spree/admin/product_groups'
|
5
|
-
|
6
|
-
respond_to :html, :js
|
7
|
-
|
8
|
-
def create
|
9
|
-
@product_group = ProductGroup.find_by_permalink(params[:product_group_id])
|
10
|
-
@product_scope = @product_group.product_scopes.build(params[:product_scope])
|
11
|
-
if @product_scope.save
|
12
|
-
respond_with(@product_scope) do |format|
|
13
|
-
format.html { redirect_to edit_admin_product_group_path(@product_group) }
|
14
|
-
format.js { render :layout => false }
|
15
|
-
end
|
16
|
-
else
|
17
|
-
respond_with(@product_scope)
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
def destroy
|
22
|
-
@product_scope = ProductScope.find(params[:id])
|
23
|
-
if @product_scope.destroy
|
24
|
-
@product_group = @product_scope.product_group
|
25
|
-
@product_group.update_memberships
|
26
|
-
respond_with(@product_scope) do |format|
|
27
|
-
format.html { redirect_to edit_admin_product_group_path(@product_group) }
|
28
|
-
format.js { render :layout => false }
|
29
|
-
end
|
30
|
-
else
|
31
|
-
respond_with(@product_scope) do |format|
|
32
|
-
format.html { redirect_to edit_admin_product_group_path(@product_scope.product_group) }
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
module Spree
|
2
|
-
module Admin
|
3
|
-
module ProductGroupsHelper
|
4
|
-
# Allow certain scope attributes to have a custom field type
|
5
|
-
def product_scope_field(product_scope, i)
|
6
|
-
value = (product_scope.arguments || [])[i]
|
7
|
-
name = 'product_group[product_scopes_attributes][][arguments][]'
|
8
|
-
helper_method_for_scope = :product_picker_field if product_scope.name.to_sym == :with_ids
|
9
|
-
helper_method_for_scope ||= :text_field_tag
|
10
|
-
send(helper_method_for_scope, name, value)
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
@@ -1,24 +0,0 @@
|
|
1
|
-
module Spree
|
2
|
-
module Admin
|
3
|
-
module ProductPropertiesHelper
|
4
|
-
# Generates the appropriate field name for attribute_fu. Normally attribute_fu handles this but we've got a
|
5
|
-
# special case where we need text_field_with_autocomplete and we have to recreate attribute_fu's naming
|
6
|
-
# scheme manually.
|
7
|
-
def property_fu_name(product_property, number)
|
8
|
-
if product_property.new_record?
|
9
|
-
"product[product_property_attributes][new][#{number}][property_name]"
|
10
|
-
else
|
11
|
-
"product[product_property_attributes][#{product_property.id}][property_name]"
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
def property_fu_value(product_property, number)
|
16
|
-
if product_property.new_record?
|
17
|
-
"product[product_property_attributes][new][#{number}][value]"
|
18
|
-
else
|
19
|
-
"product[product_property_attributes][#{product_property.id}][value]"
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|