kablam 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/kablam.gemspec +1 -1
- data/lib/generators/kablam/forms_generator.rb +0 -1
- data/lib/generators/kablam/install_generator.rb +7 -10
- data/lib/generators/kablam/messaging_generator.rb +0 -2
- metadata +1 -3
- data/Gemfile +0 -1
- data/Gemfile.lock +0 -118
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ada0696fb239945cb8eb01cee23b472f1440b491328b7268dfd91595b259296e
|
4
|
+
data.tar.gz: 6e448fa92d14039523bf98137ce99df481da1dd924f518e3323c60a8361ecac6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcfc9cf4b0c4d366a861e5f51260c6c310b50ff348889ae85019a162adaa5e94da9b4ced0ad7e24024de79163e77c199fb3d888058f48a568775610e5453fb5c
|
7
|
+
data.tar.gz: befbc8f7f829cc92494ab5aebcf46ac4b81baa082a52163c5372db90f26d34bca5bee0e55d00edf471be5be4b209d0b37aff1978e876b28c6ed0f0878d563566
|
data/kablam.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'kablam'
|
3
|
-
s.version = '0.1.
|
3
|
+
s.version = '0.1.6'
|
4
4
|
s.date = '2018-09-14'
|
5
5
|
s.summary = "Kablam! All the things you hate. But Faster."
|
6
6
|
s.description = "Gem to make development of everything in rails faster. Form creation & styling, all the resource routes, even actioncable messaging!\n {NOTE: In Development. NOT READY FOR TESTING.}"
|
@@ -1,20 +1,19 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'rails/generators/base'
|
4
3
|
module Kablam
|
5
4
|
module Generators
|
6
5
|
class InstallGenerator < Rails::Generators::Base
|
7
6
|
namespace "kablam:install"
|
8
7
|
source_root File.expand_path('../templates', __FILE__)
|
9
8
|
# argument :name, :type => :string, :default => "en"
|
9
|
+
def basic_setup
|
10
|
+
# Change ApplicationRecord's inheritence
|
11
|
+
gsub_file 'app/models/application_record.rb', 'class ApplicationRecord < ActiveRecord::Base', 'class ApplicationRecord < Kablam::KablamRecord'
|
10
12
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
template "kablam.rb", "config/initializers/kablam.rb"
|
16
|
-
template "_sample_target_item.html.erb", "app/views/kablam/models/_sample_target_item.html.erb"
|
17
|
-
|
13
|
+
# Setup Initializer
|
14
|
+
template "kablam.rb", "config/initializers/kablam.rb"
|
15
|
+
template "_sample_target_item.html.erb", "app/views/kablam/models/_sample_target_item.html.erb"
|
16
|
+
end
|
18
17
|
def setup_routes
|
19
18
|
route "# KABLAM! form/create/update/destroy/undo for all models"
|
20
19
|
route "# Note: Make sure Kablam engine is at the BOTTOM of routes"
|
@@ -35,8 +34,6 @@ module Kablam
|
|
35
34
|
end
|
36
35
|
prepend_file 'app/assets/stylesheets/application.css.scss', "@import 'kablam';"
|
37
36
|
end
|
38
|
-
|
39
|
-
readme "README"
|
40
37
|
end
|
41
38
|
end
|
42
39
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kablam
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergio Rivas
|
@@ -62,8 +62,6 @@ extra_rdoc_files: []
|
|
62
62
|
files:
|
63
63
|
- ".DS_Store"
|
64
64
|
- ".gitignore"
|
65
|
-
- Gemfile
|
66
|
-
- Gemfile.lock
|
67
65
|
- LICENSE
|
68
66
|
- README.md
|
69
67
|
- app/.DS_Store
|
data/Gemfile
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
gem "rails", ">= 5.1.6"
|
data/Gemfile.lock
DELETED
@@ -1,118 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
specs:
|
3
|
-
actioncable (5.2.1)
|
4
|
-
actionpack (= 5.2.1)
|
5
|
-
nio4r (~> 2.0)
|
6
|
-
websocket-driver (>= 0.6.1)
|
7
|
-
actionmailer (5.2.1)
|
8
|
-
actionpack (= 5.2.1)
|
9
|
-
actionview (= 5.2.1)
|
10
|
-
activejob (= 5.2.1)
|
11
|
-
mail (~> 2.5, >= 2.5.4)
|
12
|
-
rails-dom-testing (~> 2.0)
|
13
|
-
actionpack (5.2.1)
|
14
|
-
actionview (= 5.2.1)
|
15
|
-
activesupport (= 5.2.1)
|
16
|
-
rack (~> 2.0)
|
17
|
-
rack-test (>= 0.6.3)
|
18
|
-
rails-dom-testing (~> 2.0)
|
19
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
20
|
-
actionview (5.2.1)
|
21
|
-
activesupport (= 5.2.1)
|
22
|
-
builder (~> 3.1)
|
23
|
-
erubi (~> 1.4)
|
24
|
-
rails-dom-testing (~> 2.0)
|
25
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
26
|
-
activejob (5.2.1)
|
27
|
-
activesupport (= 5.2.1)
|
28
|
-
globalid (>= 0.3.6)
|
29
|
-
activemodel (5.2.1)
|
30
|
-
activesupport (= 5.2.1)
|
31
|
-
activerecord (5.2.1)
|
32
|
-
activemodel (= 5.2.1)
|
33
|
-
activesupport (= 5.2.1)
|
34
|
-
arel (>= 9.0)
|
35
|
-
activestorage (5.2.1)
|
36
|
-
actionpack (= 5.2.1)
|
37
|
-
activerecord (= 5.2.1)
|
38
|
-
marcel (~> 0.3.1)
|
39
|
-
activesupport (5.2.1)
|
40
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
41
|
-
i18n (>= 0.7, < 2)
|
42
|
-
minitest (~> 5.1)
|
43
|
-
tzinfo (~> 1.1)
|
44
|
-
arel (9.0.0)
|
45
|
-
builder (3.2.3)
|
46
|
-
concurrent-ruby (1.0.5)
|
47
|
-
crass (1.0.4)
|
48
|
-
erubi (1.7.1)
|
49
|
-
globalid (0.4.1)
|
50
|
-
activesupport (>= 4.2.0)
|
51
|
-
i18n (1.1.0)
|
52
|
-
concurrent-ruby (~> 1.0)
|
53
|
-
loofah (2.2.2)
|
54
|
-
crass (~> 1.0.2)
|
55
|
-
nokogiri (>= 1.5.9)
|
56
|
-
mail (2.7.0)
|
57
|
-
mini_mime (>= 0.1.1)
|
58
|
-
marcel (0.3.2)
|
59
|
-
mimemagic (~> 0.3.2)
|
60
|
-
method_source (0.9.0)
|
61
|
-
mimemagic (0.3.2)
|
62
|
-
mini_mime (1.0.1)
|
63
|
-
mini_portile2 (2.3.0)
|
64
|
-
minitest (5.11.3)
|
65
|
-
nio4r (2.3.1)
|
66
|
-
nokogiri (1.8.4)
|
67
|
-
mini_portile2 (~> 2.3.0)
|
68
|
-
rack (2.0.5)
|
69
|
-
rack-test (1.1.0)
|
70
|
-
rack (>= 1.0, < 3)
|
71
|
-
rails (5.2.1)
|
72
|
-
actioncable (= 5.2.1)
|
73
|
-
actionmailer (= 5.2.1)
|
74
|
-
actionpack (= 5.2.1)
|
75
|
-
actionview (= 5.2.1)
|
76
|
-
activejob (= 5.2.1)
|
77
|
-
activemodel (= 5.2.1)
|
78
|
-
activerecord (= 5.2.1)
|
79
|
-
activestorage (= 5.2.1)
|
80
|
-
activesupport (= 5.2.1)
|
81
|
-
bundler (>= 1.3.0)
|
82
|
-
railties (= 5.2.1)
|
83
|
-
sprockets-rails (>= 2.0.0)
|
84
|
-
rails-dom-testing (2.0.3)
|
85
|
-
activesupport (>= 4.2.0)
|
86
|
-
nokogiri (>= 1.6)
|
87
|
-
rails-html-sanitizer (1.0.4)
|
88
|
-
loofah (~> 2.2, >= 2.2.2)
|
89
|
-
railties (5.2.1)
|
90
|
-
actionpack (= 5.2.1)
|
91
|
-
activesupport (= 5.2.1)
|
92
|
-
method_source
|
93
|
-
rake (>= 0.8.7)
|
94
|
-
thor (>= 0.19.0, < 2.0)
|
95
|
-
rake (12.3.1)
|
96
|
-
sprockets (3.7.2)
|
97
|
-
concurrent-ruby (~> 1.0)
|
98
|
-
rack (> 1, < 3)
|
99
|
-
sprockets-rails (3.2.1)
|
100
|
-
actionpack (>= 4.0)
|
101
|
-
activesupport (>= 4.0)
|
102
|
-
sprockets (>= 3.0.0)
|
103
|
-
thor (0.20.0)
|
104
|
-
thread_safe (0.3.6)
|
105
|
-
tzinfo (1.2.5)
|
106
|
-
thread_safe (~> 0.1)
|
107
|
-
websocket-driver (0.7.0)
|
108
|
-
websocket-extensions (>= 0.1.0)
|
109
|
-
websocket-extensions (0.1.3)
|
110
|
-
|
111
|
-
PLATFORMS
|
112
|
-
ruby
|
113
|
-
|
114
|
-
DEPENDENCIES
|
115
|
-
rails (>= 5.1.6)
|
116
|
-
|
117
|
-
BUNDLED WITH
|
118
|
-
1.16.2
|