visual-environments 0.3.1 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,13 +1,15 @@
1
1
  source "http://rubygems.org"
2
2
  # Add dependencies required to use your gem here.
3
- # Example:
4
- # gem "activesupport", ">= 2.3.5"
3
+
4
+ gem 'rails', '>= 3.0.5'
5
+ gem 'activesupport', '>= 3.0.5'
5
6
 
6
7
  # Add dependencies to develop your gem here.
7
8
  # Include everything needed to run rake, tests, features, etc.
8
- group :development do
9
- gem "rspec", "~> 2.3.0"
9
+ group :development, :test do
10
+ gem "rspec-rails"
10
11
  gem "bundler", "~> 1.0.0"
11
12
  gem "jeweler", "~> 1.5.2"
12
13
  gem "rcov", ">= 0"
14
+ gem "webrat"
13
15
  end
@@ -1,28 +1,102 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
+ abstract (1.0.0)
5
+ actionmailer (3.0.5)
6
+ actionpack (= 3.0.5)
7
+ mail (~> 2.2.15)
8
+ actionpack (3.0.5)
9
+ activemodel (= 3.0.5)
10
+ activesupport (= 3.0.5)
11
+ builder (~> 2.1.2)
12
+ erubis (~> 2.6.6)
13
+ i18n (~> 0.4)
14
+ rack (~> 1.2.1)
15
+ rack-mount (~> 0.6.13)
16
+ rack-test (~> 0.5.7)
17
+ tzinfo (~> 0.3.23)
18
+ activemodel (3.0.5)
19
+ activesupport (= 3.0.5)
20
+ builder (~> 2.1.2)
21
+ i18n (~> 0.4)
22
+ activerecord (3.0.5)
23
+ activemodel (= 3.0.5)
24
+ activesupport (= 3.0.5)
25
+ arel (~> 2.0.2)
26
+ tzinfo (~> 0.3.23)
27
+ activeresource (3.0.5)
28
+ activemodel (= 3.0.5)
29
+ activesupport (= 3.0.5)
30
+ activesupport (3.0.5)
31
+ arel (2.0.9)
32
+ builder (2.1.2)
4
33
  diff-lcs (1.1.2)
34
+ erubis (2.6.6)
35
+ abstract (>= 1.0.0)
5
36
  git (1.2.5)
37
+ i18n (0.5.0)
6
38
  jeweler (1.5.2)
7
39
  bundler (~> 1.0.0)
8
40
  git (>= 1.2.5)
9
41
  rake
42
+ mail (2.2.15)
43
+ activesupport (>= 2.3.6)
44
+ i18n (>= 0.4.0)
45
+ mime-types (~> 1.16)
46
+ treetop (~> 1.4.8)
47
+ mime-types (1.16)
48
+ nokogiri (1.4.4)
49
+ polyglot (0.3.1)
50
+ rack (1.2.2)
51
+ rack-mount (0.6.14)
52
+ rack (>= 1.0.0)
53
+ rack-test (0.5.7)
54
+ rack (>= 1.0)
55
+ rails (3.0.5)
56
+ actionmailer (= 3.0.5)
57
+ actionpack (= 3.0.5)
58
+ activerecord (= 3.0.5)
59
+ activeresource (= 3.0.5)
60
+ activesupport (= 3.0.5)
61
+ bundler (~> 1.0)
62
+ railties (= 3.0.5)
63
+ railties (3.0.5)
64
+ actionpack (= 3.0.5)
65
+ activesupport (= 3.0.5)
66
+ rake (>= 0.8.7)
67
+ thor (~> 0.14.4)
10
68
  rake (0.8.7)
11
69
  rcov (0.9.9)
12
- rspec (2.3.0)
13
- rspec-core (~> 2.3.0)
14
- rspec-expectations (~> 2.3.0)
15
- rspec-mocks (~> 2.3.0)
16
- rspec-core (2.3.1)
17
- rspec-expectations (2.3.0)
70
+ rspec (2.5.0)
71
+ rspec-core (~> 2.5.0)
72
+ rspec-expectations (~> 2.5.0)
73
+ rspec-mocks (~> 2.5.0)
74
+ rspec-core (2.5.1)
75
+ rspec-expectations (2.5.0)
18
76
  diff-lcs (~> 1.1.2)
