spree-last-address 2.1.1 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 92502d4170fb4ec41a8d336e2842e34de496edbd
4
- data.tar.gz: 759225ca03891549933a34c41f537e006a64f0f0
3
+ metadata.gz: 456dcbed0ebddadd5dacd55eb93fd053c6328484
4
+ data.tar.gz: bf596605b3432f71f31d42c3ea2072c676b74295
5
5
  SHA512:
6
- metadata.gz: ba5179aa3f7e2e1c9dd3672d4fe97f810032e99da3ed616d3142310e3fdf29e9cc4bf33ab7b29ccbf4059d0b099c5a9b529b4bf21ae4c1904d06b539b1be698f
7
- data.tar.gz: 685a8dfe4e7b846385c4b4800154e9fae7a3a6c941ae212bc6cc2bc84bf9f0162dfa45293470190e6ee040f78fd00b0f0cf298df08d6e810a40b81d4df1d23a1
6
+ metadata.gz: b4c10d5b8ab9244d3d117c1538c416a3881bfeab3412884abb8abfcafd028ec8b9ef29e7ea038fc08f21d2f999c6e6cdb54c10a8611e330bad3640e2ae927308
7
+ data.tar.gz: 7b371a3cc65e686278eab1c4822e04202311c4d7a7200c85d4bd80e8ed0c28b55afb10a2bf450cb0ebdeca8882458394233c8a4d05c6940ce9cf25bdba978fd6
data/.travis.yml CHANGED
@@ -9,6 +9,3 @@ rvm:
9
9
  - 1.9.3
10
10
  - 2.0.0
11
11
  - 2.1.0
12
- branches:
13
- except:
14
- - 1-0-stable
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'spree', github: 'spree/spree', branch: '2-1-stable'
4
- gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '2-1-stable'
3
+ gem 'spree', github: 'spree/spree', branch: '2-2-stable'
4
+ gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '2-2-stable'
5
5
 
6
6
  gemspec
data/LICENSE.md CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010-2014 Tobias Bohwalli, Torsten Rüger, and other contributors.
1
+ Copyright (c) 2011-2014 Tobias Bohwalli, Torsten Rüger, and other contributors.
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without modification,
data/README.md CHANGED
@@ -1,9 +1,8 @@
1
1
  # Spree Last Address
2
2
 
