yarii-cloudinary 0.2.0 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yarii-cloudinary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jared White
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-21 00:00:00.000000000 Z
11
+ date: 2020-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,28 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 6.0.0
19
+ version: '6.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 6.0.0
27
- - !ruby/object:Gem::Dependency
28
- name: webpacker
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '4.0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '4.0'
26
+ version: '6.0'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: cloudinary
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -54,25 +40,25 @@ dependencies:
54
40
  version: '1.12'
55
41
  description: Allows images to be loaded and viewed in Yarii via the Cloudinary service
56
42
  email:
57
- - jared@jaredwhite.com
43
+ - jared@whitefusion.io
58
44
  executables: []
59
45
  extensions: []
60
46
  extra_rdoc_files: []
61
47
  files:
48
+ - ".gitignore"
49
+ - ".ruby-version"
50
+ - Gemfile
62
51
  - LICENSE
52
+ - Procfile.staging
63
53
  - README.md
64
54
  - Rakefile
65
55
  - app/controllers/yarii_cloudinary/application_controller.rb
66
56
  - app/controllers/yarii_cloudinary/media_controller.rb
67
- - app/helpers/yarii_cloudinary/application_helper.rb
68
57
  - app/javascript/controllers/cloudinary_browse_media_controller.js
69
58
  - app/javascript/controllers/cloudinary_multiple_media_controller.js
70
59
  - app/javascript/controllers/cloudinary_single_media_controller.js
71
- - app/javascript/controllers/index.js
72
- - app/javascript/packs/application.js
73
- - app/jobs/yarii_cloudinary/application_job.rb
60
+ - app/javascript/index.js
74
61
  - app/styles/index.scss
75
- - app/views/yarii_cloudinary/application/yarii_cloudinary_head.erb
76
62
  - app/views/yarii_cloudinary/media/_browse_thumbnail.html.erb
77
63
  - app/views/yarii_cloudinary/media/_form_thumbnail.html.erb
78
64
  - app/views/yarii_cloudinary/media/_modal.html.erb
@@ -80,19 +66,20 @@ files:
80
66
  - app/views/yarii_cloudinary/media/index.html.erb
81
67
  - app/views/yarii_editor/editor/_cloudinary.html.erb
82
68
  - app/views/yarii_editor/editor/_cloudinary_multiple.html.erb
69
+ - app/views/yarii_editor/model_cards/_image_figure.html.erb
70
+ - babel.config.js
71
+ - bin/rails
72
+ - bin/webpack
83
73
  - config/routes.rb
84
- - config/webpack/development.js
85
- - config/webpack/environment.js
86
- - config/webpack/production.js
87
- - config/webpack/staging.js
88
- - config/webpack/test.js
89
- - config/webpacker.yml
90
74
  - db/migrate/20190923000809_create_yarii_sites.rb
91
- - lib/tasks/yarii_cloudinary_tasks.rake
92
75
  - lib/yarii-cloudinary.rb
93
76
  - lib/yarii-cloudinary/engine.rb
94
77
  - lib/yarii-cloudinary/version.rb
95
- homepage: https://whitefusion.io
78
+ - package.json
79
+ - postcss.config.js
80
+ - yarii-cloudinary.gemspec
81
+ - yarn.lock
82
+ homepage: https://github.com/whitefusionhq/yarii-cloudinary
96
83
  licenses:
97
84
  - MIT
98
85
  metadata: {}
