Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

try to update to spree 2-1-stable

  • Loading branch information...
commit 9c35647c4c66cc8b233326025d00e863abf777eb 1 parent 69438db
@damjack damjack authored
View
11 Versionfile
@@ -1,9 +1,6 @@
-# This file is used to designate compatibilty with different versions of Spree
-# Please see http://spreecommerce.com/documentation/extensions.html#versionfile for details
+"2.1.x" => { :branch => "master"}
+"1.3.x" => { :branch => "1-3-stable"}
+"1.1.x" => { :branch => "1-1-stable"}
+"1.0.x" => { :branch => "1-0-stable"}
-# Examples
-#
-# "0.70.x" => { :branch => "master"}
-# "0.60.x" => { :branch => "0-60-stable" }
-# "0.40.x" => { :tag => "v1.0.0", :version => "1.0.0" }
View
111 app/assets/javascripts/store/checkout.js.coffee
@@ -0,0 +1,111 @@
+//= require jquery.payment
+
+Spree.disableSaveOnClick = ->
+ ($ 'form.edit_order').submit ->
+ ($ this).find(':submit, :image').attr('disabled', true).removeClass('primary').addClass 'disabled'
+
+Spree.ready ($) ->
+ Spree.Checkout = {}
+ $(".cardNumber").payment('formatCardNumber')
+ $(".cardExpiry").payment('formatCardExpiry')
+ $(".cardCode").payment('formatCardCVC')
+
+ $(".cardNumber").change ->
+ $(this).parent().siblings(".ccType").val($.payment.cardType(@value))
+
+ if ($ '#checkout_form_address').is('*')
+ ($ '#checkout_form_address').validate()
+
+ getCountryId = (region) ->
+ $('#' + region + 'country select').val()
+
+ updateState = (region) ->
+ countryId = getCountryId(region)
+ if countryId?
+ unless Spree.Checkout[countryId]?
+ $.get Spree.routes.states_search, {country_id: countryId}, (data) ->
+ Spree.Checkout[countryId] =
+ states: data.states
+ states_required: data.states_required
+ fillStates(Spree.Checkout[countryId], region)
+ else
+ fillStates(Spree.Checkout[countryId], region)
+
+ fillStates = (data, region) ->
+ statesRequired = data.states_required
+ states = data.states
+
+ statePara = ($ '#' + region + 'state')
+ stateSelect = statePara.find('select')
+ stateInput = statePara.find('input')
+ stateSpanRequired = statePara.find('state-required')
+ if states.length > 0
+ selected = parseInt stateSelect.val()
+ stateSelect.html ''
+ statesWithBlank = [{ name: '', id: ''}].concat(states)
+ $.each statesWithBlank, (idx, state) ->
+ opt = ($ document.createElement('option')).attr('value', state.id).html(state.name)
+ opt.prop 'selected', true if selected is state.id
+ stateSelect.append opt
+
+ stateSelect.prop('disabled', false).show()
+ stateInput.hide().prop 'disabled', true
+ statePara.show()
+ stateSpanRequired.show()
+ stateSelect.addClass('required') if statesRequired
+ stateSelect.removeClass('hidden')
+ stateInput.removeClass('required')
+ else
+ stateSelect.hide().prop 'disabled', true
+ stateInput.show()
+ if statesRequired
+ stateSpanRequired.show()
+ stateInput.addClass('required')
+ else
+ stateInput.val ''
+ stateSpanRequired.hide()
+ stateInput.removeClass('required')
+ statePara.toggle(!!statesRequired)
+ stateInput.prop('disabled', !statesRequired)
+ stateInput.removeClass('hidden')
+ stateSelect.removeClass('required')
+
+ ($ '#bcountry select').change ->
+ updateState 'b'
+
+ ($ '#scountry select').change ->
+ updateState 's'
+
+ updateState 'b'
+
+ order_use_shipping = ($ 'input#order_use_shipping ')
+ order_use_shipping .change ->
+ update_billing_form_state order_use_shipping
+
+ update_billing_form_state = (order_use_shipping ) ->
+ if order_use_shipping .is(':checked')
+ ($ '#billing .inner').hide()
+ ($ '#billing .inner input, #billing .inner select').prop 'disabled', true
+ else
+ ($ '#billing .inner').show()
+ ($ '#billing .inner input, #billing .inner select').prop 'disabled', false
+ updateState('s')
+
+ update_billing_form_state order_use_shipping
+
+ if ($ '#checkout_form_payment').is('*')
+ ($ 'input[type="radio"][name="order[payments_attributes][][payment_method_id]"]').click(->
+ ($ '#payment-methods li').hide()
+ ($ '#payment_method_' + @value).show() if @checked
+ )
+
+ ($ document).on('click', '#cvv_link', (event) ->
+ windowName = 'cvv_info'
+ windowOptions = 'left=20,top=20,width=500,height=500,toolbar=0,resizable=0,scrollbars=1'
+ window.open(($ this).attr('href'), windowName, windowOptions)
+ event.preventDefault()
+ )
+
+ # Activate already checked payment method if form is re-rendered
+ # i.e. if user enters invalid data
+ ($ 'input[type="radio"]:checked').click()
View
4 app/assets/javascripts/store/spree_address_book.js
@@ -1,3 +1 @@
-//= require store/user_address
-
-
+//= require store/checkout
View
131 app/assets/javascripts/store/user_address.js
@@ -1,131 +0,0 @@
-var remove_bill_address = 'Rimuovi indirizzo di fatturazione';
-var remove_ship_address = 'Rimuovi indirizzo di consegna';
-var add_bill_address = 'Aggiungi indirizzo di fatturazione';
-var add_ship_address = 'Aggiungi indirizzo di consegna';
-
-
-(function ($) {
-
- $(document).ready(function () {
- //$('#new-customer #shipping .inner').css('display','initial');
- //$('.edit-user #shipping .inner').css('display','initial');
- // TODO make multilanguage
- $('#add_ship_address').click(function () {
- $('#shipping').toggle();
- if ($('#shipping').css('display') == 'none') {
- $('#add_ship_address').html(add_ship_address);
- $('#delete_ship_address').val('true');
- } else {
- $('#add_ship_address').html(remove_ship_address);
- $('#delete_ship_address').val('false');
- }
- return false;
- });
-
- $('#add_bill_address').click(function () {
- $('#billing').toggle();
- if ($('#billing').css('display') == 'none') {
- $('#add_bill_address').html(add_bill_address);
- $('#delete_bill_address').val('true');
- } else {
- $('#add_bill_address').html(remove_bill_address);
- $('#delete_bill_address').val('false');
- }
- return false;
- });
-
- // need for populate state select
- if ($('#new-customer').is('*') || $('.edit_user').is('*')) {
- var get_states = function (region) {
- country = $('p#' + region + 'country' + ' span#' + region + 'country-selection :only-child').val();
- return state_mapper[country];
- }
-
- var update_state = function (region) {
- states = get_states(region);
-
- state_select = $('p#' + region + 'state select');
- state_input = $('p#' + region + 'state input');
-
- if (states) {
- selected = state_select.val();
- state_select.html('');
- 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.prop("selected", true);
- }
- state_select.append(opt);
- });
- state_select.prop("disabled", false).show();
- state_input.hide().prop("disabled", true);
-
- } else {
- state_input.prop("disabled", false).show();
- state_select.hide().prop("disabled", true);
- }
-
- };
-
- $('p#bcountry select').change(function () {
- update_state('b');
- });
- $('p#scountry select').change(function () {
- update_state('s');
- });
- update_state('b');
- update_state('s');
- }
-
- // Visible or hide address if is present
- if ($('.edit_user').is('*')) {
- if (!is_present('bill')) {
- $('#billing').toggle();
- } else {
- $('#add_bill_address').html(remove_bill_address);
- }
- if (!is_present('ship')) {
- $('#shipping').toggle();
- } else {
- $('#add_ship_address').html(remove_ship_address);
- }
- }
-
- $('#new-customer #shipping').toggle();
- $('#new-customer #billing').toggle();
- });
-})(jQuery);
-
-function is_present(prefix) {
- var count = 0;
- if ($('#user_' + prefix + '_address_attributes_firstname').val() == '') {
- count++;
- }
- if ($('#user_' + prefix + '_address_attributes_lastname').val() == '') {
- count++;
- }
- if ($('#user_' + prefix + '_address_attributes_address1').val() == '') {
- count++;
- }
- if ($('#user_' + prefix + '_address_attributes_city').val() == '') {
- count++;
- }
- if ($('#user_' + prefix + '_address_attributes_zipcode').val() == '') {
- count++;
- }
- if ($('#user_' + prefix + '_address_attributes_phone').val() == '') {
- count++;
- }
-
- if (count == 6) {
- return false;
- } else {
- return true;
- }
-}
-
View
4 app/controllers/spree/checkout_controller_decorator.rb
@@ -10,8 +10,8 @@ def registration
def before_address
if current_user
- @order.bill_address ||= current_user.bill_address || Spree::Address.default
- @order.ship_address ||= current_user.ship_address || Spree::Address.default
+ @order.bill_address ||= (!current_user.bill_address.blank? && current_user.bill_address.valid?) ? current_user.bill_address : Spree::Address.default
+ @order.ship_address ||= (!current_user.ship_address.blank? && current_user.ship_address.valid?) ? current_user.ship_address : Spree::Address.default
else
@order.bill_address ||= Spree::Address.default
@order.ship_address ||= Spree::Address.default
View
17 app/controllers/spree/user_registrations_controller_decorator.rb
@@ -1,17 +0,0 @@
-Spree::UserRegistrationsController.class_eval do
- include Spree::AddressHelper
-
- def new
- resource = build_resource({})
- country = Spree::Country.find(Spree::Config[:default_country_id]) rescue Spree::Country.first
- @user.build_bill_address({:country => country}, :without_protection => true) if !@user.bill_address
- @user.build_ship_address({:country => country}, :without_protection => true) if !@user.ship_address
- respond_with @user
- end
-
- def create
- params[:user].delete(:bill_address_attributes) if params[:user][:bill_address_attributes].blank? || empty_address?(params[:user][:bill_address_attributes])
- params[:user].delete(:ship_address_attributes) if params[:user][:ship_address_attributes].blank? || empty_address?(params[:user][:ship_address_attributes])
- super
- end
-end
View
4 app/controllers/spree/users_controller_decorator.rb
@@ -1,6 +1,4 @@
-Spree::UsersController.class_eval do
- include Spree::AddressHelper
-
+Spree::UsersController.class_eval do
def edit
country = Spree::Country.find(Spree::Config[:default_country_id]) rescue Spree::Country.first
@user.build_bill_address({:country => country}, :without_protection => true) if !@user.bill_address
View
20 app/helpers/spree/address_helper.rb
@@ -1,20 +0,0 @@
-module Spree
- module AddressHelper
- def empty_address?(address)
- count = 0
- count += 1 if address[:firstname].blank?
- count += 1 if address[:lastname].blank?
- count += 1 if address[:address1].blank?
- count += 1 if address[:city].blank?
- count += 1 if address[:state_id].blank?
- count += 1 if address[:zipcode].blank?
- count += 1 if address[:phone].blank?
- if count == 7
- true
- else
- false
- end
- end
-
- end
-end
View
12 app/models/spree/address_decorator.rb
@@ -1,10 +1,18 @@
Spree::Address.class_eval do
- attr_accessible :tax_id_number, :vat_number
-
+
+ validates_format_of :tax_id_number, :with => /^[A-Z]{6}[A-Z0-9]{2}[A-Z][A-Z0-9]{2}[A-Z][A-Z0-9]{3}[A-Z]$/i, :if => :tax_id_present?
validates :vat_number, :length => {:maximum => 11}, :if => Proc.new {|a| !a.vat_number.blank? }
validates :tax_id_number, :length => {:in => 11..16}, :if => Proc.new {|a| !a.tax_id_number.blank? }
def empty?
attributes.except('id', 'created_at', 'updated_at', 'order_id', 'country_id', 'tax_id_number', 'vat_number').all? { |_, v| v.nil? }
end
+
+ def tax_id_present?
+ !tax_id_number.blank?
+ end
+
+ def use_tax_id_number?
+ @use_tax_id_number == true || @use_tax_id_number == "true" || @use_tax_id_number == "1"
+ end
end
View
23 app/models/spree/order_decorator.rb
@@ -0,0 +1,23 @@
+Spree::Order.class_eval do
+ before_validation :clone_shipping_address, :unless => :use_shipping?
+
+ attr_accessor :use_shipping
+
+ def clone_shipping_address
+ if ship_address && ship_address.valid? and self.bill_address.nil?
+ self.bill_address = ship_address.clone
+ elsif ship_address && ship_address.valid?
+ self.bill_address.attributes = ship_address.attributes.except('id', 'updated_at', 'created_at')
+ end
+ true
+ end
+
+ def billing_eq_shipping_address?
+ (bill_address.empty? && ship_address.empty?) || ship_address.same_as?(bill_address)
+ end
+
+ private
+ def use_shipping?
+ @use_shipping == true || @use_shipping == "true" || @use_shipping == "1"
+ end
+end
View
59 app/models/spree/user_decorator.rb
@@ -1,68 +1,27 @@
Spree.user_class.class_eval do
- attr_accessible :use_billing, :bill_address_attributes, :ship_address_attributes, :ship_address, :bill_address
- accepts_nested_attributes_for :bill_address, :allow_destroy => true
- accepts_nested_attributes_for :ship_address, :allow_destroy => true
-
- before_validation :clone_billing_address, :if => :use_billing?
- after_update :removed_bill_address, :if => :delete_billing?
- after_update :removed_ship_address, :if => :delete_shipping?
- attr_accessor :use_billing, :delete_ship_address, :delete_bill_address
+
+
+ has_many :ship_addresses, class_name: 'Spree::Address'
+ accepts_nested_attributes_for :bill_address, allow_destroy: true
+ accepts_nested_attributes_for :ship_addresses, allow_destroy: true
+
+ after_update :removed_bill_address, if: :delete_billing?
+ attr_accessor :delete_bill_address
def update_with_password(params = {})
params.delete(:password) if params[:password].blank?
params.delete(:password_confirmation) if params[:password_confirmation].blank?
params.delete(:bill_address_attributes) if empty_address?(params[:bill_address_attributes])
- params.delete(:ship_address_attributes) if empty_address?(params[:ship_address_attributes])
update_attributes(params)
end
- def clone_billing_address
- if bill_address and self.ship_address.nil?
- self.ship_address = bill_address.clone
- else
- self.ship_address.attributes = bill_address.attributes.except('id', 'updated_at', 'created_at')
- end
- true
- end
-
- def removed_ship_address
- if self.ship_address
- self.ship_address.destroy
- end
- end
-
def removed_bill_address
if self.bill_address
self.bill_address.destroy
end
end
- def use_billing?
- @use_billing == true || @use_billing == "true" || @use_billing == "1"
- end
-
def delete_billing?
@delete_bill_address == true || @delete_bill_address == "true" || @delete_bill_address == "1"
- end
-
- def delete_shipping?
- @delete_ship_address == true || @delete_ship_address == "true" || @delete_ship_address == "1"
- end
-
- private
- def empty_address?(address)
- count = 0
- count += 1 if address[:firstname].blank?
- count += 1 if address[:lastname].blank?
- count += 1 if address[:address1].blank?
- count += 1 if address[:city].blank?
- count += 1 if address[:state_id].blank?
- count += 1 if address[:zipcode].blank?
- count += 1 if address[:phone].blank?
- if count == 7
- true
- else
- false
- end
- end
+ end
end
View
85 app/views/spree/address/_form.html.erb
@@ -0,0 +1,85 @@
+<% address_id = address_type.chars.first %>
+<div class="inner" data-hook=<%="#{address_type}_inner" %>>
+ <p class="field" id=<%="#{address_id}firstname" %>>
+ <%= form.label :firstname, Spree.t(:first_name) %><span class="required">*</span><br />
+ <%= form.text_field :firstname, :class => 'required' %>
+ </p>
+ <p class="field" id=<%="#{address_id}lastname" %>>
+ <%= form.label :lastname, Spree.t(:last_name) %><span class="required">*</span><br />
+ <%= form.text_field :lastname, :class => 'required' %>
+ </p>
+ <% if Spree::Config[:company] %>
+ <p class="field" id=<%="#{address_id}company" %>>
+ <%= form.label :company, Spree.t(:company) %><br />
+ <%= form.text_field :company %>
+ </p>
+ <p class="field" id=<%="#{address_id}vat_number" %>>
+ <%= form.label :vat_number, Spree.t(:vat_number) %><br />
+ <%= form.text_field :vat_number %>
+ </p>
+ <% end %>
+ <% if address_type == "shipping" %>
+ <p class="field" id=<%="#{address_id}tax_id_number" %>>
+ <%= form.label :tax_id_number, t(:tax_id_number) %><span class="required">*</span><br />
+ <%= form.text_field :tax_id_number, :class => 'required' %>
+ </p>
+ <% end %>
+ <p class="field" id=<%="#{address_id}address1" %>>
+ <%= form.label :address1, Spree.t(:street_address) %><span class="required">*</span><br />
+ <%= form.text_field :address1, :class => 'required' %>
+ </p>
+ <p class="field" id=<%="#{address_id}address2" %>>
+ <%= form.label :address2, Spree.t(:street_address_2) %><br />
+ <%= form.text_field :address2 %>
+ </p>
+ <p class="field" id=<%="#{address_id}city" %>>
+ <%= form.label :city, Spree.t(:city) %><span class="required">*</span><br />
+ <%= form.text_field :city, :class => 'required' %>
+ </p>
+ <p class="field" id=<%="#{address_id}country" %>>
+ <%= form.label :country_id, Spree.t(:country) %><span class="required">*</span><br />
+ <span id=<%="#{address_id}country-selection" %>>
+ <%= form.collection_select :country_id, available_countries, :id, :name, {}, {:class => 'required'} %>
+ </span>
+ </p>
+
+ <% if Spree::Config[:address_requires_state] %>
+ <p class="field" id=<%="#{address_id}state" %>>
+ <% have_states = !address.country.states.empty? %>
+ <%= form.label :state, Spree.t(:state) %><span class='required' id=<%="#{address_id}state-required"%>>*</span><br/>
+
+ <% state_elements = [
+ form.collection_select(:state_id, address.country.states,
+ :id, :name,
+ {:include_blank => true},
+ {:class => have_states ? 'required' : 'hidden',
+ :disabled => !have_states}) +
+ form.text_field(:state_name,
+ :class => !have_states ? 'required' : 'hidden',
+ :disabled => have_states)
+ ].join.gsub('"', "'").gsub("\n", "")
+ %>
+ <%= javascript_tag do -%>
+ $('#<%="#{address_id}state" %>').append("<%== state_elements %>");
+ <% end %>
+ </p>
+ <noscript>
+ <%= form.text_field :state_name, :class => 'required' %>
+ </noscript>
+ <% end %>
+
+ <p class="field" id=<%="#{address_id}zipcode" %>>
+ <%= form.label :zipcode, Spree.t(:zip) %><span class="required">*</span><br />
+ <%= form.text_field :zipcode, :class => 'required' %>
+ </p>
+ <p class="field" id=<%="#{address_id}phone" %>>
+ <%= form.label :phone, Spree.t(:phone) %><span class="required">*</span><br />
+ <%= form.phone_field :phone, :class => 'required' %>
+ </p>
+ <% if Spree::Config[:alternative_shipping_phone] %>
+ <p class="field" id=<%="#{address_id}altphone" %>>
+ <%= form.label :alternative_phone, Spree.t(:alternative_phone) %><br />
+ <%= form.phone_field :alternative_phone %>
+ </p>
+ <% end %>
+</div>
View
30 app/views/spree/checkout/_address.html.erb
@@ -0,0 +1,30 @@
+<div class="columns alpha six" data-hook="billing_fieldset_wrapper">
+ <fieldset id="billing" data-hook>
+ <%= form.fields_for :ship_address do |ship_form| %>
+ <legend align="center"><%= Spree.t(:shipping_address) %></legend>
+ <%= render :partial => 'spree/address/form', :locals => { :form => ship_form, :address_type => 'shipping', :address => @order.ship_address } %>
+ <% end %>
+ </fieldset>
+</div>
+
+<div class="columns omega six" data-hook="shipping_fieldset_wrapper">
+ <fieldset id="shipping" data-hook>
+ <%= form.fields_for :billing_address do |bill_form| %>
+ <legend align="center"><%= Spree.t(:billing_address) %></legend>
+ <p class="field checkbox" data-hook="use_shipping">
+ <%= check_box_tag 'order[use_shipping]', '1', @order.billing_eq_shipping_address? %>
+ <%= label_tag :order_use_shipping, Spree.t(:use_shipping_address), :id => 'use_shipping' %>
+ </p>
+ <%= render :partial => 'spree/address/form', :locals => { :form => bill_form, :address_type => 'billing', :address => @order.bill_address } %>
+ <% end %>
+ </fieldset>
+</div>
+<hr class="clear" />
+<div class="form-buttons" data-hook="buttons">
+ <%= submit_tag Spree.t(:save_and_continue), :class => 'continue button primary' %>
+ <span data-hook="save_user_address">
+ &nbsp; &nbsp;
+ <%= check_box_tag 'save_user_address', '1', try_spree_current_user.respond_to?(:persist_order_address) %>
+ <%= label_tag :save_user_address, Spree.t(:save_my_address) %>
+ </span>
+</div>
View
8 app/views/spree/shared/_bill_address_field_company.html.erb
@@ -1,8 +0,0 @@
-<p class="field" id="bvat_number">
- <%= bill_form.label :vat_number, t(:vat_number) %><br />
- <%= bill_form.text_field :vat_number %>
-</p>
-<p class="field" id="btax_id_number">
- <%= bill_form.label :tax_id_number, t(:tax_id_number) %><br />
- <%= bill_form.text_field :tax_id_number %>
-</p>
View
4 app/views/spree/shared/_remember_check.html.erb
@@ -1,4 +0,0 @@
-<%= label_tag(:remember_bill_address,t(:remember_bill_address)) %>
-<%= check_box_tag(:remember_bill_address,1) %>
-<%= label_tag(:remember_ship_address,t(:remember_ship_address)) %>
-<%= check_box_tag(:remember_ship_address,1) %>
View
8 app/views/spree/shared/_ship_address_field_company.html.erb
@@ -1,8 +0,0 @@
-<p class="field" id="svat_number">
- <%= ship_form.label :vat_number, t(:vat_number) %><br />
- <%= ship_form.text_field :vat_number %>
-</p>
-<p class="field" id="stax_id_number">
- <%= ship_form.label :tax_id_number, t(:tax_id_number) %><br />
- <%= ship_form.text_field :tax_id_number %>
-</p>
View
4 db/migrate/20130226102756_add_field_to_address.rb
@@ -1,6 +1,8 @@
class AddFieldToAddress < ActiveRecord::Migration
def change
- add_column :spree_addresses, :tax_id_number, :string, :limit => 16, :after => :lastname
+ add_column :spree_addresses, :tax_id_number, :string, :limit => 16, :after => :company
add_column :spree_addresses, :vat_number, :string, :limit => 11, :after => :tax_id_number
+
+ add_column :spree_addresses, :user_id, :integer, :after => :country_id
end
end
View
2  lib/generators/spree_address_book/install/install_generator.rb
@@ -4,12 +4,10 @@ class InstallGenerator < Rails::Generators::Base
def add_javascripts
append_file "app/assets/javascripts/store/all.js", "//= require store/spree_address_book\n"
- #append_file "app/assets/javascripts/admin/all.js", "//= require admin/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
- #inject_into_file "app/assets/stylesheets/admin/all.css", " *= require admin/spree_address_book\n", :before => /\*\//, :verbose => true
end
def add_migrations
View
9 script/rails
@@ -1,9 +0,0 @@
-#!/usr/bin/env ruby
-# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
-
-
-ENGINE_PATH = File.expand_path('../..', __FILE__)
-APP_PATH = File.expand_path('../../../config/application', __FILE__)
-require File.expand_path('../../../config/boot', __FILE__)
-require 'rails/commands'
-
View
6 spree_address_book.gemspec
@@ -2,9 +2,9 @@
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = 'spree_address_book'
- s.version = '1.3.0'
+ s.version = '2.1.0'
s.summary = 'Manage address for User'
- s.required_ruby_version = '>= 1.8.7'
+ s.required_ruby_version = '>= 1.9.3'
s.author = 'Diginess'
s.email = 'riccardo.degan@diginess.it'
@@ -15,6 +15,6 @@ Gem::Specification.new do |s|
s.require_path = 'lib'
s.requirements << 'none'
- s.add_dependency 'spree_core', '>= 1.3.0'
+ s.add_dependency 'spree_core', '>= 2.1.0'
end
Please sign in to comment.
Something went wrong with that request. Please try again.