Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated to work with Spree 1.0.x

  • Loading branch information...
commit f6755aceb8fe299068dfea4a3566d2d8fb706e31 1 parent 1b5e3ae
@romul authored
Showing with 211 additions and 233 deletions.
  1. +1 −2  Rakefile
  2. +0 −73 app/assets/javascripts/store/checkout.js
  3. +53 −0 app/assets/javascripts/store/spree_address_book.js
  4. +12 −0 app/assets/stylesheets/store/spree_address_book.scss
  5. +1 −1  app/controllers/checkout_controller_decorator.rb
  6. +1 −1  app/controllers/{ → spree}/addresses_controller.rb
  7. +4 −4 app/helpers/checkout_helper_decorator.rb
  8. +4 −4 app/models/address_decorator.rb
  9. +6 −6 app/models/order_decorator.rb
  10. +2 −2 {lib → app/models/spree}/address_ability.rb
  11. +7 −0 app/models/spree/address_book_configuration.rb
  12. +1 −1  app/models/user_decorator.rb
  13. +2 −2 app/overrides/views_decorator.rb
  14. +0 −15 app/views/addresses/_form.html.erb
  15. +0 −85 app/views/checkout/_address.html.erb
  16. +13 −0 app/views/spree/addresses/_form.html.erb
  17. 0  app/views/{ → spree}/addresses/destroy.js.erb
  18. 0  app/views/{ → spree}/addresses/edit.html.erb
  19. +45 −0 app/views/spree/checkout/_address.html.erb
  20. +22 −0 app/views/spree/users/_addresses.html.erb
  21. +0 −20 app/views/users/_addresses.html.erb
  22. +1 −1  config/routes.rb
  23. +8 −2 db/migrate/20110302102208_add_user_id_and_deleted_at_to_addresses.rb
  24. +8 −0 lib/generators/spree_address_book/install_generator.rb
  25. +17 −11 lib/spree_address_book.rb
  26. +3 −3 spree_address_book.gemspec
