mvpkit 1.0.4 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/mvpkit.gemspec +135 -76
  4. data/project/.gitignore +43 -14
  5. data/project/Gemfile +7 -3
  6. data/project/Gemfile.lock +500 -0
  7. data/project/Procfile +1 -1
  8. data/project/app/assets/javascripts/application.js +5 -1
  9. data/project/app/assets/javascripts/cable.js +12 -0
  10. data/project/app/assets/javascripts/pack-compiled.js +37394 -0
  11. data/project/app/assets/javascripts/pack-compiled.js.map +1 -0
  12. data/project/app/assets/stylesheets/application.scss +3 -1
  13. data/project/app/assets/stylesheets/pack-compiled.css +33946 -0
  14. data/project/app/assets/stylesheets/pack-compiled.css.map +1 -0
  15. data/project/app/controllers/application_controller.rb +13 -4
  16. data/project/app/engines/admin/.gitignore +7 -0
  17. data/project/app/engines/admin/Gemfile +14 -0
  18. data/project/app/engines/admin/Gemfile.lock +118 -0
  19. data/project/app/engines/admin/MIT-LICENSE +20 -0
  20. data/project/app/engines/admin/README.md +28 -0
  21. data/project/app/engines/admin/Rakefile +37 -0
  22. data/project/app/engines/admin/admin.gemspec +22 -0
  23. data/project/app/engines/admin/app/assets/config/admin_manifest.js +2 -0
  24. data/project/app/engines/admin/app/assets/images/admin/.keep +0 -0
  25. data/project/app/engines/admin/app/assets/javascripts/admin/application.js +13 -0
  26. data/project/app/engines/admin/app/assets/stylesheets/admin/application.css +15 -0
  27. data/project/app/engines/admin/app/controllers/admin/application_controller.rb +5 -0
  28. data/project/app/engines/admin/app/controllers/admin/conversions_controller.rb +64 -0
  29. data/project/app/engines/admin/app/controllers/admin/users_controller.rb +62 -0
  30. data/project/app/engines/admin/app/helpers/admin/application_helper.rb +4 -0
  31. data/project/app/engines/admin/app/helpers/admin/conversions_helper.rb +4 -0
  32. data/project/app/engines/admin/app/helpers/admin/users_helper.rb +4 -0
  33. data/project/app/engines/admin/app/jobs/admin/application_job.rb +4 -0
  34. data/project/app/engines/admin/app/mailers/admin/application_mailer.rb +6 -0
  35. data/project/app/engines/admin/app/models/admin/application_record.rb +5 -0
  36. data/project/app/engines/admin/app/views/admin/conversions/_form.html.erb +11 -0
  37. data/project/app/engines/admin/app/views/admin/conversions/edit.html.erb +3 -0
  38. data/project/app/engines/admin/app/views/admin/conversions/index.html.erb +31 -0
  39. data/project/app/engines/admin/app/views/admin/conversions/new.html.erb +3 -0
  40. data/project/app/engines/admin/app/views/admin/conversions/show.html.erb +13 -0
  41. data/project/app/engines/admin/app/views/admin/users/_form.html.erb +22 -0
  42. data/project/app/engines/admin/app/views/admin/users/edit.html.erb +6 -0
  43. data/project/app/engines/admin/app/views/admin/users/index.html.erb +27 -0
  44. data/project/app/engines/admin/app/views/admin/users/new.html.erb +5 -0
  45. data/project/app/engines/admin/app/views/admin/users/show.html.erb +9 -0
  46. data/project/app/engines/admin/app/views/layouts/admin/_header.html.erb +21 -0
  47. data/project/app/engines/admin/app/views/layouts/admin/application.html.erb +5 -0
  48. data/project/app/engines/admin/bin/rails +13 -0
  49. data/project/app/engines/admin/config/routes.rb +6 -0
  50. data/project/app/engines/admin/lib/admin/engine.rb +5 -0
  51. data/project/app/engines/admin/lib/admin/version.rb +3 -0
  52. data/project/app/engines/admin/lib/admin.rb +5 -0
  53. data/project/app/engines/admin/lib/tasks/admin_tasks.rake +4 -0
  54. data/project/app/engines/admin/test/admin_test.rb +7 -0
  55. data/project/app/engines/admin/test/controllers/admin/conversions_controller_test.rb +52 -0
  56. data/project/app/engines/admin/test/controllers/admin/users_controller_test.rb +52 -0
  57. data/project/app/engines/admin/test/integration/navigation_test.rb +8 -0
  58. data/project/app/engines/admin/test/test_helper.rb +20 -0
  59. data/project/app/models/application_record.rb +3 -0
  60. data/project/app/models/conversion.rb +1 -2
  61. data/project/app/models/user.rb +6 -0
  62. data/project/app/views/layouts/_header.html.erb +17 -20
  63. data/project/app/views/static/internal_server_error.html.erb +1 -0
  64. data/project/app/views/static/not_found.html.erb +1 -0
  65. data/project/app/webpack/javascripts/lib/analytics.js +22 -0
  66. data/project/app/webpack/javascripts/lib/controllers.js +28 -0
  67. data/project/app/webpack/javascripts/lib/forms.js +28 -0
  68. data/project/app/webpack/javascripts/pack.js +11 -8
  69. data/project/app/webpack/stylesheets/config/variables.scss +1 -1
  70. data/project/app/webpack/stylesheets/skin/tables.scss +14 -0
  71. data/project/config/application.rb +2 -2
  72. data/project/config/initializers/devise.rb +277 -0
  73. data/project/config/initializers/stripe.rb +0 -7
  74. data/project/config/locales/devise.en.yml +64 -0
  75. data/project/config/routes.rb +2 -0
  76. data/project/db/migrate/2017000000000_add_uuid_pk_by_default.rb +5 -0
  77. data/project/db/migrate/20170415224839_create_conversions.rb +9 -0
  78. data/project/db/migrate/20170415225327_devise_create_users.rb +42 -0
  79. data/project/db/schema.rb +20 -3
  80. data/project/package.json +7 -7
  81. metadata +64 -5
  82. data/project/config/initializers/rails_admin.rb +0 -49
  83. data/project/db/migrate/20160728235100_create_conversions.rb +0 -9
