counter_culture 2.2.2 → 2.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +65 -0
- data/.travis.yml +23 -6
- data/Appraisals +22 -0
- data/CHANGELOG.md +8 -0
- data/Gemfile +6 -45
- data/README.md +2 -2
- data/Rakefile +7 -35
- data/counter_culture.gemspec +40 -175
- data/gemfiles/rails_4.2.gemfile +10 -0
- data/gemfiles/rails_5.0.gemfile +10 -0
- data/gemfiles/rails_5.1.gemfile +10 -0
- data/gemfiles/rails_5.2.gemfile +10 -0
- data/gemfiles/rails_6.0.0.rc1.gemfile +10 -0
- data/lib/counter_culture.rb +1 -0
- data/lib/counter_culture/counter.rb +11 -3
- data/lib/counter_culture/version.rb +3 -0
- data/run_tests_locally.sh +18 -0
- metadata +88 -122
- data/VERSION +0 -1
- data/spec/counter_culture_spec.rb +0 -2282
- data/spec/models/another_post.rb +0 -13
- data/spec/models/another_post_comment.rb +0 -4
- data/spec/models/candidate.rb +0 -3
- data/spec/models/candidate_profile.rb +0 -3
- data/spec/models/categ.rb +0 -13
- data/spec/models/category.rb +0 -3
- data/spec/models/company.rb +0 -11
- data/spec/models/conditional_dependent.rb +0 -7
- data/spec/models/conditional_main.rb +0 -3
- data/spec/models/conversation.rb +0 -4
- data/spec/models/has_non_pk_id.rb +0 -4
- data/spec/models/has_string_id.rb +0 -4
- data/spec/models/industry.rb +0 -2
- data/spec/models/person.rb +0 -4
- data/spec/models/poly_employee.rb +0 -3
- data/spec/models/poly_image.rb +0 -15
- data/spec/models/poly_product.rb +0 -4
- data/spec/models/post.rb +0 -10
- data/spec/models/post_comment.rb +0 -6
- data/spec/models/product.rb +0 -9
- data/spec/models/review.rb +0 -34
- data/spec/models/simple_dependent.rb +0 -5
- data/spec/models/simple_main.rb +0 -7
- data/spec/models/simple_review.rb +0 -3
- data/spec/models/soft_delete_discard.rb +0 -7
- data/spec/models/soft_delete_paranoia.rb +0 -7
- data/spec/models/subcateg.rb +0 -14
- data/spec/models/transaction.rb +0 -15
- data/spec/models/twitter_review.rb +0 -6
- data/spec/models/user.rb +0 -46
- data/spec/models/with_module/model1.rb +0 -8
- data/spec/models/with_module/model2.rb +0 -7
- data/spec/rails_app/.gitignore +0 -15
- data/spec/rails_app/Gemfile +0 -41
- data/spec/rails_app/README.rdoc +0 -261
- data/spec/rails_app/Rakefile +0 -7
- data/spec/rails_app/app/assets/images/rails.png +0 -0
- data/spec/rails_app/app/assets/javascripts/application.js +0 -15
- data/spec/rails_app/app/assets/stylesheets/application.css +0 -13
- data/spec/rails_app/app/controllers/application_controller.rb +0 -3
- data/spec/rails_app/app/helpers/application_helper.rb +0 -2
- data/spec/rails_app/app/mailers/.gitkeep +0 -0
- data/spec/rails_app/app/models/.gitkeep +0 -0
- data/spec/rails_app/app/views/layouts/application.html.erb +0 -14
- data/spec/rails_app/config.ru +0 -4
- data/spec/rails_app/config/application.rb +0 -62
- data/spec/rails_app/config/boot.rb +0 -6
- data/spec/rails_app/config/database.yml +0 -25
- data/spec/rails_app/config/environment.rb +0 -5
- data/spec/rails_app/config/environments/development.rb +0 -32
- data/spec/rails_app/config/environments/test.rb +0 -31
- data/spec/rails_app/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/rails_app/config/initializers/inflections.rb +0 -15
- data/spec/rails_app/config/initializers/mime_types.rb +0 -5
- data/spec/rails_app/config/initializers/paper_trail.rb +0 -1
- data/spec/rails_app/config/initializers/secret_token.rb +0 -12
- data/spec/rails_app/config/initializers/session_store.rb +0 -8
- data/spec/rails_app/config/initializers/wrap_parameters.rb +0 -14
- data/spec/rails_app/config/locales/en.yml +0 -5
- data/spec/rails_app/config/routes.rb +0 -58
- data/spec/rails_app/db/seeds.rb +0 -7
- data/spec/rails_app/lib/assets/.gitkeep +0 -0
- data/spec/rails_app/lib/tasks/.gitkeep +0 -0
- data/spec/rails_app/log/.gitkeep +0 -0
- data/spec/rails_app/public/404.html +0 -26
- data/spec/rails_app/public/422.html +0 -26
- data/spec/rails_app/public/500.html +0 -25
- data/spec/rails_app/public/favicon.ico +0 -0
- data/spec/rails_app/public/index.html +0 -241
- data/spec/rails_app/public/robots.txt +0 -5
- data/spec/rails_app/script/rails +0 -6
- data/spec/rails_app/test/fixtures/.gitkeep +0 -0
- data/spec/rails_app/test/functional/.gitkeep +0 -0
- data/spec/rails_app/test/integration/.gitkeep +0 -0
- data/spec/rails_app/test/performance/browsing_test.rb +0 -12
- data/spec/rails_app/test/test_helper.rb +0 -13
- data/spec/rails_app/test/unit/.gitkeep +0 -0
- data/spec/rails_app/vendor/assets/javascripts/.gitkeep +0 -0
- data/spec/rails_app/vendor/assets/stylesheets/.gitkeep +0 -0
- data/spec/rails_app/vendor/plugins/.gitkeep +0 -0
- data/spec/schema.rb +0 -255
- data/spec/spec_helper.rb +0 -32
- data/test_rails_versions.sh +0 -26
data/spec/spec_helper.rb
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
ENV['RAILS_ENV'] = 'test'
|
|
2
|
-
|
|
3
|
-
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
|
4
|
-
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
|
5
|
-
|
|
6
|
-
require "rails_app/config/environment"
|
|
7
|
-
|
|
8
|
-
require 'rspec'
|
|
9
|
-
require 'counter_culture'
|
|
10
|
-
require 'paper_trail/frameworks/rspec'
|
|
11
|
-
|
|
12
|
-
CI_TEST_RUN = (ENV['TRAVIS'] && 'TRAVIS') || (ENV['CIRCLECI'] && 'CIRCLE') || ENV["CI"] && 'CI'
|
|
13
|
-
|
|
14
|
-
begin
|
|
15
|
-
was, ActiveRecord::Migration.verbose = ActiveRecord::Migration.verbose, false unless ENV['SHOW_MIGRATION_MESSAGES']
|
|
16
|
-
load "#{File.dirname(__FILE__)}/schema.rb"
|
|
17
|
-
ensure
|
|
18
|
-
ActiveRecord::Migration.verbose = was unless ENV['SHOW_MIGRATION_MESSAGES']
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
# Requires supporting files with custom matchers and macros, etc,
|
|
22
|
-
# in ./support/ and its subdirectories.
|
|
23
|
-
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
|
24
|
-
|
|
25
|
-
ActiveRecord::Base.logger = Logger.new(STDOUT)
|
|
26
|
-
ActiveRecord::Base.logger.level = 1
|
|
27
|
-
|
|
28
|
-
RSpec.configure do |config|
|
|
29
|
-
config.fail_fast = true unless CI_TEST_RUN
|
|
30
|
-
config.filter_run focus: true
|
|
31
|
-
config.run_all_when_everything_filtered = true
|
|
32
|
-
end
|
data/test_rails_versions.sh
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
#! /bin/bash
|
|
2
|
-
|
|
3
|
-
set -e
|
|
4
|
-
|
|
5
|
-
source /usr/local/share/chruby/chruby.sh
|
|
6
|
-
|
|
7
|
-
for RUBY_VERSION in "2.3.8" "2.4.6" "2.5.5" "2.6.2"; do
|
|
8
|
-
chruby $RUBY_VERSION
|
|
9
|
-
for RAILS_VERSION in "~> 4.2.0" "~> 5.0.0" "= 5.1.4" "= 5.1.5" "~> 5.1.6" "~> 5.2.0"; do
|
|
10
|
-
echo "Ruby $RUBY_VERSION; Rails $RAILS_VERSION"
|
|
11
|
-
if ( [ "$RAILS_VERSION" == "~> 4.2.0" ] ); then
|
|
12
|
-
BUNDLE_VERSION='1.17.3'
|
|
13
|
-
else
|
|
14
|
-
BUNDLE_VERSION='2.0.1'
|
|
15
|
-
fi
|
|
16
|
-
export RAILS_VERSION
|
|
17
|
-
gem install bundler -v "$BUNDLE_VERSION"
|
|
18
|
-
if [ -f Gemfile.lock ]; then
|
|
19
|
-
rm Gemfile.lock
|
|
20
|
-
fi
|
|
21
|
-
bundle _"$BUNDLE_VERSION"_ update
|
|
22
|
-
bundle _"$BUNDLE_VERSION"_ exec rspec spec
|
|
23
|
-
done
|
|
24
|
-
done
|
|
25
|
-
|
|
26
|
-
unset RAILS_VERSION
|