liner 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/lib/liner/version.rb +1 -1
- data/test/liner/inspectable_test.rb +2 -4
- data/test/liner/serializable_test.rb +3 -1
- metadata +15 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efe245b14fffd3820614eff859e3eec83830a501
|
4
|
+
data.tar.gz: 1ef20af7d61ca6605228800efa8444a4d29a5af1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af76e6f3cc452104494de3cfa87d6b4b5a87da23f482a751a44d8c0f41878e09ddba0416b511365b66c61b5adf9c89bdad3c06afd5cd71019b21b9051cc658e7
|
7
|
+
data.tar.gz: 565c5df8b6b17362966e0380b6a35e7a54e0012c0b683f458f2f9c3c3f0465d94a3fd4c6f53127998d43bf4f97587c792971d6f072d845a04da863c7824de9c2
|
data/.travis.yml
CHANGED
data/lib/liner/version.rb
CHANGED
@@ -1,15 +1,13 @@
|
|
1
1
|
describe Liner::Inspectable do
|
2
2
|
subject { Cheeseburger.new(:meat => 'turkey') }
|
3
3
|
it "#inspect must include all attributes" do
|
4
|
-
subject.to_s.
|
5
|
-
subject.to_s.must_include '>'
|
4
|
+
subject.to_s.must_match(/#\<Cheeseburger\ .*\>/)
|
6
5
|
subject.to_s.must_include 'bun=nil'
|
7
6
|
subject.to_s.must_include 'meat="turkey"'
|
8
7
|
subject.to_s.must_include 'cheese=nil'
|
9
8
|
end
|
10
9
|
it "#to_s must include all attributes" do
|
11
|
-
subject.to_s.
|
12
|
-
subject.to_s.must_include '>'
|
10
|
+
subject.to_s.must_match(/#\<Cheeseburger\ .*\>/)
|
13
11
|
subject.to_s.must_include 'bun=nil'
|
14
12
|
subject.to_s.must_include 'meat="turkey"'
|
15
13
|
subject.to_s.must_include 'cheese=nil'
|
@@ -3,7 +3,9 @@ describe Liner::Serializable do
|
|
3
3
|
subject { Pizza.new 'thin', 'tomato' }
|
4
4
|
describe :to_json do
|
5
5
|
it "should render a json string" do
|
6
|
-
subject.to_json.
|
6
|
+
subject.to_json.must_match /\{.*\}/
|
7
|
+
subject.to_json.must_include '"crust":"thin"'
|
8
|
+
subject.to_json.must_include '"sauce":"tomato"'
|
7
9
|
end
|
8
10
|
end
|
9
11
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: liner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Lewis
|
@@ -14,56 +14,56 @@ dependencies:
|
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.3'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: minitest
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: coveralls
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
description: A liner for Ruby objects. Add attribute, inspection, serialization, and
|
@@ -74,9 +74,9 @@ executables: []
|
|
74
74
|
extensions: []
|
75
75
|
extra_rdoc_files: []
|
76
76
|
files:
|
77
|
-
-
|
78
|
-
-
|
79
|
-
-
|
77
|
+
- .gitignore
|
78
|
+
- .ruby-version
|
79
|
+
- .travis.yml
|
80
80
|
- Gemfile
|
81
81
|
- LICENSE.txt
|
82
82
|
- README.md
|
@@ -107,17 +107,17 @@ require_paths:
|
|
107
107
|
- lib
|
108
108
|
required_ruby_version: !ruby/object:Gem::Requirement
|
109
109
|
requirements:
|
110
|
-
- -
|
110
|
+
- - '>='
|
111
111
|
- !ruby/object:Gem::Version
|
112
112
|
version: '0'
|
113
113
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - '>='
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
requirements: []
|
119
119
|
rubyforge_project:
|
120
|
-
rubygems_version: 2.
|
120
|
+
rubygems_version: 2.0.14
|
121
121
|
signing_key:
|
122
122
|
specification_version: 4
|
123
123
|
summary: Liner is a lightweight library designed to enhance simple classes with a
|
@@ -130,4 +130,3 @@ test_files:
|
|
130
130
|
- test/liner/serializable_test.rb
|
131
131
|
- test/liner_test.rb
|
132
132
|
- test/test_helper.rb
|
133
|
-
has_rdoc:
|