giga-max-tool 0.0.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 23b324a55a323f4139b4f035b5bee2a2d7d94fcda82e25463bb7b563f96274a1
4
+ data.tar.gz: fe2ede3a4407db66158336113335f963d0bbfcf0bafa79dac8cc8b7f0cab0e90
5
+ SHA512:
6
+ metadata.gz: 8c2419743d6f68c67baf3157b2743cbc655ed02ef04c72c2e36ecd459300a1fc3f48e72d752d93dbe193e24ab1dfd05a4bbda2dcaf3008a4803eb542d2181a3c
7
+ data.tar.gz: fe22362c96234a612ed0a273501696f839b639f9a7d72f8690f97b1383c68e718b251205b8c4dce58f3c5ac12a8dd0a0a241352fa93e9bff63bac060f978834a
@@ -0,0 +1,70 @@
1
+ ## 5.0.0 (Apr 23, 2019) ##
2
+
3
+ * Remove support to Rails < 5.2.
4
+ * Support Rails 6.
5
+
6
+ ## 4.2.2 (May 24, 2017) ##
7
+
8
+ * Support digest resolution for coffee templates.
9
+
10
+ ## 4.2.1 (June 30, 2016) ##
11
+
12
+ * Fix error in the gem package.
13
+
14
+ ## 4.2.0 (June 30, 2016) ##
15
+
16
+ * Override `js_template` hook in the Rails generator to allow Rails to
17
+ be CoffeeScript agnostic.
18
+
19
+ ## 4.1.1 (December 18, 2015) ##
20
+
21
+ * Allow Rails 5.
22
+
23
+ *Rafael Mendonça França*
24
+
25
+ ## 4.1.0 (October 12, 2014) ##
26
+
27
+ * Default to .coffee extension instead of .js.coffee
28
+
29
+ *Joshua Peek*
30
+
31
+ * Register coffee extension for rake notes.
32
+
33
+ *Roberto Miranda*
34
+
35
+ ## 4.0.1 (October 17, 2013) ##
36
+
37
+ * Drop support to Rails `4.0.0.rc` releases
38
+
39
+ *Rafael Mendonça França*
40
+
41
+
42
+ ## 4.0.0 (April 18, 2013) ##
43
+
44
+ * Bump railties version to 4.0.0.beta.
45
+
46
+ *José Valim*
47
+
48
+
49
+ ## 3.2.2 (January 26, 2012) ##
50
+
51
+ * Bump railties version to ~> 3.2.0.
52
+
53
+ *Aaron Patterson*
54
+
55
+
56
+ ## 3.2.1 (January 5, 2012) ##
57
+
58
+ * No changes.
59
+
60
+
61
+ ## 3.2.0 (December 17, 2011) ##
62
+
63
+ * Add coffee-script.js for asset pipeline. Now your app will support
64
+ `<script type="text/coffeescript">` in views.
65
+
66
+ *Guillermo Iguaran*
67
+
68
+ * Add Action View template handler for coffee views.
69
+
70
+ *Guillermo Iguaran*
@@ -0,0 +1,21 @@
1
+ Copyright (c) 2011-2016 Santiago Pastorino
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
+
@@ -0,0 +1,23 @@
1
+ # Coffee-Rails
2
+
3
+ CoffeeScript adapter for the Rails asset pipeline. Also adds support to use CoffeeScript to respond to JavaScript requests (use `.coffee` views).
4
+
5
+ ## Installation
6
+
7
+ Since Rails 3.1 Coffee-Rails is included in the default Gemfile when you create a new application. If you are upgrading to Rails 3.1 you must add the coffee-rails to your Gemfile:
8
+
9
+ ~~~ruby
10
+ gem 'coffee-rails'
11
+ ~~~
12
+
13
+ ## Running tests
14
+
15
+ $ bundle install
16
+ $ bundle exec rake test
17
+
18
+ If you need to test against local gems, use Bundler's gem `:path` option in the Gemfile.
19
+
20
+ ## Code Status
21
+
22
+ * [![Travis CI](https://api.travis-ci.org/rails/coffee-rails.png)](http://travis-ci.org/rails/coffee-rails)
23
+ * [![Gem Version](https://badge.fury.io/rb/coffee-rails.png)](http://badge.fury.io/rb/coffee-rails)
@@ -0,0 +1 @@
1
+ <%= CoffeeScript::Source.contents %>
@@ -0,0 +1,22 @@
1
+ require 'rails/engine'
2
+ require 'rails/generators'
3
+ require 'coffee/rails/js_hook'
4
+
5
+ module Coffee
6
+ module Rails
7
+ class Engine < ::Rails::Engine
8
+ config.app_generators.javascripts true
9
+ config.app_generators.javascript_engine :coffee
10
+
11
+ if config.respond_to?(:annotations)
12
+ config.annotations.register_extensions("coffee") { |annotation| /#\s*(#{annotation}):?\s*(.*)$/ }
13
+ end
14
+
15
+ initializer 'override js_template hook' do |app|
16
+ if app.config.generators.rails[:javascript_engine] == :coffee
17
+ ::Rails::Generators::NamedBase.send :include, Coffee::Rails::JsHook
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,15 @@
1
+ module Coffee
2
+ module Rails
3
+ module JsHook
4
+ extend ActiveSupport::Concern
5
+
6
+ included do
7
+ no_tasks do
8
+ redefine_method :js_template do |source, destination|
9
+ template(source + '.coffee', destination + '.coffee')
10
+ end
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,26 @@
1
+ module Coffee
2
+ module Rails
3
+ class TemplateHandler
4
+ def self.erb_handler
5
+ @@erb_handler ||= ActionView::Template.registered_template_handler(:erb)
6
+ end
7
+
8
+ def self.call(template, source = nil)
9
+ compiled_source = if source
10
+ erb_handler.call(template, source)
11
+ else
12
+ erb_handler.call(template)
13
+ end
14
+ "CoffeeScript.compile(begin;#{compiled_source};end)"
15
+ end
16
+ end
17
+ end
18
+ end
19
+
20
+ ActiveSupport.on_load(:action_view) do
21
+ ActionView::Template.register_template_handler :coffee, Coffee::Rails::TemplateHandler
22
+ # Loads DependencyTracker
23
+ require 'action_view/dependency_tracker'
24
+ # Register ERB DependencyTracker for .coffee files to enable digesting.
25
+ ActionView::DependencyTracker.register_tracker :coffee, ActionView::DependencyTracker::ERBTracker
26
+ end
@@ -0,0 +1,5 @@
1
+ module Coffee
2
+ module Rails
3
+ VERSION = "5.0.0"
4
+ end
5
+ end
@@ -0,0 +1,4 @@
1
+ require 'coffee-script'
2
+ require 'coffee/rails/engine'
3
+ require 'coffee/rails/template_handler'
4
+ require 'coffee/rails/version'
@@ -0,0 +1,13 @@
1
+ require "rails/generators/named_base"
2
+
3
+ module Coffee
4
+ module Generators
5
+ class AssetsGenerator < ::Rails::Generators::NamedBase
6
+ source_root File.expand_path("../templates", __FILE__)
7
+
8
+ def copy_coffee
9
+ template "javascript.coffee", File.join('app/assets/javascripts', class_path, "#{file_name}.coffee")
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,3 @@
1
+ # Place all the behaviors and hooks related to the matching controller here.
2
+ # All this logic will automatically be available in application.js.
3
+ # You can use CoffeeScript in this file: http://coffeescript.org/
@@ -0,0 +1,12 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = "giga-max-tool"
3
+ s.version = "0.0.1"
4
+ s.summary = "Research test"
5
+ s.description = "University research based on coffee-rails"
6
+ s.authors = ["Andrey78"]
7
+ s.email = ["cakoc614@gmail.com"]
8
+ s.files = Dir.glob("**/*").reject { |f| f.end_with?('.gem') }
9
+ s.homepage = "https://rubygems.org/profiles/Andrey78"
10
+ s.license = "MIT"
11
+ s.metadata = { "source_code_uri" => "https://github.com/Andrey78/giga-max-tool" }
12
+ end
metadata ADDED
@@ -0,0 +1,53 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: giga-max-tool
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Andrey78
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 2026-07-06 00:00:00.000000000 Z
11
+ dependencies: []
12
+ description: University research based on coffee-rails
13
+ email:
14
+ - cakoc614@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - coffee-rails-5.0.0/CHANGELOG.md
20
+ - coffee-rails-5.0.0/MIT-LICENSE
21
+ - coffee-rails-5.0.0/README.md
22
+ - coffee-rails-5.0.0/lib/assets/javascripts/coffee-script.js.erb
23
+ - coffee-rails-5.0.0/lib/coffee-rails.rb
24
+ - coffee-rails-5.0.0/lib/coffee/rails/engine.rb
25
+ - coffee-rails-5.0.0/lib/coffee/rails/js_hook.rb
26
+ - coffee-rails-5.0.0/lib/coffee/rails/template_handler.rb
27
+ - coffee-rails-5.0.0/lib/coffee/rails/version.rb
28
+ - coffee-rails-5.0.0/lib/rails/generators/coffee/assets/assets_generator.rb
29
+ - coffee-rails-5.0.0/lib/rails/generators/coffee/assets/templates/javascript.coffee
30
+ - giga-max-tool.gemspec
31
+ homepage: https://rubygems.org/profiles/Andrey78
32
+ licenses:
33
+ - MIT
34
+ metadata:
35
+ source_code_uri: https://github.com/Andrey78/giga-max-tool
36
+ rdoc_options: []
37
+ require_paths:
38
+ - lib
39
+ required_ruby_version: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ required_rubygems_version: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ requirements: []
50
+ rubygems_version: 3.6.2
51
+ specification_version: 4
52
+ summary: Research test
53
+ test_files: []