loremGem 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/lib/loremGem/version.rb +1 -1
  3. data/lib/loremGem/version.rb~ +4 -0
  4. metadata +3 -74
  5. data/test/dummy_rails/README.rdoc +0 -3
  6. data/test/dummy_rails/Rakefile +0 -6
  7. data/test/dummy_rails/app/assets/images/.keep +0 -0
  8. data/test/dummy_rails/app/assets/javascripts/application.js +0 -7
  9. data/test/dummy_rails/app/assets/stylesheets/application.sass +0 -4
  10. data/test/dummy_rails/app/controllers/application_controller.rb +0 -5
  11. data/test/dummy_rails/app/controllers/pages_controller.rb +0 -4
  12. data/test/dummy_rails/app/helpers/application_helper.rb +0 -2
  13. data/test/dummy_rails/app/views/layouts/application.html.erb +0 -14
  14. data/test/dummy_rails/app/views/pages/root.html.slim +0 -58
  15. data/test/dummy_rails/config.ru +0 -4
  16. data/test/dummy_rails/config/application.rb +0 -34
  17. data/test/dummy_rails/config/boot.rb +0 -5
  18. data/test/dummy_rails/config/environment.rb +0 -5
  19. data/test/dummy_rails/config/environments/development.rb +0 -23
  20. data/test/dummy_rails/config/environments/production.rb +0 -82
  21. data/test/dummy_rails/config/environments/test.rb +0 -38
  22. data/test/dummy_rails/config/initializers/backtrace_silencers.rb +0 -7
  23. data/test/dummy_rails/config/initializers/filter_parameter_logging.rb +0 -4
  24. data/test/dummy_rails/config/initializers/inflections.rb +0 -16
  25. data/test/dummy_rails/config/initializers/mime_types.rb +0 -5
  26. data/test/dummy_rails/config/initializers/secret_token.rb +0 -18
  27. data/test/dummy_rails/config/initializers/session_store.rb +0 -3
  28. data/test/dummy_rails/config/initializers/wrap_parameters.rb +0 -14
  29. data/test/dummy_rails/config/locales/en.yml +0 -3
  30. data/test/dummy_rails/config/locales/es.yml +0 -3
  31. data/test/dummy_rails/config/routes.rb +0 -3
  32. data/test/dummy_rails/log/.keep +0 -0
  33. data/test/gemfiles/rails_4_2.gemfile +0 -7
  34. data/test/gemfiles/rails_5_0.gemfile +0 -8
  35. data/test/gemfiles/rails_5_1.gemfile +0 -8
  36. data/test/rails_test.rb +0 -24
  37. data/test/support/dummy_rails_integration.rb +0 -29
  38. data/test/support/reporting.rb +0 -27
  39. data/test/test_helper.rb +0 -35
  40. data/test/test_helper_rails.rb +0 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 62a09ce85e7479e0b73836dd61ce6cbf0630b303
4
- data.tar.gz: 7772f531a74ca982182d1509951a6b4e5a539d6f
3
+ metadata.gz: 35e49f6139026172140daf7eec31a756969a5fec
4
+ data.tar.gz: 14ee7fcdf4215cf90e2b4405ea708eca810c3b97
5
5
  SHA512:
6
- metadata.gz: 87c69a1e5f6901ce67bfce21f31b2c76ccc2db49a841680df1a82eb7bcb751e53da83201c66bf2e2ae500fd410f43263c2076faadd5573aa2b22e4220c8804f7
7
- data.tar.gz: 88b47139a08bc1435a4354b86af423c40c148b618211df90b4ec2ec6b702af0bf49c268a0d5acc2ce2501e241c9242376e0660d52f82d7e8f981a91ff8d686c7
6
+ metadata.gz: 445a44f077e031172e3ab60fb94ad5dd9cc5e1245290918a1986489a5f8caa12ec9d9ff97dbfba6ca7d9d05fc75a8f5670663757777cfdb6f7cb9c20428d1d54
7
+ data.tar.gz: 31cb6b3e652a6f6219d95fc121cf8f911da57ca0243a7809f1ca509a11b26a95f90461847dc62bd71ff13e9b649e34f8dba2aeb9a5be1cb6d59c5c30a17fe1cb
@@ -1,4 +1,4 @@
1
1
  module LoremGem
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  BOOTSTRAP_SHA = '779ad9f174ea5ab7e755f6df0ec9e5912d67dd16'
4
4
  end
