friendly_slug 0.1.4 → 0.1.5

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.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -10
  3. data/friendly_slug_gem_test/.gitignore +30 -0
  4. data/friendly_slug_gem_test/.ruby-version +1 -0
  5. data/friendly_slug_gem_test/Gemfile +32 -0
  6. data/friendly_slug_gem_test/Gemfile.lock +222 -0
  7. data/friendly_slug_gem_test/README.md +24 -0
  8. data/friendly_slug_gem_test/Rakefile +6 -0
  9. data/friendly_slug_gem_test/app/assets/config/manifest.js +3 -0
  10. data/friendly_slug_gem_test/app/assets/images/.keep +0 -0
  11. data/friendly_slug_gem_test/app/assets/javascripts/application.js +16 -0
  12. data/friendly_slug_gem_test/app/assets/javascripts/blogs.coffee +3 -0
  13. data/friendly_slug_gem_test/app/assets/javascripts/cable.js +13 -0
  14. data/friendly_slug_gem_test/app/assets/javascripts/channels/.keep +0 -0
  15. data/friendly_slug_gem_test/app/assets/stylesheets/application.css +15 -0
  16. data/friendly_slug_gem_test/app/assets/stylesheets/blogs.scss +3 -0
  17. data/friendly_slug_gem_test/app/assets/stylesheets/scaffolds.scss +84 -0
  18. data/friendly_slug_gem_test/app/channels/application_cable/channel.rb +4 -0
  19. data/friendly_slug_gem_test/app/channels/application_cable/connection.rb +4 -0
  20. data/friendly_slug_gem_test/app/controllers/application_controller.rb +2 -0
  21. data/friendly_slug_gem_test/app/controllers/blogs_controller.rb +60 -0
  22. data/friendly_slug_gem_test/app/controllers/concerns/.keep +0 -0
  23. data/friendly_slug_gem_test/app/helpers/application_helper.rb +2 -0
  24. data/friendly_slug_gem_test/app/helpers/blogs_helper.rb +2 -0
  25. data/friendly_slug_gem_test/app/jobs/application_job.rb +2 -0
  26. data/friendly_slug_gem_test/app/mailers/application_mailer.rb +4 -0
  27. data/friendly_slug_gem_test/app/models/application_record.rb +3 -0
  28. data/friendly_slug_gem_test/app/models/blog.rb +3 -0
  29. data/friendly_slug_gem_test/app/models/concerns/.keep +0 -0
  30. data/friendly_slug_gem_test/app/views/blogs/_blog.json.jbuilder +2 -0
  31. data/friendly_slug_gem_test/app/views/blogs/_form.html.erb +32 -0
  32. data/friendly_slug_gem_test/app/views/blogs/edit.html.erb +6 -0
  33. data/friendly_slug_gem_test/app/views/blogs/index.html.erb +31 -0
  34. data/friendly_slug_gem_test/app/views/blogs/index.json.jbuilder +1 -0
  35. data/friendly_slug_gem_test/app/views/blogs/new.html.erb +5 -0
  36. data/friendly_slug_gem_test/app/views/blogs/show.html.erb +19 -0
  37. data/friendly_slug_gem_test/app/views/blogs/show.json.jbuilder +1 -0
  38. data/friendly_slug_gem_test/app/views/layouts/application.html.erb +15 -0
  39. data/friendly_slug_gem_test/app/views/layouts/mailer.html.erb +13 -0
  40. data/friendly_slug_gem_test/app/views/layouts/mailer.text.erb +1 -0
  41. data/friendly_slug_gem_test/bin/bundle +3 -0
  42. data/friendly_slug_gem_test/bin/rails +9 -0
  43. data/friendly_slug_gem_test/bin/rake +9 -0
  44. data/friendly_slug_gem_test/bin/setup +36 -0
  45. data/friendly_slug_gem_test/bin/spring +17 -0
  46. data/friendly_slug_gem_test/bin/update +31 -0
  47. data/friendly_slug_gem_test/bin/yarn +11 -0
  48. data/friendly_slug_gem_test/config.ru +5 -0
  49. data/friendly_slug_gem_test/config/application.rb +20 -0
  50. data/friendly_slug_gem_test/config/boot.rb +4 -0
  51. data/friendly_slug_gem_test/config/cable.yml +10 -0
  52. data/friendly_slug_gem_test/config/credentials.yml.enc +1 -0
  53. data/friendly_slug_gem_test/config/database.yml +25 -0
  54. data/friendly_slug_gem_test/config/environment.rb +5 -0
  55. data/friendly_slug_gem_test/config/environments/development.rb +61 -0
  56. data/friendly_slug_gem_test/config/environments/production.rb +94 -0
  57. data/friendly_slug_gem_test/config/environments/test.rb +46 -0
  58. data/friendly_slug_gem_test/config/initializers/application_controller_renderer.rb +8 -0
  59. data/friendly_slug_gem_test/config/initializers/assets.rb +14 -0
  60. data/friendly_slug_gem_test/config/initializers/backtrace_silencers.rb +7 -0
  61. data/friendly_slug_gem_test/config/initializers/content_security_policy.rb +25 -0
  62. data/friendly_slug_gem_test/config/initializers/cookies_serializer.rb +5 -0
  63. data/friendly_slug_gem_test/config/initializers/filter_parameter_logging.rb +4 -0
  64. data/friendly_slug_gem_test/config/initializers/inflections.rb +16 -0
  65. data/friendly_slug_gem_test/config/initializers/mime_types.rb +4 -0
  66. data/friendly_slug_gem_test/config/initializers/wrap_parameters.rb +14 -0
  67. data/friendly_slug_gem_test/config/locales/en.yml +33 -0
  68. data/friendly_slug_gem_test/config/puma.rb +34 -0
  69. data/friendly_slug_gem_test/config/routes.rb +4 -0
  70. data/friendly_slug_gem_test/config/spring.rb +6 -0
  71. data/friendly_slug_gem_test/config/storage.yml +34 -0
  72. data/friendly_slug_gem_test/db/migrate/20180628233122_create_blogs.rb +11 -0
  73. data/friendly_slug_gem_test/db/schema.rb +23 -0
  74. data/friendly_slug_gem_test/db/seeds.rb +7 -0
  75. data/friendly_slug_gem_test/lib/assets/.keep +0 -0
  76. data/friendly_slug_gem_test/lib/tasks/.keep +0 -0
  77. data/friendly_slug_gem_test/log/.keep +0 -0
  78. data/friendly_slug_gem_test/package.json +5 -0
  79. data/friendly_slug_gem_test/public/404.html +67 -0
  80. data/friendly_slug_gem_test/public/422.html +67 -0
  81. data/friendly_slug_gem_test/public/500.html +66 -0
  82. data/friendly_slug_gem_test/public/apple-touch-icon-precomposed.png +0 -0
  83. data/friendly_slug_gem_test/public/apple-touch-icon.png +0 -0
  84. data/friendly_slug_gem_test/public/favicon.ico +0 -0
  85. data/friendly_slug_gem_test/public/robots.txt +1 -0
  86. data/friendly_slug_gem_test/test/application_system_test_case.rb +5 -0
  87. data/friendly_slug_gem_test/test/controllers/.keep +0 -0
  88. data/friendly_slug_gem_test/test/controllers/blogs_controller_test.rb +48 -0
  89. data/friendly_slug_gem_test/test/fixtures/.keep +0 -0
  90. data/friendly_slug_gem_test/test/fixtures/blogs.yml +17 -0
  91. data/friendly_slug_gem_test/test/fixtures/files/.keep +0 -0
  92. data/friendly_slug_gem_test/test/helpers/.keep +0 -0
  93. data/friendly_slug_gem_test/test/integration/.keep +0 -0
  94. data/friendly_slug_gem_test/test/integration/main_slug_test.rb +14 -0
  95. data/friendly_slug_gem_test/test/mailers/.keep +0 -0
  96. data/friendly_slug_gem_test/test/models/.keep +0 -0
  97. data/friendly_slug_gem_test/test/models/blog_test.rb +9 -0
  98. data/friendly_slug_gem_test/test/system/.keep +0 -0
  99. data/friendly_slug_gem_test/test/system/blogs_test.rb +47 -0
  100. data/friendly_slug_gem_test/test/test_helper.rb +22 -0
  101. data/friendly_slug_gem_test/tmp/.keep +0 -0
  102. data/friendly_slug_gem_test/vendor/.keep +0 -0
  103. data/lib/friendly_slug/active_record/base.rb +10 -1
  104. data/lib/friendly_slug/version.rb +1 -1
  105. metadata +102 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c6565fc64fa222495652a035607e48c7c0b0833a3a4661b8681a0a0aeadc330a