19
- rspec-mocks (2.3.0)
77
+ rspec-mocks (2.5.0)
78
+ rspec-rails (2.5.0)
79
+ actionpack (~> 3.0)
80
+ activesupport (~> 3.0)
81
+ railties (~> 3.0)
82
+ rspec (~> 2.5.0)
83
+ thor (0.14.6)
84
+ treetop (1.4.9)
85
+ polyglot (>= 0.3.1)
86
+ tzinfo (0.3.25)
87
+ webrat (0.7.3)
88
+ nokogiri (>= 1.2.0)
89
+ rack (>= 1.0)
90
+ rack-test (>= 0.5.3)
20
91
 
21
92
  PLATFORMS
22
93
  ruby
23
94
 
24
95
  DEPENDENCIES
96
+ activesupport (>= 3.0.5)
25
97
  bundler (~> 1.0.0)
26
98
  jeweler (~> 1.5.2)
99
+ rails (>= 3.0.5)
27
100
  rcov
28
- rspec (~> 2.3.0)
101
+ rspec-rails
102
+ webrat
@@ -8,10 +8,11 @@ This is a configurable means for showing, via an updated <title> tag or CSS corn
8
8
 
9
9
  == Changelog
10
10
 
11
- * 5 March, 2011: Changed format of initializer, added ability to alias title and corner banner strings independently, refactored internal structure of the module, updated docs. This is a NON-BACKWARDS COMPATIBLE update; you must rerun <tt>rails g visual_environments:install</tt> to regenerate a new initializer file and then reset your options.
12
- * 27 February, 2011: Updated source_root definition, fixing bug in initializer
13
- * 20 February, 2011: Added generator, documented configuration options, added ability to switch corner banner from left to right side
14
- * 19 February, 2011: Initial revision- a result of the MadRailers Coding Day!
11
+ * 14 March, 2011: Added tests. Run <tt>rake spec</tt> to run 'em.
12
+ * 5 March, 2011: Changed format of initializer, added ability to alias title and corner banner strings independently, refactored internal structure of the module, updated docs. This is a NON-BACKWARDS COMPATIBLE update; you must rerun <tt>rails g visual_environments:install</tt> to regenerate a new initializer file and then reset your options.
13
+ * 27 February, 2011: Updated source_root definition, fixing bug in initializer
14
+ * 20 February, 2011: Added generator, documented configuration options, added ability to switch corner banner from left to right side
15
+ * 19 February, 2011: Initial revision- a result of the MadRailers Coding Day!
15
16
 
16
17
  = Install & Configuration
17
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.3
@@ -36,40 +36,39 @@ module VisualEnvironments
36
36
  @@title_aliases.replace aliases
37
37
  @@corner_banner_aliases.replace aliases
38
38
  end
39
+
40
+ def shim_visual_environments
41
+ unless Rails.env == 'production' || (VisualEnvironments.excluded_environments && VisualEnvironments.excluded_environments.include?(Rails.env))
42
+
43
+ if VisualEnvironments.enable_env_in_title
44
+ current_env = Rails.env
45
+ current_env = VisualEnvironments.title_aliases[current_env] if !VisualEnvironments.title_aliases.nil? && VisualEnvironments.title_aliases.has_key?(current_env)
46
+ shim = "<script type='text/javascript'>var te=document.getElementsByTagName('title')[0];var t=te.innerHTML;te.innerHTML=\"["+current_env+"] \"+t;</script></body>"
47
+ response.body = response.body.gsub /\<\/body\>/, shim
48
+ end
49
+
50
+ unless VisualEnvironments.corner_banner_side.nil?
51
+ # Exit if we detect invalid options in the corner_banner_side option
52
+ return unless [:left,:right].include?(VisualEnvironments.corner_banner_side)
53
+ current_env = Rails.env
54
+ current_env = VisualEnvironments.corner_banner_aliases[current_env] if !VisualEnvironments.corner_banner_aliases.nil? && VisualEnvironments.corner_banner_aliases.has_key?(current_env)
55
+ shim = "<script type='text/javascript'>var con=document.createElement('div');con.id='VisualEnvironment_container';document.body.appendChild(con);var ce=document.createElement('div');ce.id='VisualEnvironment_corner';ce.innerHTML='"+current_env+"';con.appendChild(ce);</script>"
56
+
57
+ if VisualEnvironments.corner_banner_side == :right
58
+ shim += "<style>#VisualEnvironment_corner{position:absolute;top:20px;right:-35px;font-family:Verdana;font-size:10px;color:#fff;padding:9px;width:120px;text-align:center;background:#000;border:#fff 1px solid;filter:alpha(opacity=70);-moz-opacity:0.7;-khtml-opacity:0.7;opacity:0.7;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);}#VisualEnvironment_container{position:absolute;top:0;right:0;width:120px;height:93px;overflow:hidden;}</style>"
59
+ elsif VisualEnvironments.corner_banner_side == :left
60
+ shim += "<style>#VisualEnvironment_corner{position:absolute;top:20px;left:-35px;font-family:Verdana;font-size:10px;color:#fff;padding:9px;width:120px;text-align:center;background:#000;border:#fff 1px solid;filter:alpha(opacity=70);-moz-opacity:0.7;-khtml-opacity:0.7;opacity:0.7;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);}#VisualEnvironment_container{position:absolute;top:0;left:0;width:120px;height:93px;overflow:hidden;}</style>"
61
+ end
62
+ shim += "</body>"
63
+ response.body = response.body.gsub /\<\/body\>/, shim
64
+ end
65
+
66
+ end
67
+ end
39
68
 