@@ -0,0 +1,4 @@
1
+ module LoremGem
2
+ VERSION = "0.2.0"
3
+ BOOTSTRAP_SHA = '779ad9f174ea5ab7e755f6df0ec9e5912d67dd16'
4
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loremGem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrea Crisciotti
@@ -375,48 +375,13 @@ files:
375
375
  - lib/loremGem.rb
376
376
  - lib/loremGem/engine.rb
377
377
  - lib/loremGem/version.rb
378
+ - lib/loremGem/version.rb~
378
379
  - loremGem.gemspec
379
380
  - tasks/updater.rb
380
381
  - tasks/updater/js.rb
381
382
  - tasks/updater/logger.rb
382
383
  - tasks/updater/network.rb
383
384
  - tasks/updater/scss.rb
384
- - test/dummy_rails/README.rdoc
385
- - test/dummy_rails/Rakefile
386
- - test/dummy_rails/app/assets/images/.keep
387
- - test/dummy_rails/app/assets/javascripts/application.js
388
- - test/dummy_rails/app/assets/stylesheets/application.sass
389
- - test/dummy_rails/app/controllers/application_controller.rb
390
- - test/dummy_rails/app/controllers/pages_controller.rb
391
- - test/dummy_rails/app/helpers/application_helper.rb
392
- - test/dummy_rails/app/views/layouts/application.html.erb
393
- - test/dummy_rails/app/views/pages/root.html.slim
394
- - test/dummy_rails/config.ru
395
- - test/dummy_rails/config/application.rb
396
- - test/dummy_rails/config/boot.rb
397
- - test/dummy_rails/config/environment.rb
398
- - test/dummy_rails/config/environments/development.rb
399
- - test/dummy_rails/config/environments/production.rb
400
- - test/dummy_rails/config/environments/test.rb
401
- - test/dummy_rails/config/initializers/backtrace_silencers.rb
402
- - test/dummy_rails/config/initializers/filter_parameter_logging.rb
403
- - test/dummy_rails/config/initializers/inflections.rb
404
- - test/dummy_rails/config/initializers/mime_types.rb
405
- - test/dummy_rails/config/initializers/secret_token.rb
406
- - test/dummy_rails/config/initializers/session_store.rb
407
- - test/dummy_rails/config/initializers/wrap_parameters.rb
408
- - test/dummy_rails/config/locales/en.yml
409
- - test/dummy_rails/config/locales/es.yml
410
- - test/dummy_rails/config/routes.rb
411
- - test/dummy_rails/log/.keep
412
- - test/gemfiles/rails_4_2.gemfile
413
- - test/gemfiles/rails_5_0.gemfile
414
- - test/gemfiles/rails_5_1.gemfile
415
- - test/rails_test.rb
416
- - test/support/dummy_rails_integration.rb
417
- - test/support/reporting.rb
418
- - test/test_helper.rb
419
- - test/test_helper_rails.rb
420
385
  homepage: https://github.com/LoremFramework/loremGem
421
386
  licenses:
422
387
  - MIT
@@ -441,40 +406,4 @@ rubygems_version: 2.5.1
441
406
  signing_key:
442
407
  specification_version: 4
443
408
  summary: This gem is created to the LoremFramework's sistem.
