journea 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +8 -0
- data/README.md +131 -0
- data/Rakefile +26 -0
- data/app/controllers/journea/engine_controller.rb +19 -0
- data/app/controllers/journea/journeys_controller.rb +10 -0
- data/app/controllers/journea/steps_controller.rb +52 -0
- data/app/helpers/journea/form_helper.rb +25 -0
- data/app/models/journea/journey.rb +54 -0
- data/app/models/journea/journey_transition.rb +17 -0
- data/app/models/journea/keyvalue.rb +5 -0
- data/app/views/application/_back_link.html.haml +5 -0
- data/config/initializers/simple_form.rb +179 -0
- data/config/locales/simple_form.en.yml +31 -0
- data/config/routes.rb +5 -0
- data/db/migrate/20161201153630_create_journey_transitions.rb +22 -0
- data/db/migrate/20161201162349_create_journeys_table.rb +10 -0
- data/db/migrate/20161202162350_create_keyvalues_table.rb +11 -0
- data/lib/generators/journea/install_generator.rb +76 -0
- data/lib/generators/journea/templates/assets/application.js +23 -0
- data/lib/generators/journea/templates/assets/application.scss +49 -0
- data/lib/generators/journea/templates/config/initializers/journea.rb +23 -0
- data/lib/generators/journea/templates/config/initializers/journea2.rb +24 -0
- data/lib/generators/journea/templates/controllers/pages_controller.rb.example +2 -0
- data/lib/generators/journea/templates/views/application.html.haml +20 -0
- data/lib/generators/journea/templates/views/pages/start.html.haml.example +12 -0
- data/lib/generators/journea/templates/views/shared/error_messages.html.haml.example +7 -0
- data/lib/generators/journea/templates/views/steps/step.html.haml.example +8 -0
- data/lib/journea.rb +25 -0
- data/lib/journea/data.rb +20 -0
- data/lib/journea/engine.rb +27 -0
- data/lib/journea/state_machine.rb +40 -0
- data/lib/journea/step.rb +32 -0
- data/lib/journea/version.rb +3 -0
- data/lib/simple_form_object.rb +146 -0
- data/lib/tasks/journea_tasks.rake +4 -0
- data/lib/templates/erb/scaffold/_form.html.erb +13 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/config/manifest.js +5 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/javascripts/cable.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
- data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/controllers/pages_controller.rb +4 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/jobs/application_job.rb +2 -0
- data/spec/dummy/app/mailers/application_mailer.rb +4 -0
- data/spec/dummy/app/models/application_record.rb +3 -0
- data/spec/dummy/app/steps/address_step.rb +4 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/spec/dummy/app/views/pages/start.html.erb +1 -0
- data/spec/dummy/app/views/steps/address.html.erb +5 -0
- data/spec/dummy/app/views/steps/name.html.erb +5 -0
- data/spec/dummy/app/views/steps/phone_number.html.erb +0 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +34 -0
- data/spec/dummy/bin/update +29 -0
- data/spec/dummy/config.ru +5 -0
- data/spec/dummy/config/application.rb +14 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/cable.yml +9 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +54 -0
- data/spec/dummy/config/environments/production.rb +86 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/application_controller_renderer.rb +6 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/journea.rb +8 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/new_framework_defaults.rb +24 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/puma.rb +47 -0
- data/spec/dummy/config/routes.rb +4 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/config/spring.rb +6 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +42 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +57 -0
- data/spec/dummy/log/test.log +448 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/spec/dummy/public/apple-touch-icon.png +0 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/EA/EAR2KaBsPQau6HwaTGrxV7EGMwAWyS-4C8pGVDU1Z-Q.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/JZ/JZuPFgM2mLQgAHB-r7Pt_TdGW3DRWPrplT7xPjnCJSE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/LT/LTt1oE1gi9m65YRwUp78DuufkCOfi3sa3Qa05_ykADk.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Lj/LjRKOqtrClPtb97phuIWI7HHA8-p5J5nKHVE_zEycxo.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/QM/QMxUWUtpFaqwG3RI9t3m38QtFAOvHpiY3LphKJiVRTc.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/St/StFuOi5bd69ceiqz2D6EOCmRzHgwY0IxERsMfiCneGM.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Vj/VjCUmI9pp5eD8BlYATbwJ4ZOk0438rwvtDrsttyWbfQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Wl/WlLcUIADXcUxaOt8Gq59uQbO0mquikyz7jxiJjXjhaI.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/YH/YHo__TrFq5y8rpx49T8d8ecyvMLbHFbnhz7IBV7pM98.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Zu/ZuLXgeX6x_Dx8sCUbzuTtWu42HzQXWe7eooTgsonTnc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/aG/aG1tp1pv4kBiSKx9ixZH5xiRXH-rGa0Hi6sdl4SHw6g.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/aw/awTDtuorxLsRLIGEYCefR-PTN7yptoaGRLEk13vHVLA.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/b_/b_Itlk9QZZd7Rvf8kcA4yLP1R5Acu7jB-m1xQiSU0qE.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/cW/cWHxYOqms7abJ-dzXyrn2G7nadJicU5kkC8SduS06yc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/cb/cbX7RFavWZoWojlrsXhsy4FN46UOfMwZYStkLHT5HJw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/eY/eYTHvo0Wl2TD2vipDcJ966HHXGrA4ZlJaiA2DnftKhM.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/f4/f4CpFuYmsdh1EvlFVjsl1WmM2QA9_z9AuOebEOw4mts.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gH/gHSjqTBRSW22rP9mSj8XW6huEXKpcIOehvF-2fvuShQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/m0/m0smDeM83DcmOVpX9zos6AIX40E9Tf2j26tyvKFgMwc.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mW/mWrwQwWUQpAlMCLQ8dGv5VkAXd-TxvAtB5WPg9l09-A.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mX/mX1nlsL_SWOB4y22W5FheRX0YEONKyOY7xUeIvRiHco.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/oA/oAtzk5ZeF7lWCwNufspgWqtv_dQN_n5GumFNB4ScfBE.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/rA/rACdJeX3jZNkhx4awGhdZeMdOfmARubkoVKVAZdwYog.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/sC/sCEBZXwTjRpEzThf7YHzHNfkAupMVOx_Ko7WNMAFHS0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/x7/x7PYh8DJvPykcEqpVab2vcY9-GFz-3cqtoMlRAu94Uc.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/yT/yTOf3QInGfDlRZlwZNDBLlbma19FQRHM035AKRxcRyw.cache +0 -0
- data/spec/features/journey_spec.rb +9 -0
- data/spec/lib/simple_form_object/attribute_spec.rb +74 -0
- data/spec/lib/simple_form_object/delegation_spec.rb +50 -0
- data/spec/lib/simple_form_object/model_spec.rb +90 -0
- data/spec/lib/steps_spec.rb +0 -0
- data/spec/requests/journeys_spec.rb +6 -0
- data/spec/spec_helper.rb +44 -0
- metadata +449 -0
File without changes
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
require "codeclimate-test-reporter"
|
2
|
+
CodeClimate::TestReporter.start
|
3
|
+
|
4
|
+
require "simplecov"
|
5
|
+
SimpleCov.start do
|
6
|
+
# any custom configs like groups and filters can be here at a central place
|
7
|
+
|
8
|
+
# The templates folder is used by the generator when initialising a project.
|
9
|
+
# This means the code is written to be placed inside a project, and not
|
10
|
+
# actually part of this project hence the exclusion
|
11
|
+
add_filter "/lib/generators/journea/templates/"
|
12
|
+
|
13
|
+
# It's standard to ignore the spec folder when determining coverage
|
14
|
+
add_filter "/spec/"
|
15
|
+
|
16
|
+
# You can make Simplecov ignore sections of by wrapping them in # :nocov:
|
17
|
+
# tags. However without knowledge of this `nocov` doesn't mean a lot so here
|
18
|
+
# we take advantage of a feature that allows us to use a custom token to do
|
19
|
+
# the same thing `nocov` does. Now in our code any sections we want to exclude
|
20
|
+
# from test coverage stats we wrap in # :simplecov_ignore: tokens.
|
21
|
+
# https://github.com/colszowka/simplecov#ignoringskipping-code
|
22
|
+
nocov_token "simplecov_ignore"
|
23
|
+
end
|
24
|
+
|
25
|
+
ENV["RAILS_ENV"] ||= "test"
|
26
|
+
|
27
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
28
|
+
require "rspec/rails"
|
29
|
+
require "capybara/rails"
|
30
|
+
require "capybara/rspec"
|
31
|
+
require "factory_girl_rails"
|
32
|
+
|
33
|
+
Rails.backtrace_cleaner.remove_silencers!
|
34
|
+
|
35
|
+
# Load support files
|
36
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
37
|
+
|
38
|
+
RSpec.configure do |config|
|
39
|
+
config.mock_with :rspec
|
40
|
+
config.use_transactional_fixtures = true
|
41
|
+
config.infer_base_class_for_anonymous_controllers = false
|
42
|
+
config.order = "random"
|
43
|
+
config.infer_spec_type_from_file_location!
|
44
|
+
end
|
metadata
ADDED
@@ -0,0 +1,449 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: journea
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Environment Agency
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-01-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 5.0.0
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 5.0.0.1
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 5.0.0
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 5.0.0.1
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: statesman
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '2.0'
|
40
|
+
type: :runtime
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '2.0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: simple_form
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '3.3'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '3.3'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: awesome_print
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: byebug
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: capybara
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: codeclimate-test-reporter
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0.6'
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - "~>"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0.6'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: factory_girl_rails
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: github_changelog_generator
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '0'
|
138
|
+
type: :development
|
139
|
+
prerelease: false
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - ">="
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
145
|
+
- !ruby/object:Gem::Dependency
|
146
|
+
name: rspec-rails
|
147
|
+
requirement: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - ">="
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '0'
|
152
|
+
type: :development
|
153
|
+
prerelease: false
|
154
|
+
version_requirements: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - ">="
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '0'
|
159
|
+
- !ruby/object:Gem::Dependency
|
160
|
+
name: simplecov
|
161
|
+
requirement: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - "~>"
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0.12'
|
166
|
+
type: :development
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - "~>"
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '0.12'
|
173
|
+
- !ruby/object:Gem::Dependency
|
174
|
+
name: sqlite3
|
175
|
+
requirement: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - ">="
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '0'
|
180
|
+
type: :development
|
181
|
+
prerelease: false
|
182
|
+
version_requirements: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - ">="
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '0'
|
187
|
+
description: Journea uses a state machine and simple form to simplify creating gov.uk
|
188
|
+
style smart answers and user journeys
|
189
|
+
email:
|
190
|
+
- alan.cruikshanks@environment-agency.gov.uk
|
191
|
+
executables: []
|
192
|
+
extensions: []
|
193
|
+
extra_rdoc_files: []
|
194
|
+
files:
|
195
|
+
- LICENSE
|
196
|
+
- README.md
|
197
|
+
- Rakefile
|
198
|
+
- app/controllers/journea/engine_controller.rb
|
199
|
+
- app/controllers/journea/journeys_controller.rb
|
200
|
+
- app/controllers/journea/steps_controller.rb
|
201
|
+
- app/helpers/journea/form_helper.rb
|
202
|
+
- app/models/journea/journey.rb
|
203
|
+
- app/models/journea/journey_transition.rb
|
204
|
+
- app/models/journea/keyvalue.rb
|
205
|
+
- app/views/application/_back_link.html.haml
|
206
|
+
- config/initializers/simple_form.rb
|
207
|
+
- config/locales/simple_form.en.yml
|
208
|
+
- config/routes.rb
|
209
|
+
- db/migrate/20161201153630_create_journey_transitions.rb
|
210
|
+
- db/migrate/20161201162349_create_journeys_table.rb
|
211
|
+
- db/migrate/20161202162350_create_keyvalues_table.rb
|
212
|
+
- lib/generators/journea/install_generator.rb
|
213
|
+
- lib/generators/journea/templates/assets/application.js
|
214
|
+
- lib/generators/journea/templates/assets/application.scss
|
215
|
+
- lib/generators/journea/templates/config/initializers/journea.rb
|
216
|
+
- lib/generators/journea/templates/config/initializers/journea2.rb
|
217
|
+
- lib/generators/journea/templates/controllers/pages_controller.rb.example
|
218
|
+
- lib/generators/journea/templates/views/application.html.haml
|
219
|
+
- lib/generators/journea/templates/views/pages/start.html.haml.example
|
220
|
+
- lib/generators/journea/templates/views/shared/error_messages.html.haml.example
|
221
|
+
- lib/generators/journea/templates/views/steps/step.html.haml.example
|
222
|
+
- lib/journea.rb
|
223
|
+
- lib/journea/data.rb
|
224
|
+
- lib/journea/engine.rb
|
225
|
+
- lib/journea/state_machine.rb
|
226
|
+
- lib/journea/step.rb
|
227
|
+
- lib/journea/version.rb
|
228
|
+
- lib/simple_form_object.rb
|
229
|
+
- lib/tasks/journea_tasks.rake
|
230
|
+
- lib/templates/erb/scaffold/_form.html.erb
|
231
|
+
- spec/dummy/Rakefile
|
232
|
+
- spec/dummy/app/assets/config/manifest.js
|
233
|
+
- spec/dummy/app/assets/javascripts/application.js
|
234
|
+
- spec/dummy/app/assets/javascripts/cable.js
|
235
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
236
|
+
- spec/dummy/app/channels/application_cable/channel.rb
|
237
|
+
- spec/dummy/app/channels/application_cable/connection.rb
|
238
|
+
- spec/dummy/app/controllers/application_controller.rb
|
239
|
+
- spec/dummy/app/controllers/pages_controller.rb
|
240
|
+
- spec/dummy/app/helpers/application_helper.rb
|
241
|
+
- spec/dummy/app/jobs/application_job.rb
|
242
|
+
- spec/dummy/app/mailers/application_mailer.rb
|
243
|
+
- spec/dummy/app/models/application_record.rb
|
244
|
+
- spec/dummy/app/steps/address_step.rb
|
245
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
246
|
+
- spec/dummy/app/views/layouts/mailer.html.erb
|
247
|
+
- spec/dummy/app/views/layouts/mailer.text.erb
|
248
|
+
- spec/dummy/app/views/pages/start.html.erb
|
249
|
+
- spec/dummy/app/views/steps/address.html.erb
|
250
|
+
- spec/dummy/app/views/steps/name.html.erb
|
251
|
+
- spec/dummy/app/views/steps/phone_number.html.erb
|
252
|
+
- spec/dummy/bin/bundle
|
253
|
+
- spec/dummy/bin/rails
|
254
|
+
- spec/dummy/bin/rake
|
255
|
+
- spec/dummy/bin/setup
|
256
|
+
- spec/dummy/bin/update
|
257
|
+
- spec/dummy/config.ru
|
258
|
+
- spec/dummy/config/application.rb
|
259
|
+
- spec/dummy/config/boot.rb
|
260
|
+
- spec/dummy/config/cable.yml
|
261
|
+
- spec/dummy/config/database.yml
|
262
|
+
- spec/dummy/config/environment.rb
|
263
|
+
- spec/dummy/config/environments/development.rb
|
264
|
+
- spec/dummy/config/environments/production.rb
|
265
|
+
- spec/dummy/config/environments/test.rb
|
266
|
+
- spec/dummy/config/initializers/application_controller_renderer.rb
|
267
|
+
- spec/dummy/config/initializers/assets.rb
|
268
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
269
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
270
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
271
|
+
- spec/dummy/config/initializers/inflections.rb
|
272
|
+
- spec/dummy/config/initializers/journea.rb
|
273
|
+
- spec/dummy/config/initializers/mime_types.rb
|
274
|
+
- spec/dummy/config/initializers/new_framework_defaults.rb
|
275
|
+
- spec/dummy/config/initializers/session_store.rb
|
276
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
277
|
+
- spec/dummy/config/locales/en.yml
|
278
|
+
- spec/dummy/config/puma.rb
|
279
|
+
- spec/dummy/config/routes.rb
|
280
|
+
- spec/dummy/config/secrets.yml
|
281
|
+
- spec/dummy/config/spring.rb
|
282
|
+
- spec/dummy/db/development.sqlite3
|
283
|
+
- spec/dummy/db/schema.rb
|
284
|
+
- spec/dummy/db/test.sqlite3
|
285
|
+
- spec/dummy/log/development.log
|
286
|
+
- spec/dummy/log/test.log
|
287
|
+
- spec/dummy/public/404.html
|
288
|
+
- spec/dummy/public/422.html
|
289
|
+
- spec/dummy/public/500.html
|
290
|
+
- spec/dummy/public/apple-touch-icon-precomposed.png
|
291
|
+
- spec/dummy/public/apple-touch-icon.png
|
292
|
+
- spec/dummy/public/favicon.ico
|
293
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/EA/EAR2KaBsPQau6HwaTGrxV7EGMwAWyS-4C8pGVDU1Z-Q.cache
|
294
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/JZ/JZuPFgM2mLQgAHB-r7Pt_TdGW3DRWPrplT7xPjnCJSE.cache
|
295
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/LT/LTt1oE1gi9m65YRwUp78DuufkCOfi3sa3Qa05_ykADk.cache
|
296
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Lj/LjRKOqtrClPtb97phuIWI7HHA8-p5J5nKHVE_zEycxo.cache
|
297
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/QM/QMxUWUtpFaqwG3RI9t3m38QtFAOvHpiY3LphKJiVRTc.cache
|
298
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/St/StFuOi5bd69ceiqz2D6EOCmRzHgwY0IxERsMfiCneGM.cache
|
299
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Vj/VjCUmI9pp5eD8BlYATbwJ4ZOk0438rwvtDrsttyWbfQ.cache
|
300
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Wl/WlLcUIADXcUxaOt8Gq59uQbO0mquikyz7jxiJjXjhaI.cache
|
301
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/YH/YHo__TrFq5y8rpx49T8d8ecyvMLbHFbnhz7IBV7pM98.cache
|
302
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Zu/ZuLXgeX6x_Dx8sCUbzuTtWu42HzQXWe7eooTgsonTnc.cache
|
303
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/aG/aG1tp1pv4kBiSKx9ixZH5xiRXH-rGa0Hi6sdl4SHw6g.cache
|
304
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/aw/awTDtuorxLsRLIGEYCefR-PTN7yptoaGRLEk13vHVLA.cache
|
305
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/b_/b_Itlk9QZZd7Rvf8kcA4yLP1R5Acu7jB-m1xQiSU0qE.cache
|
306
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/cW/cWHxYOqms7abJ-dzXyrn2G7nadJicU5kkC8SduS06yc.cache
|
307
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/cb/cbX7RFavWZoWojlrsXhsy4FN46UOfMwZYStkLHT5HJw.cache
|
308
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/eY/eYTHvo0Wl2TD2vipDcJ966HHXGrA4ZlJaiA2DnftKhM.cache
|
309
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/f4/f4CpFuYmsdh1EvlFVjsl1WmM2QA9_z9AuOebEOw4mts.cache
|
310
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/gH/gHSjqTBRSW22rP9mSj8XW6huEXKpcIOehvF-2fvuShQ.cache
|
311
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/m0/m0smDeM83DcmOVpX9zos6AIX40E9Tf2j26tyvKFgMwc.cache
|
312
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/mW/mWrwQwWUQpAlMCLQ8dGv5VkAXd-TxvAtB5WPg9l09-A.cache
|
313
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/mX/mX1nlsL_SWOB4y22W5FheRX0YEONKyOY7xUeIvRiHco.cache
|
314
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache
|
315
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache
|
316
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/oA/oAtzk5ZeF7lWCwNufspgWqtv_dQN_n5GumFNB4ScfBE.cache
|
317
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/rA/rACdJeX3jZNkhx4awGhdZeMdOfmARubkoVKVAZdwYog.cache
|
318
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/sC/sCEBZXwTjRpEzThf7YHzHNfkAupMVOx_Ko7WNMAFHS0.cache
|
319
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/x7/x7PYh8DJvPykcEqpVab2vcY9-GFz-3cqtoMlRAu94Uc.cache
|
320
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/yT/yTOf3QInGfDlRZlwZNDBLlbma19FQRHM035AKRxcRyw.cache
|
321
|
+
- spec/features/journey_spec.rb
|
322
|
+
- spec/lib/simple_form_object/attribute_spec.rb
|
323
|
+
- spec/lib/simple_form_object/delegation_spec.rb
|
324
|
+
- spec/lib/simple_form_object/model_spec.rb
|
325
|
+
- spec/lib/steps_spec.rb
|
326
|
+
- spec/requests/journeys_spec.rb
|
327
|
+
- spec/spec_helper.rb
|
328
|
+
homepage: https://github.com/DEFRA/journea
|
329
|
+
licenses:
|
330
|
+
- Nonstandard
|
331
|
+
metadata: {}
|
332
|
+
post_install_message:
|
333
|
+
rdoc_options: []
|
334
|
+
require_paths:
|
335
|
+
- lib
|
336
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
337
|
+
requirements:
|
338
|
+
- - ">="
|
339
|
+
- !ruby/object:Gem::Version
|
340
|
+
version: '0'
|
341
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
342
|
+
requirements:
|
343
|
+
- - ">="
|
344
|
+
- !ruby/object:Gem::Version
|
345
|
+
version: '0'
|
346
|
+
requirements: []
|
347
|
+
rubyforge_project:
|
348
|
+
rubygems_version: 2.5.1
|
349
|
+
signing_key:
|
350
|
+
specification_version: 4
|
351
|
+
summary: Journea helps build step by step journeys.
|
352
|
+
test_files:
|
353
|
+
- spec/dummy/app/assets/config/manifest.js
|
354
|
+
- spec/dummy/app/assets/javascripts/application.js
|
355
|
+
- spec/dummy/app/assets/javascripts/cable.js
|
356
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
357
|
+
- spec/dummy/app/channels/application_cable/channel.rb
|
358
|
+
- spec/dummy/app/channels/application_cable/connection.rb
|
359
|
+
- spec/dummy/app/controllers/application_controller.rb
|
360
|
+
- spec/dummy/app/controllers/pages_controller.rb
|
361
|
+
- spec/dummy/app/helpers/application_helper.rb
|
362
|
+
- spec/dummy/app/jobs/application_job.rb
|
363
|
+
- spec/dummy/app/mailers/application_mailer.rb
|
364
|
+
- spec/dummy/app/models/application_record.rb
|
365
|
+
- spec/dummy/app/steps/address_step.rb
|
366
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
367
|
+
- spec/dummy/app/views/layouts/mailer.html.erb
|
368
|
+
- spec/dummy/app/views/layouts/mailer.text.erb
|
369
|
+
- spec/dummy/app/views/pages/start.html.erb
|
370
|
+
- spec/dummy/app/views/steps/address.html.erb
|
371
|
+
- spec/dummy/app/views/steps/name.html.erb
|
372
|
+
- spec/dummy/app/views/steps/phone_number.html.erb
|
373
|
+
- spec/dummy/bin/bundle
|
374
|
+
- spec/dummy/bin/rails
|
375
|
+
- spec/dummy/bin/rake
|
376
|
+
- spec/dummy/bin/setup
|
377
|
+
- spec/dummy/bin/update
|
378
|
+
- spec/dummy/config/application.rb
|
379
|
+
- spec/dummy/config/boot.rb
|
380
|
+
- spec/dummy/config/cable.yml
|
381
|
+
- spec/dummy/config/database.yml
|
382
|
+
- spec/dummy/config/environment.rb
|
383
|
+
- spec/dummy/config/environments/development.rb
|
384
|
+
- spec/dummy/config/environments/production.rb
|
385
|
+
- spec/dummy/config/environments/test.rb
|
386
|
+
- spec/dummy/config/initializers/application_controller_renderer.rb
|
387
|
+
- spec/dummy/config/initializers/assets.rb
|
388
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
389
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
390
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
391
|
+
- spec/dummy/config/initializers/inflections.rb
|
392
|
+
- spec/dummy/config/initializers/journea.rb
|
393
|
+
- spec/dummy/config/initializers/mime_types.rb
|
394
|
+
- spec/dummy/config/initializers/new_framework_defaults.rb
|
395
|
+
- spec/dummy/config/initializers/session_store.rb
|
396
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
397
|
+
- spec/dummy/config/locales/en.yml
|
398
|
+
- spec/dummy/config/puma.rb
|
399
|
+
- spec/dummy/config/routes.rb
|
400
|
+
- spec/dummy/config/secrets.yml
|
401
|
+
- spec/dummy/config/spring.rb
|
402
|
+
- spec/dummy/config.ru
|
403
|
+
- spec/dummy/db/development.sqlite3
|
404
|
+
- spec/dummy/db/schema.rb
|
405
|
+
- spec/dummy/db/test.sqlite3
|
406
|
+
- spec/dummy/log/development.log
|
407
|
+
- spec/dummy/log/test.log
|
408
|
+
- spec/dummy/public/404.html
|
409
|
+
- spec/dummy/public/422.html
|
410
|
+
- spec/dummy/public/500.html
|
411
|
+
- spec/dummy/public/apple-touch-icon-precomposed.png
|
412
|
+
- spec/dummy/public/apple-touch-icon.png
|
413
|
+
- spec/dummy/public/favicon.ico
|
414
|
+
- spec/dummy/Rakefile
|
415
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/aG/aG1tp1pv4kBiSKx9ixZH5xiRXH-rGa0Hi6sdl4SHw6g.cache
|
416
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/aw/awTDtuorxLsRLIGEYCefR-PTN7yptoaGRLEk13vHVLA.cache
|
417
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/b_/b_Itlk9QZZd7Rvf8kcA4yLP1R5Acu7jB-m1xQiSU0qE.cache
|
418
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/cb/cbX7RFavWZoWojlrsXhsy4FN46UOfMwZYStkLHT5HJw.cache
|
419
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/cW/cWHxYOqms7abJ-dzXyrn2G7nadJicU5kkC8SduS06yc.cache
|
420
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/EA/EAR2KaBsPQau6HwaTGrxV7EGMwAWyS-4C8pGVDU1Z-Q.cache
|
421
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/eY/eYTHvo0Wl2TD2vipDcJ966HHXGrA4ZlJaiA2DnftKhM.cache
|
422
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/f4/f4CpFuYmsdh1EvlFVjsl1WmM2QA9_z9AuOebEOw4mts.cache
|
423
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/gH/gHSjqTBRSW22rP9mSj8XW6huEXKpcIOehvF-2fvuShQ.cache
|
424
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/JZ/JZuPFgM2mLQgAHB-r7Pt_TdGW3DRWPrplT7xPjnCJSE.cache
|
425
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Lj/LjRKOqtrClPtb97phuIWI7HHA8-p5J5nKHVE_zEycxo.cache
|
426
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/LT/LTt1oE1gi9m65YRwUp78DuufkCOfi3sa3Qa05_ykADk.cache
|
427
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/m0/m0smDeM83DcmOVpX9zos6AIX40E9Tf2j26tyvKFgMwc.cache
|
428
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/mW/mWrwQwWUQpAlMCLQ8dGv5VkAXd-TxvAtB5WPg9l09-A.cache
|
429
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/mX/mX1nlsL_SWOB4y22W5FheRX0YEONKyOY7xUeIvRiHco.cache
|
430
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache
|
431
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache
|
432
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/oA/oAtzk5ZeF7lWCwNufspgWqtv_dQN_n5GumFNB4ScfBE.cache
|
433
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/QM/QMxUWUtpFaqwG3RI9t3m38QtFAOvHpiY3LphKJiVRTc.cache
|
434
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/rA/rACdJeX3jZNkhx4awGhdZeMdOfmARubkoVKVAZdwYog.cache
|
435
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/sC/sCEBZXwTjRpEzThf7YHzHNfkAupMVOx_Ko7WNMAFHS0.cache
|
436
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/St/StFuOi5bd69ceiqz2D6EOCmRzHgwY0IxERsMfiCneGM.cache
|
437
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Vj/VjCUmI9pp5eD8BlYATbwJ4ZOk0438rwvtDrsttyWbfQ.cache
|
438
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Wl/WlLcUIADXcUxaOt8Gq59uQbO0mquikyz7jxiJjXjhaI.cache
|
439
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/x7/x7PYh8DJvPykcEqpVab2vcY9-GFz-3cqtoMlRAu94Uc.cache
|
440
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/YH/YHo__TrFq5y8rpx49T8d8ecyvMLbHFbnhz7IBV7pM98.cache
|
441
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/yT/yTOf3QInGfDlRZlwZNDBLlbma19FQRHM035AKRxcRyw.cache
|
442
|
+
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Zu/ZuLXgeX6x_Dx8sCUbzuTtWu42HzQXWe7eooTgsonTnc.cache
|
443
|
+
- spec/features/journey_spec.rb
|
444
|
+
- spec/lib/simple_form_object/attribute_spec.rb
|
445
|
+
- spec/lib/simple_form_object/delegation_spec.rb
|
446
|
+
- spec/lib/simple_form_object/model_spec.rb
|
447
|
+
- spec/lib/steps_spec.rb
|
448
|
+
- spec/requests/journeys_spec.rb
|
449
|
+
- spec/spec_helper.rb
|