conversation_forms 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +7 -0
- data/Gemfile +13 -0
- data/Gemfile.lock +195 -0
- data/README.md +5 -0
- data/Rakefile +0 -3
- data/{app/assets → assets}/javascripts/conversation_forms/conversation_forms.coffee +0 -0
- data/assets/javascripts/index.js +4 -0
- data/{app/assets/stylesheets/conversation_forms → assets/stylesheets}/application.css +0 -0
- data/{app/assets → assets}/stylesheets/conversation_forms/conversation_forms.scss +0 -0
- data/bin/test +9 -0
- data/conversation_forms.gemspec +44 -0
- data/lib/conversation_forms/engine.rb +11 -2
- data/lib/conversation_forms/version.rb +1 -1
- data/lib/conversation_forms.rb +77 -3
- data/test/conversation_forms_test.rb +7 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/config/manifest.js +4 -0
- data/test/dummy/app/assets/images/.keep +0 -0
- data/{app/assets/javascripts/conversation_forms → test/dummy/app/assets/javascripts}/application.js +0 -0
- data/test/dummy/app/assets/javascripts/cable.js +13 -0
- data/test/dummy/app/assets/javascripts/channels/.keep +0 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/channels/application_cable/channel.rb +4 -0
- data/test/dummy/app/channels/application_cable/connection.rb +4 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/controllers/concerns/.keep +0 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/jobs/application_job.rb +2 -0
- data/test/dummy/app/mailers/application_mailer.rb +4 -0
- data/test/dummy/app/models/application_record.rb +3 -0
- data/test/dummy/app/models/concerns/.keep +0 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/test/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +34 -0
- data/test/dummy/bin/update +29 -0
- data/test/dummy/config/application.rb +15 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/cable.yml +9 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +54 -0
- data/test/dummy/config/environments/production.rb +86 -0
- data/test/dummy/config/environments/test.rb +42 -0
- data/test/dummy/config/initializers/application_controller_renderer.rb +6 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +5 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/new_framework_defaults.rb +24 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/puma.rb +47 -0
- data/test/dummy/config/routes.rb +3 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/config/spring.rb +6 -0
- data/test/dummy/config.ru +5 -0
- data/test/dummy/lib/assets/.keep +0 -0
- data/test/dummy/log/.keep +0 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/test/dummy/public/apple-touch-icon.png +0 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/test_helper.rb +20 -0
- metadata +296 -15
- data/app/assets/config/conversation_forms_manifest.js +0 -2
- data/app/controllers/conversation_forms/application_controller.rb +0 -5
- data/app/helpers/conversation_forms/application_helper.rb +0 -4
- data/app/jobs/conversation_forms/application_job.rb +0 -4
- data/app/mailers/conversation_forms/application_mailer.rb +0 -6
- data/app/models/conversation_forms/application_record.rb +0 -5
- data/app/views/layouts/conversation_forms/application.html.erb +0 -14
- data/config/routes.rb +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7c1e9156614b7141baacd0b3381ebb8caf8eeb1
|
4
|
+
data.tar.gz: 71f65a627bd47d2be65018d39d984a8cb5322511
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: def0d9bbe2eba7f9e2a9cfd8466bb4f2a4f7c88ce56ee3f3e426c61a1027e022f2c86fd459b17dc555ac3bbed97ad4bc39bbbf2748ec519aa03ea1a88c0f10ff
|
7
|
+
data.tar.gz: 13829f712788cf6ad82fef55428c07913b6bec91301197d6baa2aed39260ce09e65fb3320ed3b8db686066ef42afeea822d73fec63618c052017a7e373cabf5b
|
data/.gitignore
ADDED
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
data/Rakefile
CHANGED
File without changes
|
File without changes
|
File without changes
|
data/bin/test
ADDED
@@ -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
|
-
|
3
|
-
|
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
|
data/lib/conversation_forms.rb
CHANGED
@@ -1,5 +1,79 @@
|
|
1
|
-
require
|
2
|
-
|
1
|
+
require 'conversation_forms/version'
|
3
2
|
module ConversationForms
|
4
|
-
|
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!
|
data/test/dummy/Rakefile
ADDED
File without changes
|
data/{app/assets/javascripts/conversation_forms → test/dummy/app/assets/javascripts}/application.js
RENAMED
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
|
+
*/
|
File without changes
|
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 @@
|
|
1
|
+
<%= yield %>
|
data/test/dummy/bin/rake
ADDED
@@ -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
|
+
|