tb_commerce 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +3 -0
  4. data/Rakefile +25 -0
  5. data/app/assets/javascripts/tb_commerce/application.js +13 -0
  6. data/app/assets/stylesheets/tb_commerce/application.css +15 -0
  7. data/app/controllers/tb_commerce/application_controller.rb +4 -0
  8. data/app/helpers/tb_commerce/application_helper.rb +4 -0
  9. data/app/views/layouts/tb_commerce/application.html.erb +14 -0
  10. data/config/routes.rb +2 -0
  11. data/lib/tasks/tb_commerce_tasks.rake +4 -0
  12. data/lib/tb_commerce.rb +4 -0
  13. data/lib/tb_commerce/configuration.rb +3 -0
  14. data/lib/tb_commerce/engine.rb +22 -0
  15. data/lib/tb_commerce/version.rb +3 -0
  16. data/spec/dummy/README.rdoc +28 -0
  17. data/spec/dummy/Rakefile +6 -0
  18. data/spec/dummy/app/assets/javascripts/admin/application.js +16 -0
  19. data/spec/dummy/app/assets/javascripts/application.js +18 -0
  20. data/spec/dummy/app/assets/stylesheets/admin/application.scss +3 -0
  21. data/spec/dummy/app/assets/stylesheets/application.scss +5 -0
  22. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  23. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  24. data/spec/dummy/app/views/layouts/application.html.erb +33 -0
  25. data/spec/dummy/app/views/layouts/error_page.html.erb +8 -0
  26. data/spec/dummy/bin/bundle +3 -0
  27. data/spec/dummy/bin/rails +4 -0
  28. data/spec/dummy/bin/rake +4 -0
  29. data/spec/dummy/bin/setup +29 -0
  30. data/spec/dummy/config.ru +4 -0
  31. data/spec/dummy/config/application.rb +38 -0
  32. data/spec/dummy/config/boot.rb +5 -0
  33. data/spec/dummy/config/database.yml +13 -0
  34. data/spec/dummy/config/environment.rb +5 -0
  35. data/spec/dummy/config/environments/development.rb +41 -0
  36. data/spec/dummy/config/environments/production.rb +79 -0
  37. data/spec/dummy/config/environments/test.rb +42 -0
  38. data/spec/dummy/config/initializers/assets.rb +11 -0
  39. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  40. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  41. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  42. data/spec/dummy/config/initializers/inflections.rb +16 -0
  43. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  44. data/spec/dummy/config/initializers/session_store.rb +3 -0
  45. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  46. data/spec/dummy/config/locales/en.yml +23 -0
  47. data/spec/dummy/config/routes.rb +4 -0
  48. data/spec/dummy/config/secrets.yml +22 -0
  49. data/spec/dummy/db/migrate/20150323152913_create_spud_admin_permissions.tb_core.rb +12 -0
  50. data/spec/dummy/db/migrate/20150323152914_create_spud_users.tb_core.rb +30 -0
  51. data/spec/dummy/db/migrate/20150323152915_add_time_zone_to_spud_user.tb_core.rb +7 -0
  52. data/spec/dummy/db/migrate/20150323152916_add_scope_to_spud_admin_permissions.tb_core.rb +7 -0
  53. data/spec/dummy/db/migrate/20150323152917_create_spud_user_settings.tb_core.rb +12 -0
  54. data/spec/dummy/db/migrate/20150323152918_create_spud_roles.tb_core.rb +11 -0
  55. data/spec/dummy/db/migrate/20150323152919_create_spud_permissions.tb_core.rb +11 -0
  56. data/spec/dummy/db/migrate/20150323152920_create_spud_role_permissions.tb_core.rb +12 -0
  57. data/spec/dummy/db/migrate/20150323152921_drop_spud_admin_permissions.tb_core.rb +16 -0
  58. data/spec/dummy/db/migrate/20150323152922_create_tb_checkout_carts.tb_checkout_engine.rb +13 -0
  59. data/spec/dummy/db/migrate/20150323152923_create_tb_checkout_cart_items.tb_checkout_engine.rb +16 -0
  60. data/spec/dummy/db/migrate/20150323152924_create_tb_checkout_transactions.tb_checkout_engine.rb +24 -0
  61. data/spec/dummy/db/migrate/20150323152925_create_tb_checkout_basic_products.tb_checkout_engine.rb +9 -0
  62. data/spec/dummy/db/migrate/20150323152926_add_spud_user_and_session_id_to_transactions.tb_checkout_engine.rb +11 -0
  63. data/spec/dummy/db/schema.rb +135 -0
  64. data/spec/dummy/public/404.html +67 -0
  65. data/spec/dummy/public/422.html +67 -0
  66. data/spec/dummy/public/500.html +66 -0
  67. data/spec/dummy/public/favicon.ico +0 -0
  68. data/spec/factories/spud_users.rb +14 -0
  69. data/spec/rails_helper.rb +67 -0
  70. data/spec/spec_helper.rb +87 -0
  71. metadata +295 -0
