├── .gitignore ├── .travis.yml ├── Gemfile ├── LICENSE ├── README.md ├── Rakefile ├── Versionfile ├── app ├── assets │ ├── javascripts │ │ └── spree │ │ │ ├── backend │ │ │ └── spree_gift_card.js │ │ │ └── frontend │ │ │ └── spree_gift_card.js │ └── stylesheets │ │ └── spree │ │ ├── backend │ │ └── spree_gift_card.css │ │ └── frontend │ │ └── spree_gift_card.css ├── controllers │ └── spree │ │ ├── admin │ │ └── gift_cards_controller.rb │ │ ├── checkout_controller_decorator.rb │ │ ├── gift_cards_controller.rb │ │ ├── orders_controller_decorator.rb │ │ ├── products_controller_decorator.rb │ │ └── store_controller_decorator.rb ├── mailers │ └── spree │ │ └── order_mailer_decorator.rb ├── models │ ├── spree.rb │ └── spree │ │ ├── adjustment_decorator.rb │ │ ├── calculator │ │ └── gift_card.rb │ │ ├── gift_card.rb │ │ ├── gift_card_transaction.rb │ │ ├── line_item_decorator.rb │ │ ├── order_contents_decorator.rb │ │ ├── order_decorator.rb │ │ ├── payment_decorator.rb │ │ ├── product_decorator.rb │ │ └── stock │ │ └── quantifier_decorator.rb ├── overrides │ └── spree │ │ ├── admin │ │ └── products │ │ │ └── _form │ │ │ └── insert_bottom_admin_product_form_right.html.erb.deface │ │ ├── checkout │ │ └── _payment │ │ │ └── _gift_code_field.html.erb.deface │ │ ├── layouts │ │ └── admin │ │ │ └── gift_cards_tab.html.erb.deface │ │ ├── orders │ │ ├── _form │ │ │ └── add_gift_code_field.html.erb.deface │ │ └── _line_item │ │ │ └── replace_contents_cart_item_description.html.erb.deface │ │ └── shared │ │ ├── _order_details │ │ └── insert_bottom_order_item_description.html.erb.deface │ │ └── _sidebar │ │ └── insert_bottom_sidebar.html.erb.deface └── views │ └── spree │ ├── admin │ └── gift_cards │ │ ├── _form.html.erb │ │ ├── edit.html.erb │ │ ├── index.html.erb │ │ └── new.html.erb │ ├── gift_cards │ └── new.html.erb │ ├── order_mailer │ └── gift_card_email.html.erb │ └── orders │ └── _gift_code_field.html.erb ├── config ├── locales │ └── en.yml └── routes.rb ├── db ├── migrate │ ├── 20101008115306_add_gift_card_attr_to_spree_products.rb │ ├── 20101011103850_create_spree_gift_cards.rb │ ├── 20121017183422_create_spree_gift_card_transactions.rb │ └── 2013080702300_upgrade_gift_card_adjustments.rb └── seeds.rb ├── lib ├── generators │ └── spree_gift_card │ │ ├── install_generator.rb │ │ └── seed_generator.rb ├── spree_gift_card.rb ├── spree_gift_card │ └── engine.rb └── tasks │ └── spree_gift_card.rake ├── script └── rails ├── spec ├── factories │ └── gift_cards.rb ├── features │ ├── add_to_card_spec.rb │ ├── admin │ │ └── gift_card_administration_spec.rb │ ├── checkout_spec.rb │ └── purchase_spec.rb ├── models │ └── spree │ │ ├── calculator │ │ └── gift_card_spec.rb │ │ ├── gift_card_spec.rb │ │ ├── gift_card_transaction_spec.rb │ │ ├── line_item_spec.rb │ │ ├── order_spec.rb │ │ └── stock │ │ └── quantifier_spec.rb └── spec_helper.rb └── spree_gift_card.gemspec /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/.travis.yml -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/Rakefile -------------------------------------------------------------------------------- /Versionfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/Versionfile -------------------------------------------------------------------------------- /app/assets/javascripts/spree/backend/spree_gift_card.js: -------------------------------------------------------------------------------- 1 | //= require spree/backend 2 | -------------------------------------------------------------------------------- /app/assets/javascripts/spree/frontend/spree_gift_card.js: -------------------------------------------------------------------------------- 1 | //= require spree/frontend 2 | -------------------------------------------------------------------------------- /app/assets/stylesheets/spree/backend/spree_gift_card.css: -------------------------------------------------------------------------------- 1 | /* 2 | *= require spree/backend 3 | */ 4 | -------------------------------------------------------------------------------- /app/assets/stylesheets/spree/frontend/spree_gift_card.css: -------------------------------------------------------------------------------- 1 | /* 2 | *= require spree/frontend 3 | */ 4 | -------------------------------------------------------------------------------- /app/controllers/spree/admin/gift_cards_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/app/controllers/spree/admin/gift_cards_controller.rb -------------------------------------------------------------------------------- /app/controllers/spree/checkout_controller_decorator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/app/controllers/spree/checkout_controller_decorator.rb -------------------------------------------------------------------------------- /app/controllers/spree/gift_cards_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/app/controllers/spree/gift_cards_controller.rb -------------------------------------------------------------------------------- /app/controllers/spree/orders_controller_decorator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/app/controllers/spree/orders_controller_decorator.rb -------------------------------------------------------------------------------- /app/controllers/spree/products_controller_decorator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/app/controllers/spree/products_controller_decorator.rb -------------------------------------------------------------------------------- /app/controllers/spree/store_controller_decorator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/app/controllers/spree/store_controller_decorator.rb -------------------------------------------------------------------------------- /app/mailers/spree/order_mailer_decorator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/app/mailers/spree/order_mailer_decorator.rb -------------------------------------------------------------------------------- /app/models/spree.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/app/models/spree.rb -------------------------------------------------------------------------------- /app/models/spree/adjustment_decorator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/app/models/spree/adjustment_decorator.rb -------------------------------------------------------------------------------- /app/models/spree/calculator/gift_card.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/app/models/spree/calculator/gift_card.rb -------------------------------------------------------------------------------- /app/models/spree/gift_card.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/app/models/spree/gift_card.rb -------------------------------------------------------------------------------- /app/models/spree/gift_card_transaction.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/app/models/spree/gift_card_transaction.rb -------------------------------------------------------------------------------- /app/models/spree/line_item_decorator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/app/models/spree/line_item_decorator.rb -------------------------------------------------------------------------------- /app/models/spree/order_contents_decorator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/app/models/spree/order_contents_decorator.rb -------------------------------------------------------------------------------- /app/models/spree/order_decorator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/app/models/spree/order_decorator.rb -------------------------------------------------------------------------------- /app/models/spree/payment_decorator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/app/models/spree/payment_decorator.rb -------------------------------------------------------------------------------- /app/models/spree/product_decorator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/app/models/spree/product_decorator.rb -------------------------------------------------------------------------------- /app/models/spree/stock/quantifier_decorator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/app/models/spree/stock/quantifier_decorator.rb -------------------------------------------------------------------------------- /app/overrides/spree/admin/products/_form/insert_bottom_admin_product_form_right.html.erb.deface: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/app/overrides/spree/admin/products/_form/insert_bottom_admin_product_form_right.html.erb.deface -------------------------------------------------------------------------------- /app/overrides/spree/checkout/_payment/_gift_code_field.html.erb.deface: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/app/overrides/spree/checkout/_payment/_gift_code_field.html.erb.deface -------------------------------------------------------------------------------- /app/overrides/spree/layouts/admin/gift_cards_tab.html.erb.deface: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/app/overrides/spree/layouts/admin/gift_cards_tab.html.erb.deface -------------------------------------------------------------------------------- /app/overrides/spree/orders/_form/add_gift_code_field.html.erb.deface: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/app/overrides/spree/orders/_form/add_gift_code_field.html.erb.deface -------------------------------------------------------------------------------- /app/overrides/spree/orders/_line_item/replace_contents_cart_item_description.html.erb.deface: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/app/overrides/spree/orders/_line_item/replace_contents_cart_item_description.html.erb.deface -------------------------------------------------------------------------------- /app/overrides/spree/shared/_order_details/insert_bottom_order_item_description.html.erb.deface: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/app/overrides/spree/shared/_order_details/insert_bottom_order_item_description.html.erb.deface -------------------------------------------------------------------------------- /app/overrides/spree/shared/_sidebar/insert_bottom_sidebar.html.erb.deface: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/app/overrides/spree/shared/_sidebar/insert_bottom_sidebar.html.erb.deface -------------------------------------------------------------------------------- /app/views/spree/admin/gift_cards/_form.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/app/views/spree/admin/gift_cards/_form.html.erb -------------------------------------------------------------------------------- /app/views/spree/admin/gift_cards/edit.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/app/views/spree/admin/gift_cards/edit.html.erb -------------------------------------------------------------------------------- /app/views/spree/admin/gift_cards/index.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/app/views/spree/admin/gift_cards/index.html.erb -------------------------------------------------------------------------------- /app/views/spree/admin/gift_cards/new.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/app/views/spree/admin/gift_cards/new.html.erb -------------------------------------------------------------------------------- /app/views/spree/gift_cards/new.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/app/views/spree/gift_cards/new.html.erb -------------------------------------------------------------------------------- /app/views/spree/order_mailer/gift_card_email.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/app/views/spree/order_mailer/gift_card_email.html.erb -------------------------------------------------------------------------------- /app/views/spree/orders/_gift_code_field.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/app/views/spree/orders/_gift_code_field.html.erb -------------------------------------------------------------------------------- /config/locales/en.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/config/locales/en.yml -------------------------------------------------------------------------------- /config/routes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/config/routes.rb -------------------------------------------------------------------------------- /db/migrate/20101008115306_add_gift_card_attr_to_spree_products.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/db/migrate/20101008115306_add_gift_card_attr_to_spree_products.rb -------------------------------------------------------------------------------- /db/migrate/20101011103850_create_spree_gift_cards.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/db/migrate/20101011103850_create_spree_gift_cards.rb -------------------------------------------------------------------------------- /db/migrate/20121017183422_create_spree_gift_card_transactions.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/db/migrate/20121017183422_create_spree_gift_card_transactions.rb -------------------------------------------------------------------------------- /db/migrate/2013080702300_upgrade_gift_card_adjustments.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/db/migrate/2013080702300_upgrade_gift_card_adjustments.rb -------------------------------------------------------------------------------- /db/seeds.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/db/seeds.rb -------------------------------------------------------------------------------- /lib/generators/spree_gift_card/install_generator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/lib/generators/spree_gift_card/install_generator.rb -------------------------------------------------------------------------------- /lib/generators/spree_gift_card/seed_generator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/lib/generators/spree_gift_card/seed_generator.rb -------------------------------------------------------------------------------- /lib/spree_gift_card.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/lib/spree_gift_card.rb -------------------------------------------------------------------------------- /lib/spree_gift_card/engine.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/lib/spree_gift_card/engine.rb -------------------------------------------------------------------------------- /lib/tasks/spree_gift_card.rake: -------------------------------------------------------------------------------- 1 | # add custom rake tasks here -------------------------------------------------------------------------------- /script/rails: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/script/rails -------------------------------------------------------------------------------- /spec/factories/gift_cards.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/spec/factories/gift_cards.rb -------------------------------------------------------------------------------- /spec/features/add_to_card_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/spec/features/add_to_card_spec.rb -------------------------------------------------------------------------------- /spec/features/admin/gift_card_administration_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/spec/features/admin/gift_card_administration_spec.rb -------------------------------------------------------------------------------- /spec/features/checkout_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/spec/features/checkout_spec.rb -------------------------------------------------------------------------------- /spec/features/purchase_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/spec/features/purchase_spec.rb -------------------------------------------------------------------------------- /spec/models/spree/calculator/gift_card_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/spec/models/spree/calculator/gift_card_spec.rb -------------------------------------------------------------------------------- /spec/models/spree/gift_card_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/spec/models/spree/gift_card_spec.rb -------------------------------------------------------------------------------- /spec/models/spree/gift_card_transaction_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/spec/models/spree/gift_card_transaction_spec.rb -------------------------------------------------------------------------------- /spec/models/spree/line_item_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/spec/models/spree/line_item_spec.rb -------------------------------------------------------------------------------- /spec/models/spree/order_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/spec/models/spree/order_spec.rb -------------------------------------------------------------------------------- /spec/models/spree/stock/quantifier_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/spec/models/spree/stock/quantifier_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spree_gift_card.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JDutil/spree_gift_card/HEAD/spree_gift_card.gemspec --------------------------------------------------------------------------------