pronto-rails_schema 0.9.0 → 0.9.1

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: 226d5ee8d9a33fa3db354c760708f561b14ad8dc
4
- data.tar.gz: 4ceff03ebb84d034c39a0f880bfe147bae978d48
3
+ metadata.gz: 4bcf9e97c029b25cb9fb1ab0d1437b771b2baff2
4
+ data.tar.gz: e7dfa62a0859c2cf8ac54b3df8ddcc9bc226dc9c
5
5
  SHA512:
6
- metadata.gz: 48dbaeadfc1a8220d026f0bead49e783e3bd100a020042b41a21745a518af16903715aac97b8a0544819c159bdf947847eff7997bc29c09c3bf5345056f842ff
7
- data.tar.gz: e73780c26cbf5153b5478c1b4cf113664b18da4723049c9297506be5f95e4a2e9113908dc6ebaac57225ee9f99928f9aa2c328be20a18b6284b1d1870a670965
6
+ metadata.gz: e70e8bd4caece937d958e000a76210abeb8bf757823c48477735152cc6024135c8d9f6f4e3e1fd416207fbb141e8819eec9e5750bd98d94a007f38e5d30c1ea9
7
+ data.tar.gz: cb66b7c23880f6ec3f2bf0a4a7104efe11cd9f1b1929f289a7ecf631d1e2d67ce4460ad9e237a551dbd0f5a469ecff008855fffcb6d20f9096b176afa85bc250
@@ -36,8 +36,9 @@ module Pronto
36
36
 
37
37
  def generate_messages_for(target)
38
38
  migration_patches.map do |patch|
39
- Message.new(patch.delta.new_file[:path], nil, :warning,
40
- "Migration file detected, but no changes in #{target}",
39
+ first_line = patch.added_lines.first
40
+ Message.new(patch.delta.new_file[:path], first_line, :warning,
41
+ "Migration file detected, but no changes in #{target}",
41
42
  nil, self.class)
42
43
  end
43
44
  end
@@ -1,5 +1,5 @@
1
1
  module Pronto
2
2
  module RailsSchemaVersion
3
- VERSION = "0.9.0"
3
+ VERSION = "0.9.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pronto-rails_schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raimondas Valickas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-25 00:00:00.000000000 Z
11
+ date: 2018-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pronto
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  version: '0'
106
106
  requirements: []
107
107
  rubyforge_project:
108
- rubygems_version: 2.5.1
108
+ rubygems_version: 2.6.11
109
109
  signing_key:
110
110
  specification_version: 4
111
111
  summary: Pronto runner for detection of Rails schema changes.