spree_address_book 0.60.0 → 0.70.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.
- data/README.md +2 -3
- data/Versionfile +4 -2
- data/{public/javascripts → app/assets/javascripts/store}/checkout.js +0 -0
- data/app/controllers/addresses_controller.rb +0 -1
- data/app/controllers/checkout_controller_decorator.rb +0 -2
- data/app/helpers/{addresses_helper.rb → checkout_helper_decorator.rb} +1 -1
- data/app/overrides/views_decorator.rb +6 -0
- data/app/views/users/_addresses.html.erb +2 -2
- data/lib/generators/spree_address_book/install_generator.rb +18 -0
- data/lib/spree_address_book.rb +2 -2
- data/spree_address_book.gemspec +3 -3
- metadata +17 -18
- data/lib/spree_address_book_hooks.rb +0 -3
- data/lib/tasks/install.rake +0 -25
- data/lib/tasks/spree_address_book.rake +0 -1
data/README.md
CHANGED
@@ -9,8 +9,7 @@ Installation
|
|
9
9
|
|
10
10
|
Add `gem "spree_address_book", :git => "git://github.com/romul/spree_address_book.git"
|
11
11
|
Run `bundle install`
|
12
|
-
Run `
|
13
|
-
Run `rake db:migrate`
|
12
|
+
Run `rails g spree_address_book:install`
|
14
13
|
|
15
14
|
|
16
|
-
Copyright (c) 2011 Roman Smirnov, released under the New BSD License
|
15
|
+
Copyright (c) 2011-2012 Roman Smirnov, released under the New BSD License
|
data/Versionfile
CHANGED
File without changes
|
@@ -1,9 +1,9 @@
|
|
1
1
|
<% if current_user.addresses.present? %>
|
2
|
-
<h2><%= Address.
|
2
|
+
<h2><%= Address.model_name.human(:count => 2) %></h2>
|
3
3
|
<table class="order-summary" width="545">
|
4
4
|
<thead>
|
5
5
|
<tr>
|
6
|
-
<th><%= Address.
|
6
|
+
<th><%= Address.model_name.human %></th>
|
7
7
|
<th></th>
|
8
8
|
</tr>
|
9
9
|
</thead>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module SpreeAddressBook
|
2
|
+
module Generators
|
3
|
+
class InstallGenerator < Rails::Generators::Base
|
4
|
+
def add_migrations
|
5
|
+
run 'bundle exec rake railties:install:migrations FROM=spree_address_book'
|
6
|
+
end
|
7
|
+
|
8
|
+
def run_migrations
|
9
|
+
res = ask "Would you like to run the migrations now? [Y/n]"
|
10
|
+
if res == "" || res.downcase == "y"
|
11
|
+
run 'bundle exec rake db:migrate'
|
12
|
+
else
|
13
|
+
puts "Skiping rake db:migrate, don't forget to run it!"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
data/lib/spree_address_book.rb
CHANGED
data/spree_address_book.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.platform = Gem::Platform::RUBY
|
3
3
|
s.name = 'spree_address_book'
|
4
|
-
s.version = '0.
|
4
|
+
s.version = '0.70.0'
|
5
5
|
s.summary = 'Adds address book for users to Spree'
|
6
6
|
#s.description = 'Add (optional) gem description here'
|
7
7
|
s.required_ruby_version = '>= 1.8.7'
|
@@ -16,6 +16,6 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.require_path = 'lib'
|
17
17
|
s.requirements << 'none'
|
18
18
|
|
19
|
-
s.add_dependency('spree_core', '
|
20
|
-
s.add_dependency('spree_auth', '
|
19
|
+
s.add_dependency('spree_core', '~> 0.70.0')
|
20
|
+
s.add_dependency('spree_auth', '~> 0.70.0')
|
21
21
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_address_book
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 263
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 70
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.70.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Roman Smirnov
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-03-01 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: spree_core
|
@@ -23,14 +23,14 @@ dependencies:
|
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
24
|
none: false
|
25
25
|
requirements:
|
26
|
-
- -
|
26
|
+
- - ~>
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
hash:
|
28
|
+
hash: 263
|
29
29
|
segments:
|
30
30
|
- 0
|
31
|
-
-
|
31
|
+
- 70
|
32
32
|
- 0
|
33
|
-
version: 0.
|
33
|
+
version: 0.70.0
|
34
34
|
type: :runtime
|
35
35
|
version_requirements: *id001
|
36
36
|
- !ruby/object:Gem::Dependency
|
@@ -39,14 +39,14 @@ dependencies:
|
|
39
39
|
requirement: &id002 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
|
-
- -
|
42
|
+
- - ~>
|
43
43
|
- !ruby/object:Gem::Version
|
44
|
-
hash:
|
44
|
+
hash: 263
|
45
45
|
segments:
|
46
46
|
- 0
|
47
|
-
-
|
47
|
+
- 70
|
48
48
|
- 0
|
49
|
-
version: 0.
|
49
|
+
version: 0.70.0
|
50
50
|
type: :runtime
|
51
51
|
version_requirements: *id002
|
52
52
|
description:
|
@@ -63,12 +63,14 @@ files:
|
|
63
63
|
- README.md
|
64
64
|
- Rakefile
|
65
65
|
- Versionfile
|
66
|
+
- app/assets/javascripts/store/checkout.js
|
66
67
|
- app/controllers/addresses_controller.rb
|
67
68
|
- app/controllers/checkout_controller_decorator.rb
|
68
|
-
- app/helpers/
|
69
|
+
- app/helpers/checkout_helper_decorator.rb
|
69
70
|
- app/models/address_decorator.rb
|
70
71
|
- app/models/order_decorator.rb
|
71
72
|
- app/models/user_decorator.rb
|
73
|
+
- app/overrides/views_decorator.rb
|
72
74
|
- app/views/addresses/_form.html.erb
|
73
75
|
- app/views/addresses/destroy.js.erb
|
74
76
|
- app/views/addresses/edit.html.erb
|
@@ -84,11 +86,8 @@ files:
|
|
84
86
|
- features/support/env.rb
|
85
87
|
- features/support/paths.rb
|
86
88
|
- lib/address_ability.rb
|
89
|
+
- lib/generators/spree_address_book/install_generator.rb
|
87
90
|
- lib/spree_address_book.rb
|
88
|
-
- lib/spree_address_book_hooks.rb
|
89
|
-
- lib/tasks/install.rake
|
90
|
-
- lib/tasks/spree_address_book.rake
|
91
|
-
- public/javascripts/checkout.js
|
92
91
|
- spec/models/address_spec.rb
|
93
92
|
- spec/spec_helper.rb
|
94
93
|
- spree_address_book.gemspec
|
@@ -123,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
122
|
requirements:
|
124
123
|
- none
|
125
124
|
rubyforge_project:
|
126
|
-
rubygems_version: 1.8.
|
125
|
+
rubygems_version: 1.8.15
|
127
126
|
signing_key:
|
128
127
|
specification_version: 3
|
129
128
|
summary: Adds address book for users to Spree
|
data/lib/tasks/install.rake
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
namespace :spree_address_book do
|
2
|
-
desc "Copies all migrations and assets (NOTE: This will be obsolete with Rails 3.1)"
|
3
|
-
task :install do
|
4
|
-
Rake::Task['spree_address_book:install:migrations'].invoke
|
5
|
-
Rake::Task['spree_address_book:install:assets'].invoke
|
6
|
-
end
|
7
|
-
|
8
|
-
namespace :install do
|
9
|
-
desc "Copies all migrations (NOTE: This will be obsolete with Rails 3.1)"
|
10
|
-
task :migrations do
|
11
|
-
source = File.join(File.dirname(__FILE__), '..', '..', 'db')
|
12
|
-
destination = File.join(Rails.root, 'db')
|
13
|
-
Spree::FileUtilz.mirror_files(source, destination)
|
14
|
-
end
|
15
|
-
|
16
|
-
desc "Copies all assets (NOTE: This will be obsolete with Rails 3.1)"
|
17
|
-
task :assets do
|
18
|
-
source = File.join(File.dirname(__FILE__), '..', '..', 'public')
|
19
|
-
destination = File.join(Rails.root, 'public')
|
20
|
-
puts "INFO: Mirroring assets from #{source} to #{destination}"
|
21
|
-
Spree::FileUtilz.mirror_files(source, destination)
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
# add custom rake tasks here
|