kono_utils 0.15.16 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2bf793104fdf0b68cd4338a273cb8db30190d5e9
4
- data.tar.gz: 7908dfe89c232c9220db343380de40b23da0ddba
3
+ metadata.gz: b4e57e9167175d2787ee11e7e2164870e261e656
4
+ data.tar.gz: 7a9f369b51c52421c8de7fcbfda1995fecffa64c
5
5
  SHA512:
6
- metadata.gz: 98bc125c6c448115e5443e8ffc85af6af6ae626b9aa8f88af7ea1a54bf4c4bdc598908224d3998e0a23e70e99b859d3c52f6630ee5606958100c314c4c6eefc8
7
- data.tar.gz: 181f226160a7cb998c307561b3d0fa205423ecf5aaa112bcbe979955216b407cfac62e27c3612690e49ad2a6f4d4a6b2324d8cd1f9c03af215842d9ab60aa9e9
6
+ metadata.gz: 9894c45ce0a0ef5a02af477e4de9b96c956660d82581253b12321584bcd506eb8090544f3aeaa8069e48ec36dcfbe1fa2b10b9623aea7c9e93f8051d11151e35
7
+ data.tar.gz: 41aed57813c27a69a42ff2cf1b459a0c0b1917ec7a2c673ea1c8f4c75ebab1a881b3a186e629319b55f4015aa927ca9e82f4de92625530dd54326b58909e75cd
@@ -7,13 +7,28 @@ libreria di utilità per i vari progetti utilizzati da Archimedia.
7
7
 
8
8
  == Installazione
9
9
  aggiungere nel proprio gemfile
10
- source 'https://rails-assets.org'
11
10
 
12
11
  gem 'kono_utils'
13
12
 
14
- per avere anche le utilities in javascript:
13
+ bundle
14
+
15
+ Generatore:
16
+
17
+ bin/rails g kono_utils:install
18
+
19
+
20
+ che istalla le dipendenze con yarn e aggiunge il:
21
+
15
22
  require kono_utils/utilities
16
23
 
24
+ == Upgrade From 0.x
25
+ After bundle update make
26
+
27
+ bin/rails g kono_utils:install
28
+
29
+ so you have the yarn packages appended
30
+
31
+
17
32
  == Controllers/Views
18
33
 
19
34
  === ChangeLog
@@ -3,8 +3,7 @@
3
3
  #= require moment
4
4
  #= require bootstrap-datetimepicker
5
5
  #= require moment/it
6
- #= require bootstrap-treeview
7
-
6
+ #= require patternfly-bootstrap-treeview/src/js/bootstrap-treeview.js
8
7
 
9
8
  @Kono = @Kono || {};
10
9
 
@@ -19,6 +19,13 @@ module KonoUtils
19
19
  copy_file 'initializer.rb', 'config/initializers/kono_utils.rb'
20
20
  end
21
21
 
22
+ def install_node_dependency
23
+ run "yarn add patternfly-bootstrap-treeview"
24
+ end
25
+
26
+ def append_js_dependecy_to_assets
27
+ inject_into_file 'app/assets/javascripts/application.js',"//= require kono_utils/utilities\n", before: "//= require_tree ."
28
+ end
22
29
 
23
30
  end
24
31
  end
@@ -4,10 +4,10 @@ module KonoUtils
4
4
  require 'bootstrap3-datetimepicker-rails'
5
5
  require 'momentjs-rails'
6
6
  require 'font-awesome-rails'
7
- require 'rails-assets-bootstrap-treeview'
8
7
  require 'will_paginate'
9
8
  require 'will_paginate-bootstrap'
10
9
  require 'rdiscount'
10
+ require 'underscore-rails'
11
11
 
12
12
 
13
13
  initializer 'kono_utils.append_views', :group => :all do |app|
@@ -1,3 +1,3 @@
1
1
  module KonoUtils
2
- VERSION = '0.15.16'
2
+ VERSION = '1.0.0'
3
3
  end
@@ -0,0 +1,2 @@
1
+ node_modules
2
+ public/assets
@@ -10,4 +10,5 @@
10
10
  // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
11
  // about supported directives.
12
12
  //
13
+ //= require kono_utils/utilities
13
14
  //= require_tree .
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- APP_PATH = File.expand_path('../../config/application', __FILE__)
2
+ APP_PATH = File.expand_path('../config/application', __dir__)
3
3
  require_relative '../config/boot'
