spree_sample 2.3.13 → 2.4.0.rc1
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.
- checksums.yaml +4 -4
- data/db/samples/adjustments.rb +0 -2
- data/db/samples/payments.rb +1 -1
- data/db/samples/shipping_categories.rb +1 -1
- data/db/samples/stock.rb +2 -2
- data/db/samples/variants.rb +1 -1
- metadata +7 -7
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 7b3078bff4c672df9a749f89da2e94f57a74a9b5
         | 
| 4 | 
            +
              data.tar.gz: b2aadc36f10398778dba4f28a540a343d79bc6c9
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 1096ea442e743811d7585c5e49d78abfbaf45a049941b1981aada4e9b3c5a119d9d396d45e312bc49e027e789d282c8e4d205d6b0fd49a92d980b1061f80b9ea
         | 
| 7 | 
            +
              data.tar.gz: 062071fb8425aa4f7b3c2eb6514d8ec1cd6d3caa43d8366783353b88515fd876008d5d9e68454447014109be3b9556b1dbbf245a732fbb0d2c1ef2ad62ac5730
         | 
    
        data/db/samples/adjustments.rb
    CHANGED
    
    | @@ -6,7 +6,6 @@ last_order = Spree::Order.find_by_number!("R987654321") | |
| 6 6 | 
             
            first_order.adjustments.create!(
         | 
| 7 7 | 
             
              :amount => 0,
         | 
| 8 8 | 
             
              :source => Spree::TaxRate.find_by_name!("North America"),
         | 
| 9 | 
            -
              :order  => first_order,
         | 
| 10 9 | 
             
              :label => "Tax",
         | 
| 11 10 | 
             
              :state => "open",
         | 
| 12 11 | 
             
              :mandatory => true)
         | 
| @@ -14,7 +13,6 @@ first_order.adjustments.create!( | |
| 14 13 | 
             
            last_order.adjustments.create!(
         | 
| 15 14 | 
             
              :amount => 0,
         | 
| 16 15 | 
             
              :source => Spree::TaxRate.find_by_name!("North America"),
         | 
| 17 | 
            -
              :order  => last_order,
         | 
| 18 16 | 
             
              :label => "Tax",
         | 
| 19 17 | 
             
              :state => "open",
         | 
| 20 18 | 
             
              :mandatory => true)
         | 
    
        data/db/samples/payments.rb
    CHANGED
    
    | @@ -12,7 +12,7 @@ end | |
| 12 12 | 
             
            # reference it as such. Make it explicit here that this table has been renamed.
         | 
| 13 13 | 
             
            Spree::CreditCard.table_name = 'spree_credit_cards'
         | 
| 14 14 |  | 
| 15 | 
            -
            creditcard = Spree::CreditCard.create(:cc_type => 'visa', :month => 12, :year =>  | 
| 15 | 
            +
            creditcard = Spree::CreditCard.create(:cc_type => 'visa', :month => 12, :year => 2014, :last_digits => '1111',
         | 
| 16 16 | 
             
                                                  :name => 'Sean Schofield', :gateway_customer_profile_id => 'BGS-1234')
         | 
| 17 17 |  | 
| 18 18 | 
             
            Spree::Order.all.each_with_index do |order, index|
         | 
| @@ -1 +1 @@ | |
| 1 | 
            -
            Spree::ShippingCategory. | 
| 1 | 
            +
            Spree::ShippingCategory.find_or_create_by!(:name => "Default")
         | 
    
        data/db/samples/stock.rb
    CHANGED
    
    | @@ -1,8 +1,8 @@ | |
| 1 1 | 
             
            Spree::Sample.load_sample("variants")
         | 
| 2 2 |  | 
| 3 | 
            -
             | 
| 3 | 
            +
            country =  Spree::Country.find_by(iso: 'US')
         | 
| 4 | 
            +
            location = Spree::StockLocation.first_or_create! name: 'default', address1: 'Example Street', city: 'City', zipcode: '12345', country: country, state: country.states.first
         | 
| 4 5 | 
             
            location.active = true
         | 
| 5 | 
            -
            location.country =  Spree::Country.where(iso: 'US').first
         | 
| 6 6 | 
             
            location.save!
         | 
| 7 7 |  | 
| 8 8 | 
             
            Spree::Variant.all.each do |variant|
         | 
    
        data/db/samples/variants.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: spree_sample
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 2. | 
| 4 | 
            +
              version: 2.4.0.rc1
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Sean Schofield
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date:  | 
| 11 | 
            +
            date: 2014-10-09 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: spree_core
         | 
| @@ -16,14 +16,14 @@ dependencies: | |
| 16 16 | 
             
                requirements:
         | 
| 17 17 | 
             
                - - '='
         | 
| 18 18 | 
             
                  - !ruby/object:Gem::Version
         | 
| 19 | 
            -
                    version: 2. | 
| 19 | 
            +
                    version: 2.4.0.rc1
         | 
| 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. | 
| 26 | 
            +
                    version: 2.4.0.rc1
         | 
| 27 27 | 
             
            description: Required dependency for Spree
         | 
| 28 28 | 
             
            email: sean@spreecommerce.com
         | 
| 29 29 | 
             
            executables: []
         | 
| @@ -102,13 +102,13 @@ required_ruby_version: !ruby/object:Gem::Requirement | |
| 102 102 | 
             
                  version: 1.9.3
         | 
| 103 103 | 
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 104 104 | 
             
              requirements:
         | 
| 105 | 
            -
              - - " | 
| 105 | 
            +
              - - ">"
         | 
| 106 106 | 
             
                - !ruby/object:Gem::Version
         | 
| 107 | 
            -
                  version:  | 
| 107 | 
            +
                  version: 1.3.1
         | 
| 108 108 | 
             
            requirements:
         | 
| 109 109 | 
             
            - none
         | 
| 110 110 | 
             
            rubyforge_project: 
         | 
| 111 | 
            -
            rubygems_version: 2. | 
| 111 | 
            +
            rubygems_version: 2.2.2
         | 
| 112 112 | 
             
            signing_key: 
         | 
| 113 113 | 
             
            specification_version: 4
         | 
| 114 114 | 
             
            summary: Sample data (including images) for use with Spree.
         |