40
69
  end
41
70
 
42
71
  class ActionController::Base
43
72
  include VisualEnvironments
44
73
  after_filter :shim_visual_environments
45
-
46
- def shim_visual_environments
47
- unless Rails.env == 'production' || (VisualEnvironments.excluded_environments && VisualEnvironments.excluded_environments.include?(Rails.env))
48
-
49
- if VisualEnvironments.enable_env_in_title
50
- current_env = Rails.env
51
- current_env = VisualEnvironments.title_aliases[current_env] if !VisualEnvironments.title_aliases.nil? && VisualEnvironments.title_aliases.has_key?(current_env)
52
- shim = "<script type='text/javascript'>var te=document.getElementsByTagName('title')[0];var t=te.innerHTML;te.innerHTML=\"["+current_env+"] \"+t;</script></body>"
53
- response.body = response.body.gsub /\<\/body\>/, shim
54
- end
55
-
56
- unless VisualEnvironments.corner_banner_side.nil?
57
- # Exit if we detect invalid options in the corner_banner_side option
58
- return unless [:left,:right].include?(VisualEnvironments.corner_banner_side)
59
- current_env = Rails.env
60
- current_env = VisualEnvironments.corner_banner_aliases[current_env] if !VisualEnvironments.corner_banner_aliases.nil? && VisualEnvironments.corner_banner_aliases.has_key?(current_env)
61
- shim = "<script type='text/javascript'>var con=document.createElement('div');con.id='VisualEnvironment_container';document.body.appendChild(con);var ce=document.createElement('div');ce.id='VisualEnvironment_corner';ce.innerHTML='"+current_env+"';con.appendChild(ce);</script>"
62
-
63
- if VisualEnvironments.corner_banner_side == :right
64
- shim += "<style>#VisualEnvironment_corner{position:absolute;top:20px;right:-35px;font-family:Verdana;font-size:10px;color:#fff;padding:9px;width:120px;text-align:center;background:#000;border:#fff 1px solid;filter:alpha(opacity=70);-moz-opacity:0.7;-khtml-opacity:0.7;opacity:0.7;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);}#VisualEnvironment_container{position:absolute;top:0;right:0;width:120px;height:93px;overflow:hidden;}</style>"
65
- elsif VisualEnvironments.corner_banner_side == :left
66
- shim += "<style>#VisualEnvironment_corner{position:absolute;top:20px;left:-35px;font-family:Verdana;font-size:10px;color:#fff;padding:9px;width:120px;text-align:center;background:#000;border:#fff 1px solid;filter:alpha(opacity=70);-moz-opacity:0.7;-khtml-opacity:0.7;opacity:0.7;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);}#VisualEnvironment_container{position:absolute;top:0;left:0;width:120px;height:93px;overflow:hidden;}</style>"
67
- end
68
- shim += "</body>"
69
- response.body = response.body.gsub /\<\/body\>/, shim
70
- end
71
-
72
- end
73
- end
74
-
75
74
  end