View
3  Rakefile
@@ -1,8 +1,7 @@
require 'rubygems'
require 'rake'
require 'rake/testtask'
-require 'rake/packagetask'
-require 'rake/gempackagetask'
+require 'rubygems/package_task'
gemfile = File.expand_path('../spec/test_app/Gemfile', __FILE__)
if File.exists?(gemfile) && (%w(spec cucumber).include?(ARGV.first.to_s) || ARGV.size == 0)
View
73 app/assets/javascripts/store/checkout.js
@@ -1,73 +0,0 @@
-(function($){
- $(document).ready(function(){
-
- $('#checkout_form_address').validate();
-
- var get_states = function(region){
- var country = $('p#' + region + 'country' + ' span#' + region + 'country :only-child').val();
- return state_mapper[country];
- }
-
- var update_state = function(region) {
- var states = get_states(region);
-
- var state_select = $('span#' + region + 'state select');
- var state_input = $('span#' + region + 'state input');
-
- if(states) {
- var selected = state_select.val();
- state_select.html('');
- var states_with_blank = [["",""]].concat(states);
- $.each(states_with_blank, function(pos,id_nm) {
- var opt = $(document.createElement('option'))
- .attr('value', id_nm[0])
- .html(id_nm[1]);
- if(selected==id_nm[0]){
- opt.attr('selected', 'selected');
- }
- state_select.append(opt);
- });
- state_select.removeAttr('disabled').show();
- state_input.hide().attr('disabled', 'disabled');
-
- } else {
- state_input.removeAttr('disabled').show();
- state_select.hide().attr('disabled', 'disabled');
- }
-
- };
-
- // Show fields for the selected payment method
- $("input[type='radio'][name='order[payments_attributes][][payment_method_id]']").click(function(){
- $('#payment-methods li').hide();
- if(this.checked){ $('#payment_method_'+this.value).show(); }
- }).triggerHandler('click');
-
- $('p#bcountry span#bcountry select').change(function() { update_state('b'); });
- $('p#scountry span#scountry select').change(function() { update_state('s'); });
- update_state('b');
- update_state('s');
-
- $('input#order_use_billing').click(function() {
- if($(this).is(':checked')) {
- $("#shipping .inner input").attr('disabled', 'disabled');
- $("#shipping .inner select").attr('disabled', 'disabled');
- $("#shipping .inner").fadeOut();
- $("#shipping .select_address").fadeOut();
- } else {
- if ($("input[name='order[ship_address_id]']:checked").val() == '0') {
- $("#shipping .inner input").removeAttr('disabled');
- $("#shipping .inner select").removeAttr('disabled');
- $("#shipping .inner").fadeIn();
- }
- $("#shipping .select_address").fadeIn();
- }
- }).triggerHandler('click');
-
- $('form.edit_checkout').submit(function() {
- $(this).find(':submit, :image').attr('disabled', true).removeClass('primary').addClass('disabled');
- });
-
-
- });
-})(jQuery);
View
53 app/assets/javascripts/store/spree_address_book.js
@@ -0,0 +1,53 @@
+(function($) {
+ $(document).ready(function(){
+ if ($(".select_address").length) {
+ $('input#order_use_billing').unbind("click");
+ $(".inner").hide();
+ $(".inner input").prop("disabled", true);
+ $(".inner select").prop("disabled", true);
+ if ($('input#order_use_billing').is(':checked')) {
+ $("#shipping .select_address").hide();
+ }
+
+ $('input#order_use_billing').click(function() {
+ if ($(this).is(':checked')) {
+ $("#shipping .select_address").hide();
+ hide_address_form('shipping');
+ } else {
+ $("#shipping .select_address").show();
+ if ($("input[name='order[ship_address_id]']:checked").val() == '0') {
+ show_address_form('shipping');
+ }
+ }
+ });
+
+ $("input[name='order[bill_address_id]']:radio").change(function(){
+ if ($("input[name='order[bill_address_id]']:checked").val() == '0') {
+ show_address_form('billing');
+ } else {
+ hide_address_form('billing');
+ }
+ });
+
+ $("input[name='order[ship_address_id]']:radio").change(function(){
+ if ($("input[name='order[ship_address_id]']:checked").val() == '0') {
+ show_address_form('shipping');
+ } else {
+ hide_address_form('shipping');
+ }
+ });
+ }
+ });
+
+ function hide_address_form(address_type){
+ $("#" + address_type + " .inner").hide();
+ $("#" + address_type + " .inner input").prop("disabled", true);
+ $("#" + address_type + " .inner select").prop("disabled", true);
+ }
+
+ function show_address_form(address_type){
+ $("#" + address_type + " .inner").show();
+ $("#" + address_type + " .inner input").prop("disabled", false);
+ $("#" + address_type + " .inner select").prop("disabled", false);
+ }
+})(jQuery);
View
12 app/assets/stylesheets/store/spree_address_book.scss
@@ -0,0 +1,12 @@
+div.inner {
+ input[type=text], select { width: 80%; }
+}
+
+div#checkout #checkout_form_address {
+ #billing, #shipping {
+ .select_address label { float: none; }
+ input[type=radio] { width: auto; }
+ }
+}
+
+.hidden { display: none; }
View
2  app/controllers/checkout_controller_decorator.rb
@@ -1,4 +1,4 @@
-CheckoutController.class_eval do
+Spree::CheckoutController.class_eval do
after_filter :normalize_addresses, :only => :update
before_filter :set_addresses, :only => :update
View
2  app/controllers/addresses_controller.rb → app/controllers/spree/addresses_controller.rb
@@ -1,4 +1,4 @@
-class AddressesController < Spree::BaseController
+class Spree::AddressesController < Spree::BaseController
rescue_from ActiveRecord::RecordNotFound, :with => :render_404
load_and_authorize_resource
View
8 app/helpers/checkout_helper_decorator.rb
@@ -1,10 +1,10 @@
-CheckoutHelper.module_eval do
+Spree::CheckoutHelper.module_eval do
def address_field(form, method, id_prefix = "b", &handler)
- content_tag :p, :id => [id_prefix, method].join, :class => "field" do
+ content_tag :p, :id => [id_prefix, method].join('_'), :class => "field" do
if handler
handler.call
else
- is_required = Address.required_fields.include?(method)
+ is_required = Spree::Address.required_fields.include?(method)
separator = is_required ? '<span class="req">*</span><br />' : '<br />'
form.label(method) + separator.html_safe +
form.text_field(method, :class => is_required ? 'required' : nil)
@@ -13,7 +13,7 @@ def address_field(form, method, id_prefix = "b", &handler)
end
def address_state(form, country)
- country ||= Country.find(Spree::Config[:default_country_id])
+ country ||= Spree::Country.find(Spree::Config[:default_country_id])
have_states = !country.states.empty?
state_elements = [
form.collection_select(:state_id, country.states.order(:name),
View
8 app/models/address_decorator.rb
@@ -1,18 +1,18 @@
-Address.class_eval do
+Spree::Address.class_eval do
belongs_to :user
def self.required_fields
- validator = Address.validators.find{|v| v.kind_of?(ActiveModel::Validations::PresenceValidator)}
+ validator = Spree::Address.validators.find{|v| v.kind_of?(ActiveModel::Validations::PresenceValidator)}
validator ? validator.attributes : []
end
# can modify an address if it's not been used in an order
def editable?
- new_record? || (shipments.empty? && (Order.where("bill_address_id = ?", self.id).count + Order.where("bill_address_id = ?", self.id).count <= 1) && Order.complete.where("bill_address_id = ? OR ship_address_id = ?", self.id, self.id).count == 0)
+ new_record? || (shipments.empty? && (Spree::Order.where("bill_address_id = ?", self.id).count + Spree::Order.where("bill_address_id = ?", self.id).count <= 1) && Spree::Order.complete.where("bill_address_id = ? OR ship_address_id = ?", self.id, self.id).count == 0)
end
def can_be_deleted?
- shipments.empty? && Order.where("bill_address_id = ? OR ship_address_id = ?", self.id, self.id).count == 0
+ shipments.empty? && Spree::Order.where("bill_address_id = ? OR ship_address_id = ?", self.id, self.id).count == 0
end
def to_s
View
12 app/models/order_decorator.rb
@@ -1,6 +1,6 @@
-Order.class_eval do
+Spree::Order.class_eval do
attr_accessible :bill_address_id, :ship_address_id
- before_validation :clone_shipping_address, :if => "Spree::Config[:disable_bill_address]"
+ before_validation :clone_shipping_address, :if => "Spree::AddressBook::Config[:disable_bill_address]"
def clone_shipping_address
if self.ship_address
@@ -17,7 +17,7 @@ def clone_billing_address
end
def bill_address_id=(id)
- address = Address.find(id)
+ address = Spree::Address.find(id)
if address && address.user_id == self.user_id
self["bill_address_id"] = address.id
self.bill_address.reload
@@ -31,7 +31,7 @@ def bill_address_attributes=(attributes)
end
def ship_address_id=(id)
- address = Address.find(id)
+ address = Spree::Address.find(id)
if address && address.user_id == self.user_id
self["ship_address_id"] = address.id
self.ship_address.reload
@@ -49,7 +49,7 @@ def ship_address_attributes=(attributes)
def update_or_create_address(attributes)
address = nil
if attributes[:id]
- address = Address.find(attributes[:id])
+ address = Spree::Address.find(attributes[:id])
if address && address.editable?
address.update_attributes(attributes)
else
@@ -58,7 +58,7 @@ def update_or_create_address(attributes)
end
if !attributes[:id]
- address = Address.new(attributes)
+ address = Spree::Address.new(attributes)
address.save
end
View
4 lib/address_ability.rb → app/models/spree/address_ability.rb
@@ -1,8 +1,8 @@
-class AddressAbility
+class Spree::AddressAbility
include CanCan::Ability
def initialize(user)
- can :manage, Address do |address|
+ can :manage, Spree::Address do |address|
address.user == user
end
end
View
7 app/models/spree/address_book_configuration.rb
@@ -0,0 +1,7 @@
+module Spree
+ class AddressBookConfiguration < Preferences::Configuration
+ preference :disable_bill_address, :boolean, :default => false
+ preference :alternative_bill_address_phone, :boolean, :default => false
+ preference :alternative_ship_address_phone, :boolean, :default => false
+ end
+end
View
2  app/models/user_decorator.rb
@@ -1,3 +1,3 @@
-User.class_eval do
+Spree::User.class_eval do
has_many :addresses, :conditions => {:deleted_at => nil}, :order => "updated_at DESC"
end
View
4 app/overrides/views_decorator.rb
@@ -1,6 +1,6 @@
Deface::Override.new(
- :virtual_path => "users/show",
+ :virtual_path => "spree/users/show",
:name => "address_book_account_my_orders",
:insert_after => "[data-hook='account_my_orders'], #account_my_orders[data-hook]",
- :partial => "users/addresses",
+ :partial => "spree/users/addresses",
:disabled => false)
View
15 app/views/addresses/_form.html.erb
@@ -1,15 +0,0 @@
-<% ADDRESS_FIELDS.each do |field| %>
- <p id="<%= [address_name, field].join('_') %>" class="field">
- <% if field == "country" %>
- <%= address_form.label :country_id, t(field, :scope => [:activerecord, :attributes, :address]) %><span class="req">*</span><br />
- <span><%= address_form.collection_select :country_id, available_countries, :id, :name, {}, {:class => 'required'} %></span>
- <% elsif field == "state" && Spree::Config[:address_requires_state] %>
- <%= address_field(address_form, :state, address_name) { address_state(address_form, address.country) } %>
- <% else %>
- <%= address_field(address_form, field.to_sym, address_name) %>
- <% end %>
- </p>
-<% end %>
-<% if Spree::Config["alternative_#{address_name}_phone"] %>
- <%= address_field(address_form, :alternative_phone, address_name) %>
-<% end %>
View
85 app/views/checkout/_address.html.erb
@@ -1,85 +0,0 @@
-<% @addresses = current_user ? current_user.addresses : [] %>
-<style>
- div.inner input[type=text], div.inner select { width: 80%; }
- .hidden { display: none; }
- div#checkout #checkout_form_address #billing .select_address label { float:none; }
- div#checkout #checkout_form_address #shipping .select_address label { float:none; }
- div#checkout #checkout_form_address #billing input[type=radio] { width: auto; }
- div#checkout #checkout_form_address #shipping input[type=radio] { width: auto; }
-</style>
-
-<% ['billing', 'shipping'].each do |address_type|
- next if address_type == 'billing' && Spree::Config[:disable_bill_address]
- address_name = "#{address_type[0...4]}_address" %>
-<fieldset id="<%= address_type %>">
- <legend><%= t(address_type + "_address")%></legend>
- <% if address_type == 'shipping' && !Spree::Config[:disable_bill_address] %>
- <p class="field checkbox">
- <label for="order_use_billing" id="use_billing">
- <%= check_box_tag 'order[use_billing]', '1', (!(@order.bill_address.empty? && @order.ship_address.empty?) && @order.bill_address.eql?(@order.ship_address)) %> <%= t("use_billing_address") %>
- </label>
- </p>
- <% end %>
- <div class="select_address">
- <p class="field">
- <% if @addresses.present? %>
- <% @addresses.each_with_index do |address, idx| %>
- <span id="<%= [address_type, dom_id(address)].join('_') %>">
- <label><%= form.radio_button "#{address_name}_id", address.id, :checked => (idx == 0) %> <%= address %></label> <%= link_to t(:edit), edit_address_path(address) %><br />
- </span>
- <% end %>
- <label><%= form.radio_button "#{address_name}_id", 0 %> <%= t('other_address') %></label>
- <% end %>
- </p>
- </div>
- <%= form.fields_for address_name do |address_form| %>
- <div class="inner">
- <p class="field">&nbsp;</p>
- <%= render :partial => 'addresses/form', :locals => {
- :address_name => address_name,
- :address_form => address_form,
- :address => Address.default
- } %>
- </div>
- <% end %>
-</fieldset>
-<% end %>
-
-<hr class="space" />
-<div class="form-buttons">
- <input type="submit" class="continue button primary" value="<%=t("save_and_continue") %>" />
-</div>
-<% if @addresses.present? %>
- <%= javascript_tag do %>
- $(document).ready(function(){
- $(".inner input").attr('disabled', 'disabled');
- $(".inner select").attr('disabled', 'disabled');
- $(".inner").hide();
-
- $("input[name='order[bill_address_id]']:radio").change(function(){
- if ($("input[name='order[bill_address_id]']:checked").val() == '0') {
- $("#billing .inner input").removeAttr('disabled');
- $("#billing .inner select").removeAttr('disabled');
- $("#billing .inner").fadeIn();
- } else {
- $("#billing .inner input").attr('disabled', 'disabled');
- $("#billing .inner select").attr('disabled', 'disabled');
- $("#billing .inner").fadeOut();
- }
- });
-
- $("input[name='order[ship_address_id]']:radio").change(function(){
- if ($("input[name='order[ship_address_id]']:checked").val() == '0') {
- $("#shipping .inner input").removeAttr('disabled');
- $("#shipping .inner select").removeAttr('disabled');
- $("#shipping .inner").fadeIn();
- } else {
- $("#shipping .inner input").attr('disabled', 'disabled');
- $("#shipping .inner select").attr('disabled', 'disabled');
- $("#shipping .inner").fadeOut();
- }
- });
-
- });
- <% end %>
-<% end %>
View
13 app/views/spree/addresses/_form.html.erb
@@ -0,0 +1,13 @@
+<% ADDRESS_FIELDS.each do |field| %>
+ <% if field == "country" %>
+ <%= address_form.label :country_id, t(field, :scope => [:activerecord, :attributes, :address]) %><span class="req">*</span><br />
+ <span><%= address_form.collection_select :country_id, available_countries, :id, :name, {}, {:class => 'required'} %></span>
+ <% elsif field == "state" && Spree::Config[:address_requires_state] %>
+ <%= address_field(address_form, :state, address_name) { address_state(address_form, address.country) } %>
+ <% else %>
+ <%= address_field(address_form, field.to_sym, address_name) %>
+ <% end %>
+<% end %>
+<% if Spree::AddressBook::Config["alternative_#{address_name}_phone"] %>
+ <%= address_field(address_form, :alternative_phone, address_name) %>
+<% end %>
View
0  app/views/addresses/destroy.js.erb → app/views/spree/addresses/destroy.js.erb
File renamed without changes
View
0  app/views/addresses/edit.html.erb → app/views/spree/addresses/edit.html.erb
File renamed without changes
View
45 app/views/spree/checkout/_address.html.erb
@@ -0,0 +1,45 @@
+<% @addresses = current_user ? current_user.addresses : [] %>
+
+<% ['billing', 'shipping'].each do |address_type|
+ next if address_type == 'billing' && Spree::AddressBook::Config[:disable_bill_address]
+ address_name = "#{address_type[0...4]}_address" %>
+<div class="columns alpha six" data-hook="<%= address_type %>_fieldset_wrapper">
+<fieldset id="<%= address_type %>">
+ <legend><%= t(address_type + "_address")%></legend>
+ <% if address_type == 'shipping' && !Spree::AddressBook::Config[:disable_bill_address] %>
+ <p class="field checkbox">
+ <label for="order_use_billing" id="use_billing">
+ <%= check_box_tag 'order[use_billing]', '1', (!(@order.bill_address.empty? && @order.ship_address.empty?) && @order.bill_address.eql?(@order.ship_address)) %> <%= t("use_billing_address") %>
+ </label>
+ </p>
+ <% end %>
+ <div class="select_address">
+ <p class="field">
+ <% if @addresses.present? %>
+ <% @addresses.each_with_index do |address, idx| %>
+ <span id="<%= [address_type, dom_id(address)].join('_') %>">
+ <label><%= form.radio_button "#{address_name}_id", address.id, :checked => (idx == 0) %> <%= address %></label> <%= link_to t(:edit), edit_address_path(address) %><br />
+ </span>
+ <% end %>
+ <label><%= form.radio_button "#{address_name}_id", 0 %> <%= t('other_address') %></label>
+ <% end %>
+ </p>
+ </div>
+ <%= form.fields_for address_name do |address_form| %>
+ <div class="inner">
+ <p class="field">&nbsp;</p>
+ <%= render :partial => 'spree/addresses/form', :locals => {
+ :address_name => address_name,
+ :address_form => address_form,
+ :address => Spree::Address.default
+ } %>
+ </div>
+ <% end %>
+</fieldset>
+</div>
+<% end %>
+
+<hr class="space" />
+<div class="form-buttons">
+ <input type="submit" class="continue button primary" value="<%=t("save_and_continue") %>" />
+</div>
View
22 app/views/spree/users/_addresses.html.erb
@@ -0,0 +1,22 @@
+<% if current_user.addresses.present? %>
+<h3><%= Spree::Address.model_name.human(:count => 2) %></h3>
+<table id="user_addresses">
+ <thead>
+ <tr>
+ <th><%= Spree::Address.model_name.human %></th>
+ <th></th>
+ </tr>
+ </thead>
+ <tbody>
+ <% current_user.addresses.each do |address| %>
+ <tr class="<%= cycle('even', 'odd') %>">
+ <td><%= address %></td>
+ <td>
+ <%= link_to t(:edit), edit_address_path(address) %>&nbsp;
+ <%= link_to t(:remove), address_path(address), :method => :delete, :confirm => t(:are_you_sure) %>
+ </td>
+ </tr>
+ <% end %>
+ </tbody>
+</table>
+<% end %>
View
20 app/views/users/_addresses.html.erb
@@ -1,20 +0,0 @@
-<% if current_user.addresses.present? %>
-<h2><%= Address.model_name.human(:count => 2) %></h2>
-<table class="order-summary" width="545">
- <thead>
- <tr>
- <th><%= Address.model_name.human %></th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- <% current_user.addresses.each do |address| %>
- <tr class="<%= cycle('even', 'odd') %>">
- <td><%= address %></td>
- <td><%= link_to t(:edit), edit_address_path(address) %></td>
- <td><%= link_to t(:remove), address_path(address), :method => :delete, :confirm => t(:are_you_sure) %></td>
- </tr>
- <% end %>
- </tbody>
-</table>
-<% end %>
View
2  config/routes.rb
@@ -1,3 +1,3 @@
-Rails.application.routes.draw do
+Spree::Core::Engine.routes.prepend do
resources :addresses, :only => [:edit, :update, :destroy]
end
View
10 db/migrate/20110302102208_add_user_id_and_deleted_at_to_addresses.rb
@@ -1,15 +1,21 @@
class AddUserIdAndDeletedAtToAddresses < ActiveRecord::Migration
def self.up
- change_table :addresses do |t|
+ change_table addresses_table_name do |t|
t.integer :user_id
t.datetime :deleted_at
end
end
def self.down
- change_table :addresses do |t|
+ change_table addresses_table_name do |t|
t.remove :deleted_at
t.remove :user_id
end
end
+
+ private
+
+ def self.addresses_table_name
+ table_exists?('addresses') ? :addresses : :spree_addresses
+ end
end
View
8 lib/generators/spree_address_book/install_generator.rb
@@ -1,6 +1,14 @@
module SpreeAddressBook
module Generators
class InstallGenerator < Rails::Generators::Base
+ def add_javascripts
+ append_file "app/assets/javascripts/store/all.js", "//= require store/spree_address_book\n"
+ end
+
+ def add_stylesheets
+ inject_into_file "app/assets/stylesheets/store/all.css", " *= require store/spree_address_book\n", :before => /\*\//, :verbose => true
+ end
+
def add_migrations
run 'bundle exec rake railties:install:migrations FROM=spree_address_book'
end
View
28 lib/spree_address_book.rb
@@ -1,18 +1,24 @@
require 'spree_core'
-module SpreeAddressBook
- class Engine < Rails::Engine
- engine_name 'spree_address_book'
-
- config.autoload_paths += %W(#{config.root}/lib)
+module Spree
+ module AddressBook
+ class Engine < Rails::Engine
+ engine_name 'spree_address_book'
+
+ initializer "spree.advanced_cart.environment", :before => :load_config_initializers do |app|
+ Spree::AddressBook::Config = Spree::AddressBookConfiguration.new
+ end
+
+ config.autoload_paths += %W(#{config.root}/lib)
- def self.activate
- Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c|
- Rails.env.production? ? require(c) : load(c)
+ def self.activate
+ Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c|
+ Rails.env.production? ? require(c) : load(c)
+ end
+ Spree::Ability.register_ability(Spree::AddressAbility)
end
- Ability.register_ability(AddressAbility)
- end
- config.to_prepare &method(:activate).to_proc
+ config.to_prepare &method(:activate).to_proc
+ end
end
end
View
6 spree_address_book.gemspec
@@ -1,7 +1,7 @@
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = 'spree_address_book'
- s.version = '0.70.0'
+ s.version = '1.0.0.rc'
s.summary = 'Adds address book for users to Spree'
#s.description = 'Add (optional) gem description here'
s.required_ruby_version = '>= 1.8.7'
@@ -16,6 +16,6 @@ Gem::Specification.new do |s|
s.require_path = 'lib'
s.requirements << 'none'
- s.add_dependency('spree_core', '~> 0.70.0')
- s.add_dependency('spree_auth', '~> 0.70.0')
+ s.add_dependency('spree_core', '~> 1.0.0')
+ s.add_dependency('spree_auth', '~> 1.0.0')
end

1 comment on commit f6755ac

@pirj

Versionfile?

Please sign in to comment.
Something went wrong with that request. Please try again.