kalibro_client 1.2.0 → 1.2.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
  SHA1:
3
- metadata.gz: 15bcca85f96a24bd55b802949805c93d4db2e5ad
4
- data.tar.gz: 83b823a0de3a999ff5465073b0df0bc40eb9faed
3
+ metadata.gz: 7c0ee391e685cb6a03a8c466df432f355274b40d
4
+ data.tar.gz: c7acea00d02253f5c744fc89604a9b929ce268ce
5
5
  SHA512:
6
- metadata.gz: ab72cff243dc5c1303e799cf051938935aea76fec5886a089a99d9ad753ae571492fb56603cca72ea68b31da9558e604ae24a42f8bb44d38bd04ddbcebc44176
7
- data.tar.gz: 2b28c6858132fd53576bfa144ad4ed57b1b947673ad4c779045d4fd25538a7b260a3ec3b95a33b4d5f7a088eb587f07b1300b61c7c252ac432db80ede00c18cf
6
+ metadata.gz: 9ccce0b0cffbd54f5fc11fea11c2e26b3290004093886418c66239451d686270440d7316b11ad488c432487e233407dbdfd9fafd746c6df48e8e66290f5fe522
7
+ data.tar.gz: 2d54c3118a502214ef28a51757d26f133982f65e0a8b5314e14c0a2a8f3eb2373102ff319462d42b5dfa1b811b799fca165bd3459cc4c5cbb6394a21c339121e
@@ -42,7 +42,7 @@ module KalibroClient
42
42
 
43
43
  # FYI: this is a spaceship operator
44
44
  def <=>(other)
45
- return nil if [[:FUNCTION, :METHOD], [:METHOD, :FUNCTION]].include?([self.type, other.type])
45
+ return nil if [[:FUNCTION, :METHOD], [:METHOD, :FUNCTION], [:FUNCTION, :CLASS], [:CLASS, :FUNCTION]].include?([self.type, other.type])
46
46
 
47
47
  if self.type == other.type
48
48
  return 0
@@ -15,5 +15,5 @@
15
15
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
 
17
17
  module KalibroClient
18
- VERSION = "1.2.0"
18
+ VERSION = "1.2.2"
19
19
  end
@@ -104,12 +104,17 @@ describe KalibroClient::Entities::Miscellaneous::Granularity do
104
104
  context 'comparing unrelated ones' do
105
105
  let(:function_granularity) { FactoryGirl.build(:granularity, type: KalibroClient::Entities::Miscellaneous::Granularity::FUNCTION) }
106
106
  let(:method_granularity) { FactoryGirl.build(:granularity, type: KalibroClient::Entities::Miscellaneous::Granularity::METHOD) }
107
+ let(:class_granularity) { FactoryGirl.build(:granularity, type: KalibroClient::Entities::Miscellaneous::Granularity::CLASS) }
107
108
 
108
109
  it 'should raise an ArgumentError' do
109
110
  expect { function_granularity < method_granularity }.to raise_error(ArgumentError)
110
111
  expect { function_granularity <= method_granularity }.to raise_error(ArgumentError)
111
112
  expect { function_granularity >= method_granularity }.to raise_error(ArgumentError)
112
113
  expect { function_granularity > method_granularity }.to raise_error(ArgumentError)
114
+ expect { function_granularity < class_granularity }.to raise_error(ArgumentError)
115
+ expect { function_granularity <= class_granularity }.to raise_error(ArgumentError)
116
+ expect { function_granularity >= class_granularity }.to raise_error(ArgumentError)
117
+ expect { function_granularity > class_granularity }.to raise_error(ArgumentError)
113
118
  end
114
119
  end
115
120
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kalibro_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Quadros Miranda
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-08-17 00:00:00.000000000 Z
14
+ date: 2015-08-21 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler