gritano-core 2.0.1 → 2.0.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.
- data/VERSION +1 -1
- data/gritano-core.gemspec +2 -2
- data/lib/gritano-core/key.rb +1 -1
- data/spec/key_spec.rb +4 -0
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.
|
1
|
+
2.0.2
|
data/gritano-core.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "gritano-core"
|
8
|
-
s.version = "2.0.
|
8
|
+
s.version = "2.0.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Igor Bonadio"]
|
12
|
-
s.date = "2013-07-
|
12
|
+
s.date = "2013-07-03"
|
13
13
|
s.description = "Gritano::Core is a library that defines all Gritano's Models. It can be used to develop tools that manage users, repositories and permissions."
|
14
14
|
s.email = "igorbonadio@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/gritano-core/key.rb
CHANGED
data/spec/key_spec.rb
CHANGED
@@ -14,6 +14,10 @@ module Gritano::Core
|
|
14
14
|
Key.new(user_id: 1, name: "my_key", key: "wrong").should be_invalid
|
15
15
|
end
|
16
16
|
|
17
|
+
it "should have a specific error for key format" do
|
18
|
+
Key.create(user_id: 1, name: "my_key", key: "wrong").errors[:key].include?('is invalid').should be_true
|
19
|
+
end
|
20
|
+
|
17
21
|
it "should belongs to a user" do
|
18
22
|
Key.new(name: "my_key", key: File.open('spec/key.pub').readlines.join).should be_invalid
|
19
23
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gritano-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-07-
|
12
|
+
date: 2013-07-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -210,7 +210,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
210
210
|
version: '0'
|
211
211
|
segments:
|
212
212
|
- 0
|
213
|
-
hash:
|
213
|
+
hash: 44744882243400097
|
214
214
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
215
215
|
none: false
|
216
216
|
requirements:
|