4
4
  require 'rails/commands'
@@ -1,29 +1,36 @@
1
1
  #!/usr/bin/env ruby
2
- require 'pathname'
2
+ require 'fileutils'
3
+ include FileUtils
3
4
 
4
5
  # path to your application root.
5
- APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
6
+ APP_ROOT = File.expand_path('..', __dir__)
6
7
 
7
- Dir.chdir APP_ROOT do
8
+ def system!(*args)
9
+ system(*args) || abort("\n== Command #{args} failed ==")
10
+ end
11
+
12
+ chdir APP_ROOT do
8
13
  # This script is a starting point to setup your application.
9
- # Add necessary setup steps to this file:
14
+ # Add necessary setup steps to this file.
15
+
16
+ puts '== Installing dependencies =='
17
+ system! 'gem install bundler --conservative'
18
+ system('bundle check') || system!('bundle install')
10
19
 
11
- puts "== Installing dependencies =="
12
- system "gem install bundler --conservative"
13
- system "bundle check || bundle install"
20
+ # Install JavaScript dependencies if using Yarn
21
+ # system('bin/yarn')
14
22
 
15
23
  # puts "\n== Copying sample files =="
16
- # unless File.exist?("config/database.yml")
17
- # system "cp config/database.yml.sample config/database.yml"
24
+ # unless File.exist?('config/database.yml')
25
+ # cp 'config/database.yml.sample', 'config/database.yml'
18
26
  # end
19
27
 
20
28
  puts "\n== Preparing database =="
21
- system "bin/rake db:setup"
29
+ system! 'bin/rails db:setup'
22
30
 
23
31
  puts "\n== Removing old logs and tempfiles =="
24
- system "rm -f log/*"
25
- system "rm -rf tmp/cache"
32
+ system! 'bin/rails log:clear tmp:clear'
26
33
 
27
34
  puts "\n== Restarting application server =="
28
- system "touch tmp/restart.txt"
35
+ system! 'bin/rails restart'
29
36
  end
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env ruby
2
+ require 'fileutils'
3
+ include FileUtils
4
+
5
+ # path to your application root.
6
+ APP_ROOT = File.expand_path('..', __dir__)
7
+
8
+ def system!(*args)
9
+ system(*args) || abort("\n== Command #{args} failed ==")
10
+ end
11
+
12
+ chdir APP_ROOT do
13
+ # This script is a way to update your development environment automatically.
14
+ # Add necessary update steps to this file.
15
+
16
+ puts '== Installing dependencies =='
17
+ system! 'gem install bundler --conservative'
18
+ system('bundle check') || system!('bundle install')
19
+
20
+ # Install JavaScript dependencies if using Yarn
21
+ # system('bin/yarn')
22
+
23
+ puts "\n== Updating database =="
24
+ system! 'bin/rails db:migrate'
25
+
26
+ puts "\n== Removing old logs and tempfiles =="
27
+ system! 'bin/rails log:clear tmp:clear'
28
+
29
+ puts "\n== Restarting application server =="
30
+ system! 'bin/rails restart'
31
+ end
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env ruby
2
+ APP_ROOT = File.expand_path('..', __dir__)
3
+ Dir.chdir(APP_ROOT) do
4
+ begin
5
+ exec "yarnpkg", *ARGV
6
+ rescue Errno::ENOENT
7
+ $stderr.puts "Yarn executable was not detected in the system."
8
+ $stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
9
+ exit 1
10
+ end
11
+ end
@@ -1,32 +1,30 @@
1
- require File.expand_path('../boot', __FILE__)
1
+ require_relative 'boot'
2
2
 
3
+ require "rails"
3
4
  # Pick the frameworks you want:
5
+ require "active_model/railtie"
6
+ require "active_job/railtie"
4
7
  require "active_record/railtie"
8
+ require "active_storage/engine"
5
9
  require "action_controller/railtie"
6
10
  require "action_mailer/railtie"
7
11
  require "action_view/railtie"
12
+ # require "action_cable/engine"
8
13
  require "sprockets/railtie"
9
- # require "rails/test_unit/railtie"
14
+ require "rails/test_unit/railtie"
10
15
 
16
+ # Require the gems listed in Gemfile, including any gems
17
+ # you've limited to :test, :development, or :production.
11
18
  Bundler.require(*Rails.groups)