@@ -0,0 +1,277 @@
1
+ # Use this hook to configure devise mailer, warden hooks and so forth.
2
+ # Many of these configuration options can be set straight in your model.
3
+ Devise.setup do |config|
4
+ # The secret key used by Devise. Devise uses this key to generate
5
+ # random tokens. Changing this key will render invalid all existing
6
+ # confirmation, reset password and unlock tokens in the database.
7
+ # Devise will use the `secret_key_base` as its `secret_key`
8
+ # by default. You can change it below and use your own secret key.
9
+ # config.secret_key = 'e78398fddfdfa911ff01270eeba5dee8874aef29e6ac78c23a73f99f15e0cda035215614814a59465f549a8eaeb1b5fc31b36eb0e21a857db89278cc8bc2af42'
10
+
11
+ # ==> Mailer Configuration
12
+ # Configure the e-mail address which will be shown in Devise::Mailer,
13
+ # note that it will be overwritten if you use your own mailer class
14
+ # with default "from" parameter.
15
+ config.mailer_sender = 'please-change-me-at-config-initializers-devise@example.com'
16
+
17
+ # Configure the class responsible to send e-mails.
18
+ # config.mailer = 'Devise::Mailer'
19
+
20
+ # Configure the parent class responsible to send e-mails.
21
+ # config.parent_mailer = 'ActionMailer::Base'
22
+
23
+ # ==> ORM configuration
24
+ # Load and configure the ORM. Supports :active_record (default) and
25
+ # :mongoid (bson_ext recommended) by default. Other ORMs may be
26
+ # available as additional gems.
27
+ require 'devise/orm/active_record'
28
+
29
+ # ==> Configuration for any authentication mechanism
30
+ # Configure which keys are used when authenticating a user. The default is
31
+ # just :email. You can configure it to use [:username, :subdomain], so for
32
+ # authenticating a user, both parameters are required. Remember that those
33
+ # parameters are used only when authenticating and not when retrieving from
34
+ # session. If you need permissions, you should implement that in a before filter.
35
+ # You can also supply a hash where the value is a boolean determining whether
36
+ # or not authentication should be aborted when the value is not present.
37
+ # config.authentication_keys = [:email]
38
+
39
+ # Configure parameters from the request object used for authentication. Each entry
40
+ # given should be a request method and it will automatically be passed to the
41
+ # find_for_authentication method and considered in your model lookup. For instance,
42
+ # if you set :request_keys to [:subdomain], :subdomain will be used on authentication.
43
+ # The same considerations mentioned for authentication_keys also apply to request_keys.
44
+ # config.request_keys = []
45
+
46
+ # Configure which authentication keys should be case-insensitive.
47
+ # These keys will be downcased upon creating or modifying a user and when used
48
+ # to authenticate or find a user. Default is :email.
49
+ config.case_insensitive_keys = [:email]
50
+
51
+ # Configure which authentication keys should have whitespace stripped.
52
+ # These keys will have whitespace before and after removed upon creating or
53
+ # modifying a user and when used to authenticate or find a user. Default is :email.
54
+ config.strip_whitespace_keys = [:email]
55
+
56
+ # Tell if authentication through request.params is enabled. True by default.
57
+ # It can be set to an array that will enable params authentication only for the
58
+ # given strategies, for example, `config.params_authenticatable = [:database]` will
59
+ # enable it only for database (email + password) authentication.
60
+ # config.params_authenticatable = true
61
+
62
+ # Tell if authentication through HTTP Auth is enabled. False by default.
63
+ # It can be set to an array that will enable http authentication only for the
64
+ # given strategies, for example, `config.http_authenticatable = [:database]` will
65
+ # enable it only for database authentication. The supported strategies are:
66
+ # :database = Support basic authentication with authentication key + password
67
+ # config.http_authenticatable = false
68
+
69
+ # If 401 status code should be returned for AJAX requests. True by default.
70
+ # config.http_authenticatable_on_xhr = true
71
+
72
+ # The realm used in Http Basic Authentication. 'Application' by default.
73
+ # config.http_authentication_realm = 'Application'
74
+
75
+ # It will change confirmation, password recovery and other workflows
76
+ # to behave the same regardless if the e-mail provided was right or wrong.
77
+ # Does not affect registerable.
78
+ # config.paranoid = true
79
+
80
+ # By default Devise will store the user in session. You can skip storage for
81
+ # particular strategies by setting this option.
82
+ # Notice that if you are skipping storage for all authentication paths, you
83
+ # may want to disable generating routes to Devise's sessions controller by
84
+ # passing skip: :sessions to `devise_for` in your config/routes.rb
85
+ config.skip_session_storage = [:http_auth]
86
+
87
+ # By default, Devise cleans up the CSRF token on authentication to
88
+ # avoid CSRF token fixation attacks. This means that, when using AJAX
89
+ # requests for sign in and sign up, you need to get a new CSRF token
90
+ # from the server. You can disable this option at your own risk.
91
+ # config.clean_up_csrf_token_on_authentication = true
92
+
93
+ # When false, Devise will not attempt to reload routes on eager load.
94
+ # This can reduce the time taken to boot the app but if your application
95
+ # requires the Devise mappings to be loaded during boot time the application
96
+ # won't boot properly.
97
+ # config.reload_routes = true
98
+
99
+ # ==> Configuration for :database_authenticatable
100
+ # For bcrypt, this is the cost for hashing the password and defaults to 11. If
101
+ # using other algorithms, it sets how many times you want the password to be hashed.
102
+ #
103
+ # Limiting the stretches to just one in testing will increase the performance of
104
+ # your test suite dramatically. However, it is STRONGLY RECOMMENDED to not use
105
+ # a value less than 10 in other environments. Note that, for bcrypt (the default
106
+ # algorithm), the cost increases exponentially with the number of stretches (e.g.
107
+ # a value of 20 is already extremely slow: approx. 60 seconds for 1 calculation).
108
+ config.stretches = Rails.env.test? ? 1 : 11
109
+
110
+ # Set up a pepper to generate the hashed password.
111
+ # config.pepper = 'd6aa4552be9bdba545f3f14ed15fb6367f2451ce4f5ec1d327eea5b9996cbf3d5efeddb1cc22c0c839e74c6daa9e6f877f174b5320cf1ff6955daf5f04a366e7'
112
+
113
+ # Send a notification to the original email when the user's email is changed.
114
+ # config.send_email_changed_notification = false
115
+
116
+ # Send a notification email when the user's password is changed.
117
+ # config.send_password_change_notification = false
118
+
119
+ # ==> Configuration for :confirmable
120
+ # A period that the user is allowed to access the website even without
121
+ # confirming their account. For instance, if set to 2.days, the user will be
122
+ # able to access the website for two days without confirming their account,
123
+ # access will be blocked just in the third day. Default is 0.days, meaning
124
+ # the user cannot access the website without confirming their account.
125
+ # config.allow_unconfirmed_access_for = 2.days
126
+
127
+ # A period that the user is allowed to confirm their account before their
128
+ # token becomes invalid. For example, if set to 3.days, the user can confirm
129
+ # their account within 3 days after the mail was sent, but on the fourth day
130
+ # their account can't be confirmed with the token any more.
131
+ # Default is nil, meaning there is no restriction on how long a user can take
132
+ # before confirming their account.
133
+ # config.confirm_within = 3.days
134
+
135
+ # If true, requires any email changes to be confirmed (exactly the same way as
136
+ # initial account confirmation) to be applied. Requires additional unconfirmed_email
137
+ # db field (see migrations). Until confirmed, new email is stored in
138
+ # unconfirmed_email column, and copied to email column on successful confirmation.
139
+ config.reconfirmable = true
140
+
141
+ # Defines which key will be used when confirming an account
142
+ # config.confirmation_keys = [:email]
143
+
144
+ # ==> Configuration for :rememberable
145
+ # The time the user will be remembered without asking for credentials again.
146
+ # config.remember_for = 2.weeks
147
+
148
+ # Invalidates all the remember me tokens when the user signs out.
149
+ config.expire_all_remember_me_on_sign_out = true
150
+
151
+ # If true, extends the user's remember period when remembered via cookie.
152
+ # config.extend_remember_period = false
153
+
154
+ # Options to be passed to the created cookie. For instance, you can set
155
+ # secure: true in order to force SSL only cookies.
156
+ # config.rememberable_options = {}
157
+
158
+ # ==> Configuration for :validatable
159
+ # Range for password length.
160
+ config.password_length = 6..128
161
+
162
+ # Email regex used to validate email formats. It simply asserts that
163
+ # one (and only one) @ exists in the given string. This is mainly
164
+ # to give user feedback and not to assert the e-mail validity.
165
+ config.email_regexp = /\A[^@\s]+@[^@\s]+\z/
166
+
167
+ # ==> Configuration for :timeoutable
168
+ # The time you want to timeout the user session without activity. After this
169
+ # time the user will be asked for credentials again. Default is 30 minutes.
170
+ # config.timeout_in = 30.minutes
171
+
172
+ # ==> Configuration for :lockable
173
+ # Defines which strategy will be used to lock an account.
174
+ # :failed_attempts = Locks an account after a number of failed attempts to sign in.
175
+ # :none = No lock strategy. You should handle locking by yourself.
176
+ # config.lock_strategy = :failed_attempts
177
+
178
+ # Defines which key will be used when locking and unlocking an account
179
+ # config.unlock_keys = [:email]
180
+
181
+ # Defines which strategy will be used to unlock an account.
182
+ # :email = Sends an unlock link to the user email
183
+ # :time = Re-enables login after a certain amount of time (see :unlock_in below)
184
+ # :both = Enables both strategies
185
+ # :none = No unlock strategy. You should handle unlocking by yourself.
186
+ # config.unlock_strategy = :both
187
+
188
+ # Number of authentication tries before locking an account if lock_strategy
189
+ # is failed attempts.
190
+ # config.maximum_attempts = 20
191
+
192
+ # Time interval to unlock the account if :time is enabled as unlock_strategy.
193
+ # config.unlock_in = 1.hour
194
+
195
+ # Warn on the last attempt before the account is locked.
196
+ # config.last_attempt_warning = true
197
+
198
+ # ==> Configuration for :recoverable
199
+ #
200
+ # Defines which key will be used when recovering the password for an account
201
+ # config.reset_password_keys = [:email]
202
+
203
+ # Time interval you can reset your password with a reset password key.
204
+ # Don't put a too small interval or your users won't have the time to
205
+ # change their passwords.
206
+ config.reset_password_within = 6.hours
207
+
208
+ # When set to false, does not sign a user in automatically after their password is
209
+ # reset. Defaults to true, so a user is signed in automatically after a reset.
210
+ # config.sign_in_after_reset_password = true
211
+
212
+ # ==> Configuration for :encryptable
213
+ # Allow you to use another hashing or encryption algorithm besides bcrypt (default).
214
+ # You can use :sha1, :sha512 or algorithms from others authentication tools as
215
+ # :clearance_sha1, :authlogic_sha512 (then you should set stretches above to 20
216
+ # for default behavior) and :restful_authentication_sha1 (then you should set
217
+ # stretches to 10, and copy REST_AUTH_SITE_KEY to pepper).
218
+ #
219
+ # Require the `devise-encryptable` gem when using anything other than bcrypt
220
+ # config.encryptor = :sha512
221
+
222
+ # ==> Scopes configuration
223
+ # Turn scoped views on. Before rendering "sessions/new", it will first check for
224
+ # "users/sessions/new". It's turned off by default because it's slower if you
225
+ # are using only default views.
226
+ # config.scoped_views = false
227
+
228
+ # Configure the default scope given to Warden. By default it's the first
229
+ # devise role declared in your routes (usually :user).
230
+ # config.default_scope = :user
231
+
232
+ # Set this configuration to false if you want /users/sign_out to sign out
233
+ # only the current scope. By default, Devise signs out all scopes.
234
+ # config.sign_out_all_scopes = true
235
+
236
+ # ==> Navigation configuration
237
+ # Lists the formats that should be treated as navigational. Formats like
238
+ # :html, should redirect to the sign in page when the user does not have
239
+ # access, but formats like :xml or :json, should return 401.
240
+ #
241
+ # If you have any extra navigational formats, like :iphone or :mobile, you
242
+ # should add them to the navigational formats lists.
243
+ #
244
+ # The "*/*" below is required to match Internet Explorer requests.
245
+ # config.navigational_formats = ['*/*', :html]
246
+
247
+ # The default HTTP method used to sign out a resource. Default is :delete.
248
+ config.sign_out_via = :delete
249
+
250
+ # ==> OmniAuth
251
+ # Add a new OmniAuth provider. Check the wiki for more information on setting
252
+ # up on your models and hooks.
253
+ # config.omniauth :github, 'APP_ID', 'APP_SECRET', scope: 'user,public_repo'
254
+
255
+ # ==> Warden configuration
256
+ # If you want to use other strategies, that are not supported by Devise, or
257
+ # change the failure app, you can configure them inside the config.warden block.
258
+ #
259
+ # config.warden do |manager|
260
+ # manager.intercept_401 = false
261
+ # manager.default_strategies(scope: :user).unshift :some_external_strategy
262
+ # end
263
+
264
+ # ==> Mountable engine configurations
265
+ # When using Devise inside an engine, let's call it `MyEngine`, and this engine
266
+ # is mountable, there are some extra configurations to be taken into account.
267
+ # The following options are available, assuming the engine is mounted as:
268
+ #
269
+ # mount MyEngine, at: '/my_engine'
270
+ #
271
+ # The router that invoked `devise_for`, in the example above, would be:
272
+ # config.router_name = :my_engine
273
+ #
274
+ # When using OmniAuth, Devise cannot automatically set OmniAuth path,
275
+ # so you need to do it manually. For the users scope, it would be:
276
+ # config.omniauth_path_prefix = '/my_engine/users/auth'
277
+ end
@@ -1,8 +1 @@
1
1
  Rails.application.config.stripe.publishable_key = ENV['STRIPE_PUBLISHIBLE_KEY']