4
- data.tar.gz: '074509b1f073d3de471c53f7d8bf604d52a495f6b90653e788ddb52308ca30d3'
3
+ metadata.gz: cdf3e33c4a0ed977b854abcedff9ae14513596457d6c60af7c57917fdd41de50
4
+ data.tar.gz: af600c5eb04a71ae2529e5e18120a0bfb3c9d22e232a2328c4367799f5ee4966
5
5
  SHA512:
6
- metadata.gz: c671c2238048afaefdf3f79e0bf4d43e917dae869e5a5e29bf082f0c395dca6a356861d0f4baed9b54db53dee636f940b48d1302e372c60db0b7fac2bf87cffb
7
- data.tar.gz: e01075b8939e690cfb9c658c0e55909843ab1fb71607230b60616b1dfffda430556e52a1f325796217348b810922b958e29e3011d2e38b041eff5fb42cc8da1d
6
+ metadata.gz: 762fd755935b66381459775b2aae4228ac9a8de5eb3a36a6b59197e44e0600278bc24b287d999d87d9418d5497e0697218a66b670c5fde107b2e973fa5fec6cb
7
+ data.tar.gz: 5508c0f0041ee7fe4548b97c12d5a510b1dd2b2ed5eff670710871caa312629aad4583797c9fac2f7ab16c9f82b5347c61a6d2c27d7c910cc1ef496a5b814def
data/README.md CHANGED
@@ -25,10 +25,11 @@ In the model you want to add your slug to, simply put the following code in it:
25
25
 