@@ -0,0 +1,87 @@
1
+ # This file was generated by the `rails generate rspec:install` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
4
+ # this file to always be loaded, without a need to explicitly require it in any
5
+ # files.
6
+ #
7
+ # Given that it is always loaded, you are encouraged to keep this file as
8
+ # light-weight as possible. Requiring heavyweight dependencies from this file
9
+ # will add to the boot time of your test suite on EVERY test run, even for an
10
+ # individual file that may not need all of that loaded. Instead, consider making
11
+ # a separate helper file that requires the additional dependencies and performs
12
+ # the additional setup, and require it from the spec files that actually need
13
+ # it.
14
+ #
15
+ # The `.rspec` file also contains a few flags that are not defaults but that
16
+ # users commonly want.
17
+ #
18
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
19
+ RSpec.configure do |config|
20
+ # rspec-expectations config goes here. You can use an alternate
21
+ # assertion/expectation library such as wrong or the stdlib/minitest
22
+ # assertions if you prefer.
23
+ config.expect_with :rspec do |expectations|
24
+ # This option will default to `true` in RSpec 4. It makes the `description`
25
+ # and `failure_message` of custom matchers include text for helper methods
26
+ # defined using `chain`, e.g.:
27
+ # be_bigger_than(2).and_smaller_than(4).description
28
+ # # => "be bigger than 2 and smaller than 4"
29
+ # ...rather than:
30
+ # # => "be bigger than 2"
31
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
32
+ end
33
+
34
+ # rspec-mocks config goes here. You can use an alternate test double
35
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
36
+ config.mock_with :rspec do |mocks|
37
+ # Prevents you from mocking or stubbing a method that does not exist on
38
+ # a real object. This is generally recommended, and will default to
39
+ # `true` in RSpec 4.
40
+ mocks.verify_partial_doubles = true
41
+ end
42
+
43
+ # The settings below are suggested to provide a good initial experience
44
+ # with RSpec, but feel free to customize to your heart's content.
45
+ =begin
46
+ # These two settings work together to allow you to limit a spec run
47
+ # to individual examples or groups you care about by tagging them with
48
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
49
+ # get run.
50
+ config.filter_run :focus
51
+ config.run_all_when_everything_filtered = true
52
+
53
+ # Limits the available syntax to the non-monkey patched syntax that is
54
+ # recommended. For more details, see:
55
+ # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
56
+ # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
57
+ # - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
58
+ config.disable_monkey_patching!
59
+
60
+ # Many RSpec users commonly either run the entire suite or an individual
61
+ # file, and it's useful to allow more verbose output when running an
62
+ # individual spec file.
63
+ if config.files_to_run.one?
64
+ # Use the documentation formatter for detailed output,
65
+ # unless a formatter has already been configured
66
+ # (e.g. via a command-line flag).
67
+ config.default_formatter = 'doc'
68
+ end
69
+
70
+ # Print the 10 slowest examples and example groups at the
71
+ # end of the spec run, to help surface which specs are running
72
+ # particularly slow.
73
+ config.profile_examples = 10
74
+
75
+ # Run specs in random order to surface order dependencies. If you find an
76
+ # order dependency and want to debug it, you can fix the order by providing
77
+ # the seed, which is printed after each run.
78
+ # --seed 1234
79
+ config.order = :random
80
+
81
+ # Seed global randomization in this process using the `--seed` CLI option.
82
+ # Setting this allows you to use `--seed` to deterministically reproduce
83
+ # test failures related to randomization by passing the same `--seed` value
84
+ # as the one that triggered the failure.
85
+ Kernel.srand config.seed
86
+ =end
87
+ end
metadata ADDED
@@ -0,0 +1,295 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tb_commerce
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Greg Woods
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-03-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 4.2.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 4.2.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: tb_core
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 1.3.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 1.3.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: tb_checkout
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 1.0.4
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 1.0.4
55
+ - !ruby/object:Gem::Dependency
56
+ name: activemerchant
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: 1.46.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: 1.46.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: mysql2
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec-rails
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 3.2.1
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 3.2.1
97
+ - !ruby/object:Gem::Dependency
98
+ name: factory_girl_rails
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 4.5.0
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 4.5.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: database_cleaner
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 1.4.1
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 1.4.1
125
+ - !ruby/object:Gem::Dependency
126
+ name: simplecov
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 0.9.2
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 0.9.2
139
+ description: Provides production management and shopping functionality to Twice Baked
140
+ websites
141
+ email:
142
+ - greg@westlakeinteractive.com
143
+ executables: []
144
+ extensions: []
145
+ extra_rdoc_files: []
146
+ files:
147
+ - MIT-LICENSE
148
+ - README.md
149
+ - Rakefile
150
+ - app/assets/javascripts/tb_commerce/application.js
151
+ - app/assets/stylesheets/tb_commerce/application.css
152
+ - app/controllers/tb_commerce/application_controller.rb
153
+ - app/helpers/tb_commerce/application_helper.rb
154
+ - app/views/layouts/tb_commerce/application.html.erb
155
+ - config/routes.rb
156
+ - lib/tasks/tb_commerce_tasks.rake
157
+ - lib/tb_commerce.rb
158
+ - lib/tb_commerce/configuration.rb
159
+ - lib/tb_commerce/engine.rb
160
+ - lib/tb_commerce/version.rb
161
+ - spec/dummy/README.rdoc
162
+ - spec/dummy/Rakefile
163
+ - spec/dummy/app/assets/javascripts/admin/application.js
164
+ - spec/dummy/app/assets/javascripts/application.js
165
+ - spec/dummy/app/assets/stylesheets/admin/application.scss
166
+ - spec/dummy/app/assets/stylesheets/application.scss
167
+ - spec/dummy/app/controllers/application_controller.rb
168
+ - spec/dummy/app/helpers/application_helper.rb
169
+ - spec/dummy/app/views/layouts/application.html.erb
170
+ - spec/dummy/app/views/layouts/error_page.html.erb
171
+ - spec/dummy/bin/bundle
172
+ - spec/dummy/bin/rails
173
+ - spec/dummy/bin/rake
174
+ - spec/dummy/bin/setup
175
+ - spec/dummy/config.ru
176
+ - spec/dummy/config/application.rb
177
+ - spec/dummy/config/boot.rb
178
+ - spec/dummy/config/database.yml
179
+ - spec/dummy/config/environment.rb
180
+ - spec/dummy/config/environments/development.rb
181
+ - spec/dummy/config/environments/production.rb
182
+ - spec/dummy/config/environments/test.rb
183
+ - spec/dummy/config/initializers/assets.rb
184
+ - spec/dummy/config/initializers/backtrace_silencers.rb
185
+ - spec/dummy/config/initializers/cookies_serializer.rb
186
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
187
+ - spec/dummy/config/initializers/inflections.rb
188
+ - spec/dummy/config/initializers/mime_types.rb
189
+ - spec/dummy/config/initializers/session_store.rb
190
+ - spec/dummy/config/initializers/wrap_parameters.rb
191
+ - spec/dummy/config/locales/en.yml
192
+ - spec/dummy/config/routes.rb
193
+ - spec/dummy/config/secrets.yml
194
+ - spec/dummy/db/migrate/20150323152913_create_spud_admin_permissions.tb_core.rb
195
+ - spec/dummy/db/migrate/20150323152914_create_spud_users.tb_core.rb
196
+ - spec/dummy/db/migrate/20150323152915_add_time_zone_to_spud_user.tb_core.rb
197
+ - spec/dummy/db/migrate/20150323152916_add_scope_to_spud_admin_permissions.tb_core.rb
198
+ - spec/dummy/db/migrate/20150323152917_create_spud_user_settings.tb_core.rb
199
+ - spec/dummy/db/migrate/20150323152918_create_spud_roles.tb_core.rb
200
+ - spec/dummy/db/migrate/20150323152919_create_spud_permissions.tb_core.rb
201
+ - spec/dummy/db/migrate/20150323152920_create_spud_role_permissions.tb_core.rb
202
+ - spec/dummy/db/migrate/20150323152921_drop_spud_admin_permissions.tb_core.rb
203
+ - spec/dummy/db/migrate/20150323152922_create_tb_checkout_carts.tb_checkout_engine.rb
204
+ - spec/dummy/db/migrate/20150323152923_create_tb_checkout_cart_items.tb_checkout_engine.rb
205
+ - spec/dummy/db/migrate/20150323152924_create_tb_checkout_transactions.tb_checkout_engine.rb
206
+ - spec/dummy/db/migrate/20150323152925_create_tb_checkout_basic_products.tb_checkout_engine.rb
207
+ - spec/dummy/db/migrate/20150323152926_add_spud_user_and_session_id_to_transactions.tb_checkout_engine.rb
208
+ - spec/dummy/db/schema.rb
209
+ - spec/dummy/public/404.html
210
+ - spec/dummy/public/422.html
211
+ - spec/dummy/public/500.html
212
+ - spec/dummy/public/favicon.ico
213
+ - spec/factories/spud_users.rb
214
+ - spec/rails_helper.rb
215
+ - spec/spec_helper.rb
216
+ homepage: http://bitbucket.org/westlakedesign/tb_commerce
217
+ licenses:
218
+ - MIT
219
+ metadata: {}
220
+ post_install_message:
221
+ rdoc_options: []
222
+ require_paths:
223
+ - lib
224
+ required_ruby_version: !ruby/object:Gem::Requirement
225
+ requirements:
226
+ - - ">="
227
+ - !ruby/object:Gem::Version
228
+ version: '0'
229
+ required_rubygems_version: !ruby/object:Gem::Requirement
230
+ requirements:
231
+ - - ">="
232
+ - !ruby/object:Gem::Version
233
+ version: '0'
234
+ requirements: []
235
+ rubyforge_project:
236
+ rubygems_version: 2.4.6
237
+ signing_key:
238
+ specification_version: 4
239
+ summary: eCommerce solution for Twice Baked
240
+ test_files:
241
+ - spec/dummy/app/assets/javascripts/admin/application.js
242
+ - spec/dummy/app/assets/javascripts/application.js
243
+ - spec/dummy/app/assets/stylesheets/admin/application.scss
244
+ - spec/dummy/app/assets/stylesheets/application.scss
245
+ - spec/dummy/app/controllers/application_controller.rb
246
+ - spec/dummy/app/helpers/application_helper.rb
247
+ - spec/dummy/app/views/layouts/application.html.erb
248
+ - spec/dummy/app/views/layouts/error_page.html.erb
249
+ - spec/dummy/bin/bundle
250
+ - spec/dummy/bin/rails
251
+ - spec/dummy/bin/rake
252
+ - spec/dummy/bin/setup
253
+ - spec/dummy/config/application.rb
254
+ - spec/dummy/config/boot.rb
255
+ - spec/dummy/config/database.yml
256
+ - spec/dummy/config/environment.rb
257
+ - spec/dummy/config/environments/development.rb
258
+ - spec/dummy/config/environments/production.rb
259
+ - spec/dummy/config/environments/test.rb
260
+ - spec/dummy/config/initializers/assets.rb
261
+ - spec/dummy/config/initializers/backtrace_silencers.rb
262
+ - spec/dummy/config/initializers/cookies_serializer.rb
263
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
264
+ - spec/dummy/config/initializers/inflections.rb
265
+ - spec/dummy/config/initializers/mime_types.rb
266
+ - spec/dummy/config/initializers/session_store.rb
267
+ - spec/dummy/config/initializers/wrap_parameters.rb
268
+ - spec/dummy/config/locales/en.yml
269
+ - spec/dummy/config/routes.rb
270
+ - spec/dummy/config/secrets.yml
271
+ - spec/dummy/config.ru
272
+ - spec/dummy/db/migrate/20150323152913_create_spud_admin_permissions.tb_core.rb
273
+ - spec/dummy/db/migrate/20150323152914_create_spud_users.tb_core.rb
274
+ - spec/dummy/db/migrate/20150323152915_add_time_zone_to_spud_user.tb_core.rb
275
+ - spec/dummy/db/migrate/20150323152916_add_scope_to_spud_admin_permissions.tb_core.rb
276
+ - spec/dummy/db/migrate/20150323152917_create_spud_user_settings.tb_core.rb
277
+ - spec/dummy/db/migrate/20150323152918_create_spud_roles.tb_core.rb
278
+ - spec/dummy/db/migrate/20150323152919_create_spud_permissions.tb_core.rb
279
+ - spec/dummy/db/migrate/20150323152920_create_spud_role_permissions.tb_core.rb
280
+ - spec/dummy/db/migrate/20150323152921_drop_spud_admin_permissions.tb_core.rb
281
+ - spec/dummy/db/migrate/20150323152922_create_tb_checkout_carts.tb_checkout_engine.rb
282
+ - spec/dummy/db/migrate/20150323152923_create_tb_checkout_cart_items.tb_checkout_engine.rb
283
+ - spec/dummy/db/migrate/20150323152924_create_tb_checkout_transactions.tb_checkout_engine.rb
284
+ - spec/dummy/db/migrate/20150323152925_create_tb_checkout_basic_products.tb_checkout_engine.rb
285
+ - spec/dummy/db/migrate/20150323152926_add_spud_user_and_session_id_to_transactions.tb_checkout_engine.rb
286
+ - spec/dummy/db/schema.rb
287
+ - spec/dummy/public/404.html
288
+ - spec/dummy/public/422.html
289
+ - spec/dummy/public/500.html
290
+ - spec/dummy/public/favicon.ico
291
+ - spec/dummy/Rakefile
292
+ - spec/dummy/README.rdoc
293
+ - spec/factories/spud_users.rb
294
+ - spec/rails_helper.rb
295
+ - spec/spec_helper.rb