workarea-cart_sharing 1.0.0.pre → 1.0.1.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +21 -0
- data/Gemfile +17 -0
- data/LICENSE +52 -0
- data/README.md +40 -0
- data/Rakefile +56 -0
- data/app/assets/javascripts/workarea/storefront/cart_sharing/copy_text.js +37 -0
- data/app/assets/stylesheets/workarea/storefront/cart_sharing/_cart_sharing.scss +27 -0
- data/app/controllers/workarea/storefront/carts_controller.decorator +14 -0
- data/app/controllers/workarea/storefront/shares_controller.decorator +16 -0
- data/app/models/workarea/order.decorator +7 -0
- data/app/view_models/workarea/storefront/cart_view_model.decorator +7 -0
- data/app/views/workarea/storefront/carts/_sharable.html.haml +22 -0
- data/bin/rails +25 -0
- data/config/initializers/appends.rb +14 -0
- data/config/initializers/sharable_token.rb +24 -0
- data/config/initializers/workarea.rb +3 -0
- data/config/locales/en.yml +9 -0
- data/config/routes.rb +8 -0
- data/lib/workarea/cart_sharing.rb +8 -0
- data/lib/workarea/cart_sharing/engine.rb +10 -0
- data/lib/workarea/cart_sharing/version.rb +5 -0
- data/test/dummy/.ruby-version +1 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/config/manifest.js +2 -0
- data/test/dummy/app/assets/images/.keep +0 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +2 -0
- data/test/dummy/app/controllers/concerns/.keep +0 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/javascript/packs/application.js +14 -0
- data/test/dummy/app/jobs/application_job.rb +7 -0
- data/test/dummy/app/mailers/application_mailer.rb +4 -0
- data/test/dummy/app/models/concerns/.keep +0 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/test/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +25 -0
- data/test/dummy/config.ru +5 -0
- data/test/dummy/config/application.rb +33 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +53 -0
- data/test/dummy/config/environments/production.rb +101 -0
- data/test/dummy/config/environments/test.rb +47 -0
- data/test/dummy/config/initializers/application_controller_renderer.rb +8 -0
- data/test/dummy/config/initializers/assets.rb +12 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/content_security_policy.rb +28 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +5 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/workarea.rb +5 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +9 -0
- data/test/dummy/config/locales/en.yml +33 -0
- data/test/dummy/config/puma.rb +38 -0
- data/test/dummy/config/routes.rb +5 -0
- data/test/dummy/config/spring.rb +6 -0
- data/test/dummy/db/seeds.rb +2 -0
- data/test/dummy/lib/assets/.keep +0 -0
- data/test/dummy/log/.keep +0 -0
- data/test/teaspoon_env.rb +6 -0
- data/test/test_helper.rb +10 -0
- data/workarea-cart_sharing.gemspec +19 -0
- metadata +68 -2
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Define an application-wide content security policy
|
4
|
+
# For further information see the following documentation
|
5
|
+
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
|
6
|
+
|
7
|
+
# Rails.application.config.content_security_policy do |policy|
|
8
|
+
# policy.default_src :self, :https
|
9
|
+
# policy.font_src :self, :https, :data
|
10
|
+
# policy.img_src :self, :https, :data
|
11
|
+
# policy.object_src :none
|
12
|
+
# policy.script_src :self, :https
|
13
|
+
# policy.style_src :self, :https
|
14
|
+
|
15
|
+
# # Specify URI for violation reports
|
16
|
+
# # policy.report_uri "/csp-violation-report-endpoint"
|
17
|
+
# end
|
18
|
+
|
19
|
+
# If you are using UJS then enable automatic nonce generation
|
20
|
+
# Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) }
|
21
|
+
|
22
|
+
# Set the nonce only to specific directives
|
23
|
+
# Rails.application.config.content_security_policy_nonce_directives = %w(script-src)
|
24
|
+
|
25
|
+
# Report CSP violations to a specified URI
|
26
|
+
# For further information see the following documentation:
|
27
|
+
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only
|
28
|
+
# Rails.application.config.content_security_policy_report_only = true
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format. Inflections
|
4
|
+
# are locale specific, and you may define rules for as many different
|
5
|
+
# locales as you wish. All of these examples are active by default:
|
6
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
7
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
8
|
+
# inflect.singular /^(ox)en/i, '\1'
|
9
|
+
# inflect.irregular 'person', 'people'
|
10
|
+
# inflect.uncountable %w( fish sheep )
|
11
|
+
# end
|
12
|
+
|
13
|
+
# These inflection rules are supported but not enabled by default:
|
14
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
15
|
+
# inflect.acronym 'RESTful'
|
16
|
+
# end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json]
|
9
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
+
# than English, add the necessary files in this directory.
|
4
|
+
#
|
5
|
+
# To use the locales, use `I18n.t`:
|
6
|
+
#
|
7
|
+
# I18n.t 'hello'
|
8
|
+
#
|
9
|
+
# In views, this is aliased to just `t`:
|
10
|
+
#
|
11
|
+
# <%= t('hello') %>
|
12
|
+
#
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
14
|
+
#
|
15
|
+
# I18n.locale = :es
|
16
|
+
#
|
17
|
+
# This would use the information in config/locales/es.yml.
|
18
|
+
#
|
19
|
+
# The following keys must be escaped otherwise they will not be retrieved by
|
20
|
+
# the default I18n backend:
|
21
|
+
#
|
22
|
+
# true, false, on, off, yes, no
|
23
|
+
#
|
24
|
+
# Instead, surround them with single quotes.
|
25
|
+
#
|
26
|
+
# en:
|
27
|
+
# 'true': 'foo'
|
28
|
+
#
|
29
|
+
# To learn more, please read the Rails Internationalization guide
|
30
|
+
# available at https://guides.rubyonrails.org/i18n.html.
|
31
|
+
|
32
|
+
en:
|
33
|
+
hello: "Hello world"
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# Puma can serve each request in a thread from an internal thread pool.
|
2
|
+
# The `threads` method setting takes two numbers: a minimum and maximum.
|
3
|
+
# Any libraries that use thread pools should be configured to match
|
4
|
+
# the maximum value specified for Puma. Default is set to 5 threads for minimum
|
5
|
+
# and maximum; this matches the default thread size of Active Record.
|
6
|
+
#
|
7
|
+
max_threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
|
8
|
+
min_threads_count = ENV.fetch("RAILS_MIN_THREADS") { max_threads_count }
|
9
|
+
threads min_threads_count, max_threads_count
|
10
|
+
|
11
|
+
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
|
12
|
+
#
|
13
|
+
port ENV.fetch("PORT") { 3000 }
|
14
|
+
|
15
|
+
# Specifies the `environment` that Puma will run in.
|
16
|
+
#
|
17
|
+
environment ENV.fetch("RAILS_ENV") { "development" }
|
18
|
+
|
19
|
+
# Specifies the `pidfile` that Puma will use.
|
20
|
+
pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" }
|
21
|
+
|
22
|
+
# Specifies the number of `workers` to boot in clustered mode.
|
23
|
+
# Workers are forked web server processes. If using threads and workers together
|
24
|
+
# the concurrency of the application would be max `threads` * `workers`.
|
25
|
+
# Workers do not work on JRuby or Windows (both of which do not support
|
26
|
+
# processes).
|
27
|
+
#
|
28
|
+
# workers ENV.fetch("WEB_CONCURRENCY") { 2 }
|
29
|
+
|
30
|
+
# Use the `preload_app!` method when specifying a `workers` number.
|
31
|
+
# This directive tells Puma to first boot the application and load code
|
32
|
+
# before forking the application. This takes advantage of Copy On Write
|
33
|
+
# process behavior so workers use less memory.
|
34
|
+
#
|
35
|
+
# preload_app!
|
36
|
+
|
37
|
+
# Allow puma to be restarted by `rails restart` command.
|
38
|
+
plugin :tmp_restart
|
File without changes
|
File without changes
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV['RAILS_ENV'] = 'test'
|
3
|
+
|
4
|
+
require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
|
5
|
+
require 'rails/test_help'
|
6
|
+
require 'workarea/test_help'
|
7
|
+
|
8
|
+
# Filter out Minitest backtrace while allowing backtrace from other libraries
|
9
|
+
# to be shown.
|
10
|
+
Minitest.backtrace_filter = Minitest::BacktraceFilter.new
|
@@ -0,0 +1,19 @@
|
|
1
|
+
$:.push File.expand_path("lib", __dir__)
|
2
|
+
|
3
|
+
# Maintain your gem's version:
|
4
|
+
require "workarea/cart_sharing/version"
|
5
|
+
|
6
|
+
# Describe your gem and declare its dependencies:
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
spec.name = "workarea-cart_sharing"
|
9
|
+
spec.version = Workarea::CartSharing::VERSION
|
10
|
+
spec.authors = ["gunasekaran.r"]
|
11
|
+
spec.email = ["guna.r@trikatechnologies"]
|
12
|
+
spec.summary = "Generate link for sharing a cart"
|
13
|
+
spec.description = "Generate link for sharing a cart"
|
14
|
+
spec.license = "Business Software License"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split("\n")
|
17
|
+
|
18
|
+
spec.add_dependency 'workarea', '~> 3.x'
|
19
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: workarea-cart_sharing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- gunasekaran.r
|
@@ -30,7 +30,73 @@ email:
|
|
30
30
|
executables: []
|
31
31
|
extensions: []
|
32
32
|
extra_rdoc_files: []
|
33
|
-
files:
|
33
|
+
files:
|
34
|
+
- ".gitignore"
|
35
|
+
- Gemfile
|
36
|
+
- LICENSE
|
37
|
+
- README.md
|
38
|
+
- Rakefile
|
39
|
+
- app/assets/javascripts/workarea/storefront/cart_sharing/copy_text.js
|
40
|
+
- app/assets/stylesheets/workarea/storefront/cart_sharing/_cart_sharing.scss
|
41
|
+
- app/controllers/workarea/storefront/carts_controller.decorator
|
42
|
+
- app/controllers/workarea/storefront/shares_controller.decorator
|
43
|
+
- app/models/workarea/order.decorator
|
44
|
+
- app/view_models/workarea/storefront/cart_view_model.decorator
|
45
|
+
- app/views/workarea/storefront/carts/_sharable.html.haml
|
46
|
+
- bin/rails
|
47
|
+
- config/initializers/appends.rb
|
48
|
+
- config/initializers/sharable_token.rb
|
49
|
+
- config/initializers/workarea.rb
|
50
|
+
- config/locales/en.yml
|
51
|
+
- config/routes.rb
|
52
|
+
- lib/workarea/cart_sharing.rb
|
53
|
+
- lib/workarea/cart_sharing/engine.rb
|
54
|
+
- lib/workarea/cart_sharing/version.rb
|
55
|
+
- test/dummy/.ruby-version
|
56
|
+
- test/dummy/Rakefile
|
57
|
+
- test/dummy/app/assets/config/manifest.js
|
58
|
+
- test/dummy/app/assets/images/.keep
|
59
|
+
- test/dummy/app/assets/stylesheets/application.css
|
60
|
+
- test/dummy/app/controllers/application_controller.rb
|
61
|
+
- test/dummy/app/controllers/concerns/.keep
|
62
|
+
- test/dummy/app/helpers/application_helper.rb
|
63
|
+
- test/dummy/app/javascript/packs/application.js
|
64
|
+
- test/dummy/app/jobs/application_job.rb
|
65
|
+
- test/dummy/app/mailers/application_mailer.rb
|
66
|
+
- test/dummy/app/models/concerns/.keep
|
67
|
+
- test/dummy/app/views/layouts/application.html.erb
|
68
|
+
- test/dummy/app/views/layouts/mailer.html.erb
|
69
|
+
- test/dummy/app/views/layouts/mailer.text.erb
|
70
|
+
- test/dummy/bin/rails
|
71
|
+
- test/dummy/bin/rake
|
72
|
+
- test/dummy/bin/setup
|
73
|
+
- test/dummy/config.ru
|
74
|
+
- test/dummy/config/application.rb
|
75
|
+
- test/dummy/config/boot.rb
|
76
|
+
- test/dummy/config/environment.rb
|
77
|
+
- test/dummy/config/environments/development.rb
|
78
|
+
- test/dummy/config/environments/production.rb
|
79
|
+
- test/dummy/config/environments/test.rb
|
80
|
+
- test/dummy/config/initializers/application_controller_renderer.rb
|
81
|
+
- test/dummy/config/initializers/assets.rb
|
82
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
83
|
+
- test/dummy/config/initializers/content_security_policy.rb
|
84
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
85
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
86
|
+
- test/dummy/config/initializers/inflections.rb
|
87
|
+
- test/dummy/config/initializers/mime_types.rb
|
88
|
+
- test/dummy/config/initializers/workarea.rb
|
89
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
90
|
+
- test/dummy/config/locales/en.yml
|
91
|
+
- test/dummy/config/puma.rb
|
92
|
+
- test/dummy/config/routes.rb
|
93
|
+
- test/dummy/config/spring.rb
|
94
|
+
- test/dummy/db/seeds.rb
|
95
|
+
- test/dummy/lib/assets/.keep
|
96
|
+
- test/dummy/log/.keep
|
97
|
+
- test/teaspoon_env.rb
|
98
|
+
- test/test_helper.rb
|
99
|
+
- workarea-cart_sharing.gemspec
|
34
100
|
homepage:
|
35
101
|
licenses:
|
36
102
|
- Business Software License
|