@@ -1,12 +1,21 @@
1
+ ENV["RAILS_ENV"] ||= 'test'
2
+ require 'rails/all'
1
3
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
4
  $LOAD_PATH.unshift(File.dirname(__FILE__))
3
- require 'rspec'
4
- # require 'visual-environments'
5
+ require 'rspec/rails'
6
+ require 'visual-environments'
5
7
 
6
8
  # Requires supporting files with custom matchers and macros, etc,
7
9
  # in ./support/ and its subdirectories.
8
10
  Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
9
11
 
10
12
  RSpec.configure do |config|
11
-
13
+ # == Mock Framework
14
+ #
15
+ # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
16
+ #
17
+ # config.mock_with :mocha
18
+ # config.mock_with :flexmock
19
+ # config.mock_with :rr
20
+ config.mock_with :rspec
12
21
  end
@@ -0,0 +1,22 @@
1
+ module VisualEnvironmentsTest
2
+ class Application < Rails::Application ; end
3
+ end
4
+
5
+ VisualEnvironmentsTest::Application.routes.draw do
6
+ match '/:controller(/:action(/:id))'
7
+ end
8
+
9
+ ActionController::Base.send :include, VisualEnvironmentsTest::Application.routes.url_helpers
10
+
11
+ class MyController < ActionController::Base
12
+ def index
13
+ html = <<-MYHTML
14
+ <html>
15
+ <head><title>My Title</title></head>
16
+ <body>My Body</body>
17
+ </html>
18
+ MYHTML
19
+ render :text => html
20
+ end
21
+ end
22
+
@@ -1,7 +1,119 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+ require File.expand_path(File.dirname(__FILE__) + '/test_helper')
2
3
 
3
- describe "VisualEnvironments" do
4
+ describe MyController do
5
+ include RSpec::Rails::ControllerExampleGroup
6
+ include RSpec::Rails::Matchers
7
+
8
+ it 'should call the before_filter method in ActionController::Base' do
9
+ controller.should_receive(:shim_visual_environments).once
10
+ get :index
11
+ end
12
+
13
+ describe 'title tag manipulation' do
14
+
15
+ before(:each) do
16
+ VisualEnvironments.setup do |config|
17
+ # Turns on the display of the current environment in the title tag of each page in the app
18
+ config.enable_env_in_title = true
19
+ end
20
+ Rails.env = 'test'
21
+ end
22
+
23
+ it 'should add the javascript to prepend the current environment to the title tag' do
24
+ get :index
25
+ response.body.should contain("var te=document.getElementsByTagName('title')[0];")
26
+ end
27
+
28
+ it 'should use the current environment in the title tag' do
29
+ # Run as default environment (test)
30
+ get :index
31
+ response.body.should contain("te.innerHTML=\"[test] \"+t;")
32
+ # Reset the current environment to something else
33
+ Rails.env = 'staging'
34
+ get :index
35
+ response.body.should contain("te.innerHTML=\"[staging] \"+t;")
36
+ end
37
+
38
+ it 'should honor the aliases set in the config' do
39
+ VisualEnvironments.aliases = { 'test' => 'T' }
40
+ get :index
41
+ response.body.should contain("te.innerHTML=\"[T] \"+t;")
42
+
43
+ VisualEnvironments.title_aliases = { 'test' => 'TESTERLICIOUS' }
44
+ get :index
45
+ response.body.should contain("te.innerHTML=\"[TESTERLICIOUS] \"+t;")
46
+ end
47
+
48
+ it 'should not do anything when in the production environment' do
49
+ Rails.env = 'production'
50
+ get :index
51
+ response.body.should_not contain("var te=document.getElementsByTagName('title')[0];")
52
+ end
53
+ end
54
+
55
+ describe 'corner banner generation' do
56
+
57
+ before do
58
+ # Turn off the title tags for these tests
59
+ VisualEnvironments.stub(:enable_env_in_title).and_return(false)
60
+ # Reset to the test environment before each test, since some change it
61
+ Rails.env = 'test'
62
+ # Set the right and left expected css to check for
63
+ @right_corner_check = "VisualEnvironment_corner{position:absolute;top:20px;right:"
64
+ @left_corner_check = "VisualEnvironment_corner{position:absolute;top:20px;left:"
65
+ # Format string to testing the strings shown in the corner banner
66
+ @corner_banner_format = "ce.innerHTML='%s';"
67
+ end
68
+
69
+ it 'should not include the corner banner unless the config was uncommented' do
70
+ VisualEnvironments.stub(:corner_banner_side).and_return(nil)
71
+ get :index
72
+ response.body.should_not contain(@right_corner_check)
73
+ response.body.should_not contain(@left_corner_check)
74
+ end
75
+
76
+ it 'should correctly place the banner on the right side if the setting is :right' do
77
+ VisualEnvironments.stub(:corner_banner_side).and_return(:right)
78
+ get :index
79
+ response.body.should contain(@right_corner_check)
80
+ end
81
+
82
+ it 'should correctly place the banner on the left side if the setting is :left' do
83
+ VisualEnvironments.stub(:corner_banner_side).and_return(:left)
84
+ get :index
85
+ response.body.should contain(@left_corner_check)
86
+ end
87
+
88
+ it 'should display the environment name in the banner' do
89
+ VisualEnvironments.stub(:corner_banner_side).and_return(:right)
90
+ VisualEnvironments.stub(:corner_banner_aliases).and_return(nil)
91
+ get :index
92
+ response.body.should contain( sprintf(@corner_banner_format, Rails.env) )
93
+ end
94
+
95
+ it 'should honor the aliases for the banner value that are set in the config' do
96
+ VisualEnvironments.stub(:corner_banner_side).and_return(:right)
97
+ VisualEnvironments.stub(:corner_banner_aliases).and_return({'test' => 'TESTAH'})
98
+ get :index
99
+ response.body.should contain( sprintf(@corner_banner_format, 'TESTAH') )
100
+ end
101
+
102
+
103
+ it 'should not do anything when in production' do
104
+ VisualEnvironments.stub(:corner_banner_side).and_return(:right)
105
+ Rails.env = 'production'
106
+ get :index
107
+ response.body.should_not contain( sprintf(@corner_banner_format, Rails.env) )
108
+ end
109
+
110
+
111
+ end
112
+
113
+
114
+
115
+
116
+
4
117
 
