composition 1.0.0.beta1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/composition/version.rb +1 -1
- data/spec/spec_helper.rb +6 -5
- data/spec/support/apps/rails5_1.rb +50 -0
- metadata +8 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff867933eb8d701e2eafd1f4769eb95851a60ee4
|
4
|
+
data.tar.gz: 0edff98960995d638dec203e61e916c0e637638d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f61c165f40bec0781e87896fe86dbd7586bfeedae97e5d79e55ddd29d81af29802fb1faf9607c2978419e20c864a6e4055ef4aa73f414a422f8bc6104e243658
|
7
|
+
data.tar.gz: 5a5fdddb3a37ccd0ef5816231b58264c55218d5ab40991085a31edf876f047939a9e4c921067fab5228e99baa055ee55d8a402b94562bb8bf3e4a705df7f8bbc
|
data/lib/composition/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -3,11 +3,12 @@ ENV['DATABASE_URL'] = 'sqlite3://localhost/tmp/composition_test'
|
|
3
3
|
|
4
4
|
require 'bundler/setup'
|
5
5
|
require 'rails'
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
6
|
+
if Rails.version.start_with?('4.2')
|
7
|
+
require 'support/apps/rails4_2'
|
8
|
+
elsif Rails.version.start_with?('5.0')
|
9
|
+
require 'support/apps/rails5_0'
|
10
|
+
elsif Rails.version.start_with?('5.1')
|
11
|
+
require 'support/apps/rails5_1'
|
11
12
|
end
|
12
13
|
require 'support/model_macros'
|
13
14
|
require 'composition'
|
@@ -0,0 +1,50 @@
|
|
1
|
+
require 'rails/all'
|
2
|
+
|
3
|
+
module Rails51
|
4
|
+
class Application < Rails::Application
|
5
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
6
|
+
|
7
|
+
# The test environment is used exclusively to run your application's
|
8
|
+
# test suite. You never need to work with it otherwise. Remember that
|
9
|
+
# your test database is "scratch space" for the test suite and is wiped
|
10
|
+
# and recreated between test runs. Don't rely on the data there!
|
11
|
+
config.cache_classes = true
|
12
|
+
|
13
|
+
# Do not eager load code on boot. This avoids loading your whole application
|
14
|
+
# just for the purpose of running a single test. If you are using a tool that
|
15
|
+
# preloads Rails for running tests, you may have to set it to true.
|
16
|
+
config.eager_load = false
|
17
|
+
|
18
|
+
# Configure public file server for tests with Cache-Control for performance.
|
19
|
+
config.public_file_server.enabled = true
|
20
|
+
config.public_file_server.headers = {
|
21
|
+
'Cache-Control' => "public, max-age=#{1.hour.seconds.to_i}"
|
22
|
+
}
|
23
|
+
|
24
|
+
# Show full error reports and disable caching.
|
25
|
+
config.consider_all_requests_local = true
|
26
|
+
config.action_controller.perform_caching = false
|
27
|
+
|
28
|
+
# Raise exceptions instead of rendering exception templates.
|
29
|
+
config.action_dispatch.show_exceptions = false
|
30
|
+
|
31
|
+
# Disable request forgery protection in test environment.
|
32
|
+
config.action_controller.allow_forgery_protection = false
|
33
|
+
config.action_mailer.perform_caching = false
|
34
|
+
|
35
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
36
|
+
# The :test delivery method accumulates sent emails in the
|
37
|
+
# ActionMailer::Base.deliveries array.
|
38
|
+
config.action_mailer.delivery_method = :test
|
39
|
+
|
40
|
+
# Print deprecation notices to the stderr.
|
41
|
+
config.active_support.deprecation = :stderr
|
42
|
+
|
43
|
+
# Raises error for missing translations
|
44
|
+
# config.action_view.raise_on_missing_translations = true
|
45
|
+
|
46
|
+
config.secret_key_base = '49837489qkuweoiuoqwehisuakshdjksadhaisdy78o34y138974xyqp9rmye8yrpiokeuioqwzyoiuxftoyqiuxrhm3iou1hrzmjk'
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
Rails.application.initialize!
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: composition
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcelo Casiraghi
|
@@ -123,7 +123,7 @@ dependencies:
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
description: Composition for ActiveRecord models
|
126
|
-
email: marcelo@
|
126
|
+
email: marcelo@cedarcode.com
|
127
127
|
executables: []
|
128
128
|
extensions: []
|
129
129
|
extra_rdoc_files: []
|
@@ -144,11 +144,13 @@ files:
|
|
144
144
|
- spec/spec_helper.rb
|
145
145
|
- spec/support/apps/rails4_2.rb
|
146
146
|
- spec/support/apps/rails5_0.rb
|
147
|
+
- spec/support/apps/rails5_1.rb
|
147
148
|
- spec/support/model_macros.rb
|
148
149
|
homepage: https://github.com/marceloeloelo/composition
|
149
150
|
licenses:
|
150
151
|
- MIT
|
151
|
-
metadata:
|
152
|
+
metadata:
|
153
|
+
source_code_uri: https://github.com/marceloeloelo/composition
|
152
154
|
post_install_message:
|
153
155
|
rdoc_options: []
|
154
156
|
require_paths:
|
@@ -160,9 +162,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
160
162
|
version: '0'
|
161
163
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
162
164
|
requirements:
|
163
|
-
- - "
|
165
|
+
- - ">="
|
164
166
|
- !ruby/object:Gem::Version
|
165
|
-
version:
|
167
|
+
version: '0'
|
166
168
|
requirements: []
|
167
169
|
rubyforge_project:
|
168
170
|
rubygems_version: 2.6.10
|
@@ -175,4 +177,5 @@ test_files:
|
|
175
177
|
- spec/spec_helper.rb
|
176
178
|
- spec/support/apps/rails4_2.rb
|
177
179
|
- spec/support/apps/rails5_0.rb
|
180
|
+
- spec/support/apps/rails5_1.rb
|
178
181
|
- spec/support/model_macros.rb
|