Skip to content

Commit 2bf0cbe

Browse files
committed
chore: sample rails project added
1 parent 21f88b8 commit 2bf0cbe

File tree

97 files changed

+1615
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+1615
-0
lines changed

samples/rails_app/.gitignore

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
2+
#
3+
# If you find yourself ignoring temporary files generated by your text editor
4+
# or operating system, you probably want to add a global ignore instead:
5+
# git config --global core.excludesfile '~/.gitignore_global'
6+
7+
# Ignore bundler config.
8+
/.bundle
9+
10+
# Ignore the default SQLite database.
11+
/db/*.sqlite3
12+
/db/*.sqlite3-journal
13+
14+
# Ignore all logfiles and tempfiles.
15+
/log/*
16+
/tmp/*
17+
!/log/.keep
18+
!/tmp/.keep
19+
20+
# Ignore uploaded files in development
21+
/storage/*
22+
!/storage/.keep
23+
24+
/node_modules
25+
/yarn-error.log
26+
27+
/public/assets
28+
.byebug_history
29+
30+
# Ignore master key for decrypting credentials and more.
31+
/config/master.key

samples/rails_app/.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ruby-2.6.3

samples/rails_app/Gemfile

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
source 'https://rubygems.org'
2+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3+
4+
ruby '2.6.3'
5+
6+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
7+
gem 'rails', '~> 5.2.4', '>= 5.2.4.2'
8+
gem 'imagekit-sdk', path: '../../'
9+
# Use sqlite3 as the database for Active Record
10+
gem 'sqlite3'
11+
# Use Puma as the app server
12+
gem 'puma', '~> 3.11'
13+
# Use SCSS for stylesheets
14+
gem 'sass-rails', '~> 5.0'
15+
# Use Uglifier as compressor for JavaScript assets
16+
gem 'uglifier', '>= 1.3.0'
17+
# See https://github.com/rails/execjs#readme for more supported runtimes
18+
# gem 'mini_racer', platforms: :ruby
19+
20+
# Use CoffeeScript for .coffee assets and views
21+
gem 'coffee-rails', '~> 4.2'
22+
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
23+
gem 'turbolinks', '~> 5'
24+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
25+
gem 'jbuilder', '~> 2.5'
26+
# Use Redis adapter to run Action Cable in production
27+
# gem 'redis', '~> 4.0'
28+
# Use ActiveModel has_secure_password
29+
# gem 'bcrypt', '~> 3.1.7'
30+
31+
# Use ActiveStorage variant
32+
# gem 'mini_magick', '~> 4.8'
33+
34+
# Use Capistrano for deployment
35+
# gem 'capistrano-rails', group: :development
36+
37+
# Reduces boot times through caching; required in config/boot.rb
38+
gem 'bootsnap', '>= 1.1.0', require: false
39+
40+
group :development, :test do
41+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
42+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
43+
end
44+
45+
group :development do
46+
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
47+
gem 'web-console', '>= 3.3.0'
48+
gem 'listen', '>= 3.0.5', '< 3.2'
49+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
50+
gem 'spring'
51+
gem 'spring-watcher-listen', '~> 2.0.0'
52+
end
53+
54+
group :test do
55+
# Adds support for Capybara system testing and selenium driver
56+
gem 'capybara', '>= 2.15'
57+
gem 'selenium-webdriver'
58+
# Easy installation and use of chromedriver to run system tests with Chrome
59+
gem 'chromedriver-helper'
60+
end
61+
62+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
63+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

samples/rails_app/Gemfile.lock

Lines changed: 255 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,255 @@
1+
PATH
2+
remote: ../..
3+
specs:
4+
imagekit-sdk (1.0.0)
5+
carrierwave (>= 0.7, < 2.2)
6+
rails (~> 5.2.0, >= 5.2.0)
7+
rest-client (~> 2.1, >= 2.1)
8+
9+
GEM
10+
remote: https://rubygems.org/
11+
specs:
12+
actioncable (5.2.4.2)
13+
actionpack (= 5.2.4.2)
14+
nio4r (~> 2.0)
15+
websocket-driver (>= 0.6.1)
16+
actionmailer (5.2.4.2)
17+
actionpack (= 5.2.4.2)
18+
actionview (= 5.2.4.2)
19+
activejob (= 5.2.4.2)
20+
mail (~> 2.5, >= 2.5.4)
21+
rails-dom-testing (~> 2.0)
22+
actionpack (5.2.4.2)
23+
actionview (= 5.2.4.2)
24+
activesupport (= 5.2.4.2)
25+
rack (~> 2.0, >= 2.0.8)
26+
rack-test (>= 0.6.3)
27+
rails-dom-testing (~> 2.0)
28+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
29+
actionview (5.2.4.2)
30+
activesupport (= 5.2.4.2)
31+
builder (~> 3.1)
32+
erubi (~> 1.4)
33+
rails-dom-testing (~> 2.0)
34+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
35+
activejob (5.2.4.2)
36+
activesupport (= 5.2.4.2)
37+
globalid (>= 0.3.6)
38+
activemodel (5.2.4.2)
39+
activesupport (= 5.2.4.2)
40+
activerecord (5.2.4.2)
41+
activemodel (= 5.2.4.2)
42+
activesupport (= 5.2.4.2)
43+
arel (>= 9.0)
44+
activestorage (5.2.4.2)
45+
actionpack (= 5.2.4.2)
46+
activerecord (= 5.2.4.2)
47+
marcel (~> 0.3.1)
48+
activesupport (5.2.4.2)
49+
concurrent-ruby (~> 1.0, >= 1.0.2)
50+
i18n (>= 0.7, < 2)
51+
minitest (~> 5.1)
52+
tzinfo (~> 1.1)
53+
addressable (2.7.0)
54+
public_suffix (>= 2.0.2, < 5.0)
55+
archive-zip (0.12.0)
56+
io-like (~> 0.3.0)
57+
arel (9.0.0)
58+
bindex (0.8.1)
59+
bootsnap (1.4.6)
60+
msgpack (~> 1.0)
61+
builder (3.2.4)
62+
byebug (11.1.1)
63+
capybara (3.31.0)
64+
addressable
65+
mini_mime (>= 0.1.3)
66+
nokogiri (~> 1.8)
67+
rack (>= 1.6.0)
68+
rack-test (>= 0.6.3)
69+
regexp_parser (~> 1.5)
70+
xpath (~> 3.2)
71+
carrierwave (2.1.0)
72+
activemodel (>= 5.0.0)
73+
activesupport (>= 5.0.0)
74+
addressable (~> 2.6)
75+
image_processing (~> 1.1)
76+
mimemagic (>= 0.3.0)
77+
mini_mime (>= 0.1.3)
78+
childprocess (3.0.0)
79+
chromedriver-helper (2.1.1)
80+
archive-zip (~> 0.10)
81+
nokogiri (~> 1.8)
82+
coffee-rails (4.2.2)
83+
coffee-script (>= 2.2.0)
84+
railties (>= 4.0.0)
85+
coffee-script (2.4.1)
86+
coffee-script-source
87+
execjs
88+
coffee-script-source (1.12.2)
89+
concurrent-ruby (1.1.6)
90+
crass (1.0.6)
91+
domain_name (0.5.20190701)
92+
unf (>= 0.0.5, < 1.0.0)
93+
erubi (1.9.0)
94+
execjs (2.7.0)
95+
ffi (1.12.2)
96+
globalid (0.4.2)
97+
activesupport (>= 4.2.0)
98+
http-accept (1.7.0)
99+
http-cookie (1.0.3)
100+
domain_name (~> 0.5)
101+
i18n (1.8.2)
102+
concurrent-ruby (~> 1.0)
103+
image_processing (1.10.3)
104+
mini_magick (>= 4.9.5, < 5)
105+
ruby-vips (>= 2.0.17, < 3)
106+
io-like (0.3.1)
107+
jbuilder (2.10.0)
108+
activesupport (>= 5.0.0)
109+
listen (3.1.5)
110+
rb-fsevent (~> 0.9, >= 0.9.4)
111+
rb-inotify (~> 0.9, >= 0.9.7)
112+
ruby_dep (~> 1.2)
113+
loofah (2.4.0)
114+
crass (~> 1.0.2)
115+
nokogiri (>= 1.5.9)
116+
mail (2.7.1)
117+
mini_mime (>= 0.1.1)
118+
marcel (0.3.3)
119+
mimemagic (~> 0.3.2)
120+
method_source (1.0.0)
121+
mime-types (3.3.1)
122+
mime-types-data (~> 3.2015)
123+
mime-types-data (3.2019.1009)
124+
mimemagic (0.3.4)
125+
mini_magick (4.10.1)
126+
mini_mime (1.0.2)
127+
mini_portile2 (2.4.0)
128+
minitest (5.14.0)
129+
msgpack (1.3.3)
130+
netrc (0.11.0)
131+
nio4r (2.5.2)
132+
nokogiri (1.10.9)
133+
mini_portile2 (~> 2.4.0)
134+
public_suffix (4.0.3)
135+
puma (3.12.4)
136+
rack (2.2.2)
137+
rack-test (1.1.0)
138+
rack (>= 1.0, < 3)
139+
rails (5.2.4.2)
140+
actioncable (= 5.2.4.2)
141+
actionmailer (= 5.2.4.2)
142+
actionpack (= 5.2.4.2)
143+
actionview (= 5.2.4.2)
144+
activejob (= 5.2.4.2)
145+
activemodel (= 5.2.4.2)
146+
activerecord (= 5.2.4.2)
147+
activestorage (= 5.2.4.2)
148+
activesupport (= 5.2.4.2)
149+
bundler (>= 1.3.0)
150+
railties (= 5.2.4.2)
151+
sprockets-rails (>= 2.0.0)
152+
rails-dom-testing (2.0.3)
153+
activesupport (>= 4.2.0)
154+
nokogiri (>= 1.6)
155+
rails-html-sanitizer (1.3.0)
156+
loofah (~> 2.3)
157+
railties (5.2.4.2)
158+
actionpack (= 5.2.4.2)
159+
activesupport (= 5.2.4.2)
160+
method_source
161+
rake (>= 0.8.7)
162+
thor (>= 0.19.0, < 2.0)
163+
rake (13.0.1)
164+
rb-fsevent (0.10.3)
165+
rb-inotify (0.10.1)
166+
ffi (~> 1.0)
167+
regexp_parser (1.7.0)
168+
rest-client (2.1.0)
169+
http-accept (>= 1.7.0, < 2.0)
170+
http-cookie (>= 1.0.2, < 2.0)
171+
mime-types (>= 1.16, < 4.0)
172+
netrc (~> 0.8)
173+
ruby-vips (2.0.17)
174+
ffi (~> 1.9)
175+
ruby_dep (1.5.0)
176+
rubyzip (2.3.0)
177+
sass (3.7.4)
178+
sass-listen (~> 4.0.0)
179+
sass-listen (4.0.0)
180+
rb-fsevent (~> 0.9, >= 0.9.4)
181+
rb-inotify (~> 0.9, >= 0.9.7)
182+
sass-rails (5.1.0)
183+
railties (>= 5.2.0)
184+
sass (~> 3.1)
185+
sprockets (>= 2.8, < 4.0)
186+
sprockets-rails (>= 2.0, < 4.0)
187+
tilt (>= 1.1, < 3)
188+
selenium-webdriver (3.142.7)
189+
childprocess (>= 0.5, < 4.0)
190+
rubyzip (>= 1.2.2)
191+
spring (2.1.0)
192+
spring-watcher-listen (2.0.1)
193+
listen (>= 2.7, < 4.0)
194+
spring (>= 1.2, < 3.0)
195+
sprockets (3.7.2)
196+
concurrent-ruby (~> 1.0)
197+
rack (> 1, < 3)
198+
sprockets-rails (3.2.1)
199+
actionpack (>= 4.0)
200+
activesupport (>= 4.0)
201+
sprockets (>= 3.0.0)
202+
sqlite3 (1.4.2)
203+
thor (1.0.1)
204+
thread_safe (0.3.6)
205+
tilt (2.0.10)
206+
turbolinks (5.2.1)
207+
turbolinks-source (~> 5.2)
208+
turbolinks-source (5.2.0)
209+
tzinfo (1.2.6)
210+
thread_safe (~> 0.1)
211+
uglifier (4.2.0)
212+
execjs (>= 0.3.0, < 3)
213+
unf (0.1.4)
214+
unf_ext
215+
unf_ext (0.0.7.6)
216+
web-console (3.7.0)
217+
actionview (>= 5.0)
218+
activemodel (>= 5.0)
219+
bindex (>= 0.4.0)
220+
railties (>= 5.0)
221+
websocket-driver (0.7.1)
222+
websocket-extensions (>= 0.1.0)
223+
websocket-extensions (0.1.4)
224+
xpath (3.2.0)
225+
nokogiri (~> 1.8)
226+
227+
PLATFORMS
228+
ruby
229+
230+
DEPENDENCIES
231+
bootsnap (>= 1.1.0)
232+
byebug
233+
capybara (>= 2.15)
234+
chromedriver-helper
235+
coffee-rails (~> 4.2)
236+
imagekit-sdk!
237+
jbuilder (~> 2.5)
238+
listen (>= 3.0.5, < 3.2)
239+
puma (~> 3.11)
240+
rails (~> 5.2.4, >= 5.2.4.2)
241+
sass-rails (~> 5.0)
242+
selenium-webdriver
243+
spring
244+
spring-watcher-listen (~> 2.0.0)
245+
sqlite3
246+
turbolinks (~> 5)
247+
tzinfo-data
248+
uglifier (>= 1.3.0)
249+
web-console (>= 3.3.0)
250+
251+
RUBY VERSION
252+
ruby 2.6.3p62
253+
254+
BUNDLED WITH
255+
2.1.4

samples/rails_app/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# README
2+
3+
This README would normally document whatever steps are necessary to get the
4+
application up and running.
5+
6+
Things you may want to cover:
7+
8+
* Ruby version
9+
10+
* System dependencies
11+
12+
* Configuration
13+
14+
* Database creation
15+
16+
* Database initialization
17+
18+
* How to run the test suite
19+
20+
* Services (job queues, cache servers, search engines, etc.)
21+
22+
* Deployment instructions
23+
24+
* ...

samples/rails_app/Rakefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Add your own tasks in files placed in lib/tasks ending in .rake,
2+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3+
4+
require_relative 'config/application'
5+
6+
Rails.application.load_tasks
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
//= link_tree ../images
2+
//= link_directory ../javascripts .js
3+
//= link_directory ../stylesheets .css

samples/rails_app/app/assets/images/.keep

Whitespace-only changes.

0 commit comments

Comments
 (0)