2
-
3
- class ActionController::Base
4
- # monkey patch bug with Stripe calling respond_to and Rails5 no longer has this.
5
- def self.respond_to(format)
6
- # do nothing
7
- end
8
- end
@@ -0,0 +1,64 @@
1
+ # Additional translations at https://github.com/plataformatec/devise/wiki/I18n
2
+
3
+ en:
4
+ devise:
5
+ confirmations:
6
+ confirmed: "Your email address has been successfully confirmed."
7
+ send_instructions: "You will receive an email with instructions for how to confirm your email address in a few minutes."
8
+ send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions for how to confirm your email address in a few minutes."
9
+ failure:
10
+ already_authenticated: "You are already signed in."
11
+ inactive: "Your account is not activated yet."
12
+ invalid: "Invalid %{authentication_keys} or password."
13
+ locked: "Your account is locked."
14
+ last_attempt: "You have one more attempt before your account is locked."
15
+ not_found_in_database: "Invalid %{authentication_keys} or password."
16
+ timeout: "Your session expired. Please sign in again to continue."
17
+ unauthenticated: "You need to sign in or sign up before continuing."
18
+ unconfirmed: "You have to confirm your email address before continuing."
19
+ mailer:
20
+ confirmation_instructions:
21
+ subject: "Confirmation instructions"
22
+ reset_password_instructions:
23
+ subject: "Reset password instructions"
24
+ unlock_instructions:
25
+ subject: "Unlock instructions"
26
+ email_changed:
27
+ subject: "Email Changed"
28
+ password_change:
29
+ subject: "Password Changed"
30
+ omniauth_callbacks:
31
+ failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
32
+ success: "Successfully authenticated from %{kind} account."
33
+ passwords:
34
+ no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
35
+ send_instructions: "You will receive an email with instructions on how to reset your password in a few minutes."
36
+ send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes."
37
+ updated: "Your password has been changed successfully. You are now signed in."
38
+ updated_not_active: "Your password has been changed successfully."
39
+ registrations:
40
+ destroyed: "Bye! Your account has been successfully cancelled. We hope to see you again soon."
41
+ signed_up: "Welcome! You have signed up successfully."
42
+ signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated."
43
+ signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked."
44
+ signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please follow the link to activate your account."
45
+ update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and follow the confirm link to confirm your new email address."
46
+ updated: "Your account has been updated successfully."
47
+ sessions:
48
+ signed_in: "Signed in successfully."
49
+ signed_out: "Signed out successfully."
50
+ already_signed_out: "Signed out successfully."
51
+ unlocks:
52
+ send_instructions: "You will receive an email with instructions for how to unlock your account in a few minutes."
53
+ send_paranoid_instructions: "If your account exists, you will receive an email with instructions for how to unlock it in a few minutes."
54
+ unlocked: "Your account has been unlocked successfully. Please sign in to continue."
55
+ errors:
56
+ messages:
57
+ already_confirmed: "was already confirmed, please try signing in"
58
+ confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one"
59
+ expired: "has expired, please request a new one"
60
+ not_found: "not found"
61
+ not_locked: "was not locked"
62
+ not_saved:
63
+ one: "1 error prohibited this %{resource} from being saved:"
64
+ other: "%{count} errors prohibited this %{resource} from being saved:"
@@ -1,8 +1,10 @@
1
1
  require 'sidekiq/web'