12
- require "kono_utils"
13
19
 
14
20
  module Dummy
15
21
  class Application < Rails::Application
16
- # Settings in config/environments/* take precedence over those specified here.
17
- # Application configuration should go into files in config/initializers
18
- # -- all .rb files in that directory are automatically loaded.
19
-
20
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
21
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
22
- # config.time_zone = 'Central Time (US & Canada)'
23
-
24
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
25
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
26
- # config.i18n.default_locale = :de
22
+ # Initialize configuration defaults for originally generated Rails version.
23
+ config.load_defaults 5.0
27
24
 
28
- # Do not swallow errors in after_commit/after_rollback callbacks.
29
- config.active_record.raise_in_transactional_callbacks = true
25
+ # Settings in config/environments/* take precedence over those specified here.
26
+ # Application configuration can go into files in config/initializers
27
+ # -- all .rb files in that directory are automatically loaded after loading
28
+ # the framework and any gems in your application.
30
29
  end
31
30
  end
32
-
@@ -1,5 +1,5 @@
1
1
  # Load the Rails application.
2
- require File.expand_path('../application', __FILE__)
2
+ require_relative 'application'
3
3
 
4
4
  # Initialize the Rails application.
5
5
  Rails.application.initialize!
@@ -9,33 +9,53 @@ Rails.application.configure do
9
9
  # Do not eager load code on boot.
10
10
  config.eager_load = false
11
11
 
12
- # Show full error reports and disable caching.
13
- config.consider_all_requests_local = true
14
- config.action_controller.perform_caching = false
12
+ # Show full error reports.
13
+ config.consider_all_requests_local = true
14
+
15
+ # Enable/disable caching. By default caching is disabled.
16
+ # Run rails dev:cache to toggle caching.
17
+ if Rails.root.join('tmp', 'caching-dev.txt').exist?
18
+ config.action_controller.perform_caching = true
19
+
20
+ config.cache_store = :memory_store
21
+ config.public_file_server.headers = {
22
+ 'Cache-Control' => "public, max-age=#{2.days.to_i}"
23
+ }
24
+ else
25
+ config.action_controller.perform_caching = false
26
+
27
+ config.cache_store = :null_store
28
+ end
29
+
30
+ # Store uploaded files on the local file system (see config/storage.yml for options)
31
+ config.active_storage.service = :local
15
32
 
16
33
  # Don't care if the mailer can't send.
17
34
  config.action_mailer.raise_delivery_errors = false
18
35
 
36
+ config.action_mailer.perform_caching = false
37
+
19
38
  # Print deprecation notices to the Rails logger.
20
39
  config.active_support.deprecation = :log
21
40
 
22
41
  # Raise an error on page load if there are pending migrations.
23
42
  config.active_record.migration_error = :page_load
24
43
 
44
+ # Highlight code that triggered database queries in logs.
45
+ config.active_record.verbose_query_logs = true
46
+
25
47
  # Debug mode disables concatenation and preprocessing of assets.
26
48
  # This option may cause significant delays in view rendering with a large
27
49
  # number of complex assets.
28
50
  config.assets.debug = true
29
51
 
30
- # Asset digests allow you to set far-future HTTP expiration dates on all assets,
31
- # yet still be able to expire them through the digest params.
32
- config.assets.digest = true
33
-
34
- # Adds additional error checking when serving assets at runtime.
35
- # Checks for improperly declared sprockets dependencies.
36
- # Raises helpful error messages.
37
- config.assets.raise_runtime_errors = true
52
+ # Suppress logger output for asset requests.
53
+ config.assets.quiet = true
38
54
 
39
55
  # Raises error for missing translations
40
56
  # config.action_view.raise_on_missing_translations = true
57
+
58
+ # Use an evented file watcher to asynchronously detect changes in source code,
59
+ # routes, locales, etc. This feature depends on the listen gem.
60
+ config.file_watcher = ActiveSupport::EventedFileUpdateChecker
41
61
  end
@@ -14,15 +14,13 @@ Rails.application.configure do
14
14
  config.consider_all_requests_local = false
15
15
  config.action_controller.perform_caching = true
16
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
20
- # NGINX, varnish or squid.
21
- # config.action_dispatch.rack_cache = true
17
+ # Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"]
18
+ # or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
19
+ # config.require_master_key = true
22
20
 
23
21
  # Disable serving static files from the `/public` folder by default since
