spree_repeat_order 2.1.9 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 04436e609fc6f705279b8e3b507e5fd48bffbe4b
4
- data.tar.gz: d103b903923a36eb621f78a02ea4f3a202577642
3
+ metadata.gz: 529ebf90d5bc56d96e6b0089ee17cbb12bb33065
4
+ data.tar.gz: 3e6abee2f0bbd092639039138f19093ad1c0ce85
5
5
  SHA512:
6
- metadata.gz: 605549dd0a3fabc6fc0bb1d6c5e7d31bcebcc6e454b367d1b3a6a4f3ca9c6934b5147189b43407be69e261877389c5eaea23f23ca9bad0108a175326606ef847
7
- data.tar.gz: 0dfa769e43efcb4354b86f710c482198cd77e48cf14509a5d73b365c73d259da729868101f252bebb2bd5e4054a1724502fb04a38b8fe3e93ac59a53e5ba6fca
6
+ metadata.gz: 0a85a234026e72393e1485749f5b0dde345c146dc7270f527f8637b1a897b327ce133cf785c18746414d39721d1aec644e5c6e2cdb77c9ed0004f6fdd7aed0bb
7
+ data.tar.gz: 2d6b96ca37556bff40066539f1945a36988ef9ad89483391452625ddada464c1144f6d98ccb10ab85bd24f6e37f9ba9332697c0ea8419144853d1564dc19ce0f
data/Gemfile CHANGED
@@ -1,5 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '2-1-stable'
3
+ gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '2-2-stable'
4
4
 
5
5
  gemspec
@@ -0,0 +1 @@
1
+ //= require spree/backend
@@ -0,0 +1 @@
1
+ //= require spree/frontend
@@ -0,0 +1,3 @@
1
+ /*
2
+ *= require spree/backend
3
+ */
@@ -0,0 +1,3 @@
1
+ /*
2
+ *= require spree/frontend
3
+ */
@@ -7,7 +7,7 @@ module Spree
7
7
 
8
8
  def create
9
9
  past_order = Spree::Order.find_by(number: params[:number])
10
- new_order = current_order(true)
10
+ new_order = current_order(create_order_if_necessary: true)
11
11
 
12
12
  duplicate_order(past_order, new_order)
13
13
 
@@ -5,13 +5,13 @@ module SpreeRepeatOrder
5
5
  class_option :auto_run_migrations, :type => :boolean, :default => false
6
6
 
7
7
  def add_javascripts
8
- append_file 'app/assets/javascripts/store/all.js', "//= require store/spree_repeat_order\n"
9
- append_file 'app/assets/javascripts/admin/all.js', "//= require admin/spree_repeat_order\n"
8
+ append_file 'vendor/assets/javascripts/spree/frontend/all.js', "//= require spree/frontend/spree_repeat_order\n"
9
+ append_file 'vendor/assets/javascripts/spree/backend/all.js', "//= require spree/backend/spree_repeat_order\n"
10
10
  end
11
11
 
12
12
  def add_stylesheets
13
- inject_into_file 'app/assets/stylesheets/store/all.css', " *= require store/spree_repeat_order\n", :before => /\*\//, :verbose => true
14
- inject_into_file 'app/assets/stylesheets/admin/all.css', " *= require admin/spree_repeat_order\n", :before => /\*\//, :verbose => true
13
+ inject_into_file 'vendor/assets/stylesheets/spree/frontend/all.css', " *= require spree/frontend/spree_repeat_order\n", :before => /\*\//, :verbose => true
14
+ inject_into_file 'vendor/assets/stylesheets/spree/backend/all.css', " *= require spree/backend/spree_repeat_order\n", :before => /\*\//, :verbose => true
15
15
  end
16
16
 
17
17
  def add_migrations
@@ -1,2 +1,4 @@
1
1
  require 'spree_core'
2
+ require 'spree_frontend'
3
+ require 'spree_backend'
2
4
  require 'spree_repeat_order/engine'
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |s|
3
3
  s.platform = Gem::Platform::RUBY
4
4
  s.name = 'spree_repeat_order'
5
- s.version = '2.1.9'
5
+ s.version = '2.2.1'
6
6
  s.summary = 'Makes it possible to repeat an existing order with one click'
7
7
  s.description = ''
8
8
  s.required_ruby_version = '>= 2.0.0'
@@ -15,9 +15,9 @@ Gem::Specification.new do |s|
15
15
  s.require_path = 'lib'
16
16
  s.requirements << 'none'
17
17
 
18
- s.add_dependency 'spree_core', '~> 2.1.4'
19
- s.add_dependency 'spree_frontend', '~> 2.1.4'
20
- s.add_dependency 'spree_backend', '~> 2.1.4'
18
+ s.add_dependency 'spree_core', '~> 2.2.1'
19
+ s.add_dependency 'spree_frontend', '~> 2.2.1'
20
+ s.add_dependency 'spree_backend', '~> 2.2.1'
21
21
 
22
22
  s.add_development_dependency 'capybara', '~> 2.1'
23
23
  s.add_development_dependency 'coffee-rails'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_repeat_order
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.9
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francisco Trindade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-31 00:00:00.000000000 Z
11
+ date: 2014-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: spree_core
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 2.1.4
19
+ version: 2.2.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: 2.1.4
26
+ version: 2.2.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: spree_frontend
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 2.1.4
33
+ version: 2.2.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: 2.1.4
40
+ version: 2.2.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: spree_backend
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: 2.1.4
47
+ version: 2.2.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: 2.1.4
54
+ version: 2.2.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: capybara
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -204,10 +204,10 @@ files:
204
204
  - LICENSE
205
205
  - README.md
206
206
  - Rakefile
207
- - app/assets/javascripts/admin/spree_repeat_order.js
208
- - app/assets/javascripts/store/spree_repeat_order.js
209
- - app/assets/stylesheets/admin/spree_repeat_order.css
210
- - app/assets/stylesheets/store/spree_repeat_order.css
207
+ - app/assets/javascripts/spree/backend/spree_repeat_order.js
208
+ - app/assets/javascripts/spree/frontend/spree_repeat_order.js
209
+ - app/assets/stylesheets/spree/backend/spree_repeat_order.css
210
+ - app/assets/stylesheets/spree/frontend/spree_repeat_order.css
211
211
  - app/controllers/spree/admin/repeated_orders_controller.rb
212
212
  - app/controllers/spree/repeated_orders_controller.rb
213
213
  - app/models/spree/line_item_decorator.rb
@@ -1 +0,0 @@
1
- //= require admin/spree_backend
@@ -1 +0,0 @@
1
- //= require store/spree_frontend
@@ -1,3 +0,0 @@
1
- /*
2
- *= require admin/spree_backend
3
- */
@@ -1,3 +0,0 @@
1
- /*
2
- *= require store/spree_frontend
3
- */