26
26
  ```ruby
27
27
  # models/your_model.rb
28
- build_friendly_slug :title, :id
28
+ build_friendly_slug :title, :id, use: :last
29
29
  ```
30
30
 
31
- You must provide one unique indexed attribute that you can search by to retrieve a database row and one other attribute you want to appear in the URL. The method only accepts two parameters at the moment.
31
+ You must provide one unique indexed attribute that you can search by to retrieve a database row and one other attribute you want to appear in the URL. The method accepts three parameters, the last parameter defines where the unique key is in the string that will be looked up.
32
+ The only symbols accepted are `:first` or `:last`. Since our unique id in the example above is in the second parameter spot, we will `:last` for second.
32
33
 
33
34
  For example, if I have a blog post with a `title` and `id`, `id` being a primary key and also an indexed table attribute, my slugged link would look like this:
34
35
 
@@ -40,33 +41,31 @@ link_to @blog.title, blog_path(@blog) # => http://localhost:3000/blogs/the-great
40
41
 
41
42
  # controllers/blogs_controller.rb
42
43
  def set_blog
43
- @blog = Blog.find(params[:id].split("-").last) # => 1
44
+ @blog = Blog.find_slugged(params[:id]) # => 1
44
45
  end
45
46
  ```
46
47
 
47
- In the above example, we will split the `id`, which will end up being `"the-great-friendly-slug-1"`, `1` being the `id` of the actualy blog post, and the preceding sentence being the title.
48
+ In the above example, we will split the `id`, which will end up being `"the-great-friendly-slug-1"`, `1` being the `id` of the actual blog post, and the preceding sentence being the title.
48
49
 
49
50
  Likewise you could move
50
51
 
51
52
  ```ruby
52
- build_friendly_slug :id, :title
53
+ build_friendly_slug :id, :title, use: :first
53
54
  ```
54
55
 
55
- the reversed way to have the Friendly Slug be `"1-the-great-friendly-slug"`. It could be whatever you want it to be as you as long as you can search a unique attribute with the slugged text.
56
-
57
- Doing it the this way would require you do call `.first` in the controller instead of `.last` in the lookup:
56
+ the reversed way to have the Friendly Slug be `"1-the-great-friendly-slug"`. We then change the `use` to be `:first`, since now our unique key is in the first parameter spot. The attribute can be whatever you want it to be as you as long as you can search a unique attribute with the slugged text.
58
57
 
59
58
  ```ruby
60
59
  # controllers/blogs_controller.rb
61
60
  def set_blog
62
- @blog = Blog.find(params[:id].split("-").first) # => 1
61
+ @blog = Blog.find_slugged(params[:id]) # => 1
63
62
  end