5
- # Need to describe a way to test this without loading all of rails
6
118
 
7
119
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{visual-environments}
8
- s.version = "0.3.1"
8
+ s.version = "0.3.3"
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-03-05}
12
+ s.date = %q{2011-04-01}
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 = [
@@ -28,6 +28,7 @@ Gem::Specification.new do |s|
28
28
  "lib/generators/visual_environments/templates/initializer.rb",
29
29
  "lib/visual-environments.rb",
30
30
  "spec/spec_helper.rb",
31
+ "spec/test_helper.rb",
31
32
  "spec/visual-environments_spec.rb",
32
33
  "visual-environments.gemspec"
33
34
  ]
@@ -38,6 +39,7 @@ Gem::Specification.new do |s|
38
39
  s.summary = %q{Automatic visual, in-browser cues about your current environment}
39
40
  s.test_files = [
40
41
  "spec/spec_helper.rb",
42
+ "spec/test_helper.rb",
41
43
  "spec/visual-environments_spec.rb"
42
44
  ]
43
45
 
@@ -45,21 +47,30 @@ Gem::Specification.new do |s|
45
47
  s.specification_version = 3
46
48
 
47
49
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
48
- s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
50
+ s.add_runtime_dependency(%q<rails>, [">= 3.0.5"])
51
+ s.add_runtime_dependency(%q<activesupport>, [">= 3.0.5"])
52
+ s.add_development_dependency(%q<rspec-rails>, [">= 0"])
49
53
  s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
50
54
  s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
51
55
  s.add_development_dependency(%q<rcov>, [">= 0"])
56
+ s.add_development_dependency(%q<webrat>, [">= 0"])
52
57
  else
53
- s.add_dependency(%q<rspec>, ["~> 2.3.0"])
58
+ s.add_dependency(%q<rails>, [">= 3.0.5"])
59
+ s.add_dependency(%q<activesupport>, [">= 3.0.5"])
60
+ s.add_dependency(%q<rspec-rails>, [">= 0"])
54
61
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
55
62
  s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
56
63
  s.add_dependency(%q<rcov>, [">= 0"])
