spree_flat_in_range 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. data/LICENSE +26 -0
  2. data/README.md +39 -0
  3. data/app/models/spree/calculator/flat_in_range.rb +21 -0
  4. data/config/locales/en.yml +5 -0
  5. data/lib/spree_flat_in_range.rb +21 -0
  6. data/spec/dummy/Rakefile +7 -0
  7. data/spec/dummy/app/assets/javascripts/admin/all.js +10 -0
  8. data/spec/dummy/app/assets/javascripts/application.js +9 -0
  9. data/spec/dummy/app/assets/javascripts/store/all.js +10 -0
  10. data/spec/dummy/app/assets/stylesheets/admin/all.css +11 -0
  11. data/spec/dummy/app/assets/stylesheets/application.css +7 -0
  12. data/spec/dummy/app/assets/stylesheets/store/all.css +11 -0
  13. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  14. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  15. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  16. data/spec/dummy/config.ru +4 -0
  17. data/spec/dummy/config/application.rb +60 -0
  18. data/spec/dummy/config/boot.rb +6 -0
  19. data/spec/dummy/config/database.yml +18 -0
  20. data/spec/dummy/config/environment.rb +7 -0
  21. data/spec/dummy/config/environments/development.rb +30 -0
  22. data/spec/dummy/config/environments/production.rb +60 -0
  23. data/spec/dummy/config/environments/test.rb +39 -0
  24. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  25. data/spec/dummy/config/initializers/inflections.rb +10 -0
  26. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  27. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  28. data/spec/dummy/config/initializers/session_store.rb +8 -0
  29. data/spec/dummy/config/initializers/spree.rb +12 -0
  30. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  31. data/spec/dummy/config/locales/en.yml +5 -0
  32. data/spec/dummy/config/routes.rb +3 -0
  33. data/spec/dummy/config/spree.yml +2 -0
  34. data/spec/dummy/db/dummy_test +0 -0
  35. data/spec/dummy/db/migrate/20120218160357_spree_zero_nine_zero.rb +389 -0
  36. data/spec/dummy/db/migrate/20120218160358_create_indexes_for_inventory_units.rb +6 -0
  37. data/spec/dummy/db/migrate/20120218160359_add_count_on_hand_to_variants_and_products.rb +49 -0
  38. data/spec/dummy/db/migrate/20120218160360_change_taxons_to_nested_set.rb +46 -0
  39. data/spec/dummy/db/migrate/20120218160361_move_to_configurable_gateways.rb +54 -0
  40. data/spec/dummy/db/migrate/20120218160362_product_groups_and_scopes.rb +18 -0
  41. data/spec/dummy/db/migrate/20120218160363_add_open_id_authentication_tables.rb +15 -0
  42. data/spec/dummy/db/migrate/20120218160364_add_openid_field_to_users.rb +24 -0
  43. data/spec/dummy/db/migrate/20120218160365_change_preference_value_type.rb +10 -0
  44. data/spec/dummy/db/migrate/20120218160366_create_billing_integrations.rb +12 -0
  45. data/spec/dummy/db/migrate/20120218160367_charge_refactoring.rb +39 -0
  46. data/spec/dummy/db/migrate/20120218160368_add_some_indexes.rb +11 -0
  47. data/spec/dummy/db/migrate/20120218160369_checkout_state_machine.rb +5 -0
  48. data/spec/dummy/db/migrate/20120218160370_state_for_shipments.rb +5 -0
  49. data/spec/dummy/db/migrate/20120218160371_make_state_events_polymorphic.rb +12 -0
  50. data/spec/dummy/db/migrate/20120218160372_ship_address_id_for_checkouts.rb +5 -0
  51. data/spec/dummy/db/migrate/20120218160373_shipping_method_id_for_checkouts.rb +5 -0
  52. data/spec/dummy/db/migrate/20120218160374_creditcard_last_four_digits.rb +14 -0
  53. data/spec/dummy/db/migrate/20120218160375_populate_legacy_shipment_state.rb +15 -0
  54. data/spec/dummy/db/migrate/20120218160376_add_cost_price.rb +5 -0
  55. data/spec/dummy/db/migrate/20120218160377_shipment_id_for_inventory_units.rb +25 -0
  56. data/spec/dummy/db/migrate/20120218160378_cim_fields_for_creditcards.rb +6 -0
  57. data/spec/dummy/db/migrate/20120218160379_create_return_authorizations.rb +12 -0
  58. data/spec/dummy/db/migrate/20120218160380_add_return_authorization_to_inventory_units.rb +5 -0
  59. data/spec/dummy/db/migrate/20120218160381_create_trackers.rb +10 -0
  60. data/spec/dummy/db/migrate/20120218160382_creditcard_id_for_creditcard_txns.rb +5 -0
  61. data/spec/dummy/db/migrate/20120218160383_original_creditcard_txn_id_for_creditcard_txns.rb +5 -0
  62. data/spec/dummy/db/migrate/20120218160384_add_test_mode_to_billing_integration.rb +6 -0
  63. data/spec/dummy/db/migrate/20120218160385_create_products_product_groups.rb +8 -0
  64. data/spec/dummy/db/migrate/20120218160386_create_payment_methods.rb +16 -0
  65. data/spec/dummy/db/migrate/20120218160387_polymorphic_payments.rb +42 -0
  66. data/spec/dummy/db/migrate/20120218160388_change_payments_payment_method_to_belongs_to.rb +11 -0
  67. data/spec/dummy/db/migrate/20120218160389_assign_creditcard_txns_to_payment.rb +23 -0
  68. data/spec/dummy/db/migrate/20120218160390_sti_for_transactions.rb +15 -0
  69. data/spec/dummy/db/migrate/20120218160391_drop_billing_integrations.rb +16 -0
  70. data/spec/dummy/db/migrate/20120218160392_deleted_at_for_payment_methods.rb +14 -0
  71. data/spec/dummy/db/migrate/20120218160393_add_adjustments_index.rb +6 -0
  72. data/spec/dummy/db/migrate/20120218160394_fix_by_popularity.rb +9 -0
  73. data/spec/dummy/db/migrate/20120218160395_add_alt_text_to_images.rb +5 -0
  74. data/spec/dummy/db/migrate/20120218160396_fix_existing_coupon_credits.rb +13 -0
  75. data/spec/dummy/db/migrate/20120218160397_add_display_to_payment_methods.rb +5 -0
  76. data/spec/dummy/db/migrate/20120218160398_add_addresses_checkouts_indexes.rb +8 -0
  77. data/spec/dummy/db/migrate/20120218160399_add_icon_to_taxons.rb +17 -0
  78. data/spec/dummy/db/migrate/20120218160400_add_description_to_taxons.rb +11 -0
  79. data/spec/dummy/db/migrate/20120218160401_index_for_shipments_number.rb +5 -0
  80. data/spec/dummy/db/migrate/20120218160402_add_index_on_users_persistence_token.rb +5 -0
  81. data/spec/dummy/db/migrate/20120218160403_add_default_to_tax_categories.rb +5 -0
  82. data/spec/dummy/db/migrate/20120218160404_add_display_to_shipping_methods.rb +5 -0
  83. data/spec/dummy/db/migrate/20120218160405_rename_payment_method_display.rb +5 -0
  84. data/spec/dummy/db/migrate/20120218160406_rename_preferences_field.rb +5 -0
  85. data/spec/dummy/db/migrate/20120218160407_add_guest_flag.rb +5 -0
  86. data/spec/dummy/db/migrate/20120218160408_drop_order_token.rb +9 -0
  87. data/spec/dummy/db/migrate/20120218160409_payments_state_and_assigned_to_order_only.rb +14 -0
  88. data/spec/dummy/db/migrate/20120218160410_create_address_keys_for_order.rb +6 -0
  89. data/spec/dummy/db/migrate/20120218160411_payment_total_for_orders.rb +5 -0
  90. data/spec/dummy/db/migrate/20120218160412_shipping_method_id_for_orders.rb +5 -0
  91. data/spec/dummy/db/migrate/20120218160413_add_shipment_and_payment_state.rb +6 -0
  92. data/spec/dummy/db/migrate/20120218160414_refactor_adjustments.rb +29 -0
  93. data/spec/dummy/db/migrate/20120218160415_response_code_and_avs_response_for_payments.rb +6 -0
  94. data/spec/dummy/db/migrate/20120218160416_change_guest_flag_to_anonymous.rb +5 -0
  95. data/spec/dummy/db/migrate/20120218160417_email_for_orders.rb +5 -0
  96. data/spec/dummy/db/migrate/20120218160418_create_mail_methods.rb +10 -0
  97. data/spec/dummy/db/migrate/20120218160419_rename_frozen_to_locked.rb +5 -0
  98. data/spec/dummy/db/migrate/20120218160420_move_special_instructions_to_orders.rb +10 -0
  99. data/spec/dummy/db/migrate/20120218160421_create_log_entries.rb +11 -0
  100. data/spec/dummy/db/migrate/20120218160422_migrate_transactions_to_payment_state.rb +98 -0
  101. data/spec/dummy/db/migrate/20120218160423_delete_in_progress_orders.rb +19 -0
  102. data/spec/dummy/db/migrate/20120218160424_migrate_checkout_to_orders.rb +23 -0
  103. data/spec/dummy/db/migrate/20120218160425_remove_shipped_state.rb +12 -0
  104. data/spec/dummy/db/migrate/20120218160426_prevent_nil_payment_total.rb +8 -0
  105. data/spec/dummy/db/migrate/20120218160427_prevent_nil_email.rb +9 -0
  106. data/spec/dummy/db/migrate/20120218160428_generate_anonymous_users.rb +20 -0
  107. data/spec/dummy/db/migrate/20120218160429_update_order_state.rb +12 -0
  108. data/spec/dummy/db/migrate/20120218160430_cleanup_legacy_tables.rb +11 -0
  109. data/spec/dummy/db/migrate/20120218160431_remove_number_and_cvv_from_credicard.rb +11 -0
  110. data/spec/dummy/db/migrate/20120218160432_drop_anonymous_field_for_user.rb +9 -0
  111. data/spec/dummy/db/migrate/20120218160433_renamed_rma_cancelled_state.rb +9 -0
  112. data/spec/dummy/db/migrate/20120218160434_fix_problematic_index_names.rb +13 -0
  113. data/spec/dummy/db/migrate/20120218160435_add_position_to_variants.rb +5 -0
  114. data/spec/dummy/db/migrate/20120218160436_add_next_state_to_state_events.rb +5 -0
  115. data/spec/dummy/db/migrate/20120218160437_add_position_to_option_types.rb +5 -0
  116. data/spec/dummy/db/migrate/20120218160438_remove_trailing_slashes_in_taxon_permalinks.rb +19 -0
  117. data/spec/dummy/db/migrate/20120218160439_create_activators.rb +14 -0
  118. data/spec/dummy/db/migrate/20120218160440_eligible_for_adjustments.rb +5 -0
  119. data/spec/dummy/db/migrate/20120218160441_namespace_top_level_models.rb +52 -0
  120. data/spec/dummy/db/migrate/20120218160442_migrate_namespaced_polymorphic_models.rb +52 -0
  121. data/spec/dummy/db/migrate/20120218160443_make_adjustments_polymorphic.rb +9 -0
  122. data/spec/dummy/db/migrate/20120218160444_add_company_to_addresses.rb +5 -0
  123. data/spec/dummy/db/migrate/20120218160445_add_inc_tax_to_tax_rates.rb +5 -0
  124. data/spec/dummy/db/migrate/20120218160446_rename_inc_price_attribute.rb +5 -0
  125. data/spec/dummy/db/migrate/20120218160447_add_default_tax_zone.rb +5 -0
  126. data/spec/dummy/db/migrate/20120218160448_associate_shipping_methods_and_shipping_categories.rb +7 -0
  127. data/spec/dummy/db/migrate/20120218160449_add_match_rules_to_shipping_methods.rb +7 -0
  128. data/spec/dummy/db/migrate/20120218160450_new_preferences.rb +48 -0
  129. data/spec/dummy/db/migrate/20120218160451_add_deleted_at_to_tax_category.rb +5 -0
  130. data/spec/dummy/db/schema.rb +553 -0
  131. data/spec/dummy/db/seeds.rb +11 -0
  132. data/spec/dummy/log/test.log +1136 -0
  133. data/spec/dummy/public/404.html +26 -0
  134. data/spec/dummy/public/422.html +26 -0
  135. data/spec/dummy/public/500.html +26 -0
  136. data/spec/dummy/public/favicon.ico +0 -0
  137. data/spec/dummy/script/rails +6 -0
  138. data/spec/dummy/spec/dummy/script/rails +6 -0
  139. data/spec/flat_in_range_spec.rb +56 -0
  140. data/spec/spec_helper.rb +32 -0
  141. metadata +428 -0
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ <p>We've been notified about this issue and we'll take a look at it shortly.</p>
24
+ </div>
25
+ </body>
26
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,56 @@
1
+ require 'spec_helper'
2
+
3
+ describe Spree::Calculator::FlatInRange do
4
+ let(:calculator) { Spree::Calculator::FlatInRange.new }
5
+
6
+ before :each do
7
+ calculator.stub :preferred_lower_boundry => 10.0
8
+ calculator.stub :preferred_upper_boundry => 50.0
9
+ calculator.stub :preferred_amount => 10.0
10
+ end
11
+
12
+ it "should have a description method" do
13
+ Spree::Calculator::FlatInRange.should respond_to(:description)
14
+ end
15
+
16
+ context "#compute" do
17
+ it "should return amount within the range" do
18
+ order = mock_model Spree::Order, :line_items => [
19
+ mock_model(Spree::LineItem, :amount => 10),
20
+ mock_model(Spree::LineItem, :amount => 20)
21
+ ]
22
+ calculator.compute(order).should == 10.0
23
+ end
24
+
25
+ it "should return zero above the range" do
26
+ order = mock_model Spree::Order, :line_items => [
27
+ mock_model(Spree::LineItem, :amount => 10),
28
+ mock_model(Spree::LineItem, :amount => 50)
29
+ ]
30
+ calculator.compute(order).should == 0.0
31
+ end
32
+
33
+ it "should return zero below the range" do
34
+ order = mock_model Spree::Order, :line_items => [
35
+ mock_model(Spree::LineItem, :amount => 2),
36
+ mock_model(Spree::LineItem, :amount => 1)
37
+ ]
38
+ calculator.compute(order).should == 0.0
39
+ end
40
+
41
+ it "should include the lower range edge as 'witin the range'" do
42
+ order = mock_model Spree::Order, :line_items => [
43
+ mock_model(Spree::LineItem, :amount => 5),
44
+ mock_model(Spree::LineItem, :amount => 5)
45
+ ]
46
+ calculator.compute(order).should == 10.0
47
+ end
48
+ it "should include the upper range edge as 'witin the range'" do
49
+ order = mock_model Spree::Order, :line_items => [
50
+ mock_model(Spree::LineItem, :amount => 40),
51
+ mock_model(Spree::LineItem, :amount => 10)
52
+ ]
53
+ calculator.compute(order).should == 10.0
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,32 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+
6
+ require 'rspec/rails'
7
+
8
+ # Requires supporting ruby files with custom matchers and macros, etc,
9
+ # in spec/support/ and its subdirectories.
10
+ Dir[File.join(File.dirname(__FILE__), "support/**/*.rb")].each {|f| require f }
11
+
12
+ # Requires factories defined in spree_core
13
+ require 'spree/core/testing_support/factories'
14
+
15
+ RSpec.configure do |config|
16
+ # == Mock Framework
17
+ #
18
+ # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
19
+ #
20
+ # config.mock_with :mocha
21
+ # config.mock_with :flexmock
22
+ # config.mock_with :rr
23
+ config.mock_with :rspec
24
+
25
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
26
+ config.fixture_path = "#{::Rails.root}/spec/fixtures"
27
+
28
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
29
+ # examples within a transaction, remove the following line or assign false
30
+ # instead of true.
31
+ config.use_transactional_fixtures = true
32
+ end
metadata ADDED
@@ -0,0 +1,428 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: spree_flat_in_range
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 0
10
+ version: 0.1.0
11
+ platform: ruby
12
+ authors:
13
+ - "B\xC3\xA8r Kessels"
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2012-02-19 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: spree_core
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ~>
27
+ - !ruby/object:Gem::Version
28
+ hash: 23
29
+ segments:
30
+ - 1
31
+ - 0
32
+ - 0
33
+ version: 1.0.0
34
+ type: :runtime
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ name: capybara
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - "="
43
+ - !ruby/object:Gem::Version
44
+ hash: 21
45
+ segments:
46
+ - 1
47
+ - 0
48
+ - 1
49
+ version: 1.0.1
50
+ type: :development
51
+ version_requirements: *id002
52
+ - !ruby/object:Gem::Dependency
53
+ name: factory_girl
54
+ prerelease: false
55
+ requirement: &id003 !ruby/object:Gem::Requirement
56
+ none: false
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ hash: 3
61
+ segments:
62
+ - 0
63
+ version: "0"
64
+ type: :development
65
+ version_requirements: *id003
66
+ - !ruby/object:Gem::Dependency
67
+ name: ffaker
68
+ prerelease: false
69
+ requirement: &id004 !ruby/object:Gem::Requirement
70
+ none: false
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ hash: 3
75
+ segments:
76
+ - 0
77
+ version: "0"
78
+ type: :development
79
+ version_requirements: *id004
80
+ - !ruby/object:Gem::Dependency
81
+ name: rspec-rails
82
+ prerelease: false
83
+ requirement: &id005 !ruby/object:Gem::Requirement
84
+ none: false
85
+ requirements:
86
+ - - ~>
87
+ - !ruby/object:Gem::Version
88
+ hash: 13
89
+ segments:
90
+ - 2
91
+ - 7
92
+ version: "2.7"
93
+ type: :development
94
+ version_requirements: *id005
95
+ - !ruby/object:Gem::Dependency
96
+ name: sqlite3
97
+ prerelease: false
98
+ requirement: &id006 !ruby/object:Gem::Requirement
99
+ none: false
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ hash: 3
104
+ segments:
105
+ - 0
106
+ version: "0"
107
+ type: :development
108
+ version_requirements: *id006
109
+ description: "\n A Spree calculator to calculate fixed adjustments based on ranges.\n\n For example, **free shipping above $100, and $4.39 for all orders under $100**,\n would mean a range *from 0 to $99.99*, that *has a fixed shipping rate of $4.39*.\n "
110
+ email: ber@webschuur.com
111
+ executables: []
112
+
113
+ extensions: []
114
+
115
+ extra_rdoc_files: []
116
+
117
+ files:
118
+ - README.md
119
+ - LICENSE
120
+ - lib/spree_flat_in_range.rb
121
+ - app/models/spree/calculator/flat_in_range.rb
122
+ - config/locales/en.yml
123
+ - spec/dummy/app/assets/javascripts/admin/all.js
124
+ - spec/dummy/app/assets/javascripts/store/all.js
125
+ - spec/dummy/app/assets/javascripts/application.js
126
+ - spec/dummy/app/assets/stylesheets/admin/all.css
127
+ - spec/dummy/app/assets/stylesheets/store/all.css
128
+ - spec/dummy/app/assets/stylesheets/application.css
129
+ - spec/dummy/app/helpers/application_helper.rb
130
+ - spec/dummy/app/controllers/application_controller.rb
131
+ - spec/dummy/app/views/layouts/application.html.erb
132
+ - spec/dummy/script/rails
133
+ - spec/dummy/public/404.html
134
+ - spec/dummy/public/422.html
135
+ - spec/dummy/public/500.html
136
+ - spec/dummy/public/favicon.ico
137
+ - spec/dummy/spec/dummy/script/rails
138
+ - spec/dummy/config/routes.rb
139
+ - spec/dummy/config/environment.rb
140
+ - spec/dummy/config/spree.yml
141
+ - spec/dummy/config/locales/en.yml
142
+ - spec/dummy/config/initializers/inflections.rb
143
+ - spec/dummy/config/initializers/backtrace_silencers.rb
144
+ - spec/dummy/config/initializers/session_store.rb
145
+ - spec/dummy/config/initializers/secret_token.rb
146
+ - spec/dummy/config/initializers/wrap_parameters.rb
147
+ - spec/dummy/config/initializers/mime_types.rb
148
+ - spec/dummy/config/initializers/spree.rb
149
+ - spec/dummy/config/environments/production.rb
150
+ - spec/dummy/config/environments/test.rb
151
+ - spec/dummy/config/environments/development.rb
152
+ - spec/dummy/config/application.rb
153
+ - spec/dummy/config/database.yml
154
+ - spec/dummy/config/boot.rb
155
+ - spec/dummy/Rakefile
156
+ - spec/dummy/config.ru
157
+ - spec/dummy/log/test.log
158
+ - spec/dummy/db/seeds.rb
159
+ - spec/dummy/db/dummy_test
160
+ - spec/dummy/db/schema.rb
161
+ - spec/dummy/db/migrate/20120218160445_add_inc_tax_to_tax_rates.rb
162
+ - spec/dummy/db/migrate/20120218160413_add_shipment_and_payment_state.rb
163
+ - spec/dummy/db/migrate/20120218160407_add_guest_flag.rb
164
+ - spec/dummy/db/migrate/20120218160438_remove_trailing_slashes_in_taxon_permalinks.rb
165
+ - spec/dummy/db/migrate/20120218160411_payment_total_for_orders.rb
166
+ - spec/dummy/db/migrate/20120218160446_rename_inc_price_attribute.rb
167
+ - spec/dummy/db/migrate/20120218160367_charge_refactoring.rb
168
+ - spec/dummy/db/migrate/20120218160433_renamed_rma_cancelled_state.rb
169
+ - spec/dummy/db/migrate/20120218160424_migrate_checkout_to_orders.rb
170
+ - spec/dummy/db/migrate/20120218160380_add_return_authorization_to_inventory_units.rb
171
+ - spec/dummy/db/migrate/20120218160436_add_next_state_to_state_events.rb
172
+ - spec/dummy/db/migrate/20120218160410_create_address_keys_for_order.rb
173
+ - spec/dummy/db/migrate/20120218160441_namespace_top_level_models.rb
174
+ - spec/dummy/db/migrate/20120218160443_make_adjustments_polymorphic.rb
175
+ - spec/dummy/db/migrate/20120218160397_add_display_to_payment_methods.rb
176
+ - spec/dummy/db/migrate/20120218160399_add_icon_to_taxons.rb
177
+ - spec/dummy/db/migrate/20120218160442_migrate_namespaced_polymorphic_models.rb
178
+ - spec/dummy/db/migrate/20120218160368_add_some_indexes.rb
179
+ - spec/dummy/db/migrate/20120218160423_delete_in_progress_orders.rb
180
+ - spec/dummy/db/migrate/20120218160408_drop_order_token.rb
181
+ - spec/dummy/db/migrate/20120218160416_change_guest_flag_to_anonymous.rb
182
+ - spec/dummy/db/migrate/20120218160420_move_special_instructions_to_orders.rb
183
+ - spec/dummy/db/migrate/20120218160437_add_position_to_option_types.rb
184
+ - spec/dummy/db/migrate/20120218160376_add_cost_price.rb
185
+ - spec/dummy/db/migrate/20120218160395_add_alt_text_to_images.rb
186
+ - spec/dummy/db/migrate/20120218160414_refactor_adjustments.rb
187
+ - spec/dummy/db/migrate/20120218160406_rename_preferences_field.rb
188
+ - spec/dummy/db/migrate/20120218160405_rename_payment_method_display.rb
189
+ - spec/dummy/db/migrate/20120218160447_add_default_tax_zone.rb
190
+ - spec/dummy/db/migrate/20120218160419_rename_frozen_to_locked.rb
191
+ - spec/dummy/db/migrate/20120218160369_checkout_state_machine.rb
192
+ - spec/dummy/db/migrate/20120218160435_add_position_to_variants.rb
193
+ - spec/dummy/db/migrate/20120218160370_state_for_shipments.rb
194
+ - spec/dummy/db/migrate/20120218160402_add_index_on_users_persistence_token.rb
195
+ - spec/dummy/db/migrate/20120218160357_spree_zero_nine_zero.rb
196
+ - spec/dummy/db/migrate/20120218160363_add_open_id_authentication_tables.rb
197
+ - spec/dummy/db/migrate/20120218160386_create_payment_methods.rb
198
+ - spec/dummy/db/migrate/20120218160425_remove_shipped_state.rb
199
+ - spec/dummy/db/migrate/20120218160379_create_return_authorizations.rb
200
+ - spec/dummy/db/migrate/20120218160404_add_display_to_shipping_methods.rb
201
+ - spec/dummy/db/migrate/20120218160387_polymorphic_payments.rb
202
+ - spec/dummy/db/migrate/20120218160388_change_payments_payment_method_to_belongs_to.rb
203
+ - spec/dummy/db/migrate/20120218160431_remove_number_and_cvv_from_credicard.rb
204
+ - spec/dummy/db/migrate/20120218160434_fix_problematic_index_names.rb
205
+ - spec/dummy/db/migrate/20120218160384_add_test_mode_to_billing_integration.rb
206
+ - spec/dummy/db/migrate/20120218160432_drop_anonymous_field_for_user.rb
207
+ - spec/dummy/db/migrate/20120218160365_change_preference_value_type.rb
208
+ - spec/dummy/db/migrate/20120218160430_cleanup_legacy_tables.rb
209
+ - spec/dummy/db/migrate/20120218160448_associate_shipping_methods_and_shipping_categories.rb
210
+ - spec/dummy/db/migrate/20120218160422_migrate_transactions_to_payment_state.rb
211
+ - spec/dummy/db/migrate/20120218160360_change_taxons_to_nested_set.rb
212
+ - spec/dummy/db/migrate/20120218160421_create_log_entries.rb
213
+ - spec/dummy/db/migrate/20120218160403_add_default_to_tax_categories.rb
214
+ - spec/dummy/db/migrate/20120218160409_payments_state_and_assigned_to_order_only.rb
215
+ - spec/dummy/db/migrate/20120218160450_new_preferences.rb
216
+ - spec/dummy/db/migrate/20120218160381_create_trackers.rb
217
+ - spec/dummy/db/migrate/20120218160389_assign_creditcard_txns_to_payment.rb
218
+ - spec/dummy/db/migrate/20120218160372_ship_address_id_for_checkouts.rb
219
+ - spec/dummy/db/migrate/20120218160373_shipping_method_id_for_checkouts.rb
220
+ - spec/dummy/db/migrate/20120218160383_original_creditcard_txn_id_for_creditcard_txns.rb
221
+ - spec/dummy/db/migrate/20120218160451_add_deleted_at_to_tax_category.rb
222
+ - spec/dummy/db/migrate/20120218160426_prevent_nil_payment_total.rb
223
+ - spec/dummy/db/migrate/20120218160444_add_company_to_addresses.rb
224
+ - spec/dummy/db/migrate/20120218160391_drop_billing_integrations.rb
225
+ - spec/dummy/db/migrate/20120218160358_create_indexes_for_inventory_units.rb
226
+ - spec/dummy/db/migrate/20120218160374_creditcard_last_four_digits.rb
227
+ - spec/dummy/db/migrate/20120218160418_create_mail_methods.rb
228
+ - spec/dummy/db/migrate/20120218160375_populate_legacy_shipment_state.rb
229
+ - spec/dummy/db/migrate/20120218160371_make_state_events_polymorphic.rb
230
+ - spec/dummy/db/migrate/20120218160366_create_billing_integrations.rb
231
+ - spec/dummy/db/migrate/20120218160415_response_code_and_avs_response_for_payments.rb
232
+ - spec/dummy/db/migrate/20120218160398_add_addresses_checkouts_indexes.rb
233
+ - spec/dummy/db/migrate/20120218160394_fix_by_popularity.rb
234
+ - spec/dummy/db/migrate/20120218160439_create_activators.rb
235
+ - spec/dummy/db/migrate/20120218160400_add_description_to_taxons.rb
236
+ - spec/dummy/db/migrate/20120218160393_add_adjustments_index.rb
237
+ - spec/dummy/db/migrate/20120218160385_create_products_product_groups.rb
238
+ - spec/dummy/db/migrate/20120218160361_move_to_configurable_gateways.rb
239
+ - spec/dummy/db/migrate/20120218160417_email_for_orders.rb
240
+ - spec/dummy/db/migrate/20120218160392_deleted_at_for_payment_methods.rb
241
+ - spec/dummy/db/migrate/20120218160382_creditcard_id_for_creditcard_txns.rb
242
+ - spec/dummy/db/migrate/20120218160377_shipment_id_for_inventory_units.rb
243
+ - spec/dummy/db/migrate/20120218160378_cim_fields_for_creditcards.rb
244
+ - spec/dummy/db/migrate/20120218160364_add_openid_field_to_users.rb
245
+ - spec/dummy/db/migrate/20120218160362_product_groups_and_scopes.rb
246
+ - spec/dummy/db/migrate/20120218160440_eligible_for_adjustments.rb
247
+ - spec/dummy/db/migrate/20120218160359_add_count_on_hand_to_variants_and_products.rb
248
+ - spec/dummy/db/migrate/20120218160449_add_match_rules_to_shipping_methods.rb
249
+ - spec/dummy/db/migrate/20120218160396_fix_existing_coupon_credits.rb
250
+ - spec/dummy/db/migrate/20120218160412_shipping_method_id_for_orders.rb
251
+ - spec/dummy/db/migrate/20120218160390_sti_for_transactions.rb
252
+ - spec/dummy/db/migrate/20120218160428_generate_anonymous_users.rb
253
+ - spec/dummy/db/migrate/20120218160401_index_for_shipments_number.rb
254
+ - spec/dummy/db/migrate/20120218160429_update_order_state.rb
255
+ - spec/dummy/db/migrate/20120218160427_prevent_nil_email.rb
256
+ - spec/spec_helper.rb
257
+ - spec/flat_in_range_spec.rb
258
+ homepage: https://github.com/berkes/spree_flat_in_range
259
+ licenses: []
260
+
261
+ post_install_message:
262
+ rdoc_options: []
263
+
264
+ require_paths:
265
+ - lib
266
+ required_ruby_version: !ruby/object:Gem::Requirement
267
+ none: false
268
+ requirements:
269
+ - - ">="
270
+ - !ruby/object:Gem::Version
271
+ hash: 57
272
+ segments:
273
+ - 1
274
+ - 8
275
+ - 7
276
+ version: 1.8.7
277
+ required_rubygems_version: !ruby/object:Gem::Requirement
278
+ none: false
279
+ requirements:
280
+ - - ">="
281
+ - !ruby/object:Gem::Version
282
+ hash: 3
283
+ segments:
284
+ - 0
285
+ version: "0"
286
+ requirements:
287
+ - none
288
+ rubyforge_project:
289
+ rubygems_version: 1.8.15
290
+ signing_key:
291
+ specification_version: 3
292
+ summary: Spree adjusmtent calculator for fixed rates within a range
293
+ test_files:
294
+ - spec/dummy/app/assets/javascripts/admin/all.js
295
+ - spec/dummy/app/assets/javascripts/store/all.js
296
+ - spec/dummy/app/assets/javascripts/application.js
297
+ - spec/dummy/app/assets/stylesheets/admin/all.css
298
+ - spec/dummy/app/assets/stylesheets/store/all.css
299
+ - spec/dummy/app/assets/stylesheets/application.css
300
+ - spec/dummy/app/helpers/application_helper.rb
301
+ - spec/dummy/app/controllers/application_controller.rb
302
+ - spec/dummy/app/views/layouts/application.html.erb
303
+ - spec/dummy/script/rails
304
+ - spec/dummy/public/404.html
305
+ - spec/dummy/public/422.html
306
+ - spec/dummy/public/500.html
307
+ - spec/dummy/public/favicon.ico
308
+ - spec/dummy/spec/dummy/script/rails
309
+ - spec/dummy/config/routes.rb
310
+ - spec/dummy/config/environment.rb
311
+ - spec/dummy/config/spree.yml
312
+ - spec/dummy/config/locales/en.yml
313
+ - spec/dummy/config/initializers/inflections.rb
314
+ - spec/dummy/config/initializers/backtrace_silencers.rb
315
+ - spec/dummy/config/initializers/session_store.rb
316
+ - spec/dummy/config/initializers/secret_token.rb
317
+ - spec/dummy/config/initializers/wrap_parameters.rb
318
+ - spec/dummy/config/initializers/mime_types.rb
319
+ - spec/dummy/config/initializers/spree.rb
320
+ - spec/dummy/config/environments/production.rb
321
+ - spec/dummy/config/environments/test.rb
322
+ - spec/dummy/config/environments/development.rb
323
+ - spec/dummy/config/application.rb
324
+ - spec/dummy/config/database.yml
325
+ - spec/dummy/config/boot.rb
326
+ - spec/dummy/Rakefile
327
+ - spec/dummy/config.ru
328
+ - spec/dummy/log/test.log
329
+ - spec/dummy/db/seeds.rb
330
+ - spec/dummy/db/dummy_test
331
+ - spec/dummy/db/schema.rb
332
+ - spec/dummy/db/migrate/20120218160445_add_inc_tax_to_tax_rates.rb
333
+ - spec/dummy/db/migrate/20120218160413_add_shipment_and_payment_state.rb
334
+ - spec/dummy/db/migrate/20120218160407_add_guest_flag.rb
335
+ - spec/dummy/db/migrate/20120218160438_remove_trailing_slashes_in_taxon_permalinks.rb
336
+ - spec/dummy/db/migrate/20120218160411_payment_total_for_orders.rb
337
+ - spec/dummy/db/migrate/20120218160446_rename_inc_price_attribute.rb
338
+ - spec/dummy/db/migrate/20120218160367_charge_refactoring.rb
339
+ - spec/dummy/db/migrate/20120218160433_renamed_rma_cancelled_state.rb
340
+ - spec/dummy/db/migrate/20120218160424_migrate_checkout_to_orders.rb
341
+ - spec/dummy/db/migrate/20120218160380_add_return_authorization_to_inventory_units.rb
342
+ - spec/dummy/db/migrate/20120218160436_add_next_state_to_state_events.rb
343
+ - spec/dummy/db/migrate/20120218160410_create_address_keys_for_order.rb
344
+ - spec/dummy/db/migrate/20120218160441_namespace_top_level_models.rb
345
+ - spec/dummy/db/migrate/20120218160443_make_adjustments_polymorphic.rb
346
+ - spec/dummy/db/migrate/20120218160397_add_display_to_payment_methods.rb
347
+ - spec/dummy/db/migrate/20120218160399_add_icon_to_taxons.rb
348
+ - spec/dummy/db/migrate/20120218160442_migrate_namespaced_polymorphic_models.rb
349
+ - spec/dummy/db/migrate/20120218160368_add_some_indexes.rb
350
+ - spec/dummy/db/migrate/20120218160423_delete_in_progress_orders.rb
351
+ - spec/dummy/db/migrate/20120218160408_drop_order_token.rb
352
+ - spec/dummy/db/migrate/20120218160416_change_guest_flag_to_anonymous.rb
353
+ - spec/dummy/db/migrate/20120218160420_move_special_instructions_to_orders.rb
354
+ - spec/dummy/db/migrate/20120218160437_add_position_to_option_types.rb
355
+ - spec/dummy/db/migrate/20120218160376_add_cost_price.rb
356
+ - spec/dummy/db/migrate/20120218160395_add_alt_text_to_images.rb
357
+ - spec/dummy/db/migrate/20120218160414_refactor_adjustments.rb
358
+ - spec/dummy/db/migrate/20120218160406_rename_preferences_field.rb
359
+ - spec/dummy/db/migrate/20120218160405_rename_payment_method_display.rb
360
+ - spec/dummy/db/migrate/20120218160447_add_default_tax_zone.rb
361
+ - spec/dummy/db/migrate/20120218160419_rename_frozen_to_locked.rb
362
+ - spec/dummy/db/migrate/20120218160369_checkout_state_machine.rb
363
+ - spec/dummy/db/migrate/20120218160435_add_position_to_variants.rb
364
+ - spec/dummy/db/migrate/20120218160370_state_for_shipments.rb
365
+ - spec/dummy/db/migrate/20120218160402_add_index_on_users_persistence_token.rb
366
+ - spec/dummy/db/migrate/20120218160357_spree_zero_nine_zero.rb
367
+ - spec/dummy/db/migrate/20120218160363_add_open_id_authentication_tables.rb
368
+ - spec/dummy/db/migrate/20120218160386_create_payment_methods.rb
369
+ - spec/dummy/db/migrate/20120218160425_remove_shipped_state.rb
370
+ - spec/dummy/db/migrate/20120218160379_create_return_authorizations.rb
371
+ - spec/dummy/db/migrate/20120218160404_add_display_to_shipping_methods.rb
372
+ - spec/dummy/db/migrate/20120218160387_polymorphic_payments.rb
373
+ - spec/dummy/db/migrate/20120218160388_change_payments_payment_method_to_belongs_to.rb
374
+ - spec/dummy/db/migrate/20120218160431_remove_number_and_cvv_from_credicard.rb
375
+ - spec/dummy/db/migrate/20120218160434_fix_problematic_index_names.rb
376
+ - spec/dummy/db/migrate/20120218160384_add_test_mode_to_billing_integration.rb
377
+ - spec/dummy/db/migrate/20120218160432_drop_anonymous_field_for_user.rb
378
+ - spec/dummy/db/migrate/20120218160365_change_preference_value_type.rb
379
+ - spec/dummy/db/migrate/20120218160430_cleanup_legacy_tables.rb
380
+ - spec/dummy/db/migrate/20120218160448_associate_shipping_methods_and_shipping_categories.rb
381
+ - spec/dummy/db/migrate/20120218160422_migrate_transactions_to_payment_state.rb
382
+ - spec/dummy/db/migrate/20120218160360_change_taxons_to_nested_set.rb
383
+ - spec/dummy/db/migrate/20120218160421_create_log_entries.rb
384
+ - spec/dummy/db/migrate/20120218160403_add_default_to_tax_categories.rb
385
+ - spec/dummy/db/migrate/20120218160409_payments_state_and_assigned_to_order_only.rb
386
+ - spec/dummy/db/migrate/20120218160450_new_preferences.rb
387
+ - spec/dummy/db/migrate/20120218160381_create_trackers.rb
388
+ - spec/dummy/db/migrate/20120218160389_assign_creditcard_txns_to_payment.rb
389
+ - spec/dummy/db/migrate/20120218160372_ship_address_id_for_checkouts.rb
390
+ - spec/dummy/db/migrate/20120218160373_shipping_method_id_for_checkouts.rb
391
+ - spec/dummy/db/migrate/20120218160383_original_creditcard_txn_id_for_creditcard_txns.rb
392
+ - spec/dummy/db/migrate/20120218160451_add_deleted_at_to_tax_category.rb
393
+ - spec/dummy/db/migrate/20120218160426_prevent_nil_payment_total.rb
394
+ - spec/dummy/db/migrate/20120218160444_add_company_to_addresses.rb
395
+ - spec/dummy/db/migrate/20120218160391_drop_billing_integrations.rb
396
+ - spec/dummy/db/migrate/20120218160358_create_indexes_for_inventory_units.rb
397
+ - spec/dummy/db/migrate/20120218160374_creditcard_last_four_digits.rb
398
+ - spec/dummy/db/migrate/20120218160418_create_mail_methods.rb
399
+ - spec/dummy/db/migrate/20120218160375_populate_legacy_shipment_state.rb
400
+ - spec/dummy/db/migrate/20120218160371_make_state_events_polymorphic.rb
401
+ - spec/dummy/db/migrate/20120218160366_create_billing_integrations.rb
402
+ - spec/dummy/db/migrate/20120218160415_response_code_and_avs_response_for_payments.rb
403
+ - spec/dummy/db/migrate/20120218160398_add_addresses_checkouts_indexes.rb
404
+ - spec/dummy/db/migrate/20120218160394_fix_by_popularity.rb
405
+ - spec/dummy/db/migrate/20120218160439_create_activators.rb
406
+ - spec/dummy/db/migrate/20120218160400_add_description_to_taxons.rb
407
+ - spec/dummy/db/migrate/20120218160393_add_adjustments_index.rb
408
+ - spec/dummy/db/migrate/20120218160385_create_products_product_groups.rb
409
+ - spec/dummy/db/migrate/20120218160361_move_to_configurable_gateways.rb
410
+ - spec/dummy/db/migrate/20120218160417_email_for_orders.rb
411
+ - spec/dummy/db/migrate/20120218160392_deleted_at_for_payment_methods.rb
412
+ - spec/dummy/db/migrate/20120218160382_creditcard_id_for_creditcard_txns.rb
413
+ - spec/dummy/db/migrate/20120218160377_shipment_id_for_inventory_units.rb
414
+ - spec/dummy/db/migrate/20120218160378_cim_fields_for_creditcards.rb
415
+ - spec/dummy/db/migrate/20120218160364_add_openid_field_to_users.rb
416
+ - spec/dummy/db/migrate/20120218160362_product_groups_and_scopes.rb
417
+ - spec/dummy/db/migrate/20120218160440_eligible_for_adjustments.rb
418
+ - spec/dummy/db/migrate/20120218160359_add_count_on_hand_to_variants_and_products.rb
419
+ - spec/dummy/db/migrate/20120218160449_add_match_rules_to_shipping_methods.rb
420
+ - spec/dummy/db/migrate/20120218160396_fix_existing_coupon_credits.rb
421
+ - spec/dummy/db/migrate/20120218160412_shipping_method_id_for_orders.rb
422
+ - spec/dummy/db/migrate/20120218160390_sti_for_transactions.rb
423
+ - spec/dummy/db/migrate/20120218160428_generate_anonymous_users.rb
424
+ - spec/dummy/db/migrate/20120218160401_index_for_shipments_number.rb
425
+ - spec/dummy/db/migrate/20120218160429_update_order_state.rb
426
+ - spec/dummy/db/migrate/20120218160427_prevent_nil_email.rb
427
+ - spec/spec_helper.rb
428
+ - spec/flat_in_range_spec.rb