24
22
  # Apache or NGINX already handles this.
25
- config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
23
+ config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
26
24
 
27
25
  # Compress JavaScripts and CSS.
28
26
  config.assets.js_compressor = :uglifier
@@ -31,16 +29,18 @@ Rails.application.configure do
31
29
  # Do not fallback to assets pipeline if a precompiled asset is missed.
32
30
  config.assets.compile = false
33
31
 
34
- # Asset digests allow you to set far-future HTTP expiration dates on all assets,
35
- # yet still be able to expire them through the digest params.
36
- config.assets.digest = true
37
-
38
32
  # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
39
33
 
34
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server.
35
+ # config.action_controller.asset_host = 'http://assets.example.com'
36
+
40
37
  # Specifies the header that your server uses for sending files.
41
38
  # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
42
39
  # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
43
40
 
41
+ # Store uploaded files on the local file system (see config/storage.yml for options)
42
+ config.active_storage.service = :local
43
+
44
44
  # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
45
45
  # config.force_ssl = true
46
46
 
@@ -49,16 +49,16 @@ Rails.application.configure do
49
49
  config.log_level = :debug
50
50
 
51
51
  # Prepend all log lines with the following tags.
52
- # config.log_tags = [ :subdomain, :uuid ]
53
-
54
- # Use a different logger for distributed setups.
55
- # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
52
+ config.log_tags = [ :request_id ]
56
53
 
57
54
  # Use a different cache store in production.
58
55
  # config.cache_store = :mem_cache_store
59
56
 
60
- # Enable serving of images, stylesheets, and JavaScripts from an asset server.
61
- # config.action_controller.asset_host = 'http://assets.example.com'
57
+ # Use a real queuing backend for Active Job (and separate queues per environment)
58
+ # config.active_job.queue_adapter = :resque
59
+ # config.active_job.queue_name_prefix = "dummy_#{Rails.env}"
60
+
61
+ config.action_mailer.perform_caching = false
62
62
 
63
63
  # Ignore bad email addresses and do not raise email delivery errors.
64
64
  # Set this to true and configure the email server for immediate delivery to raise delivery errors.
@@ -74,6 +74,16 @@ Rails.application.configure do
74
74
  # Use default logging formatter so that PID and timestamp are not suppressed.
75
75
  config.log_formatter = ::Logger::Formatter.new
76
76
 
77
+ # Use a different logger for distributed setups.
78
+ # require 'syslog/logger'
79
+ # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
80
+
81
+ if ENV["RAILS_LOG_TO_STDOUT"].present?
82
+ logger = ActiveSupport::Logger.new(STDOUT)
83
+ logger.formatter = config.log_formatter
84
+ config.logger = ActiveSupport::TaggedLogging.new(logger)
85
+ end
86
+
77
87
  # Do not dump schema after migrations.
78
88
  config.active_record.dump_schema_after_migration = false
79
89
  end
@@ -12,9 +12,11 @@ Rails.application.configure do
12
12
  # preloads Rails for running tests, you may have to set it to true.
13
13
  config.eager_load = false
14
14
 
15
- # Configure static file server for tests with Cache-Control for performance.
16
- config.serve_static_files = true
17
- config.static_cache_control = 'public, max-age=3600'
15
+ # Configure public file server for tests with Cache-Control for performance.
16
+ config.public_file_server.enabled = true
17
+ config.public_file_server.headers = {
18
+ 'Cache-Control' => "public, max-age=#{1.hour.to_i}"
19
+ }
18
20
 
19
21
  # Show full error reports and disable caching.
20
22
  config.consider_all_requests_local = true
@@ -26,14 +28,16 @@ Rails.application.configure do
26
28
  # Disable request forgery protection in test environment.
27
29
  config.action_controller.allow_forgery_protection = false
28
30
 
31
+ # Store uploaded files on the local file system in a temporary directory
32
+ config.active_storage.service = :test
33
+
34
+ config.action_mailer.perform_caching = false
35
+
29
36
  # Tell Action Mailer not to deliver emails to the real world.
30
37
  # The :test delivery method accumulates sent emails in the
31
38
  # ActionMailer::Base.deliveries array.
32
39
  config.action_mailer.delivery_method = :test
33
40
 
34
- # Randomize the order test cases are executed.
35
- config.active_support.test_order = :random
36
-
37
41
  # Print deprecation notices to the stderr.
