active_admin-state_machine 1.0.0.pre2 → 1.0.0.pre3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +43 -0
- data/lib/active_admin/state_machine/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e923f1f5d9d87137069a1b764fc0442f561f72453b55016e27046c633078109
|
4
|
+
data.tar.gz: 94216ca96a068f658a4df471016279cdd412aaa47c9e4d9f58a678917d25d0ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d29fb1b785f943bea64b107d3e05edf305970e6a8cdd5c2b229a8d7e2d961926da8d87d5287beae9f28bb8026e6b0ab6cd198bd27cddc21fa10423274c6238ae
|
7
|
+
data.tar.gz: b50c14a4968d6ddaf4d08ed33d83bc5af509583897548f6abd660704e97193f88fda8ba81649f547a3f59b2aebe600d37cf8b8eca3afb6bb8eed7b8bcde9f867
|
data/README.md
CHANGED
@@ -139,3 +139,46 @@ class Post < ActiveRecord::Base
|
|
139
139
|
end
|
140
140
|
end
|
141
141
|
```
|
142
|
+
|
143
|
+
## Development
|
144
|
+
Included is a dummy rails 6 application that includes some basic ability management, a few models and the ActiveAdmin UI.
|
145
|
+
|
146
|
+
This is used in the test suite for integration testing, but is also usable if you're interested in using yourself.
|
147
|
+
|
148
|
+
### Setup
|
149
|
+
First fork the repo and clone to your machine for development.
|
150
|
+
|
151
|
+
Then setup the rails app for development.
|
152
|
+
|
153
|
+
```
|
154
|
+
$> bundle install
|
155
|
+
$> rails db:setup
|
156
|
+
```
|
157
|
+
|
158
|
+
This will run the `seeds.rb` file from the dummy application, creating 2 users that can be used to login to the development server.
|
159
|
+
|
160
|
+
- `admin@example.com`
|
161
|
+
- `super@example.com`
|
162
|
+
|
163
|
+
The password is `password` for both, and abilitys are defined in `cancancan` for the dummy site.
|
164
|
+
|
165
|
+
### Starting Server
|
166
|
+
To start the development rails server
|
167
|
+
|
168
|
+
```
|
169
|
+
$> bundle install
|
170
|
+
$> bin/rails s
|
171
|
+
$> open http://localhost:3000/admin
|
172
|
+
```
|
173
|
+
|
174
|
+
Login with the credentials from `seeds.rb` mentioned above.
|
175
|
+
|
176
|
+
### Test Suite
|
177
|
+
The test suite can be run via rspec.
|
178
|
+
|
179
|
+
```
|
180
|
+
$> bundle exec rspec spec
|
181
|
+
```
|
182
|
+
|
183
|
+
### Contributing
|
184
|
+
Please ensure that any pull requests pass the test suite locally before submitting a PR.
|