Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't merge - Checking difference between versions #1

Open
wants to merge 1,148 commits into
base: 2-2-stable
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1148 commits
Select commit Hold shift + click to select a range
c4709b1
Add data-hook to password fields on user form
Sep 16, 2014
ca5799d
update order shipment total on transition to delivery
HoyaBoya Sep 16, 2014
61c6ba5
Fix spec broken by ca5799d2c1b0d3f5a2ea1b695e5c7083781080cd
Sep 16, 2014
458e1cb
Added failed state to the admin variables
reinaris Sep 17, 2014
8eed0b7
Only present promotion codes that have been applied in the admin inte…
metade Sep 17, 2014
3856566
Fix spec broken by d0615f8
Sep 17, 2014
e09e839
Fix variable css.
Sep 17, 2014
c799905
Bump active merchant and fix broken spec.
Sep 18, 2014
d84d0fd
Fix spec.
Sep 18, 2014
e071169
add select2 call after loading new images
BenMorganIO Sep 18, 2014
faa08d9
we fixed mail validator.
Sep 19, 2014
5cfa168
set the order#payment_state to the correct state when order is canceled
peterberkenbosch Sep 15, 2014
ab8115f
Bump version.
Sep 19, 2014
6c8b39f
Bump to beta.
Sep 19, 2014
4447938
Close a table in variant autocomplete
reinaris Sep 22, 2014
c0bcb02
Show line items for orders that have not advanced to delivery state yet.
Sep 24, 2014
bf5ba7c
data-hook for form
lipenco Sep 23, 2014
2d8c81d
Right no objects found message for new stock transfer
reinaris Sep 23, 2014
b358a60
Deleted the ajax_indicator for the observe_field on change
reinaris Sep 24, 2014
6e97099
Added configuration_menu to the 'add country' page
reinaris Sep 24, 2014
1d5102a
Added configuration_menu to the 'stock locations edit'
reinaris Sep 24, 2014
81d47ce
Fixed objects name for stock location form labels
reinaris Sep 24, 2014
bb45291
Dont let order import fail silently on bad line items.
Sep 25, 2014
39c8173
Fix my mistakes from 933c773a234048b72fbd7cb4fccce8810ec55c83 :(
Sep 25, 2014
4ec9eb2
Editing a shipping method was triggering to GET requests to the edit …
frahugo Sep 25, 2014
dc5eeef
Remove unused check that stubs out valid data.
Sep 25, 2014
56d31a4
Standardizing use of colons in checkout summary
brchristian Sep 25, 2014
b63c927
Touch Adjustment#adjustable, and fix some rspec deprecations.
Sep 26, 2014
3830324
Fix broken spec.
Sep 26, 2014
a705474
Fix the damn taxes. When tax adjustments are destroyed we need to se…
Sep 24, 2014
187a407
Small performance improvement calculating taxes.
Sep 27, 2014
87b3fa6
User store location when signing in
marcosteixeira Sep 25, 2014
f4d33eb
Fix specs broken by 09ccf8a
Sep 30, 2014
3f7bc61
Fix specs broken by 87b3fa6
Sep 30, 2014
455f297
Include all adjustments in final shipment price
brchristian Sep 25, 2014
633210e
Fix broken specs from 4441fb42acfbf7ebf02a44c116f0d09d61c3b54f & c3a741c
Sep 30, 2014
8dcb523
refactor shipping calculator compute methods
brchristian Sep 25, 2014
a9f8cb4
refactoing code to call find_adjustment in before_action rather than …
Sep 28, 2014
61dbe97
Add spec to ensure adjustment callback is fired.
Sep 30, 2014
f11424a
Add comment explaining its important to use destroy_all.
Sep 30, 2014
eeb5e60
Fix db:bootstrap task
hnatt Sep 24, 2014
76b0db3
Replace scoped with where(nil) as scoped was removed from Rails. See:…
Sep 30, 2014
0fcc46f
Add considered_safe to variable states
AlessioRocco Sep 16, 2014
37d7f61
Fix spec broken by 3eeb71d and add a regression check for it.
Sep 30, 2014
c625b31
Fix credit action.
Sep 19, 2014
8f48d86
Allow order admin to filter on risky
HoyaBoya Oct 1, 2014
8de441f
Remove some bad factory values
jordan-brough Oct 1, 2014
9349d6a
Add self dependencies.
Sep 6, 2014
a4a14c7
remove guide accidently added to 2-3-stable.
Oct 2, 2014
cdb0ffb
Raise an error if no unprocessed payments.
Oct 2, 2014
37c5b75
Deleted the continue button from adjustment index
reinaris Sep 22, 2014
8cbb97e
Regression spec for 'stack level too deep' #5384
andrzejpolis Sep 19, 2014
19e15aa
Add in fix from @andrzejpolis Fixes #5384 Fixes #5386
Oct 3, 2014
ffa6a95
Fix example to contain expectation
mbj Oct 6, 2014
caeddfd
allow guests to use the payments api for their orders
pdamer Oct 6, 2014
6dc96c4
Improve localization of stock_locations/_form
hnatt Oct 7, 2014
c28de99
Fix factories to generate unique SKUs
mbj Sep 30, 2014
507d0ee
Update dependencies
StupidCodeFactory Oct 7, 2014
3a07b40
Bump 2.3.4
Oct 7, 2014
12e4bca
Bump to next beta.
Oct 7, 2014
719b2d0
Make create endpoint require important params
HoyaBoya Oct 7, 2014
8ce62f8
Moving admin index route to bottom of routes file to allow it to be o…
metade Oct 8, 2014
d6809b8
Update jquery-ui-rails
StupidCodeFactory Oct 7, 2014
be52ff6
Remove 'disabled' from inputs in payments
ericsaupe Oct 8, 2014
523caba
fix handling of credit cards expiring in current month
pdamer Oct 8, 2014
8945075
Ignore guides.
Oct 8, 2014
d84b0e9
Use Rails environments instead of DB configurations
Aug 8, 2014
46aa178
Add issuestats badges.
Oct 8, 2014
85b89fb
Make best-promotion query more deterministic
jordan-brough Jul 9, 2014
bbf5d36
Fix running just rake for specs.
Oct 9, 2014
d69282c
Fix rerunning sample specs without new dummy app.
Oct 9, 2014
f678c16
Check payment method should respond to cancel. Fixes #5307
Oct 10, 2014
08c9116
Improve the presentation during creating prototypes. Fixes #2526
Oct 10, 2014
28ea401
Use slower but robust ActiveRecord for migration
brchristian Jun 14, 2014
c746366
No need for partial. Fixes #5475
Oct 13, 2014
6d3cf37
remove top and bottom pixels from admin nav
BenMorganIO Jul 7, 2014
c6204bb
create proposed shipments if is no shippment data
peterberkenbosch Oct 6, 2014
37315b5
Looking up stock location by the admin name as well
alexstoick Oct 14, 2014
9997fbe
Add spec for looking up stock location by admin name.
Oct 14, 2014
92bbc3a
Remove spec invalidated by https://github.com/spree/spree/commit/a135…
Oct 14, 2014
8b7ce1b
Do not allow leading or trailing dot(.) in the first part of email ad…
ifan-godaddy Oct 14, 2014
12a017b
Simplify set_current_order. Fixes #5382
Oct 15, 2014
b69a2be
Search for guest order first before running Order.new
BenMorganIO Sep 28, 2014
fc168a0
Add inverse_of for more associations involved in cart processing
dkubb Mar 24, 2014
3c203cc
Loosen kaminari dep. Fixes #5486
Oct 15, 2014
af7f97a
Add inverse_of for more associations involved in cart processing
dkubb Mar 24, 2014
9297a17
remove extra dependent destroy
Oct 16, 2014
49ea329
Fixes messaging after applying coupon code promo with CreateLineItems…
Oct 20, 2014
6c2a5d4
Refactor Spree::ProductHelper#variant_price_diff
dkubb Nov 13, 2013
e8251cb
Add required attributes to required product admin form fields
dkubb Jul 30, 2014
158077c
make bogus gateway match actual gateways. ie. don't assign profile id…
pdamer Oct 17, 2014
33374c0
Make some strings on admin product edit form translatable
hnatt Oct 18, 2014
ff64cca
Fix displaying product & taxon names when meta_title present.
hnatt Oct 18, 2014
cce73fc
Revert "Fix displaying product & taxon names when meta_title present."
Oct 20, 2014
5bece6c
Depend on factory_girl_rails 4.5.0
Oct 20, 2014
7402659
We need to be more restrictive with factory girl updates.
Oct 20, 2014
4f91950
Implement a state lock version to prevent race conditions in checkout…
Oct 21, 2014
cfe7e96
Add circle CI setup
mbj Sep 25, 2014
1e370f8
Use includes instead of eager_load to ensure images are returned in c…
zewelor Oct 21, 2014
a6e59c8
include option values when loading option values from option types
BenMorganIO Oct 22, 2014
8f40b64
stack level too deep in rails 4.1.6
wuboy0307 Oct 19, 2014
c9857d4
be more verbose with the missing migrations
peterberkenbosch Oct 24, 2014
01d3c09
Use js driver to fix spec.
Oct 23, 2014
6ec3a6d
Refactor the duplicate request prevention code ( order.with_lock )
DangerDawson Oct 24, 2014
8909829
clean up stock location form design
BenMorganIO Oct 24, 2014
1f1cb81
Default is 2.4.x+
Oct 24, 2014
1f65f96
Adds editorConfig.
Oct 16, 2014
a1cc9ba
Fallback to variant.id if sku is not provided.
coorasse Oct 24, 2014
8a84a31
Use variant_id to avoid loading variant.
Oct 24, 2014
608cc16
Frontend - Fix RSpec 3 Deprecations.
Oct 20, 2014
f9dcf21
Frontend - Fix rspec 3 deprecations.
Oct 20, 2014
735dfd5
Fix remaining deprecations in helpers.
Oct 24, 2014
7d0c7b3
Convert specs to RSpec 3.1.7 syntax with Transpec
Oct 24, 2014
93872d8
Convert specs to RSpec 3.1.7 syntax with Transpec
Oct 24, 2014
fbe2a2d
Convert specs to RSpec 3.1.7 syntax with Transpec
Oct 24, 2014
9449b2a
Fix broken spec.
Oct 24, 2014
41cd922
Use wait_for_ajax to hopefully make less frail.
Oct 24, 2014
9cd26b7
Display states link if a country exists without a default country set…
Oct 24, 2014
73d9fdd
Add spec for updating version.
Oct 28, 2014
fc2c095
add table name for order/line_item association
kennyadsl Oct 26, 2014
7af3612
refactor code to follow DRY in zone model
Oct 26, 2014
74598ec
Update generated robots.txt
alepore Oct 26, 2014
9a5452d
Try sleep instead of wait_for_ajax to fix frail spec.
Oct 28, 2014
f9c25e8
Remove script execution the other specs dont need it.
Oct 28, 2014
0d233fe
Need to execute script.
Oct 28, 2014
1519cfc
Removes redundant closing li
Oct 27, 2014
9667a5b
Make email field in admin orders#index link to the customer's account…
Oct 27, 2014
68c1161
Allow for shipment adjustments to be viewed from API
HoyaBoya Oct 28, 2014
4abb2cb
Fix optimistic lock to not revert incremented version.
Oct 28, 2014
4517e23
Fix #5530: checkout form error messages not translated in production
hnatt Oct 26, 2014
cf6618e
Fix payments ordering when choose payment for risk analysis
mehanoid Oct 29, 2014
23dec07
Fix variant price validation to allow nil
dkubb Jun 12, 2014
b63886c
Fix pagination in /api/taxons/products
KentoMoriwaki Nov 3, 2014
b818e82
Fix order / adjustment presence in adjustments
mbj Sep 23, 2014
98c327b
Fix the cookie domain used for google analytics
dkubb May 30, 2014
f0ee9fc
Fix validation to skip performing a query if the field is blank
dkubb Sep 26, 2014
581d59a
Only reload shipment items on item adjustment
mbj Jul 30, 2014
dc86f3b
Pass item to Adjustment#update to avoid N+1
mbj Jul 30, 2014
b26a7cb
Change an inventory unit to be removed when it's line item is removed
dkubb Jul 8, 2014
98aadc9
Fix spelling
mbj Nov 4, 2014
aa8bfd4
Fix admin order open/close adjustments to affect all adjustments
dkubb Oct 31, 2014
afc4ae0
Fix gitignore to exclude vendor
mbj Nov 4, 2014
1578e2b
fix #4826 ambiguous column name
marcosteixeira Nov 4, 2014
6d6214d
Redirect to cart on failure. Fixes #5570
Nov 5, 2014
abbbd49
Allow tax categories to be destroyed with proper callback order. Fixe…
Nov 5, 2014
55a6e7c
Switch back to respond_with it should just render edit not redirect b…
Nov 5, 2014
16f7e13
Fix product classifications page layout & text
hnatt Nov 6, 2014
cf59833
Fixes typo, handles adjustable order without order_id
gflateman Nov 6, 2014
a6ea41f
Make conditional read nicer.
Nov 7, 2014
e1176af
When selecting a customer via the customer search in admin, not all t…
nigelr Sep 4, 2014
1ddc4c5
Fix specs & add regression spec for #5317
Nov 7, 2014
21b2a68
Fix #5578: make product classifactions ordering scoped by taxon
hnatt Nov 6, 2014
5a73691
check inventory and restart checkout if not enough
HoyaBoya Nov 7, 2014
fbaab4a
Update ruby version for circle builds
mbj Nov 7, 2014
7ccdf9d
Scope to orders line items. Fixes #5594
Nov 11, 2014
b9f7cfe
Duplicate entry of inventory_unit_attributes in ATTRIBUTES, its alrea…
pulkit21 Oct 21, 2014
4e50b38
Fix Asset position for different viewables.
mtomov Nov 10, 2014
8394980
Update MoveOrderTokenFromTokenizedPermission migration to work w/ jruby
swrobel Nov 11, 2014
b36f815
Validate authenticity token on all actions but populate
mbj Nov 12, 2014
21cb4b3
Add total on hand to variant RABL
HoyaBoya Nov 12, 2014
3a380ef
Skipping the set_current_order before filter on the cart link action …
metade Nov 13, 2014
633ecd1
Don't load the store if we don't have to - minor optimisation but eve…
metade Nov 13, 2014
106ace4
Add is_backorderable to variant and small RABL view
HoyaBoya Nov 11, 2014
15fde26
Fix git conflict.
Nov 13, 2014
38036a9
Fix product specs.
Nov 13, 2014
d52f941
fix use billing
Nov 13, 2014
b2ee2dd
Test latest 2.1.5
Nov 14, 2014
3c20f8c
Fixes #4905: Error while trying to set "weight" in Variant with "," a…
Jul 9, 2014
effed54
Refactor number parsing to be DRY. Fixes #4939
Nov 14, 2014
d067c8b
Fixes product validation on create. Fixes #5588
Nov 14, 2014
d941f42
Fix git conflict.
Nov 14, 2014
dc1d0c1
Remove file that shouldnt exist.
Nov 14, 2014
dee6612
Give spec correct title.
iangreenleaf Nov 14, 2014
4297b5e
Fix & Use NotImplementedError.
Nov 15, 2014
5dac112
[backend] Hiding option values handle if object is not persisted
tiagoamaro Nov 16, 2014
066071d
Bump Rails.
Nov 19, 2014
f78c040
Indexing the guest_token column on spree_orders
metade Nov 20, 2014
fef4f98
Moving the default options[:lock] configuration into find_order_by_to…
metade Nov 18, 2014
70ffd73
Bump version
Nov 20, 2014
4cce24a
bump to beta
Nov 20, 2014
df73e2c
Fix for Promotion::Rules::Product
jordan-brough Nov 21, 2014
21def4d
remove line that got there by bad merge.
peterberkenbosch Nov 21, 2014
9796d81
Improve readability in FlexiRate calculator labels
dougjohnston Nov 20, 2014
0ec13dc
Added gif to valid icon types
Hates Nov 26, 2014
44be070
Fix vendor gitignore.
Dec 1, 2014
548a80d
Fixes ambigous stock_item_or_create method to accept either argument.…
Dec 1, 2014
4159de4
Add deprecation warning.
Dec 3, 2014
036e61a
Fix security issue when updating order by API.
leandro-gomez Dec 4, 2014
6c8cbdb
Bump version.
Dec 5, 2014
68f96cb
Bump to beta.
Dec 5, 2014
bc844fc
Use the shipping calculators in the test factories +
MattFenelon Dec 1, 2014
d76a425
Fix order assignment. Fixes #5710
Dec 5, 2014
c2fd238
Update expectation.
Dec 5, 2014
de79a81
Prevent ordering unpersisted product properties. Fixes #5703
Dec 9, 2014
9da23bb
Revert "Fix & Use NotImplementedError."
Dec 12, 2014
fca6599
Fix cc factory.
Dec 18, 2014
603a32e
Lockdown monetize to fix specs for now.
Dec 23, 2014
8a3a79b
Update ruble symbol.
Dec 23, 2014
19362a2
Require latest monetize.
Dec 23, 2014
87856e3
Update payment_total on void.
Dec 23, 2014
60e57af
Fix payment sample card for 2015
jhawthorn Jan 2, 2015
e045b71
Fix expiration year.
Jan 2, 2015
eb8c97f
Do not trigger full order update when fulfilling a backordered order
ifan-godaddy Dec 30, 2014
1c9d57e
Fix included scope for Rails 4.1.9...
Jan 7, 2015
2b4a551
Fix included scope reference.
Jan 7, 2015
e22f5da
Fix authorization check. Fixes #5624
Jan 13, 2015
1252843
Fix to payment_spec
allisonlarson Jan 9, 2015
7942d37
translate hardcoded strings on cc payment form
alepore Jan 14, 2015
5f0da3a
Improve update_payment_state again
jhawthorn Jan 14, 2015
b7c87c6
Update asset initializers. Fixes #5923
Jan 22, 2015
e871120
JS fix for admin resource destroy success message
MattDunbar Jan 26, 2015
732c115
Lockdown select2-rails.
Jan 26, 2015
b0157df
Fix td element to be within conditional block.
Jan 27, 2015
09914ae
Lockdown paranoia.
Jan 28, 2015
ac2bf35
Adjustments upgrade migration should fail on save / destroy fail
MattDunbar Feb 1, 2015
565699e
Adjustments upgrade migration efficiency improvement.
MattDunbar Jan 30, 2015
9d63cfa
Bump version.
Feb 23, 2015
e999e4d
Bump to next beta.
Feb 23, 2015
5409de6
Require token for any API endpoint & remove JSONP support.
huoxito Mar 2, 2015
ae00b7e
Bump version.
Mar 3, 2015
0362766
Bump beta.
Mar 3, 2015
6535411
Remove JSONP support. Fixes #6105
Mar 4, 2015
ae46145
Add token to api calls. Fixes #6122
Mar 6, 2015
aa3cf91
Fixed a bug in payments js at backend
Mar 6, 2015
1670860
Bump version.
Mar 10, 2015
54ff32f
Bump to beta.
Mar 10, 2015
0d9b4da
Fix taxon autocomplete. Fixes #6166
Mar 12, 2015
3a8d9fa
patches missing table spree_stores
Mar 13, 2015
ff5e8ce
Add missing api key in product picker.
frahugo Mar 16, 2015
bc4ac73
Include api key for taxon reordering.
Mar 18, 2015
c819ebf
We need to lock down to 4.1.9 until refs #6213 is fixed.
Mar 23, 2015
78522f7
Use all_adjustments to access order promotion because it could be at …
ifan-godaddy Mar 30, 2015
01601c7
Update old migration with i18n workaround
alepore Apr 4, 2015
9eadb63
Package#currency should be order.currency. Fixes #6273
Apr 10, 2015
bd5865b
Re add :id to address permitted attributes
huoxito Jul 13, 2014
93713c6
Fix broken rspec (float -> string conversion may be truncated for cer…
ifan-godaddy Apr 17, 2015
89586c7
Avoid recursion on the create_line_items promotion action
manmartinez Apr 17, 2015
fbd8fa2
Bump version.
May 5, 2015
4f3a646
Bump beta.
May 5, 2015
187312c
Fix bug where line item quantity cannot be set to zero for out-of-sto…
dkubb Jun 18, 2014
f0cd757
Remove unused method from Spree::OrderUpdater
dkubb Nov 18, 2014
78b02d3
Change before_filter to before_action.
dkubb Nov 7, 2014
2e0b08d
Add validations to stock items and stock movements.
dkubb Mar 31, 2014
b3764c2
Add Spree::Payment#editable?
dkubb Nov 5, 2014
d1543a9
Promote Order#all_adjustments to association.
mbj Sep 24, 2014
e462bc1
Revert "Promote Order#all_adjustments to association."
May 27, 2015
d9b46c0
Fix performance of cart promotion handler select.
mbj Dec 10, 2014
9348a73
Promote Order#all_adjustments to association.
mbj Sep 24, 2014
5bfc9a5
Add GA user id tracking.
paultyng Jun 1, 2015
879525c
Commented out protected_attributes exception, bumped activemerchant d…
kurtfunai Jun 12, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
22 changes: 22 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# http://EditorConfig.org
# https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties

root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
tab_width = 2

[**.rb]
max_line_length = 80

[**.js, **.coffee]
max_line_length = 120

[*.md]
trim_trailing_whitespace = false
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,13 @@ spree_test
testapp
**/spec/dummy
tmp
vendor/rails
vendor/extensions/google_base
public/google_base.xml
public/template_google_base.xml
coverage/*
var
TAGS
nbproject
vendor/extensions/theme_default/app/stylesheets/*.css
./vendor
tags
*.swp
rerun.txt
Expand All @@ -55,3 +53,4 @@ test_app
**/coverage
*/.sass-cache
.localeapp
guides
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,4 @@ script:
- bundle exec rake test_app
- bundle exec rake spec
rvm:
- 1.9.3
- 2.0.0
- 2.1.0
- 2.1.5
3 changes: 1 addition & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ When filing an issue on the Spree project, please provide these details:

* A comprehensive list of steps to reproduce the issue.
* What you're *expecting* to happen compared with what's *actually* happening.
* The version of Spree *and* the version of Rails.
* Your application's complete Gemfile, as text (*not as an image*)
* Your application's complete `Gemfile.lock`, and `Gemfile.lock` as text in a [Gist](https://gist.github.com) (*not as an image*)
* Any relevant stack traces ("Full trace" preferred)

In 99% of cases, this information is enough to determine the cause and solution
Expand Down
41 changes: 25 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
**THIS README IS FOR THE MASTER BRANCH OF SPREE AND REFLECTS THE WORK CURRENTLY
EXISTING ON THE MASTER BRANCH. IF YOU ARE WISHING TO USE A NON-MASTER BRANCH OF
SPREE, PLEASE CONSULT THAT BRANCH'S README AND NOT THIS ONE.**

SUMMARY
-------

Expand Down Expand Up @@ -30,6 +26,8 @@ and perhaps combine it with your own custom backend admin instead of using
spree_api.

[![Code Climate](https://codeclimate.com/github/spree/spree.png)](https://codeclimate.com/github/spree/spree)
[![Issue Stats](http://issuestats.com/github/spree/spree/badge/pr)](http://issuestats.com/github/spree/spree)
[![Issue Stats](http://issuestats.com/github/spree/spree/badge/issue)](http://issuestats.com/github/spree/spree)

Installation
------------
Expand All @@ -42,9 +40,9 @@ The fastest way to get started is by using the spree command line tool
available in the spree gem which will add Spree to an existing Rails application.

```shell
gem install rails -v 4.0.2
gem install rails -v 4.1.9
gem install spree
rails _4.0.2_ new my_store
rails _4.1.9_ new my_store
spree install my_store
```

Expand All @@ -69,11 +67,11 @@ Using stable builds and bleeding edge
-------------

To use a stable build of Spree, you can manually add Spree to your
Rails 4.0.x application. To use the 2-1-stable branch of Spree, add this line to
Rails 4.1.x application. To use the 2-3-stable branch of Spree, add this line to
your Gemfile.

```ruby
gem 'spree', github: 'spree/spree', branch: '2-1-stable'
gem 'spree', github: 'spree/spree', branch: '2-3-stable'
```

Alternatively, if you want to use the bleeding edge version of Spree, use this
Expand All @@ -91,7 +89,7 @@ If you wish to have authentication included also, you will need to add the
`spree_auth_devise` gem as well. Either this:

```ruby
gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '2-1-stable'
gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '2-3-stable'
```

Or this:
Expand Down Expand Up @@ -151,8 +149,6 @@ Browse Admin Interface

http://localhost:nnnn/admin



Working with the edge source (latest and greatest features)
-----------------------------------------------------------

Expand Down Expand Up @@ -292,20 +288,33 @@ If you want to run the simplecov code coverage report
COVERAGE=true bundle exec rspec spec
```

If you're working on multiple facets of Spree, you may want
to run this command at the root of the Spree project to
generate test applications and run specs for all the facets:
If you're working on multiple facets of Spree to test,
please ensure that you have a postgres user:

```shell
createuser -s -r postgres
```

And also ensure that you have [PhantomJS](http://phantomjs.org/) installed as well:

```shell
brew update && brew install phantomjs
```

To execute all the tests, you may want to run this command at the
root of the Spree project to generate test applications and run
specs for all the facets:
```shell
bash build.sh
```

Further Documentation
------------
Spree has a number of really useful guides online at [http://guides.spreecommerce.com](http://guides.spreecommerce.com).
Spree has a number of really useful guides online at [http://guides.spreecommerce.com](http://guides.spreecommerce.com).

Contributing
------------

Spree is an open source project and we encourage contributions. Please see the
[contributors guidelines](http://spreecommerce.com/documentation/contributing_to_spree.html)
[contributors guidelines](http://guides.spreecommerce.com/developer/contributing.html)
before contributing.
12 changes: 12 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@ Gem::PackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end

task :default => :test

desc "Runs all tests in all Spree engines"
task :test do
Rake::Task['test_app'].invoke
%w(api backend core frontend).each do |gem_name|
Dir.chdir("#{File.dirname(__FILE__)}/#{gem_name}") do
system("rspec --fail-fast") or exit!(1)
end
end
end

desc "Generates a dummy app for testing for every Spree engine"
task :test_app do
require File.expand_path('../core/lib/generators/spree/install/install_generator', __FILE__)
Expand Down
2 changes: 1 addition & 1 deletion SPREE_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.0.beta
2.3.11.beta
58 changes: 30 additions & 28 deletions api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,43 @@
## Spree 2.2.0 (unreleased) ##
## Spree 2.3.2 (unreleased) ##

* ApiHelpers attributes can now be extended without overriding instance
methods. By using the same approach in PermittedAttributes. e.g.
* Support existing credit card feature on checkout.

Spree::Api::ApiHelpers.order_attributes.push :locked_at

Washington Luiz

* Admin users can set the order channel when importing orders. By sing the
channel attribute on Order model

Washington Luiz
Checkouts_controller#update now uses the same Order::Checkout#update_from_params
from spree frontend which help us to remove a lot of duplicated logic. As a
result of that `payment_source` params must be sent now outsite the `order` key.

* Cached products/show template, which can lead to drastically (65x) faster loading times on product requests. 806319709c4ce9a3d0026e00ec2d07372f51cdb8
Before you'd send a request like this:

Ryan Bigg
```ruby
api_put :update, :id => order.to_param, :order_token => order.guest_token,
:order => {
:payments_attributes => [{ :payment_method_id => @payment_method.id.to_s }],
:payment_source => { @payment_method.id.to_s => { name: "Spree" } }
}
```

* The parts that make up an order's response from /api/orders/:num are cached, which can lead to a 5x improvement of speed for this API endpoint. 80ffb1e739606ac02ac86336ac13a51583bcc225
Now it should look like this:

Ryan Bigg
```ruby
api_put :update, :id => order.to_param, :order_token => order.guest_token,
:order => {
:payments_attributes => [{ :payment_method_id => @payment_method.id.to_s }]
},
:payment_source => {
@payment_method.id.to_s => { name: "Spree" }
}
```

* Cached variant objects which can lead to slightly faster loading times (4x) for each variant.
Josh Hepworth and Washington

Ryan Bigg
* api/orders/show now display credit cards as source under payment

* Added a route to allow for /api/variants/:id requests

Ryan Bigg

* Products response now contains a master variant separately from all the other variants. Previously all variants were grouped together.

Ryan Bigg
Washington Luiz

* Added API endpoint to retrieve a user's orders: /api/orders/mine. #4022
* refactor the api to use a general importer in core gem.

Richard Nuno
Peter Berkenbosch

* Order token can now be passed as a header: `X-Spree-Order-Token`. #4148
* Shipment manifests viewed within the context of an order no longer return variant info. The line items for the order already contains this information. #4498

Lucjan Suski
* Ryan Bigg
2 changes: 1 addition & 1 deletion api/LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2007-2013, Spree Commerce, Inc. and other contributors
Copyright (c) 2007-2014, Spree Commerce, Inc. and other contributors
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
Expand Down
6 changes: 1 addition & 5 deletions api/app/controllers/spree/api/addresses_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def address_params
end

def find_order
@order = Spree::Order.find_by!(number: params[:order_id])
@order = Spree::Order.find_by!(number: order_id)
end

def find_address
Expand All @@ -38,10 +38,6 @@ def find_address
raise CanCan::AccessDenied
end
end

def order_token
request.headers["X-Spree-Order-Token"] || params[:order_token]
end
end
end
end
Loading