post_clerk 0.4 → 0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +66 -21
  3. data/.travis.yml +10 -0
  4. data/Gemfile +34 -3
  5. data/Gemfile.lock +334 -0
  6. data/Guardfile +2 -4
  7. data/README.md +11 -6
  8. data/Rakefile +10 -12
  9. data/lib/office_clerk/post.rb +21 -16
  10. data/lib/post_clerk.rb +1 -1
  11. data/post_clerk.gemspec +2 -2
  12. data/spec/controllers/orders_controller_spec.rb +59 -0
  13. data/spec/features/orders_spec.rb +32 -0
  14. data/spec/lib/post_spec.rb +84 -85
  15. data/spec/spec_helper.rb +27 -29
  16. data/spec/support/admin.rb +4 -0
  17. data/spec/support/capybara.rb +14 -0
  18. data/spec/support/cleaner.rb +22 -0
  19. data/spec/support/email.rb +6 -0
  20. data/spec/support/request_helper.rb +31 -0
  21. data/test_app/README.rdoc +28 -0
  22. data/test_app/app/assets/javascripts/application.js +15 -0
  23. data/test_app/app/assets/stylesheets/application.css +13 -0
  24. data/test_app/app/controllers/application_controller.rb +5 -0
  25. data/test_app/app/helpers/application_helper.rb +2 -0
  26. data/test_app/app/views/layouts/sales_clerk.haml +9 -0
  27. data/test_app/bin/bundle +3 -0
  28. data/test_app/bin/rails +4 -0
  29. data/test_app/bin/rake +4 -0
  30. data/test_app/config/application.rb +30 -0
  31. data/test_app/config/boot.rb +4 -0
  32. data/test_app/config/database.yml +25 -0
  33. data/test_app/config/environment.rb +5 -0
  34. data/test_app/config/environments/development.rb +32 -0
  35. data/test_app/config/environments/production.rb +80 -0
  36. data/test_app/config/environments/test.rb +39 -0
  37. data/test_app/config/initializers/backtrace_silencers.rb +7 -0
  38. data/test_app/config/initializers/filter_parameter_logging.rb +4 -0
  39. data/test_app/config/initializers/inflections.rb +16 -0
  40. data/test_app/config/initializers/mime_types.rb +5 -0
  41. data/test_app/config/initializers/secret_token.rb +12 -0
  42. data/test_app/config/initializers/session_store.rb +3 -0
  43. data/test_app/config/initializers/wrap_parameters.rb +14 -0
  44. data/test_app/config/locales/config.yml +22 -0
  45. data/test_app/config/locales/en.yml +2 -0
  46. data/test_app/config/routes.rb +4 -0
  47. data/test_app/config.ru +4 -0
  48. data/test_app/db/migrate/20141114205525_clerks.office.rb +16 -0
  49. data/test_app/db/migrate/20141114205526_suppliers.office.rb +10 -0
  50. data/test_app/db/migrate/20141114205527_categories.office.rb +19 -0
  51. data/test_app/db/migrate/20141114205528_items.office.rb +15 -0
  52. data/test_app/db/migrate/20141114205529_orders.office.rb +23 -0
  53. data/test_app/db/migrate/20141114205530_baskets.office.rb +13 -0
  54. data/test_app/db/migrate/20141114205531_purchases.office.rb +12 -0
  55. data/test_app/db/migrate/20141114205532_products.office.rb +28 -0
  56. data/test_app/db/schema.rb +141 -0
  57. data/test_app/db/seeds.rb +7 -0
  58. data/test_app/log/development.log +0 -0
  59. data/test_app/public/404.html +58 -0
  60. data/test_app/public/422.html +58 -0
  61. data/test_app/public/500.html +57 -0
  62. data/test_app/public/favicon.ico +0 -0
  63. data/test_app/public/robots.txt +5 -0
  64. metadata +64 -6
  65. data/config/locales/en.yml +0 -12
@@ -0,0 +1,57 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
47
+ </style>
48
+ </head>
49
+
50
+ <body>
51
+ <!-- This file lives in public/500.html -->
52
+ <div class="dialog">
53
+ <h1>We're sorry, but something went wrong.</h1>
54
+ </div>
55
+ <p>If you are the application owner check the logs for more information.</p>
56
+ </body>
57
+ </html>
File without changes
@@ -0,0 +1,5 @@
1
+ # See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
2
+ #
3
+ # To ban all spiders from the entire site uncomment the next two lines:
4
+ # User-agent: *
5
+ # Disallow: /
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: post_clerk
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.4'
4
+ version: '0.5'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Torsten Rüger
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-11-17 00:00:00.000000000 Z
12
+ date: 2015-12-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: office_clerk
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '0.1'
20
+ version: '0.9'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '0.1'
27
+ version: '0.9'
28
28
  description: Calculate weight based charges for a OfficeClerk basket
29
29
  email:
30
30
  - torsten@villataika.fi
