rubycritic 1.1.0 → 1.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e19fa08f433cdb1ef0d4f49096ffa2de1e8a7132
4
- data.tar.gz: 0eb7f2ce702010efc38a3d14d5044ba9dcccfe70
3
+ metadata.gz: 03a9d4fd43e882a330e86f72532d6c656db379d7
4
+ data.tar.gz: 7d3a194907c98214a334b2771f3448e617849661
5
5
  SHA512:
6
- metadata.gz: ae8600a942a9c784bb4c7c4c3caba9d649430c9f346ce5e8576c92fef8e5a0e933ee3200b96f44deee10f9bef3b9cca99094949ea7c5f36a21baba36d839c0c3
7
- data.tar.gz: 285e582072b09076129b9519349aa4e2d941cee174c31688b730674ac689f030d5f2df5ee232185b3f9456b96aee2a481f25676d4ced89c669f5f0e4b651f17c
6
+ metadata.gz: f0a6c2e7577dab3978c17f1a97cfc294fcce09198a3c5ce1e2ad87f89fbc0dd1942eef2211016eef26644c615defcac9d86614e23282fc1b9896d229ca634e5b
7
+ data.tar.gz: fc770f5bff15c880d19012bad99abc310b3628d67fc8a29e59ab441257a36125016711b68d193c29d4901ed440b1c45352a2712c1fb7742d45ad95335f0d5312
@@ -1,3 +1,7 @@
1
+ # 1.1.1 / 2014-07-29
2
+
3
+ * [BUGFIX] Analyse only the files whose paths are specified in the CLI
4
+
1
5
  # 1.1.0 / 2014-07-27
2
6
 
3
7
  * [FEATURE] Display name of the first module found in a file instead of the file's name
@@ -14,7 +14,7 @@ module Rubycritic
14
14
  analysed_modules = ModulesInitializer.init(paths)
15
15
  AnalysersRunner.new(analysed_modules, @source_control_system).run
16
16
  if @source_control_system.has_revision?
17
- RevisionComparator.new(analysed_modules, @source_control_system).set_statuses
17
+ RevisionComparator.new(analysed_modules, @source_control_system, paths).set_statuses
18
18
  end
19
19
  analysed_modules
20
20
  end
@@ -3,15 +3,17 @@ require "rubycritic/modules_initializer"
3
3
  require "rubycritic/analysers_runner"
4
4
  require "rubycritic/smells_status_setter"
5
5
  require "rubycritic/version"
6
+ require "digest/md5"
6
7
 
7
8
  module Rubycritic
8
9
 
9
10
  class RevisionComparator
10
11
  SNAPSHOTS_DIR_NAME = "snapshots"
11
12
 
12
- def initialize(analysed_modules, source_control_system)
13
+ def initialize(analysed_modules, source_control_system, paths)
13
14
  @analysed_modules_now = analysed_modules
14
15
  @source_control_system = source_control_system
16
+ @paths = paths
15
17
  end
16
18
 
17
19
  def set_statuses
@@ -28,7 +30,7 @@ module Rubycritic
28
30
  if File.file?(revision_file)
29
31
  serializer.load
30
32
  else
31
- analysed_modules = ModulesInitializer.init(["."])
33
+ analysed_modules = ModulesInitializer.init(@paths)
32
34
  @source_control_system.travel_to_head do
33
35
  AnalysersRunner.new(analysed_modules, @source_control_system).run
34
36
  end
@@ -42,6 +44,7 @@ module Rubycritic
42
44
  ::Rubycritic.configuration.root,
43
45
  SNAPSHOTS_DIR_NAME,
44
46
  VERSION,
47
+ Digest::MD5.hexdigest(Marshal.dump(@paths)),
45
48
  @source_control_system.head_reference
46
49
  )
47
50
  end
@@ -1,3 +1,3 @@
1
1
  module Rubycritic
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubycritic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guilherme Simoes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-27 00:00:00.000000000 Z
11
+ date: 2014-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: virtus