marauders_map 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +2 -11
- data/lib/marauders_map/version.rb +1 -1
- data/marauders_map.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e08883daf7f744d5ae3d4f87aa4cbfd1cb797c11e25bec9c0536d8d67174c710
|
4
|
+
data.tar.gz: af2138703a1e164e6d4e9494f07ccd6fda1575d101d055492454769a183050fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3582302f7558acfc53c1fd5a931c09a0510a315984d68b82ac5c91dfd2845d9099463567ffec4b3f2f07257361931cba57ce56fd7c8ab4ddb24df999018c410
|
7
|
+
data.tar.gz: fc455f72848cb0fc28d3f92a27003fdf44ba3c56de79bab44996c241ed77cbecd09647fe7373ebe77cb110cc732107762c7ef15ee2fadae360b79d7d28f3509f
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -23,22 +23,13 @@ Or install it yourself as:
|
|
23
23
|
|
24
24
|
## Usage
|
25
25
|
|
26
|
-
#### Create an initializer, `config/initializers/marauders_map.rb`, with the following code:
|
27
|
-
|
28
|
-
``` ruby
|
29
|
-
MaraudersMap.pledge("I solemnly swear that I am up to no good.")
|
30
|
-
```
|
31
|
-
|
32
|
-
Failure to recite this pledge, _verbatim_, will render Marauder's Map inoperable. Note that it is *not* necessary to declare 'Mischief managed' upon application shutdown.
|
33
|
-
|
34
|
-
|
35
26
|
#### Update `config/routes.rb` to include this:
|
36
27
|
|
37
28
|
``` ruby
|
38
29
|
MaraudersMap.reveal_routes!
|
39
30
|
```
|
40
31
|
|
41
|
-
|
32
|
+
Put this _after_ any routes that haven't been relocated. Preferably at the end of the file.
|
42
33
|
|
43
34
|
#### Define your routes in the same place you manage your domains. For example, in `app/domains/sorting_hat/routes.rb`:
|
44
35
|
|
@@ -53,7 +44,7 @@ MaraudersMap.draw(:sorting_hat) do
|
|
53
44
|
end
|
54
45
|
```
|
55
46
|
|
56
|
-
The routing DSL is exactly the same as the one you use in your traditional routes files.
|
47
|
+
The routing DSL is exactly the same as the one you use in your traditional routes files. The only difference is you wrap them in a `MaraudersMap.draw(:domain)` block.
|
57
48
|
|
58
49
|
|
59
50
|
## TODO:
|
data/marauders_map.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
25
25
|
spec.require_paths = ['lib']
|
26
26
|
|
27
|
-
spec.add_runtime_dependency 'activesupport', '>= 5.
|
27
|
+
spec.add_runtime_dependency 'activesupport', '>= 5.0', '<= 6.0.0.rc1'
|
28
28
|
|
29
29
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
30
30
|
spec.add_development_dependency 'minitest', '~> 5.0'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: marauders_map
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lee Machin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '5.
|
19
|
+
version: '5.0'
|
20
20
|
- - "<="
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 6.0.0.rc1
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '5.
|
29
|
+
version: '5.0'
|
30
30
|
- - "<="
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 6.0.0.rc1
|