rack-dev-mark 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YTgyMjdmNTllZmZkNTZjMDU4YmM1ZjdkODMwNmI5NDhjNDIzMjQ1OA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
N2RjMjU2ZjZkYTE5YmYwMWJhYWM0NTZmNDA4ODc4NDg2MjZkYzY2Nw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MmNjZDhhYTY3ZGY5ZTM3OTFkYTU2NTliZGVmMDBmZjI1NDllZWJmNDRlZGMz
|
10
|
+
OTdiNDEyNGU1OGNhZmI0NjFmMWIzOWM0MGY1MGUxY2ZiZmRlZTMxOWFlMzRj
|
11
|
+
NmM0ODk4NDgxNWVlNmIwNDFkYzFjNDk2MjRjNzQxNDUzYTY3NjY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZmRiNWJkNTIxMWZjNDQwNjNiM2ExNTZjNjhkZDBlMTFjZTM5MDllNzYwNWEw
|
14
|
+
MTIzZWU2Njg4OGNjMTkxYjM5MWRlZDNjMTQ2YjRlZmZiYTNiYzQxN2I4YTIw
|
15
|
+
OTJiMjBiOGUwMTJjMGQ0NTMzYWNmNjJhOGVmYmYwYmMwNzJmNDI=
|
data/README.md
CHANGED
@@ -54,6 +54,13 @@ module MyApp
|
|
54
54
|
end
|
55
55
|
```
|
56
56
|
|
57
|
+
Or
|
58
|
+
Alternatively, use generator
|
59
|
+
|
60
|
+
```bash
|
61
|
+
bundle exec rails g rack-dev-mark:install
|
62
|
+
```
|
63
|
+
|
57
64
|
The middleware sets [title](lib/rack/dev-mark/theme/title.rb) and [github_fork_ribbon](lib/rack/dev-mark/theme/github_fork_ribbon.rb) themes as default.
|
58
65
|
|
59
66
|
#### Exclude Multiple Environments in Rails
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'rails/generators/base'
|
2
|
+
|
3
|
+
module RackDevMark
|
4
|
+
class InstallGenerator < ::Rails::Generators::Base
|
5
|
+
namespace 'rack-dev-mark:install'
|
6
|
+
|
7
|
+
desc "Install rack-dev-mark."
|
8
|
+
def insert_enable
|
9
|
+
insert_into_file 'config/application.rb', after: "< Rails::Application\n" do <<-EOS
|
10
|
+
config.rack_dev_mark.enable = !Rails.env.production?
|
11
|
+
|
12
|
+
EOS
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/rack/dev-mark.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-dev-mark
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daisuke Taniwaki
|
@@ -84,11 +84,12 @@ files:
|
|
84
84
|
- gemfiles/rack.1.2.x.gemfile
|
85
85
|
- gemfiles/rack.1.3.x.gemfile
|
86
86
|
- gemfiles/rack.1.4.x.gemfile
|
87
|
+
- lib/generators/rack-dev-mark/install_generator.rb
|
87
88
|
- lib/rack-dev-mark.rb
|
88
89
|
- lib/rack/dev-mark.rb
|
89
90
|
- lib/rack/dev-mark/error.rb
|
90
91
|
- lib/rack/dev-mark/middleware.rb
|
91
|
-
- lib/rack/dev-mark/
|
92
|
+
- lib/rack/dev-mark/railtie.rb
|
92
93
|
- lib/rack/dev-mark/theme.rb
|
93
94
|
- lib/rack/dev-mark/theme/README.md
|
94
95
|
- lib/rack/dev-mark/theme/base.rb
|