2
2
 
3
3
  Rails.application.routes.draw do
4
+ devise_for :users
4
5
  mount Sidekiq::Web => '/sidekiq'
5
6
  mount MVP::Engine => "/"
7
+ mount Admin::Engine => '/houston' # avoid /admin, lots of script kiddies target this
6
8
 
7
9
  scope path: '/examples' do
8
10
  get 'mustache', to: 'examples#mustache', as: :mustache_example
@@ -0,0 +1,5 @@
1
+ class AddUuidPkByDefault < ActiveRecord::Migration[5.0]
2
+ def change
3
+ enable_extension 'uuid-ossp'
4
+ end
5
+ end
@@ -0,0 +1,9 @@
1
+ class CreateConversions < ActiveRecord::Migration[5.0]
2
+ def change
3
+ create_table :conversions, id: :uuid do |t|
4
+ t.string :email
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,42 @@
1
+ class DeviseCreateUsers < ActiveRecord::Migration[5.0]
2
+ def change
3
+ create_table :users, id: :uuid do |t|
4
+ ## Database authenticatable
5
+ t.string :email, null: false, default: ""
6
+ t.string :encrypted_password, null: false, default: ""
7
+
8
+ ## Recoverable
9
+ t.string :reset_password_token
10
+ t.datetime :reset_password_sent_at
11
+
12
+ ## Rememberable
13
+ t.datetime :remember_created_at
14
+
15
+ ## Trackable
16
+ t.integer :sign_in_count, default: 0, null: false
17
+ t.datetime :current_sign_in_at
18
+ t.datetime :last_sign_in_at
19
+ t.inet :current_sign_in_ip
20
+ t.inet :last_sign_in_ip
21
+
22
+ ## Confirmable
23
+ # t.string :confirmation_token
24
+ # t.datetime :confirmed_at
25
+ # t.datetime :confirmation_sent_at
26
+ # t.string :unconfirmed_email # Only if using reconfirmable
27
+
28
+ ## Lockable
29
+ # t.integer :failed_attempts, default: 0, null: false # Only if lock strategy is :failed_attempts
30
+ # t.string :unlock_token # Only if unlock strategy is :email or :both
31
+ # t.datetime :locked_at
32
+
33
+
34
+ t.timestamps null: false
35
+ end
36
+
37
+ add_index :users, :email, unique: true
38
+ add_index :users, :reset_password_token, unique: true
39
+ # add_index :users, :confirmation_token, unique: true
40
+ # add_index :users, :unlock_token, unique: true
41
+ end
42
+ end
data/project/db/schema.rb CHANGED
@@ -1,4 +1,3 @@
1
- # encoding: UTF-8
2
1
  # This file is auto-generated from the current state of the database. Instead