64
63
  ```
65
64
 
66
65
  You can also set a static string in place of an attribute if you wanted URL's to be similar in wording.
67
66
 
68
67
  ```ruby
69
- build_friendly_slug :id, "My Static String" # => http://localhost:3000/blogs/:id-my-static-string
68
+ build_friendly_slug :id, "My Static String", use: :first # => http://localhost:3000/blogs/:id-my-static-string
70
69
  ```
71
70
 
72
71
  ## Development
@@ -0,0 +1,30 @@
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
+
23
+ /node_modules
24
+ /yarn-error.log
25
+
26
+ /public/assets
27
+ .byebug_history
28
+
29
+ # Ignore master key for decrypting credentials and more.
30
+ /config/master.key
@@ -0,0 +1,32 @@
1
+ source 'https://rubygems.org'
2
+ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3
+
4
+ ruby '2.5.0'
5
+
6
+ gem 'rails', '~> 5.2.0'
7
+ gem 'sqlite3'
8
+ gem 'puma', '~> 3.11'
9
+ gem 'sass-rails', '~> 5.0'
10
+ gem 'uglifier', '>= 1.3.0'
11
+ gem 'coffee-rails', '~> 4.2'
12
+ gem 'turbolinks', '~> 5'
13
+ gem 'jbuilder', '~> 2.5'
14
+ gem 'bootsnap', '>= 1.1.0', require: false
15
+
16
+ group :development, :test do
17
+ gem 'pry'
18
+ end
19
+
20
+ group :development do
21
+ gem 'web-console', '>= 3.3.0'
22
+ gem 'listen', '>= 3.0.5', '< 3.2'
23
+ gem 'spring'
24
+ gem 'spring-watcher-listen', '~> 2.0.0'
25
+ end
26
+
27
+ group :test do
28
+ gem 'capybara', '>= 2.15', '< 4.0'
29
+ gem 'selenium-webdriver'
30
+ gem 'chromedriver-helper'
31
+ gem 'database_cleaner'
32
+ end
@@ -0,0 +1,222 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ actioncable (5.2.0)
5
+ actionpack (= 5.2.0)
6
+ nio4r (~> 2.0)
7
+ websocket-driver (>= 0.6.1)
8
+ actionmailer (5.2.0)
9
+ actionpack (= 5.2.0)
10
+ actionview (= 5.2.0)
11
+ activejob (= 5.2.0)
12
+ mail (~> 2.5, >= 2.5.4)
13
+ rails-dom-testing (~> 2.0)
14
+ actionpack (5.2.0)
15
+ actionview (= 5.2.0)
16
+ activesupport (= 5.2.0)
17
+ rack (~> 2.0)
18
+ rack-test (>= 0.6.3)
19
+ rails-dom-testing (~> 2.0)
20
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
21
+ actionview (5.2.0)
22
+ activesupport (= 5.2.0)
23
+ builder (~> 3.1)
24
+ erubi (~> 1.4)
25
+ rails-dom-testing (~> 2.0)
26
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
27
+ activejob (5.2.0)
28
+ activesupport (= 5.2.0)
29
+ globalid (>= 0.3.6)
30
+ activemodel (5.2.0)
31
+ activesupport (= 5.2.0)
32
+ activerecord (5.2.0)
33
+ activemodel (= 5.2.0)
34
+ activesupport (= 5.2.0)
35
+ arel (>= 9.0)
36
+ activestorage (5.2.0)
37
+ actionpack (= 5.2.0)
38
+ activerecord (= 5.2.0)
39
+ marcel (~> 0.3.1)
40
+ activesupport (5.2.0)
41
+ concurrent-ruby (~> 1.0, >= 1.0.2)
42
+ i18n (>= 0.7, < 2)
43
+ minitest (~> 5.1)
44
+ tzinfo (~> 1.1)
45
+ addressable (2.5.2)
46
+ public_suffix (>= 2.0.2, < 4.0)
47
+ archive-zip (0.11.0)
48
+ io-like (~> 0.3.0)
49
+ arel (9.0.0)
50
+ bindex (0.5.0)
51
+ bootsnap (1.3.0)
52
+ msgpack (~> 1.0)
53
+ builder (3.2.3)
54
+ capybara (3.3.1)
55
+ addressable
56
+ mini_mime (>= 0.1.3)
57
+ nokogiri (~> 1.8)
58
+ rack (>= 1.6.0)
59
+ rack-test (>= 0.6.3)
60
+ xpath (~> 3.1)
61
+ childprocess (0.9.0)
62
+ ffi (~> 1.0, >= 1.0.11)
63
+ chromedriver-helper (1.2.0)
64
+ archive-zip (~> 0.10)
65
+ nokogiri (~> 1.8)
66
+ coderay (1.1.2)
67
+ coffee-rails (4.2.2)
68
+ coffee-script (>= 2.2.0)
69
+ railties (>= 4.0.0)
70
+ coffee-script (2.4.1)
71
+ coffee-script-source
72
+ execjs
73
+ coffee-script-source (1.12.2)
74
+ concurrent-ruby (1.0.5)
75
+ crass (1.0.4)
76
+ database_cleaner (1.7.0)
77
+ erubi (1.7.1)
78
+ execjs (2.7.0)
79
+ ffi (1.9.25)
80
+ globalid (0.4.1)
81
+ activesupport (>= 4.2.0)
82
+ i18n (1.0.1)
83
+ concurrent-ruby (~> 1.0)
84
+ io-like (0.3.0)
85
+ jbuilder (2.7.0)
86
+ activesupport (>= 4.2.0)
87
+ multi_json (>= 1.2)
88
+ listen (3.1.5)
89
+ rb-fsevent (~> 0.9, >= 0.9.4)
90
+ rb-inotify (~> 0.9, >= 0.9.7)
91
+ ruby_dep (~> 1.2)
92
+ loofah (2.2.2)
93
+ crass (~> 1.0.2)
94
+ nokogiri (>= 1.5.9)
95
+ mail (2.7.0)
96
+ mini_mime (>= 0.1.1)
97
+ marcel (0.3.2)
98
+ mimemagic (~> 0.3.2)
99
+ method_source (0.9.0)
100
+ mimemagic (0.3.2)
101
+ mini_mime (1.0.0)
102
+ mini_portile2 (2.3.0)
103
+ minitest (5.11.3)
104
+ msgpack (1.2.4)
105
+ multi_json (1.13.1)
106
+ nio4r (2.3.1)
107
+ nokogiri (1.8.3)
108
+ mini_portile2 (~> 2.3.0)
109
+ pry (0.11.3)
110
+ coderay (~> 1.1.0)
111
+ method_source (~> 0.9.0)
112
+ public_suffix (3.0.2)
113
+ puma (3.11.4)
114
+ rack (2.0.5)
115
+ rack-test (1.0.0)
116
+ rack (>= 1.0, < 3)
117
+ rails (5.2.0)
118
+ actioncable (= 5.2.0)
119
+ actionmailer (= 5.2.0)
120
+ actionpack (= 5.2.0)
121
+ actionview (= 5.2.0)
122
+ activejob (= 5.2.0)
123
+ activemodel (= 5.2.0)
124
+ activerecord (= 5.2.0)
125
+ activestorage (= 5.2.0)
126
+ activesupport (= 5.2.0)
127
+ bundler (>= 1.3.0)
128
+ railties (= 5.2.0)
129
+ sprockets-rails (>= 2.0.0)
130
+ rails-dom-testing (2.0.3)
131
+ activesupport (>= 4.2.0)
132
+ nokogiri (>= 1.6)
133
+ rails-html-sanitizer (1.0.4)
134
+ loofah (~> 2.2, >= 2.2.2)
135
+ railties (5.2.0)
136
+ actionpack (= 5.2.0)
137
+ activesupport (= 5.2.0)
138
+ method_source
139
+ rake (>= 0.8.7)
140
+ thor (>= 0.18.1, < 2.0)
141
+ rake (12.3.1)
142
+ rb-fsevent (0.10.3)
143
+ rb-inotify (0.9.10)
144
+ ffi (>= 0.5.0, < 2)
145
+ ruby_dep (1.5.0)
146
+ rubyzip (1.2.1)
147
+ sass (3.5.6)
148
+ sass-listen (~> 4.0.0)
149
+ sass-listen (4.0.0)
150
+ rb-fsevent (~> 0.9, >= 0.9.4)
151
+ rb-inotify (~> 0.9, >= 0.9.7)
152
+ sass-rails (5.0.7)
153
+ railties (>= 4.0.0, < 6)
154
+ sass (~> 3.1)
155
+ sprockets (>= 2.8, < 4.0)
156
+ sprockets-rails (>= 2.0, < 4.0)
157
+ tilt (>= 1.1, < 3)
158
+ selenium-webdriver (3.13.0)
159
+ childprocess (~> 0.5)
160
+ rubyzip (~> 1.2)
161
+ spring (2.0.2)
162
+ activesupport (>= 4.2)
163
+ spring-watcher-listen (2.0.1)
164
+ listen (>= 2.7, < 4.0)
165
+ spring (>= 1.2, < 3.0)
166
+ sprockets (3.7.2)
167
+ concurrent-ruby (~> 1.0)
168
+ rack (> 1, < 3)
169
+ sprockets-rails (3.2.1)
170
+ actionpack (>= 4.0)
171
+ activesupport (>= 4.0)
172
+ sprockets (>= 3.0.0)
173
+ sqlite3 (1.3.13)
174
+ thor (0.20.0)
175
+ thread_safe (0.3.6)
176
+ tilt (2.0.8)
177
+ turbolinks (5.1.1)
178
+ turbolinks-source (~> 5.1)
179
+ turbolinks-source (5.1.0)
180
+ tzinfo (1.2.5)
181
+ thread_safe (~> 0.1)
182
+ uglifier (4.1.12)
183
+ execjs (>= 0.3.0, < 3)
184
+ web-console (3.6.2)
185
+ actionview (>= 5.0)
186
+ activemodel (>= 5.0)
187
+ bindex (>= 0.4.0)
188
+ railties (>= 5.0)
189
+ websocket-driver (0.7.0)
190
+ websocket-extensions (>= 0.1.0)
191
+ websocket-extensions (0.1.3)
192
+ xpath (3.1.0)
193
+ nokogiri (~> 1.8)
194
+
195
+ PLATFORMS
196
+ ruby
197
+
198
+ DEPENDENCIES
199
+ bootsnap (>= 1.1.0)
200
+ capybara (>= 2.15, < 4.0)
201
+ chromedriver-helper
202
+ coffee-rails (~> 4.2)
203
+ database_cleaner
204
+ jbuilder (~> 2.5)
205
+ listen (>= 3.0.5, < 3.2)
206
+ pry
207
+ puma (~> 3.11)
208
+ rails (~> 5.2.0)
209
+ sass-rails (~> 5.0)
210
+ selenium-webdriver
211
+ spring
212
+ spring-watcher-listen (~> 2.0.0)
213
+ sqlite3
214
+ turbolinks (~> 5)
215
+ uglifier (>= 1.3.0)
216
+ web-console (>= 3.3.0)
217
+
218
+ RUBY VERSION
219
+ ruby 2.5.0p0
220
+
221
+ BUNDLED WITH
222
+ 1.16.1
@@ -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
+ * ...
@@ -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
@@ -0,0 +1,3 @@
1
+ //= link_tree ../images
2
+ //= link_directory ../javascripts .js
3
+ //= link_directory ../stylesheets .css
@@ -0,0 +1,16 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's
5
+ // vendor/assets/javascripts directory can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file. JavaScript code in this file should be added after the last require_* statement.
9
+ //
10
+ // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require rails-ujs
14
+ //= require activestorage
15
+ //= require turbolinks
16
+ //= require_tree .
@@ -0,0 +1,3 @@
1
+ # Place all the behaviors and hooks related to the matching controller here.
2
+ # All this logic will automatically be available in application.js.
3
+ # You can use CoffeeScript in this file: http://coffeescript.org/
@@ -0,0 +1,13 @@
1
+ // Action Cable provides the framework to deal with WebSockets in Rails.
2
+ // You can generate new channels where WebSocket features live using the `rails generate channel` command.
3
+ //
4
+ //= require action_cable
5
+ //= require_self
6
+ //= require_tree ./channels
7
+
8
+ (function() {
9
+ this.App || (this.App = {});
10
+
11
+ App.cable = ActionCable.createConsumer();
12
+
13
+ }).call(this);
@@ -0,0 +1,15 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
6
+ * vendor/assets/stylesheets directory can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
+ * files in this directory. Styles in this file should be added after the last require_* statement.
11
+ * It is generally better to create a new file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */