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.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +65 -0
  3. data/.travis.yml +23 -6
  4. data/Appraisals +22 -0
  5. data/CHANGELOG.md +8 -0
  6. data/Gemfile +6 -45
  7. data/README.md +2 -2
  8. data/Rakefile +7 -35
  9. data/counter_culture.gemspec +40 -175
  10. data/gemfiles/rails_4.2.gemfile +10 -0
  11. data/gemfiles/rails_5.0.gemfile +10 -0
  12. data/gemfiles/rails_5.1.gemfile +10 -0
  13. data/gemfiles/rails_5.2.gemfile +10 -0
  14. data/gemfiles/rails_6.0.0.rc1.gemfile +10 -0
  15. data/lib/counter_culture.rb +1 -0
  16. data/lib/counter_culture/counter.rb +11 -3
  17. data/lib/counter_culture/version.rb +3 -0
  18. data/run_tests_locally.sh +18 -0
  19. metadata +88 -122
  20. data/VERSION +0 -1
  21. data/spec/counter_culture_spec.rb +0 -2282
  22. data/spec/models/another_post.rb +0 -13
  23. data/spec/models/another_post_comment.rb +0 -4
  24. data/spec/models/candidate.rb +0 -3
  25. data/spec/models/candidate_profile.rb +0 -3
  26. data/spec/models/categ.rb +0 -13
  27. data/spec/models/category.rb +0 -3
  28. data/spec/models/company.rb +0 -11
  29. data/spec/models/conditional_dependent.rb +0 -7
  30. data/spec/models/conditional_main.rb +0 -3
  31. data/spec/models/conversation.rb +0 -4
  32. data/spec/models/has_non_pk_id.rb +0 -4
  33. data/spec/models/has_string_id.rb +0 -4
  34. data/spec/models/industry.rb +0 -2
  35. data/spec/models/person.rb +0 -4
  36. data/spec/models/poly_employee.rb +0 -3
  37. data/spec/models/poly_image.rb +0 -15
  38. data/spec/models/poly_product.rb +0 -4
  39. data/spec/models/post.rb +0 -10
  40. data/spec/models/post_comment.rb +0 -6
  41. data/spec/models/product.rb +0 -9
  42. data/spec/models/review.rb +0 -34
  43. data/spec/models/simple_dependent.rb +0 -5
  44. data/spec/models/simple_main.rb +0 -7
  45. data/spec/models/simple_review.rb +0 -3
  46. data/spec/models/soft_delete_discard.rb +0 -7
  47. data/spec/models/soft_delete_paranoia.rb +0 -7
  48. data/spec/models/subcateg.rb +0 -14
  49. data/spec/models/transaction.rb +0 -15
  50. data/spec/models/twitter_review.rb +0 -6
  51. data/spec/models/user.rb +0 -46
  52. data/spec/models/with_module/model1.rb +0 -8
  53. data/spec/models/with_module/model2.rb +0 -7
  54. data/spec/rails_app/.gitignore +0 -15
  55. data/spec/rails_app/Gemfile +0 -41
  56. data/spec/rails_app/README.rdoc +0 -261
  57. data/spec/rails_app/Rakefile +0 -7
  58. data/spec/rails_app/app/assets/images/rails.png +0 -0
  59. data/spec/rails_app/app/assets/javascripts/application.js +0 -15
  60. data/spec/rails_app/app/assets/stylesheets/application.css +0 -13
  61. data/spec/rails_app/app/controllers/application_controller.rb +0 -3
  62. data/spec/rails_app/app/helpers/application_helper.rb +0 -2
  63. data/spec/rails_app/app/mailers/.gitkeep +0 -0
  64. data/spec/rails_app/app/models/.gitkeep +0 -0
  65. data/spec/rails_app/app/views/layouts/application.html.erb +0 -14
  66. data/spec/rails_app/config.ru +0 -4
  67. data/spec/rails_app/config/application.rb +0 -62
  68. data/spec/rails_app/config/boot.rb +0 -6
  69. data/spec/rails_app/config/database.yml +0 -25
  70. data/spec/rails_app/config/environment.rb +0 -5
  71. data/spec/rails_app/config/environments/development.rb +0 -32
  72. data/spec/rails_app/config/environments/test.rb +0 -31
  73. data/spec/rails_app/config/initializers/backtrace_silencers.rb +0 -7
  74. data/spec/rails_app/config/initializers/inflections.rb +0 -15
  75. data/spec/rails_app/config/initializers/mime_types.rb +0 -5
  76. data/spec/rails_app/config/initializers/paper_trail.rb +0 -1
  77. data/spec/rails_app/config/initializers/secret_token.rb +0 -12
  78. data/spec/rails_app/config/initializers/session_store.rb +0 -8
  79. data/spec/rails_app/config/initializers/wrap_parameters.rb +0 -14
  80. data/spec/rails_app/config/locales/en.yml +0 -5
  81. data/spec/rails_app/config/routes.rb +0 -58
  82. data/spec/rails_app/db/seeds.rb +0 -7
  83. data/spec/rails_app/lib/assets/.gitkeep +0 -0
  84. data/spec/rails_app/lib/tasks/.gitkeep +0 -0
  85. data/spec/rails_app/log/.gitkeep +0 -0
  86. data/spec/rails_app/public/404.html +0 -26
  87. data/spec/rails_app/public/422.html +0 -26
  88. data/spec/rails_app/public/500.html +0 -25
  89. data/spec/rails_app/public/favicon.ico +0 -0
  90. data/spec/rails_app/public/index.html +0 -241
  91. data/spec/rails_app/public/robots.txt +0 -5
  92. data/spec/rails_app/script/rails +0 -6
  93. data/spec/rails_app/test/fixtures/.gitkeep +0 -0
  94. data/spec/rails_app/test/functional/.gitkeep +0 -0
  95. data/spec/rails_app/test/integration/.gitkeep +0 -0
  96. data/spec/rails_app/test/performance/browsing_test.rb +0 -12
  97. data/spec/rails_app/test/test_helper.rb +0 -13
  98. data/spec/rails_app/test/unit/.gitkeep +0 -0
  99. data/spec/rails_app/vendor/assets/javascripts/.gitkeep +0 -0
  100. data/spec/rails_app/vendor/assets/stylesheets/.gitkeep +0 -0
  101. data/spec/rails_app/vendor/plugins/.gitkeep +0 -0
  102. data/spec/schema.rb +0 -255
  103. data/spec/spec_helper.rb +0 -32
  104. 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
@@ -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