38
42
  config.active_support.deprecation = :stderr
39
43
 
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # ActiveSupport::Reloader.to_prepare do
4
+ # ApplicationController.renderer.defaults.merge!(
5
+ # http_host: 'example.org',
6
+ # https: false
7
+ # )
8
+ # end
@@ -3,9 +3,12 @@
3
3
  # Version of your assets, change this if you want to expire all your assets.
4
4
  Rails.application.config.assets.version = '1.0'
5
5
 
6
- # Add additional assets to the asset load path
6
+ # Add additional assets to the asset load path.
7
7
  # Rails.application.config.assets.paths << Emoji.images_path
8
+ # Add Yarn node_modules folder to the asset load path.
9
+ Rails.application.config.assets.paths << Rails.root.join('node_modules')
8
10
 
9
11
  # Precompile additional assets.
10
- # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
11
- # Rails.application.config.assets.precompile += %w( search.js )
12
+ # application.js, application.css, and all non-JS/CSS in the app/assets
13
+ # folder are already added.
14
+ # Rails.application.config.assets.precompile += %w( admin.js admin.css )
@@ -0,0 +1,25 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Define an application-wide content security policy
4
+ # For further information see the following documentation
5
+ # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
6
+
7
+ # Rails.application.config.content_security_policy do |policy|
8
+ # policy.default_src :self, :https
9
+ # policy.font_src :self, :https, :data
10
+ # policy.img_src :self, :https, :data
11
+ # policy.object_src :none
12
+ # policy.script_src :self, :https
13
+ # policy.style_src :self, :https
14
+
15
+ # # Specify URI for violation reports
16
+ # # policy.report_uri "/csp-violation-report-endpoint"
17
+ # end
18
+
19
+ # If you are using UJS then enable automatic nonce generation
20
+ # Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) }
21
+
22
+ # Report CSP violations to a specified URI
23
+ # For further information see the following documentation:
24
+ # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only
25
+ # Rails.application.config.content_security_policy_report_only = true
@@ -1,3 +1,5 @@
1
1
  # Be sure to restart your server when you modify this file.
2
2
 
3
+ # Specify a serializer for the signed and encrypted cookie jars.
4
+ # Valid options are :json, :marshal, and :hybrid.
3
5
  Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -0,0 +1,3 @@
1
+ KonoUtils.configure do |config|
2
+ #config.google_api_key = '' #chiave API
3
+ end
@@ -0,0 +1,38 @@
1
+ # Be sure to restart your server when you modify this file.
2
+ #
3
+ # This file contains migration options to ease your Rails 5.2 upgrade.
4
+ #
5
+ # Once upgraded flip defaults one by one to migrate to the new default.
6
+ #
7
+ # Read the Guide for Upgrading Ruby on Rails for more info on each option.
8
+
9
+ # Make Active Record use stable #cache_key alongside new #cache_version method.
10
+ # This is needed for recyclable cache keys.
11
+ # Rails.application.config.active_record.cache_versioning = true
12
+
13
+ # Use AES-256-GCM authenticated encryption for encrypted cookies.
14
+ # Also, embed cookie expiry in signed or encrypted cookies for increased security.
15
+ #
16
+ # This option is not backwards compatible with earlier Rails versions.
17
+ # It's best enabled when your entire app is migrated and stable on 5.2.
18
+ #
19
+ # Existing cookies will be converted on read then written with the new scheme.
20
+ # Rails.application.config.action_dispatch.use_authenticated_cookie_encryption = true
21
+
22
+ # Use AES-256-GCM authenticated encryption as default cipher for encrypting messages
23
+ # instead of AES-256-CBC, when use_authenticated_message_encryption is set to true.
24
+ # Rails.application.config.active_support.use_authenticated_message_encryption = true
25
+
26
+ # Add default protection from forgery to ActionController::Base instead of in
27
+ # ApplicationController.
28
+ # Rails.application.config.action_controller.default_protect_from_forgery = true
29
+
30
+ # Store boolean values are in sqlite3 databases as 1 and 0 instead of 't' and
31
+ # 'f' after migrating old data.
32
+ # Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
33
+
34
+ # Use SHA-1 instead of MD5 to generate non-sensitive digests, such as the ETag header.
35
+ # Rails.application.config.active_support.use_sha1_digests = true
36
+
37
+ # Make `form_with` generate id attributes for any generated HTML tags.
38
+ # Rails.application.config.action_view.form_with_generates_ids = true
@@ -5,10 +5,10 @@
5
5
 