3
2
  # of editing this file, please use the migrations feature of Active Record to
4
3
  # incrementally modify your database, and then regenerate this schema definition.
@@ -11,15 +10,33 @@
11
10
  #
12
11
  # It's strongly recommended that you check this file into your version control system.
13
12
 
14
- ActiveRecord::Schema.define(version: 20160728235100) do
13
+ ActiveRecord::Schema.define(version: 20170415225327) do
15
14
 
16
15
  # These are extensions that must be enabled in order to support this database
17
16
  enable_extension "plpgsql"
17
+ enable_extension "uuid-ossp"
18
18
 
19
- create_table "conversions", force: :cascade do |t|
19
+ create_table "conversions", id: :uuid, default: -> { "uuid_generate_v4()" }, force: :cascade do |t|
20
20
  t.string "email"
21
21
  t.datetime "created_at", null: false
22
22
  t.datetime "updated_at", null: false
23
23
  end
24
24
 
25
+ create_table "users", force: :cascade do |t|
26
+ t.string "email", default: "", null: false
27
+ t.string "encrypted_password", default: "", null: false
28
+ t.string "reset_password_token"
29
+ t.datetime "reset_password_sent_at"
30
+ t.datetime "remember_created_at"
31
+ t.integer "sign_in_count", default: 0, null: false
32
+ t.datetime "current_sign_in_at"
33
+ t.datetime "last_sign_in_at"
34
+ t.inet "current_sign_in_ip"
35
+ t.inet "last_sign_in_ip"
36
+ t.datetime "created_at", null: false
37
+ t.datetime "updated_at", null: false
38
+ t.index ["email"], name: "index_users_on_email", unique: true, using: :btree
39
+ t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree
40
+ end
41
+
25
42
  end
