dry-initializer-rails 1.0.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ccebd9d7adeb8e25c29b0327989ffaf58117c43
4
- data.tar.gz: ffc23d3c5a6a1b12dd67ffdab61454d8305b1a7e
3
+ metadata.gz: a894c708b1e5461c0d316687eb482b01797a2e3d
4
+ data.tar.gz: fa349d24f5fa62e059e099bddf5f45d05f41a3d6
5
5
  SHA512:
6
- metadata.gz: 6075002cc04d3bbb779a7002ab91d8cc9ee364a757cf9d335c7ce14e4641e549326144e68135384fdf0da87c1ad1357c0e1f13734e4d9b834c24940bc49fb240
7
- data.tar.gz: 4f73db23fc8ebca08db64e51dba85a1b3de11a10ebb7e0fd2f779b60c4c2f5d8e5a55aa223632d477ef067c077f3b1e16d0398112186eaf9110f1f4e3c14f604
6
+ metadata.gz: 0e773812ba782a02ca0cfdb35c1841d9c62942b03b6cd285802c295a47078cd3099614e1ee09061d16ae8f68f94e8aa8e62724ed4620111d71399ba3db71f397
7
+ data.tar.gz: 6f80e04ad40745801b43063bae14463d5fd509b4d350e1e04d43542ffb0d95088d7d07f04bfbaae5e53b6b60438a6f9945c9d964890cd8753314a328324df25f
data/.rubocop.yml CHANGED
@@ -3,25 +3,31 @@ AllCops:
3
3
  DisplayCopNames: true
4
4
  DisplayStyleGuide: true
5
5
  StyleGuideCopsOnly: true
6
- TargetRubyVersion: 2.2
6
+ TargetRubyVersion: 2.3
7
+
8
+ Layout/EmptyLinesAroundBlockBody:
9
+ Enabled: false
7
10
 
8
11
  Metrics/LineLength:
9
12
  Exclude:
10
13
  - spec/dummy/db/schema.rb
11
14
 
15
+ Naming/FileName:
16
+ Exclude:
17
+ - 'lib/dry-initializer-rails.rb'
18
+
12
19
  Style/CaseEquality:
13
20
  Enabled: false
14
21
 
22
+ Style/ClassAndModuleChildren:
23
+ Enabled: false
24
+
15
25
  Style/ClassVars:
16
26
  Enabled: false
17
27
 
18
28
  Style/DoubleNegation:
19
29
  Enabled: false
20
30
 
21
- Style/FileName:
22
- Exclude:
23
- - 'lib/dry-initializer-rails.rb'
24
-
25
31
  Style/Lambda:
26
32
  Exclude:
27
33
  - spec/**/*_spec.rb
data/.travis.yml CHANGED
@@ -8,8 +8,8 @@ script:
8
8
  - bundle exec rake
9
9
  - bundle exec rubocop
10
10
  rvm:
11
- - 2.2.2
12
11
  - 2.3.0
12
+ - 2.4.0
13
13
  - ruby-head
14
14
  matrix:
15
15
  allow_failures:
data/CHANGELOG.md CHANGED
@@ -1,15 +1,33 @@
1
- ## v1.0.0 2017-01-28
1
+ # Change Log
2
2
 
3
- Update dependency to dry-initializer v1.1+ (nepalez)
3
+ All notable changes to this project will be documented in this file.
4
4
 
