visual-environments 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +4 -4
- data/VERSION +1 -1
- data/lib/generators/visual_environments/install_generator.rb +5 -1
- data/visual-environments.gemspec +2 -2
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -8,19 +8,19 @@ This is a configurable means for showing, via an updated <title> tag or CSS corn
|
|
8
8
|
|
9
9
|
= Install & Configuration
|
10
10
|
|
11
|
-
Add the following to your Rails
|
11
|
+
Add the following to your Rails application's Gemfile
|
12
12
|
|
13
13
|
gem 'visual-environments'
|
14
14
|
|
15
15
|
...and run <tt>bundle install</tt>. Then use the visual-environments generator to install the configuration file to your <tt>config/initializers</tt> directory:
|
16
16
|
|
17
|
-
|
17
|
+
rails g visual_environments:install
|
18
18
|
|
19
19
|
There should now be a new file <tt>config/initializers/visual-environments.rb</tt> with the content
|
20
20
|
|
21
21
|
ActionController::Base::VisualEnvironments.enable_env_in_title = true
|
22
22
|
|
23
|
-
# Uncomment
|
23
|
+
# Uncomment the line below and select which side to display the banner on. Current possible
|
24
24
|
# values are (:right, :left) corresponding to upper-right and upper-left corners, respectively
|
25
25
|
# ActionController::Base::VisualEnvironments.corner_banner_side = :right
|
26
26
|
|
@@ -43,7 +43,7 @@ You can add additional environments to be excluded by adding their names to the
|
|
43
43
|
|
44
44
|
And now preproduction will not use the visual-environments functionality.
|
45
45
|
|
46
|
-
Another way to configure is by using Gemfile groups to only conditionally load this gem. For example, if you have many different environments but only want this gem to operate in development and staging
|
46
|
+
Another way to configure is by using Gemfile groups to only conditionally load this gem. For example, if you have many different environments but only want this gem to operate in development and staging you can edit your Gemfile thusly:
|
47
47
|
|
48
48
|
gem 'visual-evironments', :groups => [:development, :staging]
|
49
49
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
@@ -3,9 +3,13 @@ require 'rails/generators/base'
|
|
3
3
|
module VisualEnvironments
|
4
4
|
module Generators
|
5
5
|
class InstallGenerator < Rails::Generators::Base
|
6
|
+
|
7
|
+
def self.source_root
|
8
|
+
@source_root ||= File.join(File.dirname(__FILE__), 'templates')
|
9
|
+
end
|
6
10
|
|
7
11
|
def copy_initializer_file
|
8
|
-
copy_file
|
12
|
+
copy_file "initializer.rb", "config/initializers/visual-environment.rb"
|
9
13
|
end
|
10
14
|
|
11
15
|
def self.banner
|
data/visual-environments.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{visual-environments}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Zachery Moneypenny, David van Leeuwen"]
|
12
|
-
s.date = %q{2011-02-
|
12
|
+
s.date = %q{2011-02-27}
|
13
13
|
s.description = %q{This gem provides a configurable means for showing, via an updated <title> tag or CSS corner banner, what the current runtime environment is (development, staging, test, etc.) This functionality is never enabled for production, and for all other environments you can exclude specific ones.}
|
14
14
|
s.email = %q{whazzmaster@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: visual-environments
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.2.
|
5
|
+
version: 0.2.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Zachery Moneypenny, David van Leeuwen
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-02-
|
13
|
+
date: 2011-02-27 00:00:00 -06:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -94,7 +94,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
94
94
|
requirements:
|
95
95
|
- - ">="
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
hash:
|
97
|
+
hash: 251171772694086353
|
98
98
|
segments:
|
99
99
|
- 0
|
100
100
|
version: "0"
|