frontview 2.1.1 → 2.2.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 +4 -4
- data/.rubocop.yml +13 -0
- data/.travis.yml +2 -2
- data/CHANGELOG.md +5 -0
- data/CODE_OF_CONDUCT.md +57 -47
- data/Gemfile +3 -1
- data/Gemfile.lock +115 -95
- data/LICENSE.txt +1 -1
- data/README.md +34 -49
- data/Rakefile +5 -1
- data/assets/banner.jpg +0 -0
- data/assets/favicon.png +0 -0
- data/{logo → assets}/logo.png +0 -0
- data/assets/sample1.png +0 -0
- data/assets/sample2.png +0 -0
- data/assets/sample3.png +0 -0
- data/assets/sample4.png +0 -0
- data/assets/sample5.png +0 -0
- data/bin/console +2 -1
- data/frontview.gemspec +6 -6
- data/lib/frontview/contents/alerts_content.rb +2 -2
- data/lib/frontview/contents/application_content.rb +26 -26
- data/lib/frontview/contents/footer_content.rb +78 -89
- data/lib/frontview/contents/header_content.rb +27 -48
- data/lib/frontview/contents/index_routes_content.rb +77 -478
- data/lib/frontview/contents/main_content.rb +35 -208
- data/lib/frontview/contents/style_content.rb +508 -3408
- data/lib/frontview/install_generator.rb +16 -71
- data/lib/frontview/version.rb +1 -1
- data/lib/frontview.rb +2 -1
- metadata +27 -30
@@ -11,68 +11,11 @@ require "frontview/contents/index_routes_content"
|
|
11
11
|
module Frontview
|
12
12
|
class InstallGenerator < Rails::Generators::Base
|
13
13
|
def create_assets_contents
|
14
|
-
|
14
|
+
tempfile = Down.download("../../assets/banner.jpg")
|
15
15
|
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
16
16
|
|
17
|
-
tempfile = Down.download("
|
17
|
+
tempfile = Down.download("../../assets/favicon.png")
|
18
18
|
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
19
|
-
|
20
|
-
tempfile = Down.download("https://railsfront.herokuapp.com/assets/advert_btn.png")
|
21
|
-
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
22
|
-
|
23
|
-
tempfile = Down.download("https://railsfront.herokuapp.com/assets/background.jpg")
|
24
|
-
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
25
|
-
|
26
|
-
tempfile = Down.download("https://railsfront.herokuapp.com/assets/beauty.png")
|
27
|
-
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
28
|
-
|
29
|
-
tempfile = Down.download("https://railsfront.herokuapp.com/assets/circle.png")
|
30
|
-
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
31
|
-
|
32
|
-
tempfile = Down.download("https://railsfront.herokuapp.com/assets/desktop.png")
|
33
|
-
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
34
|
-
|
35
|
-
tempfile = Down.download("https://railsfront.herokuapp.com/assets/doted1.png")
|
36
|
-
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
37
|
-
|
38
|
-
tempfile = Down.download("https://railsfront.herokuapp.com/assets/doted2.png")
|
39
|
-
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
40
|
-
|
41
|
-
tempfile = Down.download("https://railsfront.herokuapp.com/assets/doted3.png")
|
42
|
-
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
43
|
-
|
44
|
-
tempfile = Down.download("https://railsfront.herokuapp.com/assets/elibiz.png")
|
45
|
-
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
46
|
-
|
47
|
-
tempfile = Down.download("https://railsfront.herokuapp.com/assets/home_pic.png")
|
48
|
-
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
49
|
-
|
50
|
-
tempfile = Down.download("https://railsfront.herokuapp.com/assets/paper_plane.png")
|
51
|
-
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
52
|
-
|
53
|
-
tempfile = Down.download("https://railsfront.herokuapp.com/assets/paper_plane2.png")
|
54
|
-
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
55
|
-
|
56
|
-
tempfile = Down.download("https://railsfront.herokuapp.com/assets/preloader.png")
|
57
|
-
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
58
|
-
|
59
|
-
tempfile = Down.download("https://railsfront.herokuapp.com/assets/view1.png")
|
60
|
-
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
61
|
-
|
62
|
-
tempfile = Down.download("https://railsfront.herokuapp.com/assets/view2.png")
|
63
|
-
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
64
|
-
|
65
|
-
tempfile = Down.download("https://railsfront.herokuapp.com/assets/view3.png")
|
66
|
-
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
67
|
-
|
68
|
-
tempfile = Down.download("https://railsfront.herokuapp.com/assets/view4.png")
|
69
|
-
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
70
|
-
|
71
|
-
tempfile = Down.download("https://railsfront.herokuapp.com/assets/view5.png")
|
72
|
-
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
73
|
-
|
74
|
-
Dir.mkdir("app/assets/stylesheets/css") unless File.exists?("app/assets/stylesheets/css")
|
75
|
-
file = File.new("app/assets/stylesheets/css/style.css", "w+")
|
76
19
|
end
|
77
20
|
|
78
21
|
def create_main_file
|
@@ -86,18 +29,20 @@ module Frontview
|
|
86
29
|
file = File.new("app/views/shared/_header.html.erb", "w+")
|
87
30
|
end
|
88
31
|
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
32
|
+
def write_in_other_files
|
33
|
+
system("rails g frontview:contents:index_routes_content")
|
34
|
+
system("rails g frontview:contents:style_content")
|
35
|
+
system("rails g frontview:contents:main_content")
|
36
|
+
system("rails g frontview:contents:application_content")
|
37
|
+
system("rails g frontview:contents:alerts_content")
|
38
|
+
system("rails g frontview:contents:footer_content")
|
39
|
+
system("rails g frontview:contents:header_content")
|
40
|
+
end
|
98
41
|
|
99
42
|
def show_info
|
100
|
-
|
101
|
-
|
102
|
-
|
43
|
+
puts :success
|
44
|
+
puts "You can support the efforts to always update and provide the best
|
45
|
+
themes free for everyone through: ========> https://www.buymeacoffee.com/elibiz"
|
46
|
+
end
|
47
|
+
end
|
103
48
|
end
|
data/lib/frontview/version.rb
CHANGED
data/lib/frontview.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: frontview
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- elibiz443
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,28 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.
|
19
|
+
version: 2.2.15
|
20
20
|
type: :development
|
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: 2.
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: codelog
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 0.8.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.8.0
|
26
|
+
version: 2.2.15
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: down
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,20 +44,20 @@ dependencies:
|
|
58
44
|
requirements:
|
59
45
|
- - "~>"
|
60
46
|
- !ruby/object:Gem::Version
|
61
|
-
version: 6.
|
47
|
+
version: '6.1'
|
62
48
|
- - ">="
|
63
49
|
- !ruby/object:Gem::Version
|
64
|
-
version: 6.
|
50
|
+
version: 6.1.4.1
|
65
51
|
type: :development
|
66
52
|
prerelease: false
|
67
53
|
version_requirements: !ruby/object:Gem::Requirement
|
68
54
|
requirements:
|
69
55
|
- - "~>"
|
70
56
|
- !ruby/object:Gem::Version
|
71
|
-
version: 6.
|
57
|
+
version: '6.1'
|
72
58
|
- - ">="
|
73
59
|
- !ruby/object:Gem::Version
|
74
|
-
version: 6.
|
60
|
+
version: 6.1.4.1
|
75
61
|
- !ruby/object:Gem::Dependency
|
76
62
|
name: down
|
77
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -92,25 +78,27 @@ dependencies:
|
|
92
78
|
requirements:
|
93
79
|
- - "~>"
|
94
80
|
- !ruby/object:Gem::Version
|
95
|
-
version: 6.
|
81
|
+
version: '6.1'
|
96
82
|
- - ">="
|
97
83
|
- !ruby/object:Gem::Version
|
98
|
-
version: 6.
|
84
|
+
version: 6.1.4.1
|
99
85
|
type: :runtime
|
100
86
|
prerelease: false
|
101
87
|
version_requirements: !ruby/object:Gem::Requirement
|
102
88
|
requirements:
|
103
89
|
- - "~>"
|
104
90
|
- !ruby/object:Gem::Version
|
105
|
-
version: 6.
|
91
|
+
version: '6.1'
|
106
92
|
- - ">="
|
107
93
|
- !ruby/object:Gem::Version
|
108
|
-
version: 6.
|
94
|
+
version: 6.1.4.1
|
109
95
|
description: "This gem creates folders and files that are meant for the Views of your
|
110
96
|
rails web app so as to\n provide easier starting point to your development process.\n
|
111
97
|
You can check the github repo for this gem:\n \n \t ======> https://github.com/elibiz443/frontview
|
112
98
|
(Here you will get to have a step by step usage of the gem)\n\n Remember to give
|
113
|
-
a contribution. Make the gem better than it already is.
|
99
|
+
a contribution. Make the gem better than it already is. You can also support the
|
100
|
+
efforts to always update and provide the best\n themes free for everyone through:
|
101
|
+
========> https://www.buymeacoffee.com/elibiz"
|
114
102
|
email:
|
115
103
|
- elibiz443@gmail.com
|
116
104
|
executables: []
|
@@ -118,13 +106,23 @@ extensions: []
|
|
118
106
|
extra_rdoc_files: []
|
119
107
|
files:
|
120
108
|
- ".gitignore"
|
109
|
+
- ".rubocop.yml"
|
121
110
|
- ".travis.yml"
|
111
|
+
- CHANGELOG.md
|
122
112
|
- CODE_OF_CONDUCT.md
|
123
113
|
- Gemfile
|
124
114
|
- Gemfile.lock
|
125
115
|
- LICENSE.txt
|
126
116
|
- README.md
|
127
117
|
- Rakefile
|
118
|
+
- assets/banner.jpg
|
119
|
+
- assets/favicon.png
|
120
|
+
- assets/logo.png
|
121
|
+
- assets/sample1.png
|
122
|
+
- assets/sample2.png
|
123
|
+
- assets/sample3.png
|
124
|
+
- assets/sample4.png
|
125
|
+
- assets/sample5.png
|
128
126
|
- bin/console
|
129
127
|
- bin/setup
|
130
128
|
- frontview.gemspec
|
@@ -138,7 +136,6 @@ files:
|
|
138
136
|
- lib/frontview/contents/style_content.rb
|
139
137
|
- lib/frontview/install_generator.rb
|
140
138
|
- lib/frontview/version.rb
|
141
|
-
- logo/logo.png
|
142
139
|
homepage: https://rubygems.org/gems/frontview
|
143
140
|
licenses:
|
144
141
|
- MIT
|
@@ -155,14 +152,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
155
152
|
requirements:
|
156
153
|
- - ">="
|
157
154
|
- !ruby/object:Gem::Version
|
158
|
-
version: 2.
|
155
|
+
version: 2.4.0
|
159
156
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
160
157
|
requirements:
|
161
158
|
- - ">="
|
162
159
|
- !ruby/object:Gem::Version
|
163
160
|
version: '0'
|
164
161
|
requirements: []
|
165
|
-
rubygems_version: 3.
|
162
|
+
rubygems_version: 3.2.22
|
166
163
|
signing_key:
|
167
164
|
specification_version: 4
|
168
165
|
summary: Simple gem that creates folders & files for front-end rails web apps
|