data/project/package.json CHANGED
@@ -6,7 +6,9 @@
6
6
  "directories": {
7
7
  "test": "test"
8
8
  },
9
- "scripts": {},
9
+ "scripts": {
10
+ "postinstall": "webpack --config ./webpack.config.js --progress --colors"
11
+ },
10
12
  "repository": {
11
13
  "type": "git",
12
14
  "url": "git+https://github.com/superlabs/mvpkit.git"
@@ -14,21 +16,19 @@
14
16
  "author": "",
15
17
  "license": "ISC",
16
18
  "dependencies": {
17
- "bootstrap": "^4.0.0-alpha.6",
18
- "mvpkit": "https://github.com/superlabs/mvpkit",
19
- "selectize": "^0.12.4"
20
- },
21
- "devDependencies": {
22
19
  "babel-core": "^6.24.0",
23
20
  "babel-loader": "^6.4.1",
24
21
  "babel-polyfill": "^6.23.0",
25
22
  "babel-preset-es2015": "^6.24.0",
26
- "bootstrap": "^4.0.0-alpha.5",
23
+ "bootstrap": "^4.0.0-alpha.6",
27
24
  "css-loader": "^0.27.3",
28
25
  "extract-text-webpack-plugin": "^2.1.0",
26
+ "js-cookie": "^2.1.4",
27
+ "mvpkit": "https://github.com/superlabs/mvpkit",
29
28
  "node-sass": "^4.5.1",
30
29
  "postcss-loader": "^1.3.3",
31
30
  "sass-loader": "^6.0.3",
31
+ "selectize": "^0.12.4",
32
32
  "style-loader": "^0.16.0",
33
33
  "webpack": "^2.3.2"
34
34
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mvpkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Hunter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-27 00:00:00.000000000 Z
11
+ date: 2017-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: carrierwave
@@ -363,20 +363,71 @@ files:
363
363
  - project/.gitignore
364
364
  - project/.iteration
365
365
  - project/Gemfile
366
+ - project/Gemfile.lock
366
367
  - project/Procfile
367
368
  - project/README.md
368
369
  - project/Rakefile
369
370
  - project/app/assets/config/manifest.js
370
371
  - project/app/assets/javascripts/application.js
372
+ - project/app/assets/javascripts/cable.js
373
+ - project/app/assets/javascripts/pack-compiled.js
374
+ - project/app/assets/javascripts/pack-compiled.js.map
371
375
  - project/app/assets/javascripts/templates.js.erb
372
376
  - project/app/assets/stylesheets/application.scss
377
+ - project/app/assets/stylesheets/pack-compiled.css
378
+ - project/app/assets/stylesheets/pack-compiled.css.map
373
379
  - project/app/controllers/application_controller.rb
374
380
  - project/app/controllers/conversions_controller.rb
375
381
  - project/app/controllers/examples_controller.rb
376
382
  - project/app/controllers/home_controller.rb
383
+ - project/app/engines/admin/.gitignore
384
+ - project/app/engines/admin/Gemfile
385
+ - project/app/engines/admin/Gemfile.lock
386
+ - project/app/engines/admin/MIT-LICENSE
387
+ - project/app/engines/admin/README.md
388
+ - project/app/engines/admin/Rakefile
389
+ - project/app/engines/admin/admin.gemspec
390
+ - project/app/engines/admin/app/assets/config/admin_manifest.js
391
+ - project/app/engines/admin/app/assets/images/admin/.keep
392
+ - project/app/engines/admin/app/assets/javascripts/admin/application.js
393
+ - project/app/engines/admin/app/assets/stylesheets/admin/application.css
394
+ - project/app/engines/admin/app/controllers/admin/application_controller.rb
395
+ - project/app/engines/admin/app/controllers/admin/conversions_controller.rb
396
+ - project/app/engines/admin/app/controllers/admin/users_controller.rb
397
+ - project/app/engines/admin/app/helpers/admin/application_helper.rb
398
+ - project/app/engines/admin/app/helpers/admin/conversions_helper.rb
399
+ - project/app/engines/admin/app/helpers/admin/users_helper.rb
400
+ - project/app/engines/admin/app/jobs/admin/application_job.rb
401
+ - project/app/engines/admin/app/mailers/admin/application_mailer.rb
402
+ - project/app/engines/admin/app/models/admin/application_record.rb
403
+ - project/app/engines/admin/app/views/admin/conversions/_form.html.erb
404
+ - project/app/engines/admin/app/views/admin/conversions/edit.html.erb
405
+ - project/app/engines/admin/app/views/admin/conversions/index.html.erb
406
+ - project/app/engines/admin/app/views/admin/conversions/new.html.erb
407
+ - project/app/engines/admin/app/views/admin/conversions/show.html.erb
408
+ - project/app/engines/admin/app/views/admin/users/_form.html.erb
409
+ - project/app/engines/admin/app/views/admin/users/edit.html.erb
410
+ - project/app/engines/admin/app/views/admin/users/index.html.erb
411
+ - project/app/engines/admin/app/views/admin/users/new.html.erb
412
+ - project/app/engines/admin/app/views/admin/users/show.html.erb
413
+ - project/app/engines/admin/app/views/layouts/admin/_header.html.erb
414
+ - project/app/engines/admin/app/views/layouts/admin/application.html.erb
415
+ - project/app/engines/admin/bin/rails
416
+ - project/app/engines/admin/config/routes.rb
417
+ - project/app/engines/admin/lib/admin.rb
418
+ - project/app/engines/admin/lib/admin/engine.rb
419
+ - project/app/engines/admin/lib/admin/version.rb
420
+ - project/app/engines/admin/lib/tasks/admin_tasks.rake
421
+ - project/app/engines/admin/test/admin_test.rb
422
+ - project/app/engines/admin/test/controllers/admin/conversions_controller_test.rb
423
+ - project/app/engines/admin/test/controllers/admin/users_controller_test.rb
424
+ - project/app/engines/admin/test/integration/navigation_test.rb
425
+ - project/app/engines/admin/test/test_helper.rb
377
426
  - project/app/helpers/application_helper.rb
378
427
  - project/app/mailers/application_mailer.rb
428
+ - project/app/models/application_record.rb
379
429
  - project/app/models/conversion.rb
430
+ - project/app/models/user.rb
380
431
  - project/app/templates/README.txt
381
432
  - project/app/templates/examples/template.mustache
382
433
  - project/app/views/examples/index.html.erb
@@ -389,9 +440,14 @@ files:
389
440
  - project/app/views/layouts/application.html.erb
390
441
  - project/app/views/layouts/mailer.html.erb
391
442
  - project/app/views/layouts/mailer.text.erb
443
+ - project/app/views/static/internal_server_error.html.erb
444
+ - project/app/views/static/not_found.html.erb
392
445
  - project/app/webpack/javascripts/behaviors/example.js
393
446
  - project/app/webpack/javascripts/controllers/home.js
447
+ - project/app/webpack/javascripts/lib/analytics.js
394
448
  - project/app/webpack/javascripts/lib/clientsidevalidations.js
449
+ - project/app/webpack/javascripts/lib/controllers.js
450
+ - project/app/webpack/javascripts/lib/forms.js
395
451
  - project/app/webpack/javascripts/lib/selectize.js
396
452
  - project/app/webpack/javascripts/pack.js
397
453
  - project/app/webpack/stylesheets/config/variables.scss
@@ -431,18 +487,19 @@ files:
431
487
  - project/config/initializers/client_side_validations.rb
432
488
  - project/config/initializers/cookies_serializer.rb
433
489
  - project/config/initializers/date_formats.rb
490
+ - project/config/initializers/devise.rb
434
491
  - project/config/initializers/filter_parameter_logging.rb
435
492
  - project/config/initializers/fingerprint.rb
436
493
  - project/config/initializers/geocoder.rb
437
494
  - project/config/initializers/inflections.rb
438
495
  - project/config/initializers/mime_types.rb
439
496
  - project/config/initializers/new_framework_defaults.rb
440
- - project/config/initializers/rails_admin.rb
441
497
  - project/config/initializers/session_store.rb
442
498
  - project/config/initializers/sidekiq.rb
443
499
  - project/config/initializers/simple_form.rb
444
500
  - project/config/initializers/stripe.rb
445
501
  - project/config/initializers/wrap_parameters.rb
502
+ - project/config/locales/devise.en.yml
446
503
  - project/config/locales/en.yml
447
504
  - project/config/locales/simple_form.en.yml
448
505
  - project/config/puma.rb
@@ -453,7 +510,9 @@ files:
453
510
  - project/config/spring.rb
454
511
  - project/config/stripe/coupons.rb
455
512
  - project/config/stripe/plans.rb
456
- - project/db/migrate/20160728235100_create_conversions.rb
513
+ - project/db/migrate/2017000000000_add_uuid_pk_by_default.rb
514
+ - project/db/migrate/20170415224839_create_conversions.rb
515
+ - project/db/migrate/20170415225327_devise_create_users.rb
457
516
  - project/db/schema.rb
458
517
  - project/db/seeds.rb
459
518
  - project/lib/assets/.keep
@@ -487,7 +546,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
487
546
  version: '0'
488
547
  requirements: []
489
548
  rubyforge_project:
490
- rubygems_version: 2.5.1
549
+ rubygems_version: 2.6.11
491
550
  signing_key:
492
551
  specification_version: 4
493
552
  summary: The start-to-finish 3 minute product platform