6
6
  # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
7
  ActiveSupport.on_load(:action_controller) do
8
- wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
8
+ wrap_parameters format: [:json]
9
9
  end
10
10
 
11
11
  # To enable root element in JSON for ActiveRecord objects.
12
12
  # ActiveSupport.on_load(:active_record) do
13
- # self.include_root_in_json = true
13
+ # self.include_root_in_json = true
14
14
  # end
@@ -16,6 +16,16 @@
16
16
  #
17
17
  # This would use the information in config/locales/es.yml.
18
18
  #
19
+ # The following keys must be escaped otherwise they will not be retrieved by
20
+ # the default I18n backend:
21
+ #
22
+ # true, false, on, off, yes, no
23
+ #
24
+ # Instead, surround them with single quotes.
25
+ #
26
+ # en:
27
+ # 'true': 'foo'
28
+ #
19
29
  # To learn more, please read the Rails Internationalization guide
20
30
  # available at http://guides.rubyonrails.org/i18n.html.
21
31
 
@@ -1,56 +1,3 @@
1
1
  Rails.application.routes.draw do
2
- # The priority is based upon order of creation: first created -> highest priority.
3
- # See how all your routes lay out with "rake routes".
4
-
5
- # You can have the root of your site routed with "root"
6
- # root 'welcome#index'
7
-
8
- # Example of regular route:
9
- # get 'products/:id' => 'catalog#view'
10
-
11
- # Example of named route that can be invoked with purchase_url(id: product.id)
12
- # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
13
-
14
- # Example resource route (maps HTTP verbs to controller actions automatically):
15
- # resources :products
16
-
17
- # Example resource route with options:
18
- # resources :products do
19
- # member do
20
- # get 'short'
21
- # post 'toggle'
22
- # end
23
- #
24
- # collection do
25
- # get 'sold'
26
- # end
27
- # end
28
-
29
- # Example resource route with sub-resources:
30
- # resources :products do
31
- # resources :comments, :sales
32
- # resource :seller
33
- # end
34
-
35
- # Example resource route with more complex sub-resources:
36
- # resources :products do
37
- # resources :comments
38
- # resources :sales do
39
- # get 'recent', on: :collection
40
- # end
41
- # end
42
-
43
- # Example resource route with concerns:
44
- # concern :toggleable do
45
- # post 'toggle'
46
- # end
47
- # resources :posts, concerns: :toggleable
48
- # resources :photos, concerns: :toggleable
49
-
50
- # Example resource route within a namespace:
51
- # namespace :admin do
52
- # # Directs /admin/products/* to Admin::ProductsController
53
- # # (app/controllers/admin/products_controller.rb)
54
- # resources :products
55
- # end
2
+ # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
56
3
  end
