conversation_forms 0.4.0 → 0.5.0

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 (82) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +7 -0
  3. data/Gemfile +13 -0
  4. data/Gemfile.lock +195 -0
  5. data/README.md +5 -0
  6. data/Rakefile +0 -3
  7. data/{app/assets → assets}/javascripts/conversation_forms/conversation_forms.coffee +0 -0
  8. data/assets/javascripts/index.js +4 -0
  9. data/{app/assets/stylesheets/conversation_forms → assets/stylesheets}/application.css +0 -0
  10. data/{app/assets → assets}/stylesheets/conversation_forms/conversation_forms.scss +0 -0
  11. data/bin/test +9 -0
  12. data/conversation_forms.gemspec +44 -0
  13. data/lib/conversation_forms/engine.rb +11 -2
  14. data/lib/conversation_forms/version.rb +1 -1
  15. data/lib/conversation_forms.rb +77 -3
  16. data/test/conversation_forms_test.rb +7 -0
  17. data/test/dummy/Rakefile +6 -0
  18. data/test/dummy/app/assets/config/manifest.js +4 -0
  19. data/test/dummy/app/assets/images/.keep +0 -0
  20. data/{app/assets/javascripts/conversation_forms → test/dummy/app/assets/javascripts}/application.js +0 -0
  21. data/test/dummy/app/assets/javascripts/cable.js +13 -0
  22. data/test/dummy/app/assets/javascripts/channels/.keep +0 -0
  23. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  24. data/test/dummy/app/channels/application_cable/channel.rb +4 -0
  25. data/test/dummy/app/channels/application_cable/connection.rb +4 -0
  26. data/test/dummy/app/controllers/application_controller.rb +3 -0
  27. data/test/dummy/app/controllers/concerns/.keep +0 -0
  28. data/test/dummy/app/helpers/application_helper.rb +2 -0
  29. data/test/dummy/app/jobs/application_job.rb +2 -0
  30. data/test/dummy/app/mailers/application_mailer.rb +4 -0
  31. data/test/dummy/app/models/application_record.rb +3 -0
  32. data/test/dummy/app/models/concerns/.keep +0 -0
  33. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  34. data/test/dummy/app/views/layouts/mailer.html.erb +13 -0
  35. data/test/dummy/app/views/layouts/mailer.text.erb +1 -0
  36. data/test/dummy/bin/bundle +3 -0
  37. data/test/dummy/bin/rails +4 -0
  38. data/test/dummy/bin/rake +4 -0
  39. data/test/dummy/bin/setup +34 -0
  40. data/test/dummy/bin/update +29 -0
  41. data/test/dummy/config/application.rb +15 -0
  42. data/test/dummy/config/boot.rb +5 -0
  43. data/test/dummy/config/cable.yml +9 -0
  44. data/test/dummy/config/database.yml +25 -0
  45. data/test/dummy/config/environment.rb +5 -0
  46. data/test/dummy/config/environments/development.rb +54 -0
  47. data/test/dummy/config/environments/production.rb +86 -0
  48. data/test/dummy/config/environments/test.rb +42 -0
  49. data/test/dummy/config/initializers/application_controller_renderer.rb +6 -0
  50. data/test/dummy/config/initializers/assets.rb +11 -0
  51. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  52. data/test/dummy/config/initializers/cookies_serializer.rb +5 -0
  53. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  54. data/test/dummy/config/initializers/inflections.rb +16 -0
  55. data/test/dummy/config/initializers/mime_types.rb +4 -0
  56. data/test/dummy/config/initializers/new_framework_defaults.rb +24 -0
  57. data/test/dummy/config/initializers/session_store.rb +3 -0
  58. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  59. data/test/dummy/config/locales/en.yml +23 -0
  60. data/test/dummy/config/puma.rb +47 -0
  61. data/test/dummy/config/routes.rb +3 -0
  62. data/test/dummy/config/secrets.yml +22 -0
  63. data/test/dummy/config/spring.rb +6 -0
  64. data/test/dummy/config.ru +5 -0
  65. data/test/dummy/lib/assets/.keep +0 -0
  66. data/test/dummy/log/.keep +0 -0
  67. data/test/dummy/public/404.html +67 -0
  68. data/test/dummy/public/422.html +67 -0
  69. data/test/dummy/public/500.html +66 -0
  70. data/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
  71. data/test/dummy/public/apple-touch-icon.png +0 -0
  72. data/test/dummy/public/favicon.ico +0 -0
  73. data/test/test_helper.rb +20 -0
  74. metadata +296 -15
  75. data/app/assets/config/conversation_forms_manifest.js +0 -2
  76. data/app/controllers/conversation_forms/application_controller.rb +0 -5
  77. data/app/helpers/conversation_forms/application_helper.rb +0 -4
  78. data/app/jobs/conversation_forms/application_job.rb +0 -4
  79. data/app/mailers/conversation_forms/application_mailer.rb +0 -6
  80. data/app/models/conversation_forms/application_record.rb +0 -5
  81. data/app/views/layouts/conversation_forms/application.html.erb +0 -14
  82. data/config/routes.rb +0 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e94e40b9637860d8bb543ae7968896493ff0532e