5
- ## v0.0.3 2016-07-17
5
+ The format is based on [Keep a Changelog](http://keepachangelog.com/)
6
+ and this project adheres to [Semantic Versioning](http://semver.org/).
6
7
 
7
- Support dry-initializer v0.4+ (nepalez)
8
+ ## [2.0.0] [2018-02-01]
8
9
 
9
- ## v0.0.2 2016-05-19
10
+ Update dependency to [dry-initializer] v2.4+ (nepalez)
10
11
 
11
- Update dependency to dry-initializer v0.3+ (nepalez)
12
+ ## [1.0.0] [2017-01-28]
12
13
 
13
- ## v0.0.1 2016-05-16
14
+ Update dependency to [dry-initializer] v1.1+ (nepalez)
15
+
16
+ ## [0.0.3] [2016-07-17]
17
+
18
+ Update dependency to [dry-initializer] v0.4+ (nepalez)
19
+
20
+ ## [0.0.2] [2016-05-19]
21
+
22
+ Update dependency to [dry-initializer] v0.3+ (nepalez)
23
+
24
+ ## [0.0.1] [2016-05-16]
14
25
 
15
26
  First public release
27
+
28
+ [dry-initializer]: https://github.com/dry-rb/dry-initializer
29
+ [0.0.1]: https://github.com/nepalez/dry-initializer-rails/compare/ab07725...v0.0.1
30
+ [0.0.2]: https://github.com/nepalez/dry-initializer-rails/compare/v0.0.1...v0.0.2
31
+ [0.0.3]: https://github.com/nepalez/dry-initializer-rails/compare/v0.0.2...v0.0.3
32
+ [1.0.0]: https://github.com/nepalez/dry-initializer-rails/compare/v0.0.3...v1.0.0
33
+ [0.0.3]: https://github.com/nepalez/dry-initializer-rails/compare/v1.0.0...v2.0.0
data/Rakefile CHANGED
@@ -8,6 +8,6 @@ load "spec/dummy/Rakefile"
8
8
 
9
9
  # Declares gem's own tasks.
10
10
  desc "Runs test suite."
11
- task default: %w(dummy:db:migrate) do
11
+ task default: %w[dummy:db:migrate] do
12
12
  system "bundle exec rspec spec"
13
13
  end
@@ -1,8 +1,8 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = "dry-initializer-rails"
3
- gem.version = "1.0.0"
3
+ gem.version = "2.0.0"
4
4
  gem.author = ["Vladimir Kochnev (marshall-lee)", "Andrew Kozin (nepalez)"]
5
- gem.email = ["hashtable@yandex.ru", "andrew.kozin@gmail.com"]
5
+ gem.email = ["andrew.kozin@gmail.com"]
6
6
  gem.homepage = "https://github.com/nepalez/dry-initializer-rails"
7
7
  gem.summary = "Adds ActiveRecord-specific methods to Dry::Initializer"
8
8
  gem.license = "MIT"
@@ -11,14 +11,14 @@ Gem::Specification.new do |gem|
11
11
  gem.test_files = gem.files.grep(/^spec/)
12
12
  gem.extra_rdoc_files = Dir["README.md", "LICENSE", "CHANGELOG.md"]
13
13
 
14
- gem.required_ruby_version = ">= 2.2.2"
14
+ gem.required_ruby_version = ">= 2.3"
15
15
 
16
16
  gem.add_runtime_dependency "rails", "> 3.0"
17
- gem.add_runtime_dependency "dry-initializer", "~> 1.1"
17
+ gem.add_runtime_dependency "dry-initializer", "~> 2.4"
18
18
 
19
19
  gem.add_development_dependency "rspec", "~> 3.0"
20
20
  gem.add_development_dependency "rake", "> 10.0"
21
21
  gem.add_development_dependency "sqlite3", "~> 1.3"
22
22
  gem.add_development_dependency "database_cleaner", "~> 1.5"
23
- gem.add_development_dependency "rubocop", "~> 0.44"
23
+ gem.add_development_dependency "rubocop", "~> 0.52"
24
24
  end
@@ -15,4 +15,4 @@ rails_dispatcher = lambda do |model: nil, find_by: :id, **options|
15
15
  end
16
16
 
17
17
  # Register a dispatcher
18
- Dry::Initializer::Attribute.dispatchers << rails_dispatcher
18
+ Dry::Initializer::Dispatchers << rails_dispatcher
@@ -1,4 +1,4 @@
1
- class CreateUsers < ActiveRecord::Migration
1
+ class CreateUsers < ActiveRecord::Migration[5.0]
2
2
  def change
3
3
  create_table :users do |t|
4
4
  t.string :name, index: true
@@ -1,4 +1,4 @@
1
- class CreateItems < ActiveRecord::Migration
1
+ class CreateItems < ActiveRecord::Migration[5.0]
2
2
  def change
3
3
  create_table :items do |t|
4
4
  t.string :name, index: true
@@ -11,7 +11,6 @@
11
11
  # It's strongly recommended that you check this file into your version control system.
12
12
 
13
13
  ActiveRecord::Schema.define(version: 20160509134900) do
14
-
15
14
  create_table "items", force: :cascade do |t|
16
15
  t.string "name"
17
16
  t.index ["name"], name: "index_items_on_name"
@@ -21,5 +20,4 @@ ActiveRecord::Schema.define(version: 20160509134900) do
21
20
  t.string "name"
22
21
  t.index ["name"], name: "index_users_on_name"
23
22
  end
24
-
25
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry-initializer-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir Kochnev (marshall-lee)
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-01-28 00:00:00.000000000 Z
12
+ date: 2018-02-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -31,14 +31,14 @@ dependencies:
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '1.1'
34
+ version: '2.4'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '1.1'
41
+ version: '2.4'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rspec
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -101,17 +101,16 @@ dependencies:
101
101
  requirements:
102
102
  - - "~>"
103
103
  - !ruby/object:Gem::Version
104
- version: '0.44'
104
+ version: '0.52'
105
105
  type: :development
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
109
  - - "~>"
110
110
  - !ruby/object:Gem::Version
111
- version: '0.44'
111
+ version: '0.52'
112
112
  description:
113
113
  email:
114
- - hashtable@yandex.ru
115
114
  - andrew.kozin@gmail.com
116
115
  executables: []
117
116
  extensions: []
@@ -160,7 +159,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
160
159
  requirements:
161
160
  - - ">="
162
161
  - !ruby/object:Gem::Version
163
- version: 2.2.2
162
+ version: '2.3'
164
163
  required_rubygems_version: !ruby/object:Gem::Requirement
165
164
  requirements:
166
165
  - - ">="
@@ -168,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
167
  version: '0'
169
168
  requirements: []
170
169
  rubyforge_project:
171
- rubygems_version: 2.5.2
170
+ rubygems_version: 2.6.14
172
171
  signing_key:
173
172
  specification_version: 4
174
173
  summary: Adds ActiveRecord-specific methods to Dry::Initializer