spree_repeat_order 2.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d3d4d51d740fa6fb8b573e04c12d276d0b662b55
4
+ data.tar.gz: 361d8c16bd20ec99e20a339f3da83636e22af948
5
+ SHA512:
6
+ metadata.gz: 970bc0cae22f10bf717161111f2ee334d7a6afd357a03e79165b3b61557aa2d2869dbb9a53afb7a8364d47bd194fba3b17053ce32a4c088a7cef7fb5d953d96f
7
+ data.tar.gz: 8743a2a38956a776584b53bca928f24c22336d66198f724d1697285f95dd98ef62d529e9b94cfe2b629eac2d86047b7b0c25161bd82b3a8614dc3952aeda5013
data/.gitignore ADDED
@@ -0,0 +1,14 @@
1
+ \#*
2
+ *~
3
+ .#*
4
+ .DS_Store
5
+ .idea
6
+ .project
7
+ .sass-cache
8
+ coverage
9
+ Gemfile.lock
10
+ tmp
11
+ nbproject
12
+ pkg
13
+ *.swp
14
+ spec/dummy
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,26 @@
1
+ Copyright (c) 2013 [name of plugin creator]
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without modification,
5
+ are permitted provided that the following conditions are met:
6
+
7
+ * Redistributions of source code must retain the above copyright notice,
8
+ this list of conditions and the following disclaimer.
9
+ * Redistributions in binary form must reproduce the above copyright notice,
10
+ this list of conditions and the following disclaimer in the documentation
11
+ and/or other materials provided with the distribution.
12
+ * Neither the name Spree nor the names of its contributors may be used to
13
+ endorse or promote products derived from this software without specific
14
+ prior written permission.
15
+
16
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
20
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
21
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
22
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
23
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
data/README.md ADDED
@@ -0,0 +1,38 @@
1
+ Spree Repeat Order
2
+ ================
3
+
4
+ This gem adds a "Repeat Order" button to the My Account page on the Spree store shopfront. This way, a user can quickly add all items from a past order to his shopping cart.
5
+
6
+ The gem adds the following functionality:
7
+
8
+ - "Repeat Order" button on "My Account" page
9
+ - Replaces current shopping cart with repeated order line items
10
+
11
+ All the operation is done with one single save call, so it will be transactional. In case the order can't be saved for some reason, no line items will be added to the database.
12
+
13
+
14
+ Installation
15
+ ------------
16
+
17
+ Add spree_repeat_order to your Gemfile:
18
+
19
+ ruby gem 'spree_repeat_order'
20
+
21
+ Bundle your dependencies and run the installation generator:
22
+
23
+ shell
24
+ bundle
25
+ bundle exec rails g spree_repeat_order:install
26
+
27
+ Testing
28
+ -------
29
+
30
+ Be sure to bundle your dependencies and then create a dummy test app for the specs to run against.
31
+
32
+ shell
33
+ bundle
34
+ bundle exec rake test_app
35
+ bundle exec rspec spec
36
+
37
+
38
+ Copyright (c) 2013 Francisco Trindade, released under the New BSD License
data/Rakefile ADDED
@@ -0,0 +1,15 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
3
+
4
+ require 'rspec/core/rake_task'
5
+ require 'spree/testing_support/extension_rake'
6
+
7
+ RSpec::Core::RakeTask.new
8
+
9
+ task :default => [:spec]
10
+
11
+ desc 'Generates a dummy app for testing'
12
+ task :test_app do
13
+ ENV['LIB_NAME'] = 'spree_repeat_order'
14
+ Rake::Task['extension:test_app'].invoke
15
+ end
@@ -0,0 +1 @@
1
+ //= require admin/spree_backend
@@ -0,0 +1 @@
1
+ //= require store/spree_frontend
@@ -0,0 +1,3 @@
1
+ /*
2
+ *= require admin/spree_backend
3
+ */
@@ -0,0 +1,3 @@
1
+ /*
2
+ *= require store/spree_frontend
3
+ */
@@ -0,0 +1,40 @@
1
+ module Spree
2
+ class RepeatedOrdersController < Spree::StoreController
3
+
4
+ before_filter :check_authorization
5
+
6
+ def create
7
+ past_order = Spree::Order.find_by(number: params[:number])
8
+ new_order = current_order(true)
9
+
10
+ duplicate_order(past_order, new_order)
11
+
12
+ if new_order.save
13
+ flash[:success] = 'We have added your past order items to the cart. Just proceed to checkout to complete it.'
14
+ else
15
+ flash[:error] = 'We are sorry, but we could not add your past items to the cart.'
16
+ end
17
+
18
+ redirect_to(cart_path)
19
+ end
20
+
21
+ private
22
+
23
+ def duplicate_order(past_order, new_order)
24
+ new_line_items = []
25
+ past_order.line_items.each do |line_item|
26
+ new_line_items << line_item.dup
27
+ end
28
+
29
+ new_order.line_items = new_line_items
30
+ end
31
+
32
+ def check_authorization
33
+ session[:access_token] ||= params[:token]
34
+
35
+ order = Spree::Order.find_by_number(params[:number])
36
+ authorize! :edit, order, session[:access_token]
37
+ end
38
+
39
+ end
40
+ end
@@ -0,0 +1,5 @@
1
+ Deface::Override.new(:virtual_path => "spree/users/show",
2
+ :name => "my_account_table",
3
+ :replace => "[data-hook='account_my_orders'] table",
4
+ :partial => "spree/users/my_account_table",
5
+ :disabled => false)
@@ -0,0 +1,36 @@
1
+ %table.order-summary
2
+ %thead
3
+ %tr
4
+ %th.order-number
5
+ = Spree.t(:order_number)
6
+ %th.order-date
7
+ = Spree.t(:order_date)
8
+ %th.order-status
9
+ = Spree.t(:status)
10
+ %th.order-payment-state
11
+ = Spree.t(:payment_state)
12
+ %th.order-shipment-state
13
+ = Spree.t(:shipment_state)
14
+ %th.order-total
15
+ = Spree.t(:total)
16
+ %th
17
+ %tbody
18
+ - @orders.each do |order|
19
+ %tr
20
+ %td.order-number
21
+ = link_to order.number, order_url(order)
22
+ %td.order-date
23
+ = l order.completed_at.to_date
24
+ %td.order-status
25
+ = Spree.t("order_state.#{order.state}").titleize
26
+ %td.order-payment-state
27
+ = Spree.t("payment_states.#{order.payment_state}").titleize if order.payment_state
28
+ %td.order-shipment-state
29
+ = Spree.t("shipment_states.#{order.shipment_state}").titleize if order.shipment_state
30
+ %td.order-total
31
+ = order.display_total
32
+ %td.repeat-order
33
+ = form_tag repeat_order_path(order.number), method: :post do
34
+ .fields
35
+ = button_tag :class => 'large primary add-button', :type => :submit do
36
+ = Spree.t(:repeat_order)
data/bin/rails ADDED
@@ -0,0 +1,7 @@
1
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
2
+
3
+ ENGINE_ROOT = File.expand_path('../..', __FILE__)
4
+ ENGINE_PATH = File.expand_path('../../lib/spree_repeat_order/engine', __FILE__)
5
+
6
+ require 'rails/all'
7
+ require 'rails/engine/commands'
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
data/config/routes.rb ADDED
@@ -0,0 +1,5 @@
1
+ Spree::Core::Engine.routes.draw do
2
+
3
+ post '/orders/:number/repeated_order' => 'repeated_orders#create', as: :repeat_order
4
+
5
+ end
@@ -0,0 +1,31 @@
1
+ module SpreeRepeatOrder
2
+ module Generators
3
+ class InstallGenerator < Rails::Generators::Base
4
+
5
+ class_option :auto_run_migrations, :type => :boolean, :default => false
6
+
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"
10
+ end
11
+
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
15
+ end
16
+
17
+ def add_migrations
18
+ run 'bundle exec rake railties:install:migrations FROM=spree_repeat_order'
19
+ end
20
+
21
+ def run_migrations
22
+ run_migrations = options[:auto_run_migrations] || ['', 'y', 'Y'].include?(ask 'Would you like to run the migrations now? [Y/n]')
23
+ if run_migrations
24
+ run 'bundle exec rake db:migrate'
25
+ else
26
+ puts 'Skipping rake db:migrate, don\'t forget to run it!'
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,22 @@
1
+ module SpreeRepeatOrder
2
+ class Engine < Rails::Engine
3
+ require 'spree/core'
4
+ isolate_namespace Spree
5
+ engine_name 'spree_repeat_order'
6
+
7
+ config.autoload_paths += %W(#{config.root}/lib)
8
+
9
+ # use rspec for tests
10
+ config.generators do |g|
11
+ g.test_framework :rspec
12
+ end
13
+
14
+ def self.activate
15
+ Dir.glob(File.join(File.dirname(__FILE__), '../../app/**/*_decorator*.rb')) do |c|
16
+ Rails.configuration.cache_classes ? require(c) : load(c)
17
+ end
18
+ end
19
+
20
+ config.to_prepare &method(:activate).to_proc
21
+ end
22
+ end
@@ -0,0 +1,6 @@
1
+ FactoryGirl.define do
2
+ # Define your Spree extensions Factories within this file to enable applications, and other extensions to use and override them.
3
+ #
4
+ # Example adding this to your spec_helper will load these Factories for use:
5
+ # require 'spree_repeat_order/factories'
6
+ end
@@ -0,0 +1,2 @@
1
+ require 'spree_core'
2
+ require 'spree_repeat_order/engine'
@@ -0,0 +1,59 @@
1
+ require 'spec_helper'
2
+
3
+ describe Spree::RepeatedOrdersController do
4
+
5
+ describe "create" do
6
+
7
+ let(:line_item_1){ FactoryGirl.build(:line_item) }
8
+ let(:line_item_2){ FactoryGirl.build(:line_item) }
9
+ let(:past_order){ FactoryGirl.build(:order, line_items: [line_item_1, line_item_2]) }
10
+
11
+ let(:new_order){ FactoryGirl.build(:order) }
12
+ let(:line_item_clone_1){ FactoryGirl.build(:line_item) }
13
+ let(:line_item_clone_2){ FactoryGirl.build(:line_item) }
14
+
15
+ before :each do
16
+ Spree::Order.stub(:find_by).and_return(past_order)
17
+ controller.stub(:current_order).and_return(new_order)
18
+ end
19
+
20
+ it 'should create new order with same line items' do
21
+ controller.should_receive(:current_order).and_return(new_order)
22
+ line_item_1.should_receive(:dup).and_return(line_item_clone_1)
23
+ line_item_2.should_receive(:dup).and_return(line_item_clone_2)
24
+
25
+ new_order.should_receive(:line_items=).with([line_item_clone_1, line_item_clone_2])
26
+ new_order.should_receive(:save).and_return(true)
27
+
28
+ spree_post :create, number: "ABC1"
29
+ response.should be_redirect
30
+ end
31
+
32
+ it 'should show success flash message' do
33
+ spree_post :create, number: "ABC1"
34
+ flash[:success].should =~ /added your past order items to the cart/
35
+ end
36
+
37
+ it 'should show failure flash message if save fails' do
38
+ new_order.should_receive(:save).and_return(false)
39
+ spree_post :create, number: "ABC1"
40
+ flash[:error].should =~ /could not add your past items to the cart/
41
+ end
42
+
43
+ end
44
+
45
+ describe "integration" do
46
+
47
+ it 'should create new order with same line items' do
48
+ past_order = FactoryGirl.create(:order)
49
+ line_item = FactoryGirl.create(:line_item, order: past_order)
50
+
51
+ spree_post :create, number: past_order.number
52
+
53
+ last_order = Spree::Order.last
54
+ last_order.line_items.count.should == 1
55
+ end
56
+
57
+ end
58
+
59
+ end
@@ -0,0 +1,83 @@
1
+ # Run Coverage report
2
+ require 'simplecov'
3
+ SimpleCov.start do
4
+ add_filter 'spec/dummy'
5
+ add_group 'Controllers', 'app/controllers'
6
+ add_group 'Helpers', 'app/helpers'
7
+ add_group 'Mailers', 'app/mailers'
8
+ add_group 'Models', 'app/models'
9
+ add_group 'Views', 'app/views'
10
+ add_group 'Libraries', 'lib'
11
+ end
12
+
13
+ # Configure Rails Environment
14
+ ENV['RAILS_ENV'] = 'test'
15
+
16
+ require File.expand_path('../dummy/config/environment.rb', __FILE__)
17
+
18
+ require 'rspec/rails'
19
+ require 'database_cleaner'
20
+ require 'ffaker'
21
+
22
+ # Requires supporting ruby files with custom matchers and macros, etc,
23
+ # in spec/support/ and its subdirectories.
24
+ Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require f }
25
+
26
+ # Requires factories defined in spree_core
27
+ require 'spree/testing_support/factories'
28
+ require 'spree/testing_support/controller_requests'
29
+ require 'spree/testing_support/authorization_helpers'
30
+ require 'spree/testing_support/url_helpers'
31
+
32
+ # Requires factories defined in lib/spree_repeat_order/factories.rb
33
+ require 'spree_repeat_order/factories'
34
+
35
+ RSpec.configure do |config|
36
+ config.include FactoryGirl::Syntax::Methods
37
+
38
+ # == URL Helpers
39
+ #
40
+ # Allows access to Spree's routes in specs:
41
+ #
42
+ # visit spree.admin_path
43
+ # current_path.should eql(spree.products_path)
44
+ config.include Spree::TestingSupport::UrlHelpers
45
+ config.include Spree::TestingSupport::ControllerRequests
46
+
47
+ # == Mock Framework
48
+ #
49
+ # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
50
+ #
51
+ # config.mock_with :mocha
52
+ # config.mock_with :flexmock
53
+ # config.mock_with :rr
54
+ config.mock_with :rspec
55
+ config.color = true
56
+
57
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
58
+ config.fixture_path = "#{::Rails.root}/spec/fixtures"
59
+
60
+ # Capybara javascript drivers require transactional fixtures set to false, and we use DatabaseCleaner
61
+ # to cleanup after each test instead. Without transactional fixtures set to false the records created
62
+ # to setup a test will be unavailable to the browser, which runs under a seperate server instance.
63
+ config.use_transactional_fixtures = false
64
+
65
+ # Ensure Suite is set to use transactions for speed.
66
+ config.before :suite do
67
+ DatabaseCleaner.strategy = :transaction
68
+ DatabaseCleaner.clean_with :truncation
69
+ end
70
+
71
+ # Before each spec check if it is a Javascript test and switch between using database transactions or not where necessary.
72
+ config.before :each do
73
+ DatabaseCleaner.strategy = example.metadata[:js] ? :truncation : :transaction
74
+ DatabaseCleaner.start
75
+ end
76
+
77
+ # After each spec clean the database.
78
+ config.after :each do
79
+ DatabaseCleaner.clean
80
+ end
81
+
82
+ config.fail_fast = ENV['FAIL_FAST'] || false
83
+ end
@@ -0,0 +1,33 @@
1
+ # encoding: UTF-8
2
+ Gem::Specification.new do |s|
3
+ s.platform = Gem::Platform::RUBY
4
+ s.name = 'spree_repeat_order'
5
+ s.version = '2.1.3'
6
+ s.summary = 'Makes it possible to repeat an existing order with one click'
7
+ s.description = ''
8
+ s.required_ruby_version = '>= 2.0.0'
9
+
10
+ s.author = 'Francisco Trindade'
11
+ s.email = 'frank.trindade@gmail.com'
12
+ # s.homepage = 'http://www.spreecommerce.com'
13
+
14
+ s.files = `git ls-files`.split("\n")
15
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
+ s.require_path = 'lib'
17
+ s.requirements << 'none'
18
+
19
+ s.add_dependency 'spree_core', '~> 2.1.3'
20
+ s.add_dependency 'spree_frontend', '~> 2.1.3'
21
+ s.add_dependency 'spree_backend', '~> 2.1.3'
22
+
23
+ s.add_development_dependency 'capybara', '~> 2.1'
24
+ s.add_development_dependency 'coffee-rails'
25
+ s.add_development_dependency 'database_cleaner'
26
+ s.add_development_dependency 'factory_girl', '~> 4.2'
27
+ s.add_development_dependency 'ffaker'
28
+ s.add_development_dependency 'rspec-rails', '~> 2.13'
29
+ s.add_development_dependency 'sass-rails'
30
+ s.add_development_dependency 'selenium-webdriver'
31
+ s.add_development_dependency 'simplecov'
32
+ s.add_development_dependency 'sqlite3'
33
+ end
metadata ADDED
@@ -0,0 +1,250 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: spree_repeat_order
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.1.3
5
+ platform: ruby
6
+ authors:
7
+ - Francisco Trindade
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-12-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: spree_core
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: 2.1.3
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 2.1.3
27
+ - !ruby/object:Gem::Dependency
28
+ name: spree_frontend
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 2.1.3
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: 2.1.3
41
+ - !ruby/object:Gem::Dependency
42
+ name: spree_backend
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: 2.1.3
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 2.1.3
55
+ - !ruby/object:Gem::Dependency
56
+ name: capybara
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '2.1'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '2.1'
69
+ - !ruby/object:Gem::Dependency
70
+ name: coffee-rails
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: database_cleaner
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: factory_girl
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ~>
102
+ - !ruby/object:Gem::Version
103
+ version: '4.2'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ~>
109
+ - !ruby/object:Gem::Version
110
+ version: '4.2'
111
+ - !ruby/object:Gem::Dependency
112
+ name: ffaker
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rspec-rails
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ~>
130
+ - !ruby/object:Gem::Version
131
+ version: '2.13'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ~>
137
+ - !ruby/object:Gem::Version
138
+ version: '2.13'
139
+ - !ruby/object:Gem::Dependency
140
+ name: sass-rails
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - '>='
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - '>='
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: selenium-webdriver
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - '>='
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - '>='
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: simplecov
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - '>='
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: sqlite3
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - '>='
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - '>='
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ description: ''
196
+ email: frank.trindade@gmail.com
197
+ executables: []
198
+ extensions: []
199
+ extra_rdoc_files: []
200
+ files:
201
+ - .gitignore
202
+ - .rspec
203
+ - Gemfile
204
+ - LICENSE
205
+ - README.md
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
211
+ - app/controllers/spree/repeated_orders_controller.rb
212
+ - app/overrides/my_account_table.rb
213
+ - app/views/spree/users/_my_account_table.haml
214
+ - bin/rails
215
+ - config/locales/en.yml
216
+ - config/routes.rb
217
+ - lib/generators/spree_repeat_order/install/install_generator.rb
218
+ - lib/spree_repeat_order.rb
219
+ - lib/spree_repeat_order/engine.rb
220
+ - lib/spree_repeat_order/factories.rb
221
+ - spec/controllers/repeated_orders_controller_spec.rb
222
+ - spec/spec_helper.rb
223
+ - spree_repeat_order.gemspec
224
+ homepage:
225
+ licenses: []
226
+ metadata: {}
227
+ post_install_message:
228
+ rdoc_options: []
229
+ require_paths:
230
+ - lib
231
+ required_ruby_version: !ruby/object:Gem::Requirement
232
+ requirements:
233
+ - - '>='
234
+ - !ruby/object:Gem::Version
235
+ version: 2.0.0
236
+ required_rubygems_version: !ruby/object:Gem::Requirement
237
+ requirements:
238
+ - - '>='
239
+ - !ruby/object:Gem::Version
240
+ version: '0'
241
+ requirements:
242
+ - none
243
+ rubyforge_project:
244
+ rubygems_version: 2.1.11
245
+ signing_key:
246
+ specification_version: 4
247
+ summary: Makes it possible to repeat an existing order with one click
248
+ test_files:
249
+ - spec/controllers/repeated_orders_controller_spec.rb
250
+ - spec/spec_helper.rb