4
- data.tar.gz: c322702f0a0ac72ac455059379c75ebd3915f6c2
3
+ metadata.gz: f7c1e9156614b7141baacd0b3381ebb8caf8eeb1
4
+ data.tar.gz: 71f65a627bd47d2be65018d39d984a8cb5322511
5
5
  SHA512:
6
- metadata.gz: 108e42fb9bfbcd0881485e9b43ca51bbc629a5505a978a0dd0c9766a6c9f0559cc56f9c6bc205d64e0e026f06e112af1d995a48c5852f883205714e5d95b33a9
7
- data.tar.gz: 929adc4baee02e12142a8cbf38d61d1e9c6515f872c533f952879e238a04775d30be681ae8a61cd42a7113ab0680a57a173141135abcf8cd68297900a7352269
6
+ metadata.gz: def0d9bbe2eba7f9e2a9cfd8466bb4f2a4f7c88ce56ee3f3e426c61a1027e022f2c86fd459b17dc555ac3bbed97ad4bc39bbbf2748ec519aa03ea1a88c0f10ff
7
+ data.tar.gz: 13829f712788cf6ad82fef55428c07913b6bec91301197d6baa2aed39260ce09e65fb3320ed3b8db686066ef42afeea822d73fec63618c052017a7e373cabf5b
data/.gitignore ADDED
@@ -0,0 +1,7 @@
1
+ .bundle/
2
+ log/*.log
3
+ pkg/
4
+ test/dummy/db/*.sqlite3
5
+ test/dummy/db/*.sqlite3-journal
6
+ test/dummy/log/*.log
7
+ test/dummy/tmp/
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Declare your gem's dependencies in conversation_forms.gemspec.
4
+ # Bundler will treat runtime dependencies like base dependencies, and
5
+ # development dependencies will be added by default to the :development group.
6
+ gemspec
7
+
8
+ # Compass for the dummy app
9
+ gem 'compass', require: false
10
+
11
+ group :development do
12
+ gem 'byebug', platforms: [:mri_21, :mri_22], require: false
13
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,195 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ conversation_forms (0.5.0)
5
+ autoprefixer-rails (>= 5.2.1)
6
+ rails (~> 5.0.0, >= 5.0.0.1)
7
+ railties
8
+ sass (>= 3.3.4)
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ actioncable (5.0.0.1)
14
+ actionpack (= 5.0.0.1)
15
+ nio4r (~> 1.2)
16
+ websocket-driver (~> 0.6.1)
17
+ actionmailer (5.0.0.1)
18
+ actionpack (= 5.0.0.1)
19
+ actionview (= 5.0.0.1)
20
+ activejob (= 5.0.0.1)
21
+ mail (~> 2.5, >= 2.5.4)
22
+ rails-dom-testing (~> 2.0)
23
+ actionpack (5.0.0.1)
24
+ actionview (= 5.0.0.1)
25
+ activesupport (= 5.0.0.1)
26
+ rack (~> 2.0)
27
+ rack-test (~> 0.6.3)
28
+ rails-dom-testing (~> 2.0)
29
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
30
+ actionview (5.0.0.1)
31
+ activesupport (= 5.0.0.1)
32
+ builder (~> 3.1)
33
+ erubis (~> 2.7.0)
34
+ rails-dom-testing (~> 2.0)
35
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
36
+ activejob (5.0.0.1)
37
+ activesupport (= 5.0.0.1)
38
+ globalid (>= 0.3.6)
39
+ activemodel (5.0.0.1)
40
+ activesupport (= 5.0.0.1)
41
+ activerecord (5.0.0.1)
42
+ activemodel (= 5.0.0.1)
43
+ activesupport (= 5.0.0.1)
44
+ arel (~> 7.0)
45
+ activesupport (5.0.0.1)
46
+ concurrent-ruby (~> 1.0, >= 1.0.2)
47
+ i18n (~> 0.7)
48
+ minitest (~> 5.1)
49
+ tzinfo (~> 1.1)
50
+ addressable (2.5.0)
51
+ public_suffix (~> 2.0, >= 2.0.2)
52
+ ansi (1.5.0)
53
+ arel (7.1.4)
54
+ autoprefixer-rails (6.5.3)
55
+ execjs
56
+ builder (3.2.2)
57
+ byebug (9.0.6)
58
+ capybara (2.10.2)
59
+ addressable
60
+ mime-types (>= 1.16)
61
+ nokogiri (>= 1.3.3)
62
+ rack (>= 1.0.0)
63
+ rack-test (>= 0.5.4)
64
+ xpath (~> 2.0)
65
+ chunky_png (1.3.8)
66
+ cliver (0.3.2)
67
+ compass (1.0.3)
68
+ chunky_png (~> 1.2)
69
+ compass-core (~> 1.0.2)
70
+ compass-import-once (~> 1.0.5)
71
+ rb-fsevent (>= 0.9.3)
72
+ rb-inotify (>= 0.9)
73
+ sass (>= 3.3.13, < 3.5)
74
+ compass-core (1.0.3)
75
+ multi_json (~> 1.0)
76
+ sass (>= 3.3.0, < 3.5)
77
+ compass-import-once (1.0.5)
78
+ sass (>= 3.2, < 3.5)
79
+ concurrent-ruby (1.0.2)
80
+ erubis (2.7.0)
81
+ execjs (2.7.0)
82
+ ffi (1.9.14)
83
+ globalid (0.3.7)
84
+ activesupport (>= 4.1.0)
85
+ i18n (0.7.0)
86
+ jquery-rails (4.2.1)
87
+ rails-dom-testing (>= 1, < 3)
88
+ railties (>= 4.2.0)
89
+ thor (>= 0.14, < 2.0)
90
+ json (2.0.2)
91
+ loofah (2.0.3)
92
+ nokogiri (>= 1.5.9)
93
+ mail (2.6.4)
94
+ mime-types (>= 1.16, < 4)
95
+ method_source (0.8.2)
96
+ mime-types (3.1)
97
+ mime-types-data (~> 3.2015)
98
+ mime-types-data (3.2016.0521)
99
+ mini_portile2 (2.1.0)
100
+ minitest (5.10.1)
101
+ minitest-reporters (1.1.13)
102
+ ansi
103
+ builder
104
+ minitest (>= 5.0)
105
+ ruby-progressbar
106
+ multi_json (1.12.1)
107
+ nio4r (1.2.1)
108
+ nokogiri (1.6.8.1)
109
+ mini_portile2 (~> 2.1.0)
110
+ poltergeist (1.11.0)
111
+ capybara (~> 2.1)
112
+ cliver (~> 0.3.1)
113
+ websocket-driver (>= 0.2.0)
114
+ public_suffix (2.0.4)
115
+ rack (2.0.1)
116
+ rack-test (0.6.3)
117
+ rack (>= 1.0)
118
+ rails (5.0.0.1)
119
+ actioncable (= 5.0.0.1)
120
+ actionmailer (= 5.0.0.1)
121
+ actionpack (= 5.0.0.1)
122
+ actionview (= 5.0.0.1)
123
+ activejob (= 5.0.0.1)
124
+ activemodel (= 5.0.0.1)
125
+ activerecord (= 5.0.0.1)
126
+ activesupport (= 5.0.0.1)
127
+ bundler (>= 1.3.0, < 2.0)
128
+ railties (= 5.0.0.1)
129
+ sprockets-rails (>= 2.0.0)
130
+ rails-dom-testing (2.0.1)
131
+ activesupport (>= 4.2.0, < 6.0)
132
+ nokogiri (~> 1.6.0)
133
+ rails-html-sanitizer (1.0.3)
134
+ loofah (~> 2.0)
135
+ railties (5.0.0.1)
136
+ actionpack (= 5.0.0.1)
137
+ activesupport (= 5.0.0.1)
138
+ method_source
139
+ rake (>= 0.8.7)
140
+ thor (>= 0.18.1, < 2.0)
141
+ rake (11.3.0)
142
+ rb-fsevent (0.9.8)
143
+ rb-inotify (0.9.7)
144
+ ffi (>= 0.5.0)
145
+ ruby-progressbar (1.8.1)
146
+ sass (3.4.22)
147
+ slim (3.0.7)
148
+ temple (~> 0.7.6)
149
+ tilt (>= 1.3.3, < 2.1)
150
+ slim-rails (3.1.1)
151
+ actionpack (>= 3.1)
152
+ railties (>= 3.1)
153
+ slim (~> 3.0)
154
+ sprockets (3.7.0)
155
+ concurrent-ruby (~> 1.0)
156
+ rack (> 1, < 3)
157
+ sprockets-rails (3.2.0)
158
+ actionpack (>= 4.0)
159
+ activesupport (>= 4.0)
160
+ sprockets (>= 3.0.0)
161
+ temple (0.7.7)
162
+ thor (0.19.4)
163
+ thread_safe (0.3.5)
164
+ tilt (2.0.5)
165
+ tzinfo (1.2.2)
166
+ thread_safe (~> 0.1)
167
+ uglifier (3.0.4)
168
+ execjs (>= 0.3.0, < 3)
169
+ websocket-driver (0.6.4)
170
+ websocket-extensions (>= 0.1.0)
171
+ websocket-extensions (0.1.2)
172
+ xpath (2.0.0)
173
+ nokogiri (~> 1.3)
174
+
175
+ PLATFORMS
176
+ ruby
177
+
178
+ DEPENDENCIES
179
+ actionpack (>= 4.1.5)
180
+ activesupport (>= 4.1.5)
181
+ byebug
182
+ capybara (>= 2.5.0)
183
+ compass
184
+ conversation_forms!
185
+ jquery-rails (>= 3.1.0)
186
+ json (>= 1.8.1)
187
+ minitest (~> 5.8)
188
+ minitest-reporters (~> 1.1)
189
+ poltergeist
190
+ slim-rails
191
+ sprockets-rails (>= 2.1.3)
192
+ uglifier
193
+
194
+ BUNDLED WITH
195
+ 1.13.6
data/README.md CHANGED
@@ -21,6 +21,11 @@ Or install it yourself as:
21
21
  $ gem install conversation_forms
22
22
  ```
23
23
 
24
+ Finally require the js and css:
25
+ ```bash
26
+ //= require conversation_forms
27
+ ```
28
+
24
29
  ## Contributing
25
30
  Contribution directions go here.
26
31
 
data/Rakefile CHANGED
@@ -14,11 +14,8 @@ RDoc::Task.new(:rdoc) do |rdoc|
14
14
  rdoc.rdoc_files.include('lib/**/*.rb')
