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
- MzNjZGU4ODkxOWUxNzNkNThkZjgxY2Y0ZmFmN2M5Yjc3MjNhZjNkNA==
4
+ YTgyMjdmNTllZmZkNTZjMDU4YmM1ZjdkODMwNmI5NDhjNDIzMjQ1OA==
5
5
  data.tar.gz: !binary |-
6
- MjE2MTQ1MzZiNGFmNzYyNDk5ZjQzNzQ4ZGE1N2UxMGExY2NhN2U0OQ==
6
+ N2RjMjU2ZjZkYTE5YmYwMWJhYWM0NTZmNDA4ODc4NDg2MjZkYzY2Nw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZGFiYmVlMGE2ZTg3ZDQwMWNhZGZkYzQ4NWM3NDBkMGY3ZDA5ZmQzNjExNjUy
10
- ZTIzNWE4NzlmYjRmN2YzMjU0ZTY2N2IxNTM0ZDYyZWJhMmM5OGI1Yzk0ZTdm
11
- YzM0ZWEyMDUzYTY1NGM4MjNiM2E0NDJmNzY3ZmJmYzc4NjE1NzA=
9
+ MmNjZDhhYTY3ZGY5ZTM3OTFkYTU2NTliZGVmMDBmZjI1NDllZWJmNDRlZGMz
10
+ OTdiNDEyNGU1OGNhZmI0NjFmMWIzOWM0MGY1MGUxY2ZiZmRlZTMxOWFlMzRj
11
+ NmM0ODk4NDgxNWVlNmIwNDFkYzFjNDk2MjRjNzQxNDUzYTY3NjY=
12
12
  data.tar.gz: !binary |-
13
- ZTQ2Y2M1ZGVjMjAwZDlhNTgwNzVjMmU5N2VlN2M1ZDJkNzQ4MWQxMTI3OGQx
14
- ODVhMDY2YTQxYmY0OGM0YzE4NDJmNWFhNWI3NTJkNDU2YWU4ZjExNTc0NTc4
15
- ZWJhYmMwNjkxNWU4MWQzMzA4ZGZiYjc4OWQ2MmU0ODQ3YjMzNjA=
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
@@ -17,4 +17,4 @@ module Rack
17
17
  end
18
18
  end
19
19
 
20
- require 'rack/dev-mark/railties' if defined?(Rails)
20
+ require 'rack/dev-mark/railtie' if defined?(Rails)
File without changes
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module DevMark
3
- VERSION = '0.4.0'
3
+ VERSION = '0.4.1'
4
4
  end
5
5
  end
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.0
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/railties.rb
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