breezer 0.7.1 → 0.7.2

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
  SHA256:
3
- metadata.gz: 422c6219a26608efe8e49374fa7813447f6fbb4ce4521d7ae657a28c9d61a4d3
4
- data.tar.gz: 9bb18245c1e04df9cf5b533ff1b54b1f68069ac9d05981deda2925aac8991b90
3
+ metadata.gz: 5a257e4fc4af102117ba2d59a01578bd12f83182496fa4416e5b273d5eee27e9
4
+ data.tar.gz: a0d9cfdb594f19d6905188d9fb8fc87922e50a4451fbd63e82f9409bc255c600
5
5
  SHA512:
6
- metadata.gz: 2ffd20ff2212a612008d0d3f021dad8427e2e1e43df00dee70ed4fb9836d63eaf45b767bb0935003c4509b02e5ea1d3a1dc7d0b73f6b96366a57d17af7c33b9e
7
- data.tar.gz: 437a4fdfb103329d3cceb35e4b8855b3e27d0197e9d3bd5e99ad9cc77856b4a0c0af1861a7c73b4abf9f20e89ac891cb702e456ffe7e2bb8e920d6184af956e2
6
+ metadata.gz: 46952f038351ba2c475c1a723406b29d99df6db132607b4a3892adf6bc489353aa5a699257e67a56931e4e098d31df615c4b209ab8d8641e22c4bf6d7741f970
7
+ data.tar.gz: 3162581925835e11dfa934da53bc9dadae0a94fe0d44fa6a483fce97d255fd2c9a7ce96c835cf9990880141e8b444c2453a35212cdd7003d0c84d3ebd73b8523
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- breezer (0.7.1)
4
+ breezer (0.7.2)
5
5
  bundler (> 1.0)
6
6
 
7
7
  GEM
@@ -1,3 +1,3 @@
1
1
  module Breezer
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  end
data/lib/breezer.rb CHANGED
@@ -4,8 +4,9 @@
4
4
  # This is our main class.
5
5
  # Call Breezer.freeze! to update the Gemfile
6
6
  #
7
- class Breezer
7
+ module Breezer
8
8
  def self.freeze!(gemfile_path, lockfile_path, **options)
9
+ puts "Updating Gemfile #{gemfile_path}..."
9
10
  absolute_lockfile_path = File.join(lockfile_path)
10
11
  absolute_gemfile_path = File.join(gemfile_path)
11
12
  ENV['BUNDLE_GEMFILE'] = absolute_gemfile_path
@@ -21,6 +22,7 @@ class Breezer
21
22
  end
22
23
 
23
24
  def self.check_gemfile!(gemfile, deps, options)
25
+ puts "Checking Gemfile #{gemfile}..."
24
26
  checks = Freezer.check_gemfile!(gemfile, deps, options)
25
27
  print_check_results(checks)
26
28
  checks.values.map { |e| e[:valid] }.all?
@@ -38,6 +40,7 @@ class Breezer
38
40
  File.open(output_path, 'w') do |file|
39
41
  file.write(updated_gemfile)
40
42
  end
43
+ puts "Gemfile updated !"
41
44
  end
42
45
  updated_gemfile
43
46
  end
data/test/test_breezer.rb CHANGED
@@ -49,4 +49,5 @@ describe Breezer do
49
49
  specs = Breezer.freeze!('Gemfile.checked', 'Gemfile.lock', check: true)
50
50
  _(specs).must_equal true
51
51
  end
52
+
52
53
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: breezer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - André Aubin