sal-engine 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +88 -0
- data/Rakefile +21 -0
- data/app/helpers/sal/application_helper.rb +32 -0
- data/app/views/layouts/sal/application.html.erb +14 -0
- data/config/initializers/error_span.rb +9 -0
- data/config/routes.rb +2 -0
- data/lib/generators/rails/helperless_scaffold_controller/helperless_scaffold_controller_generator.rb +24 -0
- data/lib/generators/rails/helperless_scaffold_controller/templates/controller.rb +62 -0
- data/lib/generators/rails/showless_scaffold/showless_scaffold_generator.rb +33 -0
- data/lib/generators/rails/showless_scaffold/templates/_form.html.erb +32 -0
- data/lib/generators/rails/showless_scaffold/templates/edit.html.erb +3 -0
- data/lib/generators/rails/showless_scaffold/templates/index.html.erb +28 -0
- data/lib/generators/rails/showless_scaffold/templates/new.html.erb +3 -0
- data/lib/sal/engine.rb +13 -0
- data/lib/sal/version.rb +3 -0
- data/lib/sal.rb +4 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/models/tableless.rb +19 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -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/config/application.rb +29 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +82 -0
- data/spec/dummy/config/environments/test.rb +39 -0
- data/spec/dummy/config/initializers/assets.rb +8 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -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/mime_types.rb +4 -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/routes.rb +4 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/log/test.log +4 -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/favicon.ico +0 -0
- data/spec/helpers/application_helper_spec.rb +71 -0
- data/spec/helpers/error_span_spec.rb +33 -0
- data/spec/helpers/error_span_view.html.erb +3 -0
- data/spec/rails_helper.rb +32 -0
- data/spec/spec_helper.rb +74 -0
- metadata +225 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# This file was generated by the `rails generate rspec:install` command. Conventionally, all
|
2
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
3
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause this
|
4
|
+
# file to always be loaded, without a need to explicitly require it in any files.
|
5
|
+
#
|
6
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
7
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
8
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
9
|
+
# individual file that may not need all of that loaded. Instead, make a
|
10
|
+
# separate helper file that requires this one and then use it only in the specs
|
11
|
+
# that actually need it.
|
12
|
+
#
|
13
|
+
# The `.rspec` file also contains a few flags that are not defaults but that
|
14
|
+
# users commonly want.
|
15
|
+
#
|
16
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
17
|
+
RSpec.configure do |config|
|
18
|
+
# These two settings work together to allow you to limit a spec run
|
19
|
+
# to individual examples or groups you care about by tagging them with
|
20
|
+
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
21
|
+
# get run.
|
22
|
+
config.filter_run :focus
|
23
|
+
config.run_all_when_everything_filtered = true
|
24
|
+
|
25
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
26
|
+
# file, and it's useful to allow more verbose output when running an
|
27
|
+
# individual spec file.
|
28
|
+
if config.files_to_run.one?
|
29
|
+
# Use the documentation formatter for detailed output,
|
30
|
+
# unless a formatter has already been configured
|
31
|
+
# (e.g. via a command-line flag).
|
32
|
+
config.default_formatter = 'doc'
|
33
|
+
end
|
34
|
+
|
35
|
+
# Print the 10 slowest examples and example groups at the
|
36
|
+
# end of the spec run, to help surface which specs are running
|
37
|
+
# particularly slow.
|
38
|
+
# config.profile_examples = 10
|
39
|
+
|
40
|
+
# Run specs in random order to surface order dependencies. If you find an
|
41
|
+
# order dependency and want to debug it, you can fix the order by providing
|
42
|
+
# the seed, which is printed after each run.
|
43
|
+
# --seed 1234
|
44
|
+
config.order = :random
|
45
|
+
|
46
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
47
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
48
|
+
# test failures related to randomization by passing the same `--seed` value
|
49
|
+
# as the one that triggered the failure.
|
50
|
+
Kernel.srand config.seed
|
51
|
+
|
52
|
+
# rspec-expectations config goes here. You can use an alternate
|
53
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
54
|
+
# assertions if you prefer.
|
55
|
+
config.expect_with :rspec do |expectations|
|
56
|
+
# Enable only the newer, non-monkey-patching expect syntax.
|
57
|
+
# For more details, see:
|
58
|
+
# - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
|
59
|
+
expectations.syntax = :expect
|
60
|
+
end
|
61
|
+
|
62
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
63
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
64
|
+
config.mock_with :rspec do |mocks|
|
65
|
+
# Enable only the newer, non-monkey-patching expect syntax.
|
66
|
+
# For more details, see:
|
67
|
+
# - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
68
|
+
mocks.syntax = :expect
|
69
|
+
|
70
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
71
|
+
# a real object. This is generally recommended.
|
72
|
+
mocks.verify_partial_doubles = true
|
73
|
+
end
|
74
|
+
end
|
metadata
ADDED
@@ -0,0 +1,225 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sal-engine
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Daniel Cruz Horts
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-08-03 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: '4.1'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '4.1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: pry
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.10'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.10'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: pry-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.3'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.3'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: pry-byebug
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.3'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.3'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec-rails
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: capybara
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '2.4'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '2.4'
|
97
|
+
description: Sal (salt) is what you add to every meal. I add sal to my Rails projects
|
98
|
+
email:
|
99
|
+
executables: []
|
100
|
+
extensions: []
|
101
|
+
extra_rdoc_files: []
|
102
|
+
files:
|
103
|
+
- MIT-LICENSE
|
104
|
+
- README.md
|
105
|
+
- Rakefile
|
106
|
+
- app/helpers/sal/application_helper.rb
|
107
|
+
- app/views/layouts/sal/application.html.erb
|
108
|
+
- config/initializers/error_span.rb
|
109
|
+
- config/routes.rb
|
110
|
+
- lib/generators/rails/helperless_scaffold_controller/helperless_scaffold_controller_generator.rb
|
111
|
+
- lib/generators/rails/helperless_scaffold_controller/templates/controller.rb
|
112
|
+
- lib/generators/rails/showless_scaffold/showless_scaffold_generator.rb
|
113
|
+
- lib/generators/rails/showless_scaffold/templates/_form.html.erb
|
114
|
+
- lib/generators/rails/showless_scaffold/templates/edit.html.erb
|
115
|
+
- lib/generators/rails/showless_scaffold/templates/index.html.erb
|
116
|
+
- lib/generators/rails/showless_scaffold/templates/new.html.erb
|
117
|
+
- lib/sal.rb
|
118
|
+
- lib/sal/engine.rb
|
119
|
+
- lib/sal/version.rb
|
120
|
+
- spec/dummy/README.rdoc
|
121
|
+
- spec/dummy/Rakefile
|
122
|
+
- spec/dummy/app/assets/javascripts/application.js
|
123
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
124
|
+
- spec/dummy/app/controllers/application_controller.rb
|
125
|
+
- spec/dummy/app/helpers/application_helper.rb
|
126
|
+
- spec/dummy/app/models/tableless.rb
|
127
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
128
|
+
- spec/dummy/bin/bundle
|
129
|
+
- spec/dummy/bin/rails
|
130
|
+
- spec/dummy/bin/rake
|
131
|
+
- spec/dummy/config.ru
|
132
|
+
- spec/dummy/config/application.rb
|
133
|
+
- spec/dummy/config/boot.rb
|
134
|
+
- spec/dummy/config/database.yml
|
135
|
+
- spec/dummy/config/environment.rb
|
136
|
+
- spec/dummy/config/environments/development.rb
|
137
|
+
- spec/dummy/config/environments/production.rb
|
138
|
+
- spec/dummy/config/environments/test.rb
|
139
|
+
- spec/dummy/config/initializers/assets.rb
|
140
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
141
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
142
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
143
|
+
- spec/dummy/config/initializers/inflections.rb
|
144
|
+
- spec/dummy/config/initializers/mime_types.rb
|
145
|
+
- spec/dummy/config/initializers/session_store.rb
|
146
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
147
|
+
- spec/dummy/config/locales/en.yml
|
148
|
+
- spec/dummy/config/routes.rb
|
149
|
+
- spec/dummy/config/secrets.yml
|
150
|
+
- spec/dummy/log/test.log
|
151
|
+
- spec/dummy/public/404.html
|
152
|
+
- spec/dummy/public/422.html
|
153
|
+
- spec/dummy/public/500.html
|
154
|
+
- spec/dummy/public/favicon.ico
|
155
|
+
- spec/helpers/application_helper_spec.rb
|
156
|
+
- spec/helpers/error_span_spec.rb
|
157
|
+
- spec/helpers/error_span_view.html.erb
|
158
|
+
- spec/rails_helper.rb
|
159
|
+
- spec/spec_helper.rb
|
160
|
+
homepage: https://github.com/dncrht/sal
|
161
|
+
licenses:
|
162
|
+
- MIT
|
163
|
+
metadata: {}
|
164
|
+
post_install_message:
|
165
|
+
rdoc_options: []
|
166
|
+
require_paths:
|
167
|
+
- lib
|
168
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - ">="
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '0'
|
173
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
174
|
+
requirements:
|
175
|
+
- - ">="
|
176
|
+
- !ruby/object:Gem::Version
|
177
|
+
version: '0'
|
178
|
+
requirements: []
|
179
|
+
rubyforge_project:
|
180
|
+
rubygems_version: 2.2.2
|
181
|
+
signing_key:
|
182
|
+
specification_version: 4
|
183
|
+
summary: A Rails engine with my recurrent additions
|
184
|
+
test_files:
|
185
|
+
- spec/dummy/app/assets/javascripts/application.js
|
186
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
187
|
+
- spec/dummy/app/controllers/application_controller.rb
|
188
|
+
- spec/dummy/app/helpers/application_helper.rb
|
189
|
+
- spec/dummy/app/models/tableless.rb
|
190
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
191
|
+
- spec/dummy/bin/bundle
|
192
|
+
- spec/dummy/bin/rails
|
193
|
+
- spec/dummy/bin/rake
|
194
|
+
- spec/dummy/config/application.rb
|
195
|
+
- spec/dummy/config/boot.rb
|
196
|
+
- spec/dummy/config/database.yml
|
197
|
+
- spec/dummy/config/environment.rb
|
198
|
+
- spec/dummy/config/environments/development.rb
|
199
|
+
- spec/dummy/config/environments/production.rb
|
200
|
+
- spec/dummy/config/environments/test.rb
|
201
|
+
- spec/dummy/config/initializers/assets.rb
|
202
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
203
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
204
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
205
|
+
- spec/dummy/config/initializers/inflections.rb
|
206
|
+
- spec/dummy/config/initializers/mime_types.rb
|
207
|
+
- spec/dummy/config/initializers/session_store.rb
|
208
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
209
|
+
- spec/dummy/config/locales/en.yml
|
210
|
+
- spec/dummy/config/routes.rb
|
211
|
+
- spec/dummy/config/secrets.yml
|
212
|
+
- spec/dummy/config.ru
|
213
|
+
- spec/dummy/log/test.log
|
214
|
+
- spec/dummy/public/404.html
|
215
|
+
- spec/dummy/public/422.html
|
216
|
+
- spec/dummy/public/500.html
|
217
|
+
- spec/dummy/public/favicon.ico
|
218
|
+
- spec/dummy/Rakefile
|
219
|
+
- spec/dummy/README.rdoc
|
220
|
+
- spec/helpers/application_helper_spec.rb
|
221
|
+
- spec/helpers/error_span_spec.rb
|
222
|
+
- spec/helpers/error_span_view.html.erb
|
223
|
+
- spec/rails_helper.rb
|
224
|
+
- spec/spec_helper.rb
|
225
|
+
has_rdoc:
|