rom-rails 0.6.0 → 0.7.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.
- checksums.yaml +4 -4
- data/.rubocop.yml +38 -7
- data/.travis.yml +2 -5
- data/Gemfile +2 -2
- data/README.md +3 -3
- data/db +1 -0
- data/lib/generators/rom/form_generator.rb +0 -1
- data/lib/generators/rom/mapper_generator.rb +1 -2
- data/lib/generators/rom/relation_generator.rb +0 -2
- data/lib/rom/rails/active_record/configuration.rb +2 -2
- data/lib/rom/rails/configuration.rb +1 -0
- data/lib/rom/rails/model/form.rb +1 -2
- data/lib/rom/rails/model/form/class_interface.rb +4 -4
- data/lib/rom/rails/model/form/error_proxy.rb +0 -3
- data/lib/rom/rails/railtie.rb +17 -5
- data/lib/rom/rails/version.rb +1 -1
- data/log +1 -0
- data/rom-rails.gemspec +4 -3
- data/spec/dummy/bin/rails +1 -1
- data/spec/dummy/config.ru +1 -1
- data/spec/dummy/config/initializers/rom.rb +1 -0
- data/spec/dummy/db/migrate/20141110205016_add_users.rb +1 -1
- data/spec/dummy/db/migrate/20150202194440_create_tasks.rb +1 -1
- data/spec/dummy/db/migrate/20150403194906_create_tags.rb +1 -1
- data/spec/dummy/lib/additional_app/app/commands/create_additional_task.rb +5 -0
- data/spec/integration/initializer_spec.rb +4 -0
- data/spec/lib/active_record/configuration_spec.rb +2 -2
- data/spec/lib/generators/form_generator_spec.rb +0 -3
- data/spec/lib/generators/mapper_generator_spec.rb +18 -0
- data/spec/lib/generators/relation_generator_spec.rb +0 -1
- data/spec/spec_helper.rb +1 -0
- data/spec/unit/form_spec.rb +3 -5
- metadata +27 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d81f44c9999447bf6ccdc64f6529bc1fd614d19d
|
4
|
+
data.tar.gz: 4114017307dfae118382f978f1433ff1869595d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fbf68d09cc7cd8f92460fb60eac6c54badc9200763347080f879c377de8638467ae9441be6d6095cc553d9328341c8cdb0f2e1a2f5a68973623e27bf4c5bcfe
|
7
|
+
data.tar.gz: 8dc7266b70cc95434bcbf162b01d356c381f17cd8bda8defa3326eb397535f5aeb4be227e1d5d19ae896440dae57e2f8ed627dd675f8c51c491567c3758af3ab
|
data/.rubocop.yml
CHANGED
@@ -38,14 +38,24 @@ Style/AlignParameters:
|
|
38
38
|
Style/AsciiComments:
|
39
39
|
Enabled: false
|
40
40
|
|
41
|
-
|
42
|
-
|
43
|
-
|
41
|
+
Style/BlockDelimiters:
|
42
|
+
EnforcedStyle: semantic
|
43
|
+
FunctionalMethods:
|
44
|
+
- let
|
45
|
+
- let!
|
46
|
+
- subject
|
47
|
+
- watch
|
48
|
+
- before
|
44
49
|
|
45
50
|
Style/BracesAroundHashParameters:
|
46
51
|
Enabled: true
|
47
52
|
EnforcedStyle: context_dependent
|
48
53
|
|
54
|
+
# Allow compact style for specs
|
55
|
+
Style/ClassAndModuleChildren:
|
56
|
+
Exclude:
|
57
|
+
- spec/**/*_spec.rb
|
58
|
+
|
49
59
|
# Documentation checked by Inch CI
|
50
60
|
Style/Documentation:
|
51
61
|
Enabled: false
|
@@ -59,27 +69,48 @@ Style/FileName:
|
|
59
69
|
Style/GuardClause:
|
60
70
|
Enabled: false
|
61
71
|
|
72
|
+
# Need to be skipped for >-> usage
|
73
|
+
Style/Lambda:
|
74
|
+
Enabled: false
|
75
|
+
|
62
76
|
# Multiline block chains are ok
|
63
77
|
Style/MultilineBlockChain:
|
64
78
|
Enabled: false
|
65
79
|
|
80
|
+
# Multiline operation chains are indented
|
81
|
+
Style/MultilineOperationIndentation:
|
82
|
+
EnforcedStyle: indented
|
83
|
+
|
66
84
|
# Model::Validator uses Model::ValidationError for this
|
67
85
|
Style/RaiseArgs:
|
68
86
|
Exclude:
|
69
87
|
- lib/rom/model.rb
|
70
88
|
|
71
|
-
# Even a single escaped slash can be confusing
|
72
|
-
Style/RegexpLiteral:
|
73
|
-
MaxSlashes: 0
|
74
|
-
|
75
89
|
# Don’t introduce semantic fail/raise distinction
|
76
90
|
Style/SignalException:
|
77
91
|
EnforcedStyle: only_raise
|
78
92
|
|
93
|
+
# Need to be skipped for >-> usage
|
94
|
+
Style/SpaceAroundOperators:
|
95
|
+
Enabled: false
|
96
|
+
|
79
97
|
# Accept both single and double quotes
|
80
98
|
Style/StringLiterals:
|
81
99
|
Enabled: false
|
82
100
|
|
101
|
+
# Allow def self.foo; @foo; end
|
102
|
+
Style/TrivialAccessors:
|
103
|
+
Enabled: false
|
104
|
+
|
83
105
|
Style/AccessorMethodName:
|
84
106
|
Exclude:
|
85
107
|
- lib/rom/rails/model/params.rb
|
108
|
+
|
109
|
+
# Allow logical `or`/`and` in conditionals
|
110
|
+
Style/AndOr:
|
111
|
+
EnforcedStyle: conditionals
|
112
|
+
|
113
|
+
# Fails to register points where we otherwise _use_ the block
|
114
|
+
Performance/RedundantBlockCall:
|
115
|
+
Enabled: false
|
116
|
+
|
data/.travis.yml
CHANGED
@@ -2,16 +2,13 @@ language: ruby
|
|
2
2
|
sudo: false
|
3
3
|
cache: bundler
|
4
4
|
bundler_args: --without yard guard benchmarks
|
5
|
-
env:
|
6
|
-
- CODECLIMATE_REPO_TOKEN=87c9080bda25bce8e63a294f99312345c144c0f6d5eedf400fd753356fbf7dcf
|
7
5
|
script: "RAILS_ENV=test bundle exec rake app:db:reset app:spec"
|
8
6
|
rvm:
|
9
|
-
- 2.0
|
10
7
|
- 2.1
|
11
8
|
- 2.2
|
12
|
-
- 2.3.
|
9
|
+
- 2.3.1
|
13
10
|
- rbx-2
|
14
|
-
- jruby-
|
11
|
+
- jruby-9.0.5.0
|
15
12
|
- ruby-head
|
16
13
|
matrix:
|
17
14
|
allow_failures:
|
data/Gemfile
CHANGED
@@ -2,7 +2,7 @@ source 'https://rubygems.org'
|
|
2
2
|
|
3
3
|
gemspec
|
4
4
|
|
5
|
-
RAILS_VERSION = '4.2.4'
|
5
|
+
RAILS_VERSION = '~> 4.2.4'.freeze
|
6
6
|
|
7
7
|
%w(railties actionview actionpack activerecord).each do |name|
|
8
8
|
gem name, RAILS_VERSION
|
@@ -10,6 +10,7 @@ end
|
|
10
10
|
|
11
11
|
gem 'sqlite3', platforms: [:mri, :rbx]
|
12
12
|
gem 'byebug', platforms: :mri
|
13
|
+
gem 'rom-sql', '~> 0.8'
|
13
14
|
|
14
15
|
platforms :jruby do
|
15
16
|
gem 'jdbc-sqlite3'
|
@@ -17,7 +18,6 @@ end
|
|
17
18
|
|
18
19
|
group :test do
|
19
20
|
gem 'rack-test'
|
20
|
-
gem 'rom-sql'
|
21
21
|
gem 'rspec-rails', '~> 3.1'
|
22
22
|
gem 'codeclimate-test-reporter', require: nil
|
23
23
|
gem 'database_cleaner'
|
data/README.md
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
|
10
10
|
[][gem]
|
11
11
|
[][travis]
|
12
|
-
[][gemnasium]
|
13
13
|
[][codeclimate]
|
14
14
|
[][codeclimate]
|
15
15
|
[][inchpages]
|
@@ -34,8 +34,8 @@ To run tests:
|
|
34
34
|
|
35
35
|
You can read more about ROM and Rails on the official website:
|
36
36
|
|
37
|
-
* [Introduction to ROM](http://rom-rb.org/
|
38
|
-
* [Rails
|
37
|
+
* [Introduction to ROM](http://rom-rb.org/learn/)
|
38
|
+
* [Rails setup](http://rom-rb.org/learn/setup/rails/)
|
39
39
|
|
40
40
|
|
41
41
|
## Community
|
@@ -18,7 +18,6 @@ module ROM
|
|
18
18
|
desc: "specify the registration identifier",
|
19
19
|
required: false
|
20
20
|
|
21
|
-
|
22
21
|
def create_relation_file
|
23
22
|
template(
|
24
23
|
'relation.rb.erb',
|
@@ -43,7 +42,6 @@ module ROM
|
|
43
42
|
def gateway
|
44
43
|
options[:gateway]
|
45
44
|
end
|
46
|
-
|
47
45
|
end
|
48
46
|
end
|
49
47
|
end
|
data/lib/rom/rails/model/form.rb
CHANGED
@@ -84,7 +84,7 @@ module ROM
|
|
84
84
|
attr_reader :errors
|
85
85
|
|
86
86
|
delegate :model_name, :persisted?, :to_key, to: :model
|
87
|
-
|
87
|
+
alias to_model model
|
88
88
|
|
89
89
|
class << self
|
90
90
|
delegate :model_name, to: :attributes
|
@@ -152,7 +152,6 @@ module ROM
|
|
152
152
|
def attributes
|
153
153
|
self.class.attributes[params]
|
154
154
|
end
|
155
|
-
|
156
155
|
end
|
157
156
|
end
|
158
157
|
end
|
@@ -76,8 +76,8 @@ module ROM
|
|
76
76
|
def inherited(klass)
|
77
77
|
klass.inject_commands_for(*injectible_commands) if injectible_commands
|
78
78
|
klass.commands(*self_commands) if self_commands
|
79
|
-
input_blocks.each{|block| klass.input(readers: false, &block) }
|
80
|
-
validation_blocks.each{|block| klass.validations(&block) }
|
79
|
+
input_blocks.each { |block| klass.input(readers: false, &block) }
|
80
|
+
validation_blocks.each { |block| klass.validations(&block) }
|
81
81
|
super
|
82
82
|
end
|
83
83
|
|
@@ -359,7 +359,7 @@ module ROM
|
|
359
359
|
@validator = ClassBuilder.new(name: "#{name}::Validator", parent: Object).call { |klass|
|
360
360
|
klass.send(:include, ROM::Model::Validator)
|
361
361
|
}
|
362
|
-
validation_blocks.each{|validation| @validator.class_eval(&validation) }
|
362
|
+
validation_blocks.each { |validation| @validator.class_eval(&validation) }
|
363
363
|
update_const(:Validator, @validator)
|
364
364
|
end
|
365
365
|
|
@@ -403,7 +403,7 @@ module ROM
|
|
403
403
|
{}
|
404
404
|
end
|
405
405
|
|
406
|
-
commands[rel_name] = CommandRegistry.new(elements, options)
|
406
|
+
commands[rel_name] = CommandRegistry.new(rel_name, elements, options)
|
407
407
|
end
|
408
408
|
end
|
409
409
|
|
@@ -8,7 +8,6 @@ module ROM
|
|
8
8
|
#
|
9
9
|
# @api private
|
10
10
|
class ErrorProxy < SimpleDelegator
|
11
|
-
|
12
11
|
# @api private
|
13
12
|
def initialize
|
14
13
|
super ActiveModel::Errors.new([])
|
@@ -48,9 +47,7 @@ module ROM
|
|
48
47
|
def success?
|
49
48
|
!present?
|
50
49
|
end
|
51
|
-
|
52
50
|
end
|
53
|
-
|
54
51
|
end
|
55
52
|
end
|
56
53
|
end
|
data/lib/rom/rails/railtie.rb
CHANGED
@@ -27,9 +27,10 @@ module ROM
|
|
27
27
|
end
|
28
28
|
|
29
29
|
initializer 'rom.adjust_eager_load_paths' do |app|
|
30
|
-
paths =
|
31
|
-
|
32
|
-
|
30
|
+
paths =
|
31
|
+
auto_registration_paths.inject([]) do |result, root_path|
|
32
|
+
result.concat(COMPONENT_DIRS.map { |dir| root_path.join('app', dir).to_s })
|
33
|
+
end
|
33
34
|
|
34
35
|
app.config.eager_load_paths -= paths
|
35
36
|
end
|
@@ -49,6 +50,7 @@ module ROM
|
|
49
50
|
# @example
|
50
51
|
# ROM::Rails::Railtie.configure do |config|
|
51
52
|
# config.gateways[:default] = [:yaml, 'yaml:///data']
|
53
|
+
# config.auto_registration_paths += [MyEngine.root]
|
52
54
|
# end
|
53
55
|
#
|
54
56
|
# @api public
|
@@ -69,7 +71,11 @@ module ROM
|
|
69
71
|
# @api private
|
70
72
|
def create_container
|
71
73
|
configuration = create_configuration
|
72
|
-
|
74
|
+
|
75
|
+
auto_registration_paths.each do |root_path|
|
76
|
+
configuration.auto_registration(root_path.join('app'), namespace: false)
|
77
|
+
end
|
78
|
+
|
73
79
|
ROM.container(configuration)
|
74
80
|
end
|
75
81
|
|
@@ -95,7 +101,9 @@ module ROM
|
|
95
101
|
end
|
96
102
|
|
97
103
|
def load_initializer
|
98
|
-
load "#{root}/config/initializers/rom.rb"
|
104
|
+
load "#{root}/config/initializers/rom.rb"
|
105
|
+
rescue LoadError
|
106
|
+
# do nothing
|
99
107
|
end
|
100
108
|
|
101
109
|
# @api private
|
@@ -112,6 +120,10 @@ module ROM
|
|
112
120
|
ROM.env
|
113
121
|
end
|
114
122
|
|
123
|
+
def auto_registration_paths
|
124
|
+
config.rom.auto_registration_paths + [root]
|
125
|
+
end
|
126
|
+
|
115
127
|
# @api private
|
116
128
|
def active_record?
|
117
129
|
defined?(::ActiveRecord)
|
data/lib/rom/rails/version.rb
CHANGED
data/rom-rails.gemspec
CHANGED
@@ -17,8 +17,9 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
|
-
spec.add_runtime_dependency 'rom', '~>
|
21
|
-
spec.add_runtime_dependency 'rom-
|
20
|
+
spec.add_runtime_dependency 'rom', '~> 2.0'
|
21
|
+
spec.add_runtime_dependency 'rom-support', '~> 2.0'
|
22
|
+
spec.add_runtime_dependency 'rom-model', '~> 0.3'
|
22
23
|
spec.add_runtime_dependency 'dry-equalizer', '~> 0.2'
|
23
24
|
spec.add_runtime_dependency 'addressable', '~> 2.3'
|
24
25
|
spec.add_runtime_dependency 'charlatan', '~> 0.1'
|
@@ -27,5 +28,5 @@ Gem::Specification.new do |spec|
|
|
27
28
|
|
28
29
|
spec.add_development_dependency "bundler"
|
29
30
|
spec.add_development_dependency "rake"
|
30
|
-
spec.add_development_dependency "rubocop", "~> 0.28
|
31
|
+
spec.add_development_dependency "rubocop", "~> 0.28"
|
31
32
|
end
|
data/spec/dummy/bin/rails
CHANGED
data/spec/dummy/config.ru
CHANGED
@@ -2,4 +2,5 @@ ROM::Rails::Railtie.configure do |config|
|
|
2
2
|
scheme = RUBY_ENGINE == 'jruby' ? 'jdbc:sqlite' : 'sqlite'
|
3
3
|
config.gateways[:default] = [:sql, "#{scheme}://#{Rails.root}/db/#{Rails.env}.sqlite3"]
|
4
4
|
config.gateways[:test] = [:test_adapter, foo: :bar]
|
5
|
+
config.auto_registration_paths += [Rails.root.join('lib', 'additional_app')]
|
5
6
|
end
|
@@ -8,4 +8,8 @@ describe 'ROM initializer' do
|
|
8
8
|
expect(rom.gateways[:test]).to eql(gateway)
|
9
9
|
expect(rom.relations.dummy).to eql(relation)
|
10
10
|
end
|
11
|
+
|
12
|
+
it 'loads commands from additionall auto_registration_paths' do
|
13
|
+
expect(rom.commands.tasks.create_additional).to be_a(CreateAdditionalTask)
|
14
|
+
end
|
11
15
|
end
|
@@ -105,13 +105,13 @@ describe ROM::Rails::ActiveRecord::Configuration do
|
|
105
105
|
username: 'root',
|
106
106
|
password: 'password',
|
107
107
|
database: 'database',
|
108
|
-
host: 'example.com'
|
108
|
+
host: 'example.com'
|
109
109
|
}
|
110
110
|
|
111
111
|
expected_uri = 'mysql2://root:password@example.com/database'
|
112
112
|
expected_uri = "jdbc:#{expected_uri}" if RUBY_ENGINE == 'jruby'
|
113
113
|
|
114
|
-
expect(read(config)).to eq uri: expected_uri, options: {pool: 5}
|
114
|
+
expect(read(config)).to eq uri: expected_uri, options: { pool: 5 }
|
115
115
|
end
|
116
116
|
end
|
117
117
|
end
|
@@ -77,7 +77,6 @@ describe ROM::Generators::FormGenerator do
|
|
77
77
|
end
|
78
78
|
|
79
79
|
shared_examples_for "generates an edit user form" do
|
80
|
-
|
81
80
|
it "populates a edit form file" do
|
82
81
|
expect(destination_root).to have_structure {
|
83
82
|
directory 'app' do
|
@@ -138,6 +137,4 @@ describe ROM::Generators::FormGenerator do
|
|
138
137
|
it_should_behave_like "generates a base user form"
|
139
138
|
it_should_behave_like "generates an edit user form"
|
140
139
|
end
|
141
|
-
|
142
|
-
|
143
140
|
end
|
@@ -8,6 +8,7 @@ describe ROM::Generators::MapperGenerator do
|
|
8
8
|
before(:all) do
|
9
9
|
prepare_destination
|
10
10
|
run_generator ['users']
|
11
|
+
run_generator ['app_user']
|
11
12
|
end
|
12
13
|
|
13
14
|
specify do
|
@@ -30,6 +31,23 @@ describe ROM::Generators::MapperGenerator do
|
|
30
31
|
end
|
31
32
|
CONTENT
|
32
33
|
end
|
34
|
+
|
35
|
+
file 'app_user_mapper.rb' do
|
36
|
+
contains <<-CONTENT.strip_heredoc
|
37
|
+
class AppUserMapper < ROM::Mapper
|
38
|
+
relation :app_users
|
39
|
+
|
40
|
+
register_as :app_user
|
41
|
+
|
42
|
+
# specify model and attributes ie
|
43
|
+
#
|
44
|
+
# model AppUser
|
45
|
+
#
|
46
|
+
# attribute :name
|
47
|
+
# attribute :email
|
48
|
+
end
|
49
|
+
CONTENT
|
50
|
+
end
|
33
51
|
end
|
34
52
|
end
|
35
53
|
}
|
data/spec/spec_helper.rb
CHANGED
@@ -22,6 +22,7 @@ Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
|
|
22
22
|
|
23
23
|
RSpec.configure do |config|
|
24
24
|
config.order = "random"
|
25
|
+
config.example_status_persistence_file_path = "tmp/examples.txt"
|
25
26
|
|
26
27
|
config.before(:suite) do
|
27
28
|
conn = rom.gateways[:default].connection
|
data/spec/unit/form_spec.rb
CHANGED
@@ -199,7 +199,7 @@ describe 'Form' do
|
|
199
199
|
|
200
200
|
describe "#errors" do
|
201
201
|
context "with a new model" do
|
202
|
-
it "exposes an activemodel compatible error"
|
202
|
+
it "exposes an activemodel compatible error" do
|
203
203
|
errors = form.build({}).errors
|
204
204
|
|
205
205
|
expect(errors).to respond_to(:[])
|
@@ -220,9 +220,9 @@ describe 'Form' do
|
|
220
220
|
attribute :email, String
|
221
221
|
end
|
222
222
|
|
223
|
-
def commit!(*
|
223
|
+
def commit!(*)
|
224
224
|
users.try {
|
225
|
-
raise ROM::SQL::ConstraintError
|
225
|
+
raise ROM::SQL::ConstraintError, RuntimeError.new("duplicate key")
|
226
226
|
}
|
227
227
|
end
|
228
228
|
end
|
@@ -362,7 +362,5 @@ describe 'Form' do
|
|
362
362
|
|
363
363
|
expect(child_form.validator).to_not be(form.validator)
|
364
364
|
end
|
365
|
-
|
366
|
-
|
367
365
|
end
|
368
366
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rom-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Solnica
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rom
|
@@ -16,28 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '2.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: '2.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rom-support
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: rom-model
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
30
44
|
requirements:
|
31
45
|
- - "~>"
|
32
46
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
47
|
+
version: '0.3'
|
34
48
|
type: :runtime
|
35
49
|
prerelease: false
|
36
50
|
version_requirements: !ruby/object:Gem::Requirement
|
37
51
|
requirements:
|
38
52
|
- - "~>"
|
39
53
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
54
|
+
version: '0.3'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: dry-equalizer
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -154,14 +168,14 @@ dependencies:
|
|
154
168
|
requirements:
|
155
169
|
- - "~>"
|
156
170
|
- !ruby/object:Gem::Version
|
157
|
-
version: 0.28
|
171
|
+
version: '0.28'
|
158
172
|
type: :development
|
159
173
|
prerelease: false
|
160
174
|
version_requirements: !ruby/object:Gem::Requirement
|
161
175
|
requirements:
|
162
176
|
- - "~>"
|
163
177
|
- !ruby/object:Gem::Version
|
164
|
-
version: 0.28
|
178
|
+
version: '0.28'
|
165
179
|
description:
|
166
180
|
email:
|
167
181
|
- piotr.solnica@gmail.com
|
@@ -178,6 +192,7 @@ files:
|
|
178
192
|
- LICENSE
|
179
193
|
- README.md
|
180
194
|
- Rakefile
|
195
|
+
- db
|
181
196
|
- lib/generators/rom.rb
|
182
197
|
- lib/generators/rom/commands/templates/create.rb.erb
|
183
198
|
- lib/generators/rom/commands/templates/delete.rb.erb
|
@@ -202,6 +217,7 @@ files:
|
|
202
217
|
- lib/rom/rails/railtie.rb
|
203
218
|
- lib/rom/rails/tasks/db.rake
|
204
219
|
- lib/rom/rails/version.rb
|
220
|
+
- log
|
205
221
|
- rom-rails.gemspec
|
206
222
|
- spec/dummy/.rspec
|
207
223
|
- spec/dummy/README.rdoc
|
@@ -250,6 +266,7 @@ files:
|
|
250
266
|
- spec/dummy/db/migrate/20141110205016_add_users.rb
|
251
267
|
- spec/dummy/db/migrate/20150202194440_create_tasks.rb
|
252
268
|
- spec/dummy/db/migrate/20150403194906_create_tags.rb
|
269
|
+
- spec/dummy/lib/additional_app/app/commands/create_additional_task.rb
|
253
270
|
- spec/dummy/lib/assets/.keep
|
254
271
|
- spec/dummy/lib/rom/test_adapter.rb
|
255
272
|
- spec/dummy/lib/tasks/.keep
|
@@ -296,7 +313,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
296
313
|
version: '0'
|
297
314
|
requirements: []
|
298
315
|
rubyforge_project:
|
299
|
-
rubygems_version: 2.
|
316
|
+
rubygems_version: 2.5.1
|
300
317
|
signing_key:
|
301
318
|
specification_version: 4
|
302
319
|
summary: Integrate Ruby Object Mapper with Rails
|
@@ -348,6 +365,7 @@ test_files:
|
|
348
365
|
- spec/dummy/db/migrate/20141110205016_add_users.rb
|
349
366
|
- spec/dummy/db/migrate/20150202194440_create_tasks.rb
|
350
367
|
- spec/dummy/db/migrate/20150403194906_create_tags.rb
|
368
|
+
- spec/dummy/lib/additional_app/app/commands/create_additional_task.rb
|
351
369
|
- spec/dummy/lib/assets/.keep
|
352
370
|
- spec/dummy/lib/rom/test_adapter.rb
|
353
371
|
- spec/dummy/lib/tasks/.keep
|