@@ -1,9 +0,0 @@
1
- module YariiCloudinary
2
- module ApplicationHelper
3
- include ::Webpacker::Helper
4
-
5
- def current_webpacker_instance
6
- YariiCloudinary.webpacker
7
- end
8
- end
9
- end
@@ -1,11 +0,0 @@
1
- // Load all the controllers within this directory and all subdirectories.
2
- // Controller files must be named *_controller.js.
3
-
4
- import { Application } from "stimulus"
5
- import { definitionsFromContext } from "stimulus/webpack-helpers"
6
-
7
- const application = Application.start()
8
- const context = require.context("controllers", true, /_controller\.js$/)
9
- application.load(definitionsFromContext(context))
10
-
11
- console.info("cloudinary II:!")
@@ -1,2 +0,0 @@
1
- import '../../styles/index.scss'
2
- import "controllers"
@@ -1,4 +0,0 @@
1
- module YariiCloudinary
2
- class ApplicationJob < ActiveJob::Base
3
- end
4
- end
@@ -1,2 +0,0 @@
1
- <%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
2
- <%= stylesheet_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
@@ -1,5 +0,0 @@
1
- process.env.NODE_ENV = process.env.NODE_ENV || 'development'
2
-
3
- const environment = require('./environment')
4
-
5
- module.exports = environment.toWebpackConfig()
@@ -1,3 +0,0 @@
1
- const { environment } = require('@rails/webpacker')
2
-
3
- module.exports = environment
@@ -1,5 +0,0 @@
1
- process.env.NODE_ENV = process.env.NODE_ENV || 'production'
2
-
3
- const environment = require('./environment')
4
-
5
- module.exports = environment.toWebpackConfig()
@@ -1,5 +0,0 @@
1
- process.env.NODE_ENV = process.env.NODE_ENV || 'staging'
2
-
3
- const environment = require('./environment')
4
-
5
- module.exports = environment.toWebpackConfig()
@@ -1,5 +0,0 @@
1
- process.env.NODE_ENV = process.env.NODE_ENV || 'development'
2
-
3
- const environment = require('./environment')
4
-
5
- module.exports = environment.toWebpackConfig()
@@ -1,110 +0,0 @@
1
- # Note: You must restart bin/webpack-dev-server for changes to take effect
2
-
3
- default: &default
4
- source_path: app/javascript
5
- source_entry_path: packs
6
- public_root_path: public
7
- # use a different sub-folder name
8
- public_output_path: yarii-cloudinary-packs
9
-
10
- cache_path: tmp/cache/webpacker
11
- check_yarn_integrity: false
12
- webpack_compile_output: false
13
-
14
- # Additional paths webpack should lookup modules
15
- # ['app/assets', 'engine/foo/app/assets']
16
- resolved_paths: []
17
-
18
- # Reload manifest.json on all requests so we reload latest compiled packs
19
- cache_manifest: false
20
-
21
- # Extract and emit a css file
22
- extract_css: true
23
-
24
- static_assets_extensions:
25
- - .jpg
26
- - .jpeg
27
- - .png
28
- - .gif
29
- - .tiff
30
- - .ico
31
- - .svg
32
- - .eot
33
- - .otf
34
- - .ttf
35
- - .woff
36
- - .woff2
37
-
38
- extensions:
39
- - .mjs
40
- - .js
41
- - .sass
42
- - .scss
43
- - .css
44
- - .module.sass
45
- - .module.scss
46
- - .module.css
47
- - .png
48
- - .svg
49
- - .gif
50
- - .jpeg
51
- - .jpg
52
-
53
- development:
54
- <<: *default
55
- compile: true
56
-
57
- # Verifies that versions and hashed value of the package contents in the project's package.json
58
- check_yarn_integrity: true
59
-
60
- # Reference: https://webpack.js.org/configuration/dev-server/
61
- dev_server:
62
- https: false
63
- host: localhost
64
- port: 3035
65
- public: localhost:3035
66
- hmr: false
67
- # Inline should be set to true if using HMR
68
- inline: true
69
- overlay: true
70
- compress: true
71
- disable_host_check: true
72
- use_local_ip: false
73
- quiet: false
74
- headers:
75
- 'Access-Control-Allow-Origin': '*'
76
- watch_options:
77
- ignored: '**/node_modules/**'
78
-
79
-
80
- test:
81
- <<: *default
82
- compile: true
83
-
84
- # Compile test packs to a separate directory
85
- public_output_path: packs-test
86
-
87
- staging:
88
- <<: *default
89
-
90
- # Staging, like Production, depends on precompilation of packs prior to booting for performance.
91
- compile: false
92
-
93
- # Extract and emit a css file
94
- extract_css: true
95
-
96
- # Cache manifest.json for performance
97
- cache_manifest: true
98
-
99
-
100
- production:
101
- <<: *default
102
-
103
- # Production depends on precompilation of packs prior to booting for performance.
104
- compile: false
105
-
106
- # Extract and emit a css file
107
- extract_css: true
108
-
109
- # Cache manifest.json for performance
110
- cache_manifest: true
@@ -1,61 +0,0 @@
1
- def ensure_log_goes_to_stdout
2
- old_logger = Webpacker.logger
3
- Webpacker.logger = ActiveSupport::Logger.new(STDOUT)
4
- yield
5
- ensure
6
- Webpacker.logger = old_logger
7
- end
8
-
9
-
10
- namespace :yarii_cloudinary do
11
- namespace :webpacker do
12
- desc "Install deps with yarn"
13
- task :yarn_install do
14
- Dir.chdir(File.join(__dir__, "../..")) do
15
- system "yarn install --no-progress --production"
16
- end
17
- end
18
-
19
- desc "Compile JavaScript packs using webpack for production with digests"
20
- task compile: [:yarn_install, :environment] do
21
- Webpacker.with_node_env("production") do
22
- ensure_log_goes_to_stdout do
23
- if YariiCloudinary.webpacker.commands.compile
24
- # Successful compilation!
25
- puts "YariiCloudinary Plugin -- Webpacker success"
26
- else
27
- # Failed compilation
28
- puts "YariiCloudinary Plugin -- something's wrong with Webpacker!"
29
- exit!
30
- end
31
- end
32
- end
33
- end
34
- end
35
- end
36
-
37
- def yarn_install_available?
38
- rails_major = Rails::VERSION::MAJOR
39
- rails_minor = Rails::VERSION::MINOR
40
-
41
- rails_major > 5 || (rails_major == 5 && rails_minor >= 1)
42
- end
43
-
44
- def enhance_assets_precompile
45
- # yarn:install was added in Rails 5.1
46
- deps = yarn_install_available? ? [] : ["yarii_cloudinary:webpacker:yarn_install"]
47
- Rake::Task["assets:precompile"].enhance(deps) do
48
- Rake::Task["yarii_cloudinary:webpacker:compile"].invoke
49
- end
50
- end
51
-
52
- # Compile packs after we've compiled all other assets during precompilation
53
- skip_webpacker_precompile = %w(no false n f).include?(ENV["WEBPACKER_PRECOMPILE"])
54
-
55
- unless skip_webpacker_precompile
56
- if Rake::Task.task_defined?("assets:precompile")
57
- enhance_assets_precompile
58
- else
59
- Rake::Task.define_task("assets:precompile" => "yarii_cloudinary:webpacker:compile")
60
- end
61
- end