@@ -34,22 +34,73 @@ extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
36
  - ".gitignore"
37
+ - ".travis.yml"
37
38
  - Gemfile
39
+ - Gemfile.lock
38
40
  - Guardfile
39
41
  - LICENSE
40
42
  - README.md
41
43
  - Rakefile
42
44
  - bin/rails
43
- - config/locales/en.yml
44
45
  - lib/office_clerk/post.rb
45
46
  - lib/post_clerk.rb
46
47
  - post_clerk.gemspec
48
+ - spec/controllers/orders_controller_spec.rb
49
+ - spec/features/orders_spec.rb
47
50
  - spec/lib/post_spec.rb
48
51
  - spec/spec_helper.rb
52
+ - spec/support/admin.rb
53
+ - spec/support/capybara.rb
54
+ - spec/support/cleaner.rb
49
55
  - spec/support/database_cleaner.rb
56
+ - spec/support/email.rb
50
57
  - spec/support/factory_girl.rb
51
58
  - spec/support/i18n.rb
59
+ - spec/support/request_helper.rb
52
60
  - spec/translations/locale_spec.rb
61
+ - test_app/README.rdoc
62
+ - test_app/app/assets/javascripts/application.js
63
+ - test_app/app/assets/stylesheets/application.css
64
+ - test_app/app/controllers/application_controller.rb
65
+ - test_app/app/helpers/application_helper.rb
66
+ - test_app/app/views/layouts/sales_clerk.haml
67
+ - test_app/bin/bundle
68
+ - test_app/bin/rails
69
+ - test_app/bin/rake
70
+ - test_app/config.ru
71
+ - test_app/config/application.rb
72
+ - test_app/config/boot.rb
73
+ - test_app/config/database.yml
74
+ - test_app/config/environment.rb
75
+ - test_app/config/environments/development.rb
76
+ - test_app/config/environments/production.rb
77
+ - test_app/config/environments/test.rb
78
+ - test_app/config/initializers/backtrace_silencers.rb
79
+ - test_app/config/initializers/filter_parameter_logging.rb
80
+ - test_app/config/initializers/inflections.rb
81
+ - test_app/config/initializers/mime_types.rb
82
+ - test_app/config/initializers/secret_token.rb
83
+ - test_app/config/initializers/session_store.rb
84
+ - test_app/config/initializers/wrap_parameters.rb
85
+ - test_app/config/locales/config.yml
86
+ - test_app/config/locales/en.yml
87
+ - test_app/config/routes.rb
88
+ - test_app/db/migrate/20141114205525_clerks.office.rb
89
+ - test_app/db/migrate/20141114205526_suppliers.office.rb
90
+ - test_app/db/migrate/20141114205527_categories.office.rb
91
+ - test_app/db/migrate/20141114205528_items.office.rb
92
+ - test_app/db/migrate/20141114205529_orders.office.rb
93
+ - test_app/db/migrate/20141114205530_baskets.office.rb
94
+ - test_app/db/migrate/20141114205531_purchases.office.rb
95
+ - test_app/db/migrate/20141114205532_products.office.rb
96
+ - test_app/db/schema.rb
97
+ - test_app/db/seeds.rb
98
+ - test_app/log/development.log
99
+ - test_app/public/404.html
100
+ - test_app/public/422.html
101
+ - test_app/public/500.html
102
+ - test_app/public/favicon.ico
103
+ - test_app/public/robots.txt
53
104
  homepage: https://github.com/ruby_clerks/post_clerk
54
105
  licenses:
55
106
  - MIT
@@ -71,14 +122,21 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
122
  requirements:
72
123
  - none
73
124
  rubyforge_project:
74
- rubygems_version: 2.2.2
125
+ rubygems_version: 2.4.5.1
75
126
  signing_key:
76
127
  specification_version: 4
77
128
  summary: Calculate weight based charges for a OfficeClerk basket
78
129
  test_files:
130
+ - spec/controllers/orders_controller_spec.rb
131
+ - spec/features/orders_spec.rb
79
132
  - spec/lib/post_spec.rb
80
133
  - spec/spec_helper.rb
134
+ - spec/support/admin.rb
135
+ - spec/support/capybara.rb
136
+ - spec/support/cleaner.rb
81
137
  - spec/support/database_cleaner.rb
138
+ - spec/support/email.rb
82
139
  - spec/support/factory_girl.rb
83
140
  - spec/support/i18n.rb
141
+ - spec/support/request_helper.rb
84
142
  - spec/translations/locale_spec.rb
@@ -1,12 +0,0 @@
1
- ---
2
- en:
3
- office_clerk:
4
- price_table: Prices (space seperated)
5
- weight_table: Weights (space seperated)
6
- postal_service: Postal Service
7
- max_item_weight: Max weight of one item
8
- handling_fee: Handling fee
9
- handling_max: "Amount, over which handling fee won't be applied"
10
- min_price: Minimum price
11
- default_weight: Default weight
12
- max_price: Maximum price