hglib 0.10.0 → 0.10.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
  SHA256:
3
- metadata.gz: bed2aab2e2a8f472ce66fddf9dddcd469ae1b8a5db7ff213f3ec1223025b11ae
4
- data.tar.gz: 5faec9749f727cb31aea87ef13f293a2da281353e8e0c23e09d6aa7299baf28c
3
+ metadata.gz: fda6fedb3a7f987d97d03cac280b3f01cc887b09018e68e5265ae0181c7688c8
4
+ data.tar.gz: 2ba0ae0314f9796cad84a5b431fb2f6369505c2372289956958243cf965652c9
5
5
  SHA512:
6
- metadata.gz: 360868b5befb696d2f4fdeaaf610ac64b1a83fa148c7e7b4176db619762e8c6841736721893862d03c904114b151749ef5e0fdef242cf41d48adceb7aa19e38d
7
- data.tar.gz: 844af0536bba415de4019744d72c19e20061fadfcbb9060b0ebbe464945830f1f40660b73454247117c739c2d249135641f1cd53ecb41a6c7d30d07e2fc31414
6
+ metadata.gz: cb4d1bb0a5a5dafb2359d861e013e1205860d185e481cfa411682e08e95dba2635a374560bc2b631fa960ecf975371ee3d63e3b19d3695c1fd1c0c7a06899ff2
7
+ data.tar.gz: 1e4212f4dc07628c0e54a0a70cf09b9e9e859b0aa3ae7113803299532b579912146fdcaaec03daf2c1ecd97ef2f3c4a18ea8d7dab6638da2d0cb62ca18471bf6
Binary file
data.tar.gz.sig CHANGED
@@ -1,3 +1,3 @@
1
- 2�^�w���1v=�YC�* ����R���H��]k{�9J�Pl�,�P��]�P��1eLF5$m�����o滃��0��?��GY6�/�.�6��s"�� ݓ���}��U�٘fW0�������
2
- �Ԁ��349����_
3
- It&eV?��q�Vl�[�����>Y����[n��u��aE�<n���7Ν+x��ɓ����2�J�e��)
1
+ �Zuq�{���L���{;ӌ�����Kq3Ie "���"83��'�ִ�ydd�3�G��4ۇ��i�:���ѕ�}y}��� a��B~��7 ߃-����}����˚�_
2
+ q���K��E��[1�+�<eQ,FF
3
+ cћޞgC.S �|0���S����zߺ��R��uc���ٶ{���C�q�Z��K=D������ ���>�3��17^n�cI">�Gt+U����~c����zm���?���i��Щ-'���b5?_�
data/History.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  ---
4
4
 
5
+ ## v0.10.1 [2020-04-02] Michael Granger <ged@FaerieMUD.org>
6
+
7
+ Bugfixes:
8
+
9
+ - Fix the Repo#tracked? predicate.
10
+
11
+
5
12
  ## v0.10.0 [2020-04-02] Michael Granger <ged@FaerieMUD.org>
6
13
 
7
14
  Improvements:
@@ -11,7 +11,7 @@ module Hglib
11
11
 
12
12
 
13
13
  # Package version
14
- VERSION = '0.10.0'
14
+ VERSION = '0.10.1'
15
15
 
16
16
  # Version control revision
17
17
  REVISION = %q$Revision$
@@ -302,7 +302,7 @@ class Hglib::Repo
302
302
 
303
303
  ### Returns +true+ if the given +filename+ is a file tracked by Mercurial.
304
304
  def tracked?( filename )
305
- status = self.status( filename )
305
+ status = self.status( filename ).first
306
306
  return status&.tracked?
307
307
  end
308
308
 
@@ -69,6 +69,18 @@ RSpec.describe Hglib::Repo do
69
69
  end
70
70
 
71
71
 
72
+ it "can ensure a file is tracked" do
73
+ repo = described_class.new( repo_dir )
74
+
75
+ expect( server ).to receive( :run_with_json_template ).
76
+ with( :status, 'lib/version.rb' ).
77
+ and_return([ {path: 'lib/version.rb', status: 'M'} ]).
78
+ at_least( :once )
79
+
80
+ expect( repo.tracked?('lib/version.rb') ).to be_truthy
81
+ end
82
+
83
+
72
84
  it "can fetch the identification of the repository's current revision" do
73
85
  repo = described_class.new( repo_dir )
74
86
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hglib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Granger
metadata.gz.sig CHANGED
Binary file