teleporter 0.0.19 → 0.0.20
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 +4 -4
- data/README.md +1 -0
- data/lib/generators/initial/bootstrap.rb +25 -0
- data/lib/generators/initial/capistrano.rb +6 -3
- data/lib/generators/initial/gemfile.rb +2 -0
- data/lib/generators/initial/start.rb +1 -0
- data/lib/generators/initial/templates/bootstrap/bootstrap-base.scss +1 -0
- data/lib/teleporter/version.rb +1 -1
- data/lib/teleporter.rb +1 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eaa2a429fc45bb06b635710e9c2092010d184a6c
|
4
|
+
data.tar.gz: 09bfd2ea47d1a15b6afb3b450b2e8fa16c046863
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec6049b8c876c423c7158ab4a96e3cd94d4563c102edead2f3e204e03ea95a334351afe223230923a5ec6572bfc712f4cc205e5f951b10ae14c68a56c98a27b2
|
7
|
+
data.tar.gz: f295610ba06ed4204cb62c0463ea2844cc0d62abf470d047c4a9b99e2ad1bc631b31f8ee75859fd47e5417c22557f4c93d3a4499ae82aa3c9984c6861cea946d
|
data/README.md
CHANGED
@@ -0,0 +1,25 @@
|
|
1
|
+
module Initial
|
2
|
+
class BootstrapGenerator < Rails::Generators::Base
|
3
|
+
source_root File.expand_path("../templates", __FILE__)
|
4
|
+
|
5
|
+
def add
|
6
|
+
gem 'bootstrap-sass'
|
7
|
+
gem 'kaminari-bootstrap'
|
8
|
+
gem 'bh'
|
9
|
+
gem 'autoprefixer-rails'
|
10
|
+
|
11
|
+
Bundler.with_clean_env do
|
12
|
+
run "bundle install"
|
13
|
+
end
|
14
|
+
|
15
|
+
copy_file 'bootstrap/bootstrap-base.scss',
|
16
|
+
'app/assets/stylesheets/shared/bootstrap-base.scss'
|
17
|
+
insert_into_file "app/assets/stylesheets/application.css",
|
18
|
+
"*= require shared/bootstrap_base\n",
|
19
|
+
after: "/*\n"
|
20
|
+
prepend_to_file "app/assets/javascripts/application.js",
|
21
|
+
"//= require bootstrap\n"
|
22
|
+
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -25,11 +25,14 @@ module Initial
|
|
25
25
|
uncomment_lines 'Capfile', /require 'capistrano\/bundler'/
|
26
26
|
uncomment_lines 'Capfile', /require 'capistrano\/rails\/assets'/
|
27
27
|
uncomment_lines 'Capfile', /require 'capistrano\/rails\/migrations'/
|
28
|
-
insert_into_file "Capfile",
|
28
|
+
insert_into_file "Capfile",
|
29
|
+
"require 'capistrano/sidekiq'\n",
|
29
30
|
after: "require 'capistrano/rails/migrations'\n"
|
30
|
-
insert_into_file "Capfile",
|
31
|
+
insert_into_file "Capfile",
|
32
|
+
"require 'capistrano/puma'\n",
|
31
33
|
after: "require 'capistrano/sidekiq'\n"
|
32
|
-
insert_into_file "Capfile",
|
34
|
+
insert_into_file "Capfile",
|
35
|
+
"require 'capistrano/puma/monit'\n",
|
33
36
|
after: "require 'capistrano/sidekiq'\n"
|
34
37
|
|
35
38
|
copy_file 'capistrano/deploy/deploy.rb', 'config/deploy.rb'
|
@@ -0,0 +1 @@
|
|
1
|
+
@import "bootstrap";
|
data/lib/teleporter/version.rb
CHANGED
data/lib/teleporter.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teleporter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ponomarev Nikolay
|
@@ -66,10 +66,12 @@ files:
|
|
66
66
|
- README.md
|
67
67
|
- Rakefile
|
68
68
|
- lib/generators/admin/start.rb
|
69
|
+
- lib/generators/initial/bootstrap.rb
|
69
70
|
- lib/generators/initial/capistrano.rb
|
70
71
|
- lib/generators/initial/gemfile.rb
|
71
72
|
- lib/generators/initial/rspec.rb
|
72
73
|
- lib/generators/initial/start.rb
|
74
|
+
- lib/generators/initial/templates/bootstrap/bootstrap-base.scss
|
73
75
|
- lib/generators/initial/templates/capistrano/deploy/deploy.rb
|
74
76
|
- lib/generators/initial/templates/capistrano/deploy/production.rb
|
75
77
|
- lib/generators/initial/templates/capistrano/shared/application.yml.erb
|