localtower 0.1.6 → 0.1.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 637dbbe42bd8f65af574ef7aacba42fd05c8e656
4
- data.tar.gz: 87b37967db9f201cafe56d5ec4263f642280fb62
3
+ metadata.gz: 5f998e6e6a73708425db8efea41a2dd1693a8b11
4
+ data.tar.gz: f07cdd274b9ba4d12e1de6e9818d1c9c369cf15e
5
5
  SHA512:
6
- metadata.gz: 6b8c92dbbf31ca81efdaec1c003628cb23fd17b1004e28adb61989d2a88fce88b84f4ce510f05ce0c70173b2c433c3b6b5e35a754052e873f966771d5e35ad7a
7
- data.tar.gz: b33d71126afdd200279f1f6c2d51c1f0d6535227625ec91d784363ec05f279f88d470d1c2cb460186dd520b381f4fab983c476ebf2d12d029e92157132930f46
6
+ metadata.gz: 7cb6d243f49d3d8176d4e944f990c09638b1a24304d3c483e476c069bc2185d431bdef9dd79309ea5a99fc056e7ef3ab4fd9225bad9fecf313fb6e0d2e163759
7
+ data.tar.gz: 236bdf5ba3972e6f6ecb2b7501e56dce7499d997d2573cfcc9311e3c5ef3ddf3600055a6342313ea6d103949f6bdff4b339c2c2a9984b730d7213c5636141daf
data/README.md CHANGED
@@ -1,16 +1,16 @@
1
1
  # Localtower
2
2
 
3
3
  ### See the schema
4
- ![Schema](https://raw.githubusercontent.com/damln/localtower/master/public/1_schema.png)
4
+ ![Schema](https://raw.githubusercontent.com/damln/localtower/master/public/screenshots/v0.1.6/1_schema.png)
5
5
 
6
6
  ### Create a model
7
- ![Models](https://raw.githubusercontent.com/damln/localtower/master/public/2_models_1.png)
7
+ ![Models](https://raw.githubusercontent.com/damln/localtower/master/public/screenshots/v0.1.6/2_models_1.png)
8
8
 
9
9
  ### Create a many to many relation
10
- ![Relations](https://raw.githubusercontent.com/damln/localtower/master/public/3_relations.png)
10
+ ![Relations](https://raw.githubusercontent.com/damln/localtower/master/public/screenshots/v0.1.6/3_relations.png)
11
11
 
12
12
  ### Create a migration
13
- ![Migrations](https://raw.githubusercontent.com/damln/localtower/master/public/4_migrations.png)
13
+ ![Migrations](https://raw.githubusercontent.com/damln/localtower/master/public/screenshots/v0.1.6/4_migrations.png)
14
14
 
15
15
 
16
16
  ## INSTALL
@@ -1,5 +1,10 @@
1
1
  module Localtower
2
2
  class ApplicationController < ActionController::Base
3
3
  protect_from_forgery with: :null_session
4
+ before_action :check_environment
5
+
6
+ def check_environment
7
+ raise if Rails.env.production?
8
+ end
4
9
  end
5
10
  end
@@ -88,7 +88,7 @@
88
88
  <br>
89
89
  <br>
90
90
  <br>
91
- <p>
91
+ <p class="full-message-migrate" style="display: none;">
92
92
  If you're seeing an error message on the next page (pending migrations), just run in your terminal:
93
93
  <br>
94
94
  <br>
@@ -1,3 +1,3 @@
1
1
  module Localtower
2
- VERSION = '0.1.6'.freeze
2
+ VERSION = '0.1.7'.freeze
3
3
  end
data/public/js/app.js CHANGED
@@ -19,7 +19,13 @@ MainApp = {
19
19
  });
20
20
 
21
21
  MainApp.whenActionOnElement("click", "submit", function(e) {
22
+ var current = $(e.currentTarget);
22
23
  $(".full-message").show();
24
+
25
+ if (current.val() === "false") {
26
+ $(".full-message-migrate").show();
27
+ }
28
+
23
29
  });
24
30
 
25
31
  MainApp.whenActionOnElement("change", "action", function(e) {
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/damln/Work/localtower/localtower
3
3
  specs:
4
- localtower (0.1.6)
4
+ localtower (0.1.7)
5
5
  active_link_to
6
6
  pg
7
7
  rails (>= 4.2.0)