@@ -0,0 +1,34 @@
1
+ test:
2
+ service: Disk
3
+ root: <%= Rails.root.join("tmp/storage") %>
4
+
5
+ local:
6
+ service: Disk
7
+ root: <%= Rails.root.join("storage") %>
8
+
9
+ # Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
10
+ # amazon:
11
+ # service: S3
12
+ # access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
13
+ # secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
14
+ # region: us-east-1
15
+ # bucket: your_own_bucket
16
+
17
+ # Remember not to checkin your GCS keyfile to a repository
18
+ # google:
19
+ # service: GCS
20
+ # project: your_project
21
+ # credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>
22
+ # bucket: your_own_bucket
23
+
24
+ # Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
25
+ # microsoft:
26
+ # service: AzureStorage
27
+ # storage_account_name: your_account_name
28
+ # storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %>
29
+ # container: your_container_name
30
+
31
+ # mirror:
32
+ # service: Mirror
33
+ # primary: local
34
+ # mirrors: [ amazon, google, microsoft ]
@@ -0,0 +1,5 @@
1
+ {
2
+ "dependencies": {
3
+ "patternfly-bootstrap-treeview": "^2.1.8"
4
+ }
5
+ }
@@ -0,0 +1,21 @@
1
+ # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2
+ # yarn lockfile v1
3
+
4
+
5
+ bootstrap@3.4.x:
6
+ version "3.4.1"
7
+ resolved "https://registry.yarnpkg.com/bootstrap/-/bootstrap-3.4.1.tgz#c3a347d419e289ad11f4033e3c4132b87c081d72"
8
+ integrity sha512-yN5oZVmRCwe5aKwzRj6736nSmKDX7pLYwsXiCj/EYmo16hODaBiT4En5btW/jhBF/seV+XMx3aYwukYC3A49DA==
9
+
10
+ "jquery@>= 2.1.x":
11
+ version "3.4.1"
12
+ resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.4.1.tgz#714f1f8d9dde4bdfa55764ba37ef214630d80ef2"
13
+ integrity sha512-36+AdBzCL+y6qjw5Tx7HgzeGCzC81MDDgaUP8ld2zhx58HdqXGoBd+tHdrBMiyjGQs0Hxs/MLZTu/eHNJJuWPw==
14
+
15
+ patternfly-bootstrap-treeview@^2.1.8:
16
+ version "2.1.8"
17
+ resolved "https://registry.yarnpkg.com/patternfly-bootstrap-treeview/-/patternfly-bootstrap-treeview-2.1.8.tgz#4a79e245e8421578b6ce89a52c94596f523ae16f"
18
+ integrity sha512-Z3v+zJ0AEhMiySyj7qgUs4yGM8afJwjUUWgwSosWI9xpMsyJV+B+I+GzgRoGiukzh14EOl3EiX4qqMBC+nwqXQ==
19
+ dependencies:
20
+ bootstrap "3.4.x"
21
+ jquery ">= 2.1.x"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kono_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.16
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marino
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-29 00:00:00.000000000 Z
11
+ date: 2019-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview
@@ -137,35 +137,35 @@ dependencies:
137
137
  - !ruby/object:Gem::Version
138
138
  version: 4.17.42
139
139
  - !ruby/object:Gem::Dependency
140
- name: rails-assets-bootstrap-treeview
140
+ name: will_paginate
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 1.2.0
145
+ version: 3.1.0
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 1.2.0
152
+ version: 3.1.0
153
153
  - !ruby/object:Gem::Dependency
154
- name: will_paginate
154
+ name: will_paginate-bootstrap
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - "~>"
157
+ - - ">="
158
158
  - !ruby/object:Gem::Version
159
- version: 3.1.0
159
+ version: '0'
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - "~>"
164
+ - - ">="
165
165
  - !ruby/object:Gem::Version
166
- version: 3.1.0
166
+ version: '0'
167
167
  - !ruby/object:Gem::Dependency
168
- name: will_paginate-bootstrap
168
+ name: rdiscount
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - ">="
@@ -179,7 +179,7 @@ dependencies:
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
181
  - !ruby/object:Gem::Dependency
182
- name: rdiscount
182
+ name: coffee-rails
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - ">="
@@ -210,14 +210,14 @@ dependencies:
210
210
  name: rails
211
211
  requirement: !ruby/object:Gem::Requirement
212
212
  requirements:
213
- - - "~>"
213
+ - - ">"
214
214
  - !ruby/object:Gem::Version
215
215
  version: 4.2.4
216
216
  type: :development
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
- - - "~>"
220
+ - - ">"
221
221
  - !ruby/object:Gem::Version
222
222
  version: 4.2.4
223
223
  - !ruby/object:Gem::Dependency
@@ -310,6 +310,7 @@ files:
310
310
  - lib/kono_utils/version.rb
311
311
  - lib/kono_utils/virtual_model.rb
312
312
  - lib/tasks/kono_utils_tasks.rake
313
+ - spec/dummy/.gitignore
313
314
  - spec/dummy/README.rdoc
314
315
  - spec/dummy/Rakefile
315
316
  - spec/dummy/app/assets/images/.keep
@@ -326,6 +327,8 @@ files:
326
327
  - spec/dummy/bin/rails
327
328
  - spec/dummy/bin/rake
328
329
  - spec/dummy/bin/setup
330
+ - spec/dummy/bin/update
331
+ - spec/dummy/bin/yarn
329
332
  - spec/dummy/config.ru
330
333
  - spec/dummy/config/application.rb
331
334
  - spec/dummy/config/boot.rb
@@ -334,23 +337,30 @@ files:
334
337
  - spec/dummy/config/environments/development.rb
335
338
  - spec/dummy/config/environments/production.rb
336
339
  - spec/dummy/config/environments/test.rb
340
+ - spec/dummy/config/initializers/application_controller_renderer.rb
337
341
  - spec/dummy/config/initializers/assets.rb
