bushido 0.0.33 → 0.0.34

Sign up to get free protection for your applications and to get access to all the features.
data/bushido.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.rubyforge_project = "bushido"
21
21
 
22
22
  s.files = `git ls-files`.split("\n")
23
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
23
+ s.test_files = `git ls-files -- {test,test_app,spec,features}/*`.split("\n")
24
24
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
25
25
  s.require_paths = ["lib"]
26
26
  end
@@ -1,4 +1,4 @@
1
1
  module Bushido
2
2
  # Current version of the Bushido gem
3
- VERSION = "0.0.33"
3
+ VERSION = "0.0.34"
4
4
  end
data/test_app/Gemfile CHANGED
@@ -4,31 +4,3 @@ gem 'rails', '3.0.9'
4
4
  gem 'rspec'
5
5
  gem 'rspec-rails'
6
6
  gem 'bushido', :path => '../'
7
-
8
- # Bundle edge Rails instead:
9
- # gem 'rails', :git => 'git://github.com/rails/rails.git'
10
-
11
- gem 'sqlite3'
12
-
13
- # Use unicorn as the web server
14
- # gem 'unicorn'
15
-
16
- # Deploy with Capistrano
17
- # gem 'capistrano'
18
-
19
- # To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+)
20
- # gem 'ruby-debug'
21
- # gem 'ruby-debug19', :require => 'ruby-debug'
22
-
23
- # Bundle the extra gems:
24
- # gem 'bj'
25
- # gem 'nokogiri'
26
- # gem 'sqlite3-ruby', :require => 'sqlite3'
27
- # gem 'aws-s3', :require => 'aws/s3'
28
-
29
- # Bundle gems for the local environment. Make sure to
30
- # put test-only gems in this group so their generators
31
- # and rake tasks are available in development mode:
32
- # group :development, :test do
33
- # gem 'webrat'
34
- # end
@@ -1,6 +1,8 @@
1
1
  require File.expand_path('../boot', __FILE__)
2
2
 
3
- require 'rails/all'
3
+ require "action_controller/railtie"
4
+ require "action_mailer/railtie"
5
+ require "active_resource/railtie"
4
6
 
5
7
  # If you have a Gemfile, require the gems listed there, including any gems
6
8
  # you've limited to :test, :development, or :production.
@@ -1,51 +1,44 @@
1
- # This file is copied to spec/ when you run 'rails generate rspec:install'
2
- ENV["RAILS_ENV"] ||= 'test'
3
- require File.expand_path("../../config/environment", __FILE__)
4
- require 'rspec/rails'
5
-
6
- # Requires supporting ruby files with custom matchers and macros, etc,
7
- # in spec/support/ and its subdirectories.
8
- Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
9
-
10
- RSpec.configure do |config|
11
- # == Mock Framework
12
- #
13
- # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
14
- #
15
- # config.mock_with :mocha
16
- # config.mock_with :flexmock
17
- # config.mock_with :rr
18
- config.mock_with :rspec
19
-
20
- # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
21
- config.fixture_path = "#{::Rails.root}/spec/fixtures"
22
-
23
- # If you're not using ActiveRecord, or you'd prefer not to run each of your
24
- # examples within a transaction, remove the following line or assign false
25
- # instead of true.
26
- config.use_transactional_fixtures = true
27
- end
1
+ require File.expand_path('../boot', __FILE__)
28
2
 
29
- # Redefine #puts to show where they're originating from
30
- puts "Redefining Object#puts in #{__FILE__}:#{__LINE__}"
31
- Object.class_eval do
32
- alias_method :orig_puts, :puts
3
+ require "action_controller/railtie"
4
+ require "action_mailer/railtie"
5
+ require "active_resource/railtie"
33
6
 
34
- def puts(object='')
35
- orig_puts "#{caller.first.split('/').last}: #{object}"
36
- end
37
- end
7
+ # If you have a Gemfile, require the gems listed there, including any gems
8
+ # you've limited to :test, :development, or :production.
9
+ Bundler.require(:default, Rails.env) if defined?(Bundler)
38
10
 
