git_compound 0.2.1 → 0.2.2

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: 5e4d0926ddcd0f190333508583f38a8f2460089d
4
- data.tar.gz: 52d2af0cf79c22a69f97b51ba6a090d3debef4dd
3
+ metadata.gz: 287db85dda9ecf699911c56ab8ccde4c7c8069f2
4
+ data.tar.gz: fb80f3b9f28b5819fbdb4e6cd9212eabc9fa4e4a
5
5
  SHA512:
6
- metadata.gz: 9b357d8c1bbc8b91caf86928fa51415b757614117ec35a4b928650fa39c990969f59a2025de35eb1a00aca7436a6efaa058d884a8fea2080176909a0449d86e7
7
- data.tar.gz: 082737730b0039af37388af337798e931e4623f6a363598de1a4bc804f673d3e00e1fa60cbc8d395fe299eec9b23eb5144f4aacfc305d7d404b774af7203418d
6
+ metadata.gz: f6822d5a321144d9258d08e43f620e7d09c1875323db6f46742a17a8b649859cff8de40e4bea835dc45e2242f09d6b221a898555461e3b68683868630ae19669
7
+ data.tar.gz: 7b5a67c18e65ddd93e02ee68805aff98d6e94d64898e8dedc25f67b44d2be7c91f452fb5f5eee762b93f82c4ab24da76db149ec38585921eb79057700161b67f
data/README.md CHANGED
@@ -86,6 +86,8 @@ If manifest is not supplied, it uses `Compoundfile` or `.gitcompound`
86
86
 
87
87
  `gitcompound update [manifest]` -- updates project and lockfile
88
88
 
89
+ If parameter `--perserve-lock` is present, lockfile will not be updated.
90
+
89
91
  ### check
90
92
 
91
93
  `gitcompound check [manifest]` -- checks for circular dependencies, conflicting dependencies
@@ -14,6 +14,10 @@ module GitCompound
14
14
  Logger.info 'Building components from lockfile ...'
15
15
  end
16
16
 
17
+ step :protect_local_modifications do
18
+ @lock.process(Worker::LocalChangesGuard.new(@lock))
19
+ end
20
+
17
21
  step :verify_manifest do
18
22
  raise GitCompoundError,
19
23
  'Manifest md5sum has changed ! Use `update` command.' unless
@@ -8,6 +8,7 @@ module GitCompound
8
8
  include Element::Lock
9
9
  include Element::Subprocedure
10
10
 
11
+ add_parameter :perserve_lock, type: :boolean
11
12
  add_subprocedure :check_dependencies, Check
12
13
  add_subprocedure :tasks_runner, Tasks
13
14
 
@@ -35,8 +36,10 @@ module GitCompound
35
36
  end
36
37
 
37
38
  step :lock_updated_manifest do
38
- @lock_new.lock_manifest(@manifest)
39
- @lock_new.write
39
+ unless @opts[:perserve_lock]
40
+ @lock_new.lock_manifest(@manifest)
41
+ @lock_new.write
42
+ end
40
43
  end
41
44
 
42
45
  step :remove_dormant_components do
@@ -1,5 +1,5 @@
1
1
  # GitCompound
2
2
  #
3
3
  module GitCompound
4
- VERSION = '0.2.1'
4
+ VERSION = '0.2.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_compound
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grzegorz Bizon
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2015-09-23 00:00:00.000000000 Z
12
+ date: 2015-11-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler