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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b5350a422c83ead48c283c856ddb180f115e3e052025bb44b8e61e1f42d561e
4
- data.tar.gz: c236874489a968a9d56382f15ad18c0decb43d87d025001f1121a5882bc4ec56
3
+ metadata.gz: e08883daf7f744d5ae3d4f87aa4cbfd1cb797c11e25bec9c0536d8d67174c710
4
+ data.tar.gz: af2138703a1e164e6d4e9494f07ccd6fda1575d101d055492454769a183050fb
5
5
  SHA512:
6
- metadata.gz: f43d008a89c95c1dd2a192d12c4424dcc1b07de92e3492897c5cecf97bbffe13c0f10fd556f1d66fd18997378e9cd71bc2f65c44fe91725cdc007cc1dc986060
7
- data.tar.gz: ffc585b713625a02da930c3a8710a34efbc4b298eb6c58597e324dd1225fdc9eb59046caf5f758ce39aa4f22f6f174579a9ad275c53b3e5e54675c8142a35495
6
+ metadata.gz: f3582302f7558acfc53c1fd5a931c09a0510a315984d68b82ac5c91dfd2845d9099463567ffec4b3f2f07257361931cba57ce56fd7c8ab4ddb24df999018c410
7
+ data.tar.gz: fc455f72848cb0fc28d3f92a27003fdf44ba3c56de79bab44996c241ed77cbecd09647fe7373ebe77cb110cc732107762c7ef15ee2fadae360b79d7d28f3509f
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- marauders_map (0.1.1)
5
- activesupport (>= 5.1, <= 6.0.0.rc1)
4
+ marauders_map (0.1.2)
5
+ activesupport (>= 5.0, <= 6.0.0.rc1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
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
- This will throw an exception if the pledge has not been recited, and your routes will not be revealed.
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:
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MaraudersMap
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
@@ -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.1', '<= 6.0.0.rc1'
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.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-07 00:00:00.000000000 Z
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.1'
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.1'
29
+ version: '5.0'
30
30
  - - "<="
31
31
  - !ruby/object:Gem::Version
32
32
  version: 6.0.0.rc1