15
15
  end
16
16
 
17
- APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
18
- load 'rails/tasks/engine.rake'
19
17
 
20
18
 
21
- load 'rails/tasks/statistics.rake'
22
19
 
23
20
 
24
21
 
@@ -0,0 +1,4 @@
1
+ //= require jquery
2
+ //= require jquery_ujs
3
+ //= require turbolinks
4
+ //= require_tree .
data/bin/test ADDED
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env ruby
2
+ $: << File.expand_path(File.expand_path('../../test', __FILE__))
3
+
4
+ require 'bundler/setup'
5
+ require 'rails/test_unit/minitest_plugin'
6
+
7
+ Rails::TestUnitReporter.executable = 'bin/test'
8
+
9
+ exit Minitest.run(ARGV)
@@ -0,0 +1,44 @@
1
+ lib = File.expand_path('../lib', __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ # Maintain your gem's version:
4
+ require "conversation_forms/version"
5
+
6
+ # Describe your gem and declare its dependencies:
7
+ Gem::Specification.new do |s|
8
+ s.name = "conversation_forms"
9
+ s.version = ConversationForms::VERSION
10
+ s.authors = ["Sampson Crowley"]
11
+ s.email = ["sampsonsprojects@gmail.com"]
12
+ s.homepage = "https://github.com/SampsonCrowley/conversation_forms"
13
+ s.summary = "Create the ultimate form."
14
+ s.description = "conversation_forms allows you to create a form that runs as a chat conversation for the ultimate user experience"
15
+ s.license = "MIT"
16
+
17
+
18
+ s.add_runtime_dependency 'sass', '>= 3.3.4'
19
+ s.add_runtime_dependency 'autoprefixer-rails', '>= 5.2.1'
20
+
21
+ s.add_dependency "railties"
22
+
23
+ s.add_dependency "rails", "~> 5.0.0", ">= 5.0.0.1"
24
+
25
+
26
+ # Testing dependencies
27
+ s.add_development_dependency 'minitest', '~> 5.8'
28
+ s.add_development_dependency 'minitest-reporters', '~> 1.1'
29
+ # Integration testing
30
+ s.add_development_dependency 'capybara', '>= 2.5.0'
31
+ s.add_development_dependency 'poltergeist'
32
+ # Dummy Rails app dependencies
33
+ s.add_development_dependency 'actionpack', '>= 4.1.5'
34
+ s.add_development_dependency 'activesupport', '>= 4.1.5'
35
+ s.add_development_dependency 'json', '>= 1.8.1'
36
+ s.add_development_dependency 'sprockets-rails', '>= 2.1.3'
37
+ s.add_development_dependency 'jquery-rails', '>= 3.1.0'
38
+ s.add_development_dependency 'slim-rails'
39
+ s.add_development_dependency 'uglifier'
40
+
41
+ s.files = `git ls-files`.split("\n")
42
+ s.test_files = `git ls-files -- test/*`.split("\n")
43
+
44
+ end
@@ -1,5 +1,14 @@
1
1
  module ConversationForms
2
- class Engine < ::Rails::Engine
3
- isolate_namespace ConversationForms
2
+ module Rails
3
+ class Engine < ::Rails::Engine
4
+ initializer 'conversation_forms.assets.precompile' do |app|
5
+ %w(stylesheets fonts images).each do |sub|
6
+ app.config.assets.paths << root.join('assets', sub).to_s
7
+ end
8
+
9
+ # sprockets-rails 3 tracks down the calls to `font_path` and `image_path`
10
+ # and automatically precompiles the referenced assets.
11
+ end
12
+ end
4
13
  end
5
14
  end
@@ -1,3 +1,3 @@
1
1
  module ConversationForms
2
- VERSION = '0.4.0'
2
+ VERSION = "0.5.0"
3
3
  end
@@ -1,5 +1,79 @@
1
- require "conversation_forms/engine"
2
-
1
+ require 'conversation_forms/version'
3
2
  module ConversationForms
4
- # Your code goes here...
3
+ class << self
4
+ # Inspired by Kaminari through bootstrap-sass
5
+ def load!
6
+ register_compass_extension if compass?
7
+
8
+ if rails?
9
+ register_rails_engine
10
+ elsif sprockets?
11
+ register_sprockets
12
+ end
13
+
14
+ configure_sass
15
+ end
16
+
17
+ # Paths
18
+ def gem_path
19
+ @gem_path ||= File.expand_path '..', File.dirname(__FILE__)
20
+ end
21
+
22
+ def stylesheets_path
23
+ File.join assets_path, 'stylesheets'
24
+ end
25
+
26
+ def javascripts_path
27
+ File.join assets_path, 'javascripts'
28
+ end
29
+
30
+ def assets_path
31
+ @assets_path ||= File.join gem_path, 'assets'
32
+ end
33
+
34
+ # Environment detection helpers
35
+ def sprockets?
36
+ defined?(::Sprockets)
37
+ end
38
+
39
+ def compass?
40
+ defined?(::Compass::Frameworks)
41
+ end
42
+
43
+ def rails?
44
+ defined?(::Rails)
45
+ end
46
+
47
+ private
48
+
49
+ def configure_sass
50
+ require 'sass'
51
+
52
+ ::Sass.load_paths << stylesheets_path
53
+
54
+ # bootstrap requires minimum precision of 8, see https://github.com/twbs/conversation_forms/issues/409
55
+ ::Sass::Script::Number.precision = [8, ::Sass::Script::Number.precision].max
56
+ end
57
+
58
+ def register_compass_extension
59
+ ::Compass::Frameworks.register(
60
+ 'conversation_forms',
61
+ :version => ConversationForms::VERSION,
62
+ :path => gem_path,
63
+ :stylesheets_directory => stylesheets_path,
64
+ :templates_directory => File.join(gem_path, 'templates')
65
+ )
66
+ end
67
+
68
+ def register_rails_engine
69
+ require 'conversation_forms/engine'
70
+ end
71
+
72
+ def register_sprockets
73
+ Sprockets.append_path(stylesheets_path)
74
+ Sprockets.append_path(javascripts_path)
75
+ end
76
+ end
5
77
  end
78
+
79
+ ConversationForms.load!
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class ConversationForms::Test < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, ConversationForms
6
+ end
7
+ end
@@ -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,4 @@
1
+
2
+ //= link_tree ../images
3
+ //= link_directory ../javascripts .js
4
+ //= link_directory ../stylesheets .css
File without changes
@@ -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);
File without changes
@@ -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, vendor/assets/stylesheets,
6
+ * or any plugin's 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
+ */
@@ -0,0 +1,4 @@
1
+ module ApplicationCable
2
+ class Channel < ActionCable::Channel::Base
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module ApplicationCable
2
+ class Connection < ActionCable::Connection::Base
3
+ end
4
+ end
@@ -0,0 +1,3 @@
1
+ class ApplicationController < ActionController::Base
2
+ protect_from_forgery with: :exception
3
+ end
File without changes
@@ -0,0 +1,2 @@
1
+ module ApplicationHelper
2
+ end
@@ -0,0 +1,2 @@
1
+ class ApplicationJob < ActiveJob::Base
2
+ end
@@ -0,0 +1,4 @@
1
+ class ApplicationMailer < ActionMailer::Base
2
+ default from: 'from@example.com'
3
+ layout 'mailer'
4
+ end
@@ -0,0 +1,3 @@
1
+ class ApplicationRecord < ActiveRecord::Base
2
+ self.abstract_class = true
3
+ end
File without changes
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Dummy</title>
5
+ <%= csrf_meta_tags %>
6
+
7
+ <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
8
+ <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
9
+ </head>
10
+
11
+ <body>
12
+ <%= yield %>
13
+ </body>
14
+ </html>
@@ -0,0 +1,13 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
+ <style>
6
+ /* Email styles need to be inline */
7
+ </style>
8
+ </head>
9
+
10
+ <body>
11
+ <%= yield %>
12
+ </body>
13
+ </html>
@@ -0,0 +1 @@
1
+ <%= yield %>
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
+ load Gem.bin_path('bundler', 'bundle')
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ APP_PATH = File.expand_path('../config/application', __dir__)
3
+ require_relative '../config/boot'
4
+ require 'rails/commands'
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require_relative '../config/boot'
3
+ require 'rake'
4
+ Rake.application.run
@@ -0,0 +1,34 @@
1
+ #!/usr/bin/env ruby
2
+ require 'pathname'
3
+ require 'fileutils'
4
+ include FileUtils
5
+
6
+ # path to your application root.
7
+ APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
8
+
9
+ def system!(*args)
10
+ system(*args) || abort("\n== Command #{args} failed ==")
11
+ end
12
+
13
+ chdir APP_ROOT do
14
+ # This script is a starting point to setup your application.
15
+ # Add necessary setup steps to this file.
16
+
17
+ puts '== Installing dependencies =='
18
+ system! 'gem install bundler --conservative'
19
+ system('bundle check') || system!('bundle install')
20
+
21
+ # puts "\n== Copying sample files =="
22
+ # unless File.exist?('config/database.yml')
23
+ # cp 'config/database.yml.sample', 'config/database.yml'
24
+ # end
25
+
26
+ puts "\n== Preparing database =="
27
+ system! 'bin/rails db:setup'
28
+
29
+ puts "\n== Removing old logs and tempfiles =="
30
+ system! 'bin/rails log:clear tmp:clear'
31
+
32
+ puts "\n== Restarting application server =="
33
+ system! 'bin/rails restart'
34
+ end
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ require 'pathname'
3
+ require 'fileutils'
4
+ include FileUtils
5
+
6
+ # path to your application root.
7
+ APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
8
+
9
+ def system!(*args)
10
+ system(*args) || abort("\n== Command #{args} failed ==")
11
+ end
12
+
13
+ chdir APP_ROOT do
14
+ # This script is a way to update your development environment automatically.
15
+ # Add necessary update steps to this file.
16
+
17
+ puts '== Installing dependencies =='
18
+ system! 'gem install bundler --conservative'
19
+ system('bundle check') || system!('bundle install')
20
+
21
+ puts "\n== Updating database =="
22
+ system! 'bin/rails db:migrate'
23
+
24
+ puts "\n== Removing old logs and tempfiles =="
25
+ system! 'bin/rails log:clear tmp:clear'
26
+
27
+ puts "\n== Restarting application server =="
28
+ system! 'bin/rails restart'
29
+ end
@@ -0,0 +1,15 @@
1
+ require_relative 'boot'
2
+
3
+ require 'rails/all'
4
+
5
+ Bundler.require(*Rails.groups)
6
+ require "conversation_forms"
7
+
8
+ module Dummy
9
+ class Application < Rails::Application
10
+ # Settings in config/environments/* take precedence over those specified here.
11
+ # Application configuration should go into files in config/initializers
12
+ # -- all .rb files in that directory are automatically loaded.
13
+ end
14
+ end
15
+