64
+ s.add_dependency(%q<webrat>, [">= 0"])
57
65
  end
58
66
  else
59
- s.add_dependency(%q<rspec>, ["~> 2.3.0"])
67
+ s.add_dependency(%q<rails>, [">= 3.0.5"])
68
+ s.add_dependency(%q<activesupport>, [">= 3.0.5"])
69
+ s.add_dependency(%q<rspec-rails>, [">= 0"])
60
70
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
61
71
  s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
62
72
  s.add_dependency(%q<rcov>, [">= 0"])
73
+ s.add_dependency(%q<webrat>, [">= 0"])
63
74
  end
64
75
  end
65
76
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: visual-environments
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.3.1
5
+ version: 0.3.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Zachery Moneypenny, David van Leeuwen
@@ -10,23 +10,45 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-03-05 00:00:00 -06:00
13
+ date: 2011-04-01 00:00:00 -05:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
- name: rspec
17
+ name: rails
18
18
  requirement: &id001 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
- - - ~>
21
+ - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 2.3.0
24
- type: :development
23
+ version: 3.0.5
24
+ type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: *id001
27
27
  - !ruby/object:Gem::Dependency
28
- name: bundler
28
+ name: activesupport
29
29
  requirement: &id002 !ruby/object:Gem::Requirement
30
+ none: false
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: 3.0.5
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: *id002
38
+ - !ruby/object:Gem::Dependency
39
+ name: rspec-rails
40
+ requirement: &id003 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: "0"
46
+ type: :development
47
+ prerelease: false
48
+ version_requirements: *id003
49
+ - !ruby/object:Gem::Dependency
50
+ name: bundler
51
+ requirement: &id004 !ruby/object:Gem::Requirement
30
52
  none: false
31
53
  requirements:
32
54
  - - ~>
@@ -34,10 +56,10 @@ dependencies:
34
56
  version: 1.0.0
35
57
  type: :development
36
58
  prerelease: false
37
- version_requirements: *id002
59
+ version_requirements: *id004
38
60
  - !ruby/object:Gem::Dependency
39
61
  name: jeweler
40
- requirement: &id003 !ruby/object:Gem::Requirement
62
+ requirement: &id005 !ruby/object:Gem::Requirement
41
63
  none: false
42
64
  requirements:
43
65
  - - ~>
@@ -45,10 +67,10 @@ dependencies:
45
67
  version: 1.5.2
46
68
  type: :development
47
69
  prerelease: false
48
- version_requirements: *id003
70
+ version_requirements: *id005
49
71
  - !ruby/object:Gem::Dependency
50
72
  name: rcov
51
- requirement: &id004 !ruby/object:Gem::Requirement
73
+ requirement: &id006 !ruby/object:Gem::Requirement
52
74
  none: false
53
75
  requirements:
54
76
  - - ">="
@@ -56,7 +78,18 @@ dependencies:
56
78
  version: "0"
57
79
  type: :development
58
80
  prerelease: false
59
- version_requirements: *id004
81
+ version_requirements: *id006
82
+ - !ruby/object:Gem::Dependency
83
+ name: webrat
84
+ requirement: &id007 !ruby/object:Gem::Requirement
85
+ none: false
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: "0"
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: *id007
60
93
  description: 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.
61
94
  email: whazzmaster@gmail.com
62
95
  executables: []
@@ -78,6 +111,7 @@ files:
78
111
  - lib/generators/visual_environments/templates/initializer.rb
79
112
  - lib/visual-environments.rb
80
113
  - spec/spec_helper.rb
114
+ - spec/test_helper.rb
81
115
  - spec/visual-environments_spec.rb
82
116
  - visual-environments.gemspec
83
117
  has_rdoc: true
@@ -94,7 +128,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
94
128
  requirements:
95
129
  - - ">="
96
130
  - !ruby/object:Gem::Version
97
- hash: 810695887365503587
131
+ hash: 1498246817267542
98
132
  segments:
99
133
  - 0
100
134
  version: "0"
@@ -113,4 +147,5 @@ specification_version: 3
113
147
  summary: Automatic visual, in-browser cues about your current environment
114
148
  test_files:
115
149
  - spec/spec_helper.rb
150
+ - spec/test_helper.rb
116
151
  - spec/visual-environments_spec.rb