39
- def preserve_envs(*vars, &block)
40
- cache = {}
11
+ module TestApp
12
+ class Application < Rails::Application
13
+ # Settings in config/environments/* take precedence over those specified here.
14
+ # Application configuration should go into files in config/initializers
15
+ # -- all .rb files in that directory are automatically loaded.
41
16
 
42
- vars.each do |key|
43
- cache[key] = ENV[key]
44
- end
17
+ # Custom directories with classes and modules you want to be autoloadable.
18
+ # config.autoload_paths += %W(#{config.root}/extras)
19
+
20
+ # Only load the plugins named here, in the order given (default is alphabetical).
21
+ # :all can be used as a placeholder for all plugins not explicitly named.
22
+ # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
23
+
24
+ # Activate observers that should always be running.
25
+ # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
26
+
27
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
28
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
29
+ # config.time_zone = 'Central Time (US & Canada)'
30
+
31
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
32
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
33
+ # config.i18n.default_locale = :de
34
+
35
+ # JavaScript files you want as :defaults (application.js is always included).
36
+ # config.action_view.javascript_expansions[:defaults] = %w(jquery rails)
45
37
 
46
- yield
38
+ # Configure the default encoding used in templates for Ruby 1.9.
39
+ config.encoding = "utf-8"
47
40
 
48
- cache.keys.each do |key|
49
- ENV[key] = cache[key]
41
+ # Configure sensitive parameters which will be filtered from the log file.
42
+ config.filter_parameters += [:password]
50
43
  end
51
44
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: bushido
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.33
5
+ version: 0.0.34
6
6
  platform: ruby
7
7
  authors:
8
8
  - Sean Grove
@@ -185,3 +185,48 @@ test_files:
185
185
  - test/executable_test.rb
186
186
  - test/routes_test.rb
187
187
  - test/test_helper.rb
188
+ - test_app/Gemfile
189
+ - test_app/README
190
+ - test_app/Rakefile
191
+ - test_app/app/controllers/application_controller.rb
192
+ - test_app/app/helpers/application_helper.rb
193
+ - test_app/app/views/layouts/application.html.erb
194
+ - test_app/config.ru
195
+ - test_app/config/application.rb
196
+ - test_app/config/boot.rb
197
+ - test_app/config/database.yml
198
+ - test_app/config/environment.rb
199
+ - test_app/config/environments/development.rb
200
+ - test_app/config/environments/production.rb
201
+ - test_app/config/environments/test.rb
202
+ - test_app/config/initializers/backtrace_silencers.rb
203
+ - test_app/config/initializers/inflections.rb
204
+ - test_app/config/initializers/mime_types.rb
205
+ - test_app/config/initializers/secret_token.rb
206
+ - test_app/config/initializers/session_store.rb
207
+ - test_app/config/locales/en.yml
208
+ - test_app/config/routes.rb
209
+ - test_app/db/schema.rb
210
+ - test_app/db/seeds.rb
211
+ - test_app/doc/README_FOR_APP
212
+ - test_app/lib/tasks/.gitkeep
213
+ - test_app/public/404.html
214
+ - test_app/public/422.html
215
+ - test_app/public/500.html
216
+ - test_app/public/favicon.ico
217
+ - test_app/public/images/rails.png
218
+ - test_app/public/index.html
219
+ - test_app/public/javascripts/application.js
220
+ - test_app/public/javascripts/controls.js
221
+ - test_app/public/javascripts/dragdrop.js
222
+ - test_app/public/javascripts/effects.js
223
+ - test_app/public/javascripts/prototype.js
224
+ - test_app/public/javascripts/rails.js
225
+ - test_app/public/robots.txt
226
+ - test_app/public/stylesheets/.gitkeep
227
+ - test_app/script/rails
228
+ - test_app/spec/controllers/envs_controller_spec.rb
229
+ - test_app/spec/spec_helper.rb
230
+ - test_app/test/performance/browsing_test.rb
231
+ - test_app/test/test_helper.rb
232
+ - test_app/vendor/plugins/.gitkeep