338
342
  - spec/dummy/config/initializers/backtrace_silencers.rb
343
+ - spec/dummy/config/initializers/content_security_policy.rb
339
344
  - spec/dummy/config/initializers/cookies_serializer.rb
340
345
  - spec/dummy/config/initializers/filter_parameter_logging.rb
341
346
  - spec/dummy/config/initializers/inflections.rb
347
+ - spec/dummy/config/initializers/kono_utils.rb
342
348
  - spec/dummy/config/initializers/mime_types.rb
349
+ - spec/dummy/config/initializers/new_framework_defaults_5_2.rb
343
350
  - spec/dummy/config/initializers/session_store.rb
344
351
  - spec/dummy/config/initializers/wrap_parameters.rb
345
352
  - spec/dummy/config/locales/en.yml
346
353
  - spec/dummy/config/routes.rb
347
354
  - spec/dummy/config/secrets.yml
355
+ - spec/dummy/config/storage.yml
348
356
  - spec/dummy/lib/assets/.keep
349
357
  - spec/dummy/log/.keep
358
+ - spec/dummy/package.json
350
359
  - spec/dummy/public/404.html
351
360
  - spec/dummy/public/422.html
352
361
  - spec/dummy/public/500.html
353
362
  - spec/dummy/public/favicon.ico
363
+ - spec/dummy/yarn.lock
354
364
  - spec/lib/kono_utils/fiscal_code_spec.rb
355
365
  - spec/rails_helper.rb
356
366
  - spec/spec_helper.rb
@@ -375,11 +385,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
375
385
  version: '0'
376
386
  requirements: []
377
387
  rubyforge_project:
378
- rubygems_version: 2.6.14
388
+ rubygems_version: 2.5.2
379
389
  signing_key:
380
390
  specification_version: 4
381
391
  summary: Kono Utilities
382
392
  test_files:
393
+ - spec/dummy/.gitignore
383
394
  - spec/dummy/README.rdoc
384
395
  - spec/dummy/Rakefile
385
396
  - spec/dummy/app/assets/images/.keep
@@ -396,6 +407,8 @@ test_files:
396
407
  - spec/dummy/bin/rails
397
408
  - spec/dummy/bin/rake
398
409
  - spec/dummy/bin/setup
410
+ - spec/dummy/bin/update
411
+ - spec/dummy/bin/yarn
399
412
  - spec/dummy/config.ru
400
413
  - spec/dummy/config/application.rb
401
414
  - spec/dummy/config/boot.rb
@@ -404,23 +417,30 @@ test_files:
404
417
  - spec/dummy/config/environments/development.rb
405
418
  - spec/dummy/config/environments/production.rb
406
419
  - spec/dummy/config/environments/test.rb
420
+ - spec/dummy/config/initializers/application_controller_renderer.rb
407
421
  - spec/dummy/config/initializers/assets.rb
408
422
  - spec/dummy/config/initializers/backtrace_silencers.rb
423
+ - spec/dummy/config/initializers/content_security_policy.rb
409
424
  - spec/dummy/config/initializers/cookies_serializer.rb
410
425
  - spec/dummy/config/initializers/filter_parameter_logging.rb
411
426
  - spec/dummy/config/initializers/inflections.rb
427
+ - spec/dummy/config/initializers/kono_utils.rb
412
428
  - spec/dummy/config/initializers/mime_types.rb
429
+ - spec/dummy/config/initializers/new_framework_defaults_5_2.rb
413
430
  - spec/dummy/config/initializers/session_store.rb
414
431
  - spec/dummy/config/initializers/wrap_parameters.rb
415
432
  - spec/dummy/config/locales/en.yml
416
433
  - spec/dummy/config/routes.rb
417
434
  - spec/dummy/config/secrets.yml
435
+ - spec/dummy/config/storage.yml
418
436
  - spec/dummy/lib/assets/.keep
419
437
  - spec/dummy/log/.keep
438
+ - spec/dummy/package.json
420
439
  - spec/dummy/public/404.html
421
440
  - spec/dummy/public/422.html
422
441
  - spec/dummy/public/500.html
423
442
  - spec/dummy/public/favicon.ico
443
+ - spec/dummy/yarn.lock
424
444
  - spec/lib/kono_utils/fiscal_code_spec.rb
425
445
  - spec/rails_helper.rb
426
446
  - spec/spec_helper.rb