taupe 0.6.1 → 0.6.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 +4 -4
- data/lib/taupe/model/table.rb +2 -2
- data/lib/taupe.rb +2 -2
- data/spec/taupe_spec.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53d3e5e6c90aa505c4d04eccb9184cb493f34a42
|
4
|
+
data.tar.gz: cd81f4aa6580ae8fd0d6b171f3214f764e7ee946
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c42fa8fd1a323d6bf9bd36417b86e47c49c2dba0e3edad882ad7405d2ede8051e7f6d2641c5c8851316c8c18fc71a3c20030ff139a60fda342feff037b2ee574
|
7
|
+
data.tar.gz: 7a0f7da1e0a9e2a10742ddc6a19d45fd74f204428a8e53e7d3c2a4ee355f9743ba32596bc3c85850149c65a1b7f997e55fcfc4aaae35371155f3daba0d525552
|
data/lib/taupe/model/table.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
# File: table.rb
|
4
|
-
# Time-stamp: <2014-12-10
|
4
|
+
# Time-stamp: <2014-12-10 15:43:32 pierre>
|
5
5
|
# Copyright (C) 2014 Pierre Lecocq
|
6
6
|
# Description: Taupe library model table class
|
7
7
|
|
@@ -175,7 +175,7 @@ module Taupe
|
|
175
175
|
# @param key [Symbol]
|
176
176
|
# @return [Boolean]
|
177
177
|
def property?(key)
|
178
|
-
@
|
178
|
+
@_values.include? key.to_sym
|
179
179
|
end
|
180
180
|
|
181
181
|
# Add a propery to the current model
|
data/lib/taupe.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# File: taupe.rb
|
2
|
-
# Time-stamp: <2014-12-10
|
2
|
+
# Time-stamp: <2014-12-10 15:42:29 pierre>
|
3
3
|
# Copyright (C) 2014 Pierre Lecocq
|
4
4
|
# Description: Taupe library main file
|
5
5
|
|
@@ -13,7 +13,7 @@ require 'taupe/model'
|
|
13
13
|
# Main Taupe module
|
14
14
|
module Taupe
|
15
15
|
# Current version constant in the form major.minor.patch
|
16
|
-
VERSION = [0, 6,
|
16
|
+
VERSION = [0, 6, 2].join('.')
|
17
17
|
|
18
18
|
# Require a gem
|
19
19
|
# @param gem_name [String] the gem name
|
data/spec/taupe_spec.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# File: taupe_spec.rb
|
2
|
-
# Time-stamp: <2014-12-10
|
2
|
+
# Time-stamp: <2014-12-10 15:42:44 pierre>
|
3
3
|
# Copyright (C) 2014 Pierre Lecocq
|
4
4
|
# Description: Taupe library main tests file
|
5
5
|
|
@@ -7,8 +7,8 @@ require_relative '../lib/taupe'
|
|
7
7
|
|
8
8
|
describe Taupe do
|
9
9
|
describe 'VERSION' do
|
10
|
-
it 'should return 0.6.
|
11
|
-
expect(Taupe::VERSION).to eql '0.6.
|
10
|
+
it 'should return 0.6.2' do
|
11
|
+
expect(Taupe::VERSION).to eql '0.6.2'
|
12
12
|
end
|
13
13
|
end
|
14
14
|
end
|