NOT FOR PUBLIC USE YET. ACTIVE INITIAL DEVELOPMENT IS IN PROGRESS.
TODO: Brief description. TODO: Describe the problem & the solution.
| ruby: | |
| enabled: true | |
| # config_file: config/.rubocop.yml | |
| coffee_script: | |
| enabled: true | |
| # config_file: config/.coffeelint.json | |
| # java_script: | |
| # enabled: true |
| language: ruby | |
| cache: bundler | |
| rvm: | |
| - 2.1.2 | |
| branches: | |
| only: | |
| - master |
| if ENV.has_key?("STUB_AWS") || | |
| !ENV.has_key?("AWS_ACCESS_KEY_ID") || | |
| !ENV.has_key?("AWS_SECRET_ACCESS_KEY") | |
| # Test in the environment where AWS credentials are not provided | |
| require 'aws-sdk' | |
| puts "Stubbing AWS (#{ENV.has_key?("STUB_AWS") ? "forced" : "no keys"})" | |
| RSpec.configure do |c| | |
| c.filter_run_excluding :live_aws | |
| end |
| require 'coveralls' | |
| Coveralls.wear! | |
| require 'dotenv' | |
| Dotenv.load | |
| require '<gem>' |
| require 'bundler/gem_tasks' | |
| require 'rspec/core/rake_task' | |
| desc "Run RSpec tests (use rake spec SPEC_OPTS='...' to pass rspec options)" | |
| RSpec::Core::RakeTask.new(:spec) |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| # Ignore application configuration | |
| /config/application.yml | |
| /config/fog_credentials.yml | |
| # Ignore the default SQLite database. | |
| /db/*.sqlite3 | |
| /db/*.sqlite3-journal | |
| # Ignore all logfiles and tempfiles and local system/bin files | |
| /log |
| def hstore_get(field_name) | |
| method(field_name).call | |
| end | |
| def hstore_set(field_name,value) | |
| method("#{field_name}=").call(value) | |
| end | |
| def hstore_accessor(field_name,name) | |
| define_method(name) do | |
| hstore = hstore_get(field_name) |
| require 'zeus/rails' | |
| class CustomPlan < Zeus::Rails | |
| def spec(argv=ARGV) | |
| # disable autorun in case the user left it in spec_helper.rb | |
| RSpec::Core::Runner.disable_autorun! | |
| exit RSpec::Core::Runner.run(argv) | |
| end | |
| end |