localtower 2.0.0 → 2.0.1
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 +4 -4
- data/README.md +30 -18
- data/{public/javascripts → app/assets/javascripts/localtower}/application.js.map +1 -1
- data/app/views/layouts/localtower/application.html.erb +2 -2
- data/lib/localtower/engine.rb +4 -0
- data/lib/localtower/version.rb +1 -1
- data/spec/dummy/Gemfile.lock +75 -71
- data/spec/dummy/db/schema.rb +2 -23
- data/spec/dummy/log/development.log +1726 -0
- data/spec/dummy/log/localtower.log +174 -0
- data/spec/dummy/log/test.log +429 -0
- metadata +6 -14
- data/spec/dummy/app/models/user.rb +0 -2
- data/spec/dummy/db/migrate/20241118233214_create_users.rb +0 -9
- data/spec/dummy/db/migrate/20241118233233_add_column_titme_for_user.rb +0 -6
- data/spec/dummy/tmp/pids/server.pid +0 -1
- /data/{public/javascripts → app/assets/javascripts/localtower}/application.js +0 -0
- /data/{public/stylesheets → app/assets/stylesheets/localtower}/application.css +0 -0
- /data/app/assets/stylesheets/{application.css → src/application.css} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd3ff9f10242f64a0f36e8d73592bef75040acd230395290234a92334072098a
|
4
|
+
data.tar.gz: a105385c40e1e640751a1547c45fb6e06070992d061efbea8f4d570632cd14b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46963d7e5e65127f9e374f1b2d3f7311b5d1bca07b75d4036db746232c8d14da1a25daef877ee58e74e157bd1b35960c76c7ee921721aebf80eadf3785666b9a
|
7
|
+
data.tar.gz: 3789b9562e8b06f2e040d404ea0a5f6e7a002ba08e1b42a19fd07c85dee65e07911c229120b57a0f9492f1ec6a6aa523dd98600a397f52760c2b0200185ce56d
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
## Introduction
|
8
8
|
|
9
|
-

|
10
10
|
|
11
11
|
**- What is Localtower?**
|
12
12
|
|
@@ -39,15 +39,15 @@ Localtower doesn't implement all the Rails Migrations API. I focused on the most
|
|
39
39
|
|
40
40
|
### Create a model
|
41
41
|
|
42
|
-

|
43
43
|
|
44
44
|
### Create a migration
|
45
45
|
|
46
|
-

|
47
47
|
|
48
48
|
### See the Migrations (and migrate)
|
49
49
|
|
50
|
-

|
51
51
|
|
52
52
|
## Installation
|
53
53
|
|
@@ -62,14 +62,9 @@ Compatibility:
|
|
62
62
|
Add to your `Gemfile` file:
|
63
63
|
|
64
64
|
```ruby
|
65
|
-
# In your current group 'development':
|
66
65
|
group :development do
|
67
|
-
|
68
|
-
gem 'localtower'
|
66
|
+
gem 'localtower', '~> 2.0'
|
69
67
|
end
|
70
|
-
|
71
|
-
# Or as a one liner:
|
72
|
-
gem 'localtower', group: :development
|
73
68
|
```
|
74
69
|
|
75
70
|
Run command in your terminal:
|
@@ -113,33 +108,50 @@ If you know how to override this configuration in the gem instead of doing it in
|
|
113
108
|
|
114
109
|
To access the UI, run your local rails server and open your browser at [http://localhost:3000/localtower](http://localhost:3000/localtower).
|
115
110
|
|
116
|
-
## Full
|
111
|
+
## Full scenario
|
117
112
|
|
118
113
|
### Create a model
|
119
114
|
|
120
|
-

|
121
116
|
|
122
117
|
It will create a migration file:
|
123
118
|
|
124
|
-

|
125
120
|
|
126
121
|
### Create a migration
|
127
122
|
|
128
|
-

|
129
124
|
|
130
125
|
It will generate a migration file:
|
131
126
|
|
132
|
-

|
133
128
|
|
134
129
|
### Create another model
|
135
130
|
|
136
131
|
Now, we add a `Book` model:
|
137
132
|
|
138
|
-

|
139
134
|
|
140
135
|
### All the migrations generated
|
141
136
|
|
142
|
-

|
138
|
+
|
139
|
+
### Files generated
|
140
|
+
|
141
|
+
Every action made from the UI will generate native Rails migration files.
|
142
|
+
Exactly like the `rails generate` command.
|
143
|
+
But instead of generating files in the console, they are generated in the `db/migrate` folder.
|
144
|
+
|
145
|
+
- The models:
|
146
|
+

|
147
|
+

|
148
|
+
|
149
|
+
- The migration files:
|
150
|
+

|
151
|
+

|
152
|
+
|
153
|
+
- The final schema:
|
154
|
+

|
143
155
|
|
144
156
|
|
145
157
|
## Upgrading
|
@@ -189,7 +201,7 @@ bundle exec rspec spec/
|
|
189
201
|
|
190
202
|
Only for official contributors.
|
191
203
|
|
192
|
-
git tag
|
204
|
+
git tag vX.X.X # change by last version
|
193
205
|
git push --tags
|
194
206
|
rm *.gem
|
195
207
|
gem build localtower.gemspec
|