444
- test_files:
445
- - test/dummy_rails/README.rdoc
446
- - test/dummy_rails/Rakefile
447
- - test/dummy_rails/app/assets/images/.keep
448
- - test/dummy_rails/app/assets/javascripts/application.js
449
- - test/dummy_rails/app/assets/stylesheets/application.sass
450
- - test/dummy_rails/app/controllers/application_controller.rb
451
- - test/dummy_rails/app/controllers/pages_controller.rb
452
- - test/dummy_rails/app/helpers/application_helper.rb
453
- - test/dummy_rails/app/views/layouts/application.html.erb
454
- - test/dummy_rails/app/views/pages/root.html.slim
455
- - test/dummy_rails/config.ru
456
- - test/dummy_rails/config/application.rb
457
- - test/dummy_rails/config/boot.rb
458
- - test/dummy_rails/config/environment.rb
459
- - test/dummy_rails/config/environments/development.rb
460
- - test/dummy_rails/config/environments/production.rb
461
- - test/dummy_rails/config/environments/test.rb
462
- - test/dummy_rails/config/initializers/backtrace_silencers.rb
463
- - test/dummy_rails/config/initializers/filter_parameter_logging.rb
464
- - test/dummy_rails/config/initializers/inflections.rb
465
- - test/dummy_rails/config/initializers/mime_types.rb
466
- - test/dummy_rails/config/initializers/secret_token.rb
467
- - test/dummy_rails/config/initializers/session_store.rb
468
- - test/dummy_rails/config/initializers/wrap_parameters.rb
469
- - test/dummy_rails/config/locales/en.yml
470
- - test/dummy_rails/config/locales/es.yml
471
- - test/dummy_rails/config/routes.rb
472
- - test/dummy_rails/log/.keep
473
- - test/gemfiles/rails_4_2.gemfile
474
- - test/gemfiles/rails_5_0.gemfile
475
- - test/gemfiles/rails_5_1.gemfile
476
- - test/rails_test.rb
477
- - test/support/dummy_rails_integration.rb
478
- - test/support/reporting.rb
479
- - test/test_helper.rb
480
- - test/test_helper_rails.rb
409
+ test_files: []
@@ -1,3 +0,0 @@
1
- == README
2
-
3
- This is a minimal Rails app for testing
@@ -1,6 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require File.expand_path('../config/application', __FILE__)
5
-
6
- Dummy::Application.load_tasks
File without changes
@@ -1,7 +0,0 @@
1
- //= require jquery
2
- //= require popper.js
3
- //= require bootstrap-sprockets
4
-
5
- jQuery(function ($) {
6
- $('[data-toggle="tooltip"]').tooltip()
7
- });
@@ -1,4 +0,0 @@
1
- @import 'bootstrap'
2
-
3
- .test-mixin
4
- +make-container
@@ -1,5 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- # Prevent CSRF attacks by raising an exception.
3
- # For APIs, you may want to use :null_session instead.
4
- protect_from_forgery with: :exception
5
- end
@@ -1,4 +0,0 @@
1
- class PagesController < ApplicationController
2
- def root
3
- end
4
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>bootstrap Dummy App</title>
5
- <%= stylesheet_link_tag 'application', media: "all", 'data-turbolinks-track' => true %>
6
- <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
-
10
- <body>
11
- <%= yield %>
12
- </body>
13
-
14
- </html>
@@ -1,58 +0,0 @@
1
- .navbar.navbar-dark.bg-inverse: .container-fluid
2
- button.navbar-toggler.hidden-sm-up type="button" data-toggle="collapse" data-target="#c1" &#9776
3
- .collapse.navbar-toggleable-xs#c1
4
- a.navbar-brand href="#" Bootstrap Test Rails App
5
- ul.nav.navbar-nav
6
- li.nav-item.active: a.nav-link href="#"
7
- ' Home
8
- span.sr-only (current)
9
- li.nav-item: a.nav-link href="#" Link
10
- li.nav-item.dropdown
11
- a.nav-link.dropdown-toggle href="#" data-toggle="dropdown" role="button" aria-expanded="false"
12
- ' Dropdown
13
- span.caret
14
- .dropdown-menu role="menu"
15
- a.dropdown-item href="#" Action
16
- a.dropdown-item href="#" Another action
17
- a.dropdown-item href="#" Something else here
18
- a.dropdown-divider
19
- a.dropdown-item href="#" Separated ank
20
- a.dropdown-divider
21
- a.dropdown-item href="#" One more separated link
22
-
23
- .container
24
- .card
25
- .card-header: h3 Dummy App
26
- .card-block: .row
27
- .col-sm-3
28
- h2 3 columns
29
- .list-group
30
- a.list-group-item href='#one' One
31
- a.list-group-item href='#two' Two
32
- a.list-group-item href='#three' Three
33
- .col-sm-3
34
- h2 3 columns
35
- .btn-group
36
- button.btn.btn-primary type='button' Button
37
- button.btn.btn-primary type='button' Button
38
- table.table
39
- caption Table
40
- tr
41
- td.table-danger Danger!
42
- td.table-success Success!
43
- .col-sm-6
44
- h2 6 columns
45
- .row
46
- .col-xs-4.col-xs-push-4: .card: .card-block
47
- .card-text data-toggle="tooltip" title="hi"
48
- h6 This is col-xs-4 col-xs-push-4.<br><small>Hover for tooltip.</small>
49
-
50
- .card: .card-block: form.form-inline
51
- .form-group
52
- label.sr-only for="exampleInputEmail2" Email address
53
- input.form-control#exampleInputEmail2 type="email" placeholder="Enter email"
54
- .checkbox
55
- label
56
- input type="checkbox"
57
- | Remember me
58
- button.btn.btn-default type="submit" Sign in
@@ -1,4 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require ::File.expand_path('../config/environment', __FILE__)
4
- run Rails.application
@@ -1,34 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- require 'rails'
4
-
5
- %w(
6
- action_controller
7
- action_view
8
- sprockets
9
- ).each do |framework|
10
- require "#{framework}/railtie"
11
- end
12
-
13
- require 'autoprefixer-rails'
14
- require 'slim-rails'
15
- require 'uglifier'
16
-
17
- require 'LoremGem'
18
- require 'jquery-rails'
19
-
20
- module Dummy
21
- class Application < Rails::Application
22
- config.assets.enabled = true if config.assets.respond_to?(:enabled)
23
- if Rails::VERSION::MAJOR > 4
24
- # Rails 4 precompiles application.css|js by default, but future version of Rails do not.
25
- config.assets.precompile += %w( application.css application.js )
26
- end
27
- config.to_prepare do
28
- if ENV['VERBOSE']
29
- STDERR.puts "Loaded Rails #{Rails::VERSION::STRING}, Sprockets #{Sprockets::VERSION}",
30
- "Asset paths: #{Rails.application.config.assets.paths}"
31
- end
32
- end
33
- end
34
- end
@@ -1,5 +0,0 @@
1
- # Set up gems listed in the Gemfile.
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
3
-
4
- require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
5
- $LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
@@ -1,5 +0,0 @@
1
- # Load the Rails application.
2
- require File.expand_path('../application', __FILE__)
3
-
4
- # Initialize the Rails application.
5
- Dummy::Application.initialize!
@@ -1,23 +0,0 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
3
-
4
- # In the development environment your application's code is reloaded on
5
- # every request. This slows down response time but is perfect for development
6
- # since you don't have to restart the web server when you make code changes.
7
- config.cache_classes = false
8
-
9
- # Do not eager load code on boot.
10
- config.eager_load = false
11
-
12
- # Show full error reports and disable caching.
13
- config.consider_all_requests_local = true
14
- config.action_controller.perform_caching = false
15
-
16
- # Print deprecation notices to the Rails logger.
17
- config.active_support.deprecation = :log
18
-
19
- # Debug mode disables concatenation and preprocessing of assets.
20
- # This option may cause significant delays in view rendering with a large
21
- # number of complex assets.
22
- config.assets.debug = true
23
- end
@@ -1,82 +0,0 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
3
-
4
- # Code is not reloaded between requests.
5
- config.cache_classes = true
6
-
7
- # Eager load code on boot. This eager loads most of Rails and
8
- # your application in memory, allowing both thread web servers
9
- # and those relying on copy on write to perform better.
10
- # Rake tasks automatically ignore this option for performance.
11
- config.eager_load = true
12
-
13
- # Full error reports are disabled and caching is turned on.
14
- config.consider_all_requests_local = false
15
- config.action_controller.perform_caching = true
16
-
17
- # Enable Rack::Cache to put a simple HTTP cache in front of your application
18
- # Add `rack-cache` to your Gemfile before enabling this.
19
- # For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
20
- # config.action_dispatch.rack_cache = true
21
-
22
- # Disable Rails's static asset server (Apache or nginx will already do this).
23
- if config.respond_to?(:serve_static_files)
24
- # rails >= 4.2
25
- config.serve_static_files = true
26
- elsif config.respond_to?(:serve_static_assets)
27
- # rails < 4.2
28
- config.serve_static_assets = true
29
- end
30
-
31
- # Compress JavaScripts and CSS.
32
- config.assets.js_compressor = :uglifier
33
- # config.assets.css_compressor = :sass
34
-
35
- # Do not fallback to assets pipeline if a precompiled asset is missed.
36
- config.assets.compile = false
37
-
38
- # Generate digests for assets URLs.
39
- config.assets.digest = true
40
-
41
- # Version of your assets, change this if you want to expire all your assets.
42
- config.assets.version = '1.0'
43
-
44
- # Specifies the header that your server uses for sending files.
45
- # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
46
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
47
-
48
- # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
49
- # config.force_ssl = true
50
-
51
- # Set to :debug to see everything in the log.
52
- config.log_level = :info
53
-
54
- # Prepend all log lines with the following tags.
55
- # config.log_tags = [ :subdomain, :uuid ]
56
-
57
- # Use a different logger for distributed setups.
58
- # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
59
-
60
- # Use a different cache store in production.
61
- # config.cache_store = :mem_cache_store
62
-
63
- # Enable serving of images, stylesheets, and JavaScripts from an asset server.
64
- # config.action_controller.asset_host = "http://assets.example.com"
65
-
66
- # Precompile additional assets.
67
- # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
68
- # config.assets.precompile += %w( search.js )
69
-
70
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
71
- # the I18n.default_locale when a translation can not be found).
72
- config.i18n.fallbacks = true
73
-
74
- # Send deprecation notices to registered listeners.
75
- config.active_support.deprecation = :notify
76
-
77
- # Disable automatic flushing of the log to improve performance.
78
- # config.autoflush_log = false
79
-
80
- # Use default logging formatter so that PID and timestamp are not suppressed.
81
- config.log_formatter = ::Logger::Formatter.new
82
- end
@@ -1,38 +0,0 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
3
-
4
- # The test environment is used exclusively to run your application's
5
- # test suite. You never need to work with it otherwise. Remember that
6
- # your test database is "scratch space" for the test suite and is wiped
7
- # and recreated between test runs. Don't rely on the data there!
8
- config.cache_classes = true
9
-
10
- # Do not eager load code on boot. This avoids loading your whole application
11
- # just for the purpose of running a single test. If you are using a tool that
12
- # preloads Rails for running tests, you may have to set it to true.
13
- config.eager_load = false
14
-
15
- # Configure static asset server for tests with Cache-Control for performance.
16
- if config.respond_to?(:serve_static_files)
17
- # rails >= 4.2
18
- config.serve_static_files = true
19
- elsif config.respond_to?(:serve_static_assets)
20
- # rails < 4.2
21
- config.serve_static_assets = true
22
- end
23
- config.static_cache_control = "public, max-age=3600"
24
-
25
- # Show full error reports and disable caching.
26
- config.consider_all_requests_local = true
27
- config.action_controller.perform_caching = false
28
-
29
- # Raise exceptions instead of rendering exception templates.
30
- config.action_dispatch.show_exceptions = false
31
-
32
- # Disable request forgery protection in test environment.
33
- config.action_controller.allow_forgery_protection = false
34
-
35
- config.active_support.test_order = :random
36
-
37
- config.active_support.deprecation = :stderr
38
- end
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
- # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
-
6
- # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
- # Rails.backtrace_cleaner.remove_silencers!
@@ -1,4 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Configure sensitive parameters which will be filtered from the log file.
4
- Rails.application.config.filter_parameters += [:password]
@@ -1,16 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new inflection rules using the following format. Inflections
4
- # are locale specific, and you may define rules for as many different
5
- # locales as you wish. All of these examples are active by default:
6
- # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
- # inflect.plural /^(ox)$/i, '\1en'
8
- # inflect.singular /^(ox)en/i, '\1'
9
- # inflect.irregular 'person', 'people'
10
- # inflect.uncountable %w( fish sheep )
11
- # end
12
-
13
- # These inflection rules are supported but not enabled by default:
14
- # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
- # inflect.acronym 'RESTful'
16
- # end
@@ -1,5 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new mime types for use in respond_to blocks:
4
- # Mime::Type.register "text/richtext", :rtf
5
- # Mime::Type.register_alias "text/html", :iphone
@@ -1,18 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key is used for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
-
6
- # Make sure the secret is at least 30 characters and all random,
7
- # no regular words or you'll be exposed to dictionary attacks.
8
- # You can use `rake secret` to generate a secure secret key.
9
-
10
- # Make sure your secret_key_base is kept private
11
- # if you're sharing your code publicly.
12
- token = '4380f36fda304251bf48f12ad4474b6d11447f1f959bd5b77a5d56c92b97f4c403ee0ae13d31a85ed88058ff8795bf31ec17e70e5c229b3707a77a2ee7e81cc'
13
-
14
- if Dummy::Application.config.respond_to?(:secret_key_base=)
15
- Dummy::Application.config.secret_key_base = token
16
- else
17
- Dummy::Application.config.secret_token = token
18
- end
@@ -1,3 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
@@ -1,14 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # This file contains settings for ActionController::ParamsWrapper which
4
- # is enabled by default.
5
-
6
- # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
- ActiveSupport.on_load(:action_controller) do
8
- wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
- end
10
-
11
- # To enable root element in JSON for ActiveRecord objects.
12
- # ActiveSupport.on_load(:active_record) do
13
- # self.include_root_in_json = true
14
- # end
@@ -1,3 +0,0 @@
1
- en:
2
- dummy:
3
- hello: Hello
@@ -1,3 +0,0 @@
1
- es:
2
- dummy:
3
- hello: Hola
@@ -1,3 +0,0 @@
1
- Dummy::Application.routes.draw do
2
- root to: 'pages#root'
3
- end
File without changes
@@ -1,7 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'actionpack', '~> 4.2.7'
4
- gem 'activesupport', '~> 4.2.7'
5
-
6
- gemspec path: '../../'
7
-
@@ -1,8 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'actionpack', '~> 5.0.0'
4
- gem 'activesupport', '~> 5.0.0'
5
- gem 'autoprefixer-rails', '>= 6.3.6.1'
6
-
7
- gemspec path: '../../'
8
-
@@ -1,8 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'actionpack', '~> 5.1.0'
4
- gem 'activesupport', '~> 5.1.0'
5
- gem 'autoprefixer-rails', '>= 7.1.1'
6
-
7
- gemspec path: '../../'
8
-
data/test/rails_test.rb DELETED
@@ -1,24 +0,0 @@
1
- require 'test_helper_rails'
2
-
3
- class RailsTest < ActionDispatch::IntegrationTest
4
- include ::DummyRailsIntegration
5
-
6
- def test_visit_root
7
- visit root_path
8
- # ^ will raise on JS errors
9
-
10
- assert_equal 200, page.status_code
11
-
12
- screenshot!
13
- end
14
-
15
- def test_autoprefixer
16
- get ActionController::Base.helpers.stylesheet_path('application.css')
17
- assert_match(/-webkit-(?:transition|transform)/, response.body)
18
- end
19
-
20
- def test_precompile
21
- Dummy::Application.load_tasks
22
- Rake::Task['assets:precompile'].invoke
23
- end
24
- end
@@ -1,29 +0,0 @@
1
- require 'capybara/dsl'
2
- require 'fileutils'
3
- module DummyRailsIntegration
4
- include Capybara::DSL
5
-
6
- def setup
7
- super
8
- cleanup_dummy_rails_files
9
- end
10
-
11
- def teardown
12
- super
13
- cleanup_dummy_rails_files
14
- Capybara.reset_sessions!
15
- Capybara.use_default_driver
16
- end
17
-
18
- def screenshot!
19
- path = "tmp/#{name}.png"
20
- page.driver.render(File.join(GEM_PATH, path), full: true)
21
- STDERR.puts "Screenshot saved to #{path}"
22
- end
23
-
24
- private
25
- def cleanup_dummy_rails_files
26
- FileUtils.rm_rf('test/dummy_rails/tmp/cache', secure: true)
27
- FileUtils.rm Dir.glob('test/dummy_rails/public/assets/{.[^\.]*,*}')
28
- end
29
- end
@@ -1,27 +0,0 @@
1
- module Kernel
2
- def silence_stdout_if(cond, &run)
3
- silence_stream_if(cond, STDOUT, &run)
4
- end
5
-
6
- def silence_stderr_if(cond, &run)
7
- silence_stream_if(cond, STDERR, &run)
8
- end
9
-
10
- def silence_stream_if(cond, stream, &run)
11
- if cond
12
- silence_stream(stream, &run)
13
- else
14
- run.call
15
- end
16
- end
17
-
18
- def silence_stream(stream)
19
- old_stream = stream.dup
20
- stream.reopen(File::NULL)
21
- stream.sync = true
22
- yield
23
- ensure
24
- stream.reopen(old_stream)
25
- old_stream.close
26
- end unless method_defined?(:silence_stream)
27
- end
data/test/test_helper.rb DELETED
@@ -1,35 +0,0 @@
1
- require 'minitest/autorun'
2
- require 'minitest/reporters'
3
- Minitest::Reporters.use! Minitest::Reporters::SpecReporter.new
4
-
5
- require 'active_support/core_ext/kernel/reporting'
6
-
7
- Dir['test/support/**/*.rb'].each do |file|
8
- # strip ^test/ and .rb$
9
- file = file[5..-4]
10
- require_relative File.join('.', file)
11
- end
12
-
13
- GEM_PATH = File.expand_path('../', File.dirname(__FILE__))
14
-
15
- #= Capybara + Poltergeist
16
- require 'capybara/poltergeist'
17
-
18
- Capybara.register_driver :poltergeist do |app|
19
- Capybara::Poltergeist::Driver.new(
20
- app,
21
- # inspector: '/Applications/Chromium.app/Contents/MacOS/Chromium', # open in inspector: page.driver.debug
22
- window_size: [1280, 1024],
23
- timeout: 90,
24
- js_errors: true
25
- )
26
- end
27
-
28
- Capybara.configure do |config|
29
- config.app_host = 'http://localhost:7000'
30
- config.default_driver = :poltergeist
31
- config.javascript_driver = :poltergeist
32
- config.server_port = 7000
33
- config.default_max_wait_time = 10
34
- end
35
-
@@ -1,6 +0,0 @@
1
- ENV['RAILS_ENV'] = ENV['RACK_ENV'] = 'test'
2
-
3
- require 'test_helper'
4
- require 'dummy_rails/config/environment'
5
- require 'rails/test_help'
6
- require 'capybara/rails'