moonshot-rails 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +20 -0
- data/README.md +1 -0
- data/app/assets/javascripts/moonshot/index.js +7 -0
- data/app/assets/javascripts/moonshot/shepherd_controller.js +75 -0
- data/app/assets/javascripts/moonshot.js +3849 -0
- data/app/helpers/moonshot/moonshot_helper.rb +6 -0
- data/lib/moonshot-rails/config.rb +6 -0
- data/lib/moonshot-rails/engine.rb +25 -0
- data/lib/moonshot-rails/version.rb +3 -0
- data/lib/moonshot-rails.rb +14 -0
- metadata +97 -0
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module MoonshotRails
|
4
|
+
class Engine < ::Rails::Engine
|
5
|
+
isolate_namespace MoonshotRails
|
6
|
+
|
7
|
+
config.autoload_paths = %W[
|
8
|
+
#{root}/app/helpers
|
9
|
+
]
|
10
|
+
|
11
|
+
initializer 'moonshot_rails.assets' do |app|
|
12
|
+
if app.config.respond_to?(:assets)
|
13
|
+
app.config.assets.precompile += %w[
|
14
|
+
moonshot.js
|
15
|
+
]
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
initializer 'moonshot_rails.helpers' do
|
20
|
+
ActiveSupport.on_load(:action_controller_base) do
|
21
|
+
helper Moonshot::MoonshotHelper
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'moonshot-rails/version'
|
2
|
+
require 'moonshot-rails/engine'
|
3
|
+
require 'moonshot-rails/config'
|
4
|
+
|
5
|
+
module MoonshotRails
|
6
|
+
class << self
|
7
|
+
attr_accessor :configuration
|
8
|
+
|
9
|
+
def configure
|
10
|
+
self.configuration ||= Config.new
|
11
|
+
yield(configuration)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
metadata
ADDED
@@ -0,0 +1,97 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: moonshot-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Catalin Ionescu
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-12-18 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 7.0.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 7.0.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: pry
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description:
|
56
|
+
email:
|
57
|
+
- catalin.ionescu282@gmail.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- LICENSE.txt
|
63
|
+
- README.md
|
64
|
+
- app/assets/javascripts/moonshot.js
|
65
|
+
- app/assets/javascripts/moonshot/index.js
|
66
|
+
- app/assets/javascripts/moonshot/shepherd_controller.js
|
67
|
+
- app/helpers/moonshot/moonshot_helper.rb
|
68
|
+
- lib/moonshot-rails.rb
|
69
|
+
- lib/moonshot-rails/config.rb
|
70
|
+
- lib/moonshot-rails/engine.rb
|
71
|
+
- lib/moonshot-rails/version.rb
|
72
|
+
homepage: https://github.com/cionescu/moonshot-rails
|
73
|
+
licenses:
|
74
|
+
- MIT
|
75
|
+
metadata:
|
76
|
+
allowed_push_host: https://rubygems.org
|
77
|
+
post_install_message:
|
78
|
+
rdoc_options: []
|
79
|
+
require_paths:
|
80
|
+
- lib
|
81
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
82
|
+
requirements:
|
83
|
+
- - ">="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: 3.0.0
|
86
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
91
|
+
requirements: []
|
92
|
+
rubygems_version: 3.4.20
|
93
|
+
signing_key:
|
94
|
+
specification_version: 4
|
95
|
+
summary: A collection of Stimulus controllers for building SaaS applications with
|
96
|
+
Rails
|
97
|
+
test_files: []
|