3
- [![Build Status](https://api.travis-ci.org/futhr/spree-last-address.png?branch=2-1-stable)](http://travis-ci.org/futhr/spree-last-address)
3
+ [![Build Status](https://api.travis-ci.org/futhr/spree-last-address.png?branch=2-2-stable)](http://travis-ci.org/futhr/spree-last-address)
4
4
  [![Code Climate](https://codeclimate.com/github/futhr/spree-last-address.png)](https://codeclimate.com/github/futhr/spree-last-address)
5
- [![Coverage Status](https://coveralls.io/repos/futhr/spree-last-address/badge.png?branch=2-1-stable)](https://coveralls.io/r/futhr/spree-last-address)
6
- [Gem Version](https://badge.fury.io/rb/spree-last-address.png)](http://badge.fury.io/rb/spree-last-address)
5
+ [![Coverage Status](https://coveralls.io/repos/futhr/spree-last-address/badge.png?branch=2-2-stable)](https://coveralls.io/r/futhr/spree-last-address)
7
6
 
8
7
  During checkout, causes the address to be prefilled with the address from their most recent order or the user’s saved address (if available).
9
8
 
@@ -19,7 +18,7 @@ As of Spree 1.2, the `belongs_to :bill_address` and `belongs_to :ship_address` a
19
18
 
20
19
  Add to your `Gemfile`
21
20
  ```ruby
22
- gem 'spree_last_address', '~> 2.1.0'
21
+ gem 'spree_last_address', '~> 2.2.0'
23
22
  ```
24
23
 
25
24
  Run
@@ -36,12 +35,12 @@ See corresponding [contribution guidelines][3].
36
35
 
37
36
  ## License
38
37
 
39
- Copyright (c) 2010-2014 [Tobias Bohwalli][4], [Torsten Rüger][5], and other [contributors][6], released under the [New BSD License][7]
38
+ Copyright (c) 2011-2014 [Tobias Bohwalli][4], [Torsten Rüger][5], and other [contributors][6], released under the [New BSD License][7]
40
39
 
41
40
  [1]: https://github.com/swistak/spree-default-addresses
42
41
  [2]: https://github.com/spree/spree_auth_devise
43
42
  [3]: https://github.com/futhr/spree-last-address/blob/master/CONTRIBUTING.md
44
43
  [4]: https://github.com/futhr
45
- [5]: https://github.com/dancinglightning
46
- [6]: https://github.com/futhr/spree-last-address/graphs/contributors
47
- [7]: https://github.com/futhr/spree-last-address/blob/master/LICENSE.md
44
+ [5]: https://github.com/futhr/spree-last-address/blob/master/LICENSE.md
45
+ [6]: https://github.com/dancinglightning
46
+ [7]: https://github.com/futhr/spree-last-address/graphs/contributors
data/Rakefile CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'bundler'
2
2
  Bundler::GemHelper.install_tasks
3
+ Bundler.setup
3
4
 
4
5
  require 'rspec/core/rake_task'
5
6
  require 'spree/testing_support/common_rake'
@@ -0,0 +1 @@
1
+ //= require spree/frontend
@@ -0,0 +1,3 @@
1
+ /*
2
+ *= require spree/frontend
3
+ */
@@ -17,7 +17,7 @@ module Spree
17
17
  end
18
18
 
19
19
  def find_last_used_addresses(email)
20
- past = Spree::Order.order('id desc').where(email: email).where('state != "cart"').limit(8)
20
+ past = Spree::Order.order(id: :desc).where(email: email).where.not(state: 'cart').limit(8)
21
21
  if order = past.detect(&:bill_address)
22
22
  bill_address = order.bill_address.clone if order.bill_address
23
23
  ship_address = order.ship_address.clone if order.ship_address
@@ -7,8 +7,8 @@ module SpreeLastAddress
7
7
 
8
8
  module VERSION
9
9
  MAJOR = 2
10
- MINOR = 1
11
- TINY = 1
10
+ MINOR = 2
11
+ TINY = 0
12
12
  PRE = nil
13
13
 
14
14
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
22
22
  s.require_path = 'lib'
23
23
  s.requirements << 'none'
24
24
 
25
- s.add_runtime_dependency 'spree_core', '~> 2.1.0'
25
+ s.add_runtime_dependency 'spree_core', '~> 2.2.0'
26
26
 
27
27
  s.add_development_dependency 'capybara', '~> 2.2.1'
28
28
  s.add_development_dependency 'poltergeist', '1.5.0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree-last-address
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Bohwalli
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - ~>
19
19
  - !ruby/object:Gem::Version
20
- version: 2.1.0
20
+ version: 2.2.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ~>
26
26
  - !ruby/object:Gem::Version
27
- version: 2.1.0
27
+ version: 2.2.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: capybara
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -251,11 +251,10 @@ files:
251
251
  - LICENSE.md
252
252
  - README.md
253
253
  - Rakefile
254
- - app/assets/javascripts/store/spree_last_address.js
255
- - app/assets/stylesheets/store/spree_last_address.css
254
+ - app/assets/javascripts/spree/frontend/spree_last_address.js
255
+ - app/assets/stylesheets/spree/frontend/spree_last_address.css
256
256
  - app/controllers/spree/checkout_controller_decorator.rb
257
257
  - bin/rails
258
- - lib/generators/spree_last_address/install/install_generator.rb
259
258
  - lib/spree_last_address.rb
260
259
  - lib/spree_last_address/engine.rb
261
260
  - lib/spree_last_address/version.rb
@@ -1 +0,0 @@
1
- //= require store/spree_frontend
@@ -1,3 +0,0 @@
1
- /*
2
- *= require store/spree_frontend
3
- */
@@ -1,15 +0,0 @@
1
- module SpreeLastAddress
2
- module Generators
3
- class InstallGenerator < Rails::Generators::Base
4
- class_option :auto_run_migrations, type: :boolean, default: false
5
-
6
- def add_javascripts
7
- append_file 'app/assets/javascripts/store/all.js', "//= require store/spree_last_address\n"
8
- end
9
-
10
- def add_stylesheets
11
- inject_into_file 'app/assets/stylesheets/store/all.css', " *= require store/spree_last_address\n", before: /\*\//, verbose: true
12
- end
13
- end
14
- end
15
- end