baudelaire 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +31 -31
- data/README.md +1 -0
- data/baudelaire.gemspec +1 -1
- data/lib/baudelaire/version.rb +1 -1
- data/spec/baudelaire/model_extension_spec.rb +7 -7
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73e179f5b153290ff8f192e74ae015dc99195ed7
|
4
|
+
data.tar.gz: 37da9bef2b835d75d3bee6e89a6518b1eeeef57f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78760b1a18397116441652d47e99046bce92116409e71e5d77c6752c724ad68eb984b33495da6ebe3f80155ad9984b6a51468a65fc09ba8c2f6db49dfe77f226
|
7
|
+
data.tar.gz: ed9facee1785bcfb13ac78c645c743318a64dd861c7d331d5ab1327b3a330ca5f27bddc53b962b636196dfed2240af0d036706720b77f2b0c48f5807f432d236
|
data/Gemfile.lock
CHANGED
@@ -1,44 +1,44 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
baudelaire (0.1.
|
5
|
-
activerecord
|
4
|
+
baudelaire (0.1.2)
|
5
|
+
activerecord (~> 3)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: http://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activemodel (
|
11
|
-
activesupport (=
|
12
|
-
builder (~> 3.
|
13
|
-
activerecord (
|
14
|
-
activemodel (=
|
15
|
-
activesupport (=
|
16
|
-
arel (~>
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
arel (6.0.3)
|
24
|
-
builder (3.2.2)
|
10
|
+
activemodel (3.2.22.2)
|
11
|
+
activesupport (= 3.2.22.2)
|
12
|
+
builder (~> 3.0.0)
|
13
|
+
activerecord (3.2.22.2)
|
14
|
+
activemodel (= 3.2.22.2)
|
15
|
+
activesupport (= 3.2.22.2)
|
16
|
+
arel (~> 3.0.2)
|
17
|
+
tzinfo (~> 0.3.29)
|
18
|
+
activesupport (3.2.22.2)
|
19
|
+
i18n (~> 0.6, >= 0.6.4)
|
20
|
+
multi_json (~> 1.0)
|
21
|
+
arel (3.0.3)
|
22
|
+
builder (3.0.4)
|
25
23
|
diff-lcs (1.2.5)
|
26
24
|
i18n (0.7.0)
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
rspec-
|
32
|
-
rspec-
|
33
|
-
|
34
|
-
|
35
|
-
rspec-expectations (
|
36
|
-
diff-lcs (>= 1.
|
37
|
-
|
25
|
+
multi_json (1.12.1)
|
26
|
+
rake (11.2.2)
|
27
|
+
rspec (3.5.0)
|
28
|
+
rspec-core (~> 3.5.0)
|
29
|
+
rspec-expectations (~> 3.5.0)
|
30
|
+
rspec-mocks (~> 3.5.0)
|
31
|
+
rspec-core (3.5.1)
|
32
|
+
rspec-support (~> 3.5.0)
|
33
|
+
rspec-expectations (3.5.0)
|
34
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
35
|
+
rspec-support (~> 3.5.0)
|
36
|
+
rspec-mocks (3.5.0)
|
37
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
38
|
+
rspec-support (~> 3.5.0)
|
39
|
+
rspec-support (3.5.0)
|
38
40
|
sqlite3 (1.3.11)
|
39
|
-
|
40
|
-
tzinfo (1.2.2)
|
41
|
-
thread_safe (~> 0.1)
|
41
|
+
tzinfo (0.3.51)
|
42
42
|
|
43
43
|
PLATFORMS
|
44
44
|
ruby
|
data/README.md
CHANGED
@@ -57,5 +57,6 @@ Do you have something in mind? Issue a PR! Bonus points for testing :)
|
|
57
57
|
Changelog
|
58
58
|
---------
|
59
59
|
|
60
|
+
* v.0.1.2 Fixed compatibility error with Active Record under version 4
|
60
61
|
* v.0.1.1 Now, empty strings are exposed as nils
|
61
62
|
* v.0.1.0 Basic feature: getters and setters for symbolized attributes
|
data/baudelaire.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
20
20
|
s.require_paths = ["lib"]
|
21
21
|
|
22
|
-
s.add_dependency "activerecord"
|
22
|
+
s.add_dependency "activerecord", '~>3'
|
23
23
|
|
24
24
|
s.add_development_dependency "rspec"
|
25
25
|
s.add_development_dependency "sqlite3"
|
data/lib/baudelaire/version.rb
CHANGED
@@ -8,7 +8,7 @@ describe :symbolize do
|
|
8
8
|
before { @tv_show.kind = nil }
|
9
9
|
|
10
10
|
it "should save a nil" do
|
11
|
-
@tv_show[:kind].
|
11
|
+
expect(@tv_show[:kind]).to be_nil
|
12
12
|
end
|
13
13
|
end
|
14
14
|
|
@@ -16,7 +16,7 @@ describe :symbolize do
|
|
16
16
|
before { @tv_show.kind = 'drama' }
|
17
17
|
|
18
18
|
it "should save a symbol" do
|
19
|
-
@tv_show[:kind].
|
19
|
+
expect(@tv_show[:kind]).to eq(:drama)
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
@@ -24,7 +24,7 @@ describe :symbolize do
|
|
24
24
|
before { @tv_show.kind = :drama }
|
25
25
|
|
26
26
|
it "should save a symbol" do
|
27
|
-
@tv_show[:kind].
|
27
|
+
expect(@tv_show[:kind]).to eq(:drama)
|
28
28
|
end
|
29
29
|
end
|
30
30
|
end
|
@@ -34,7 +34,7 @@ describe :symbolize do
|
|
34
34
|
before { @tv_show[:kind] = nil }
|
35
35
|
|
36
36
|
it "should return nil" do
|
37
|
-
@tv_show.kind.
|
37
|
+
expect(@tv_show.kind).to be_nil
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
@@ -42,14 +42,14 @@ describe :symbolize do
|
|
42
42
|
before { @tv_show[:kind] = 'drama' }
|
43
43
|
|
44
44
|
it "should return the symbolized string" do
|
45
|
-
@tv_show.kind.
|
45
|
+
expect(@tv_show.kind).to eq(:drama)
|
46
46
|
end
|
47
47
|
|
48
48
|
context "which is empty" do
|
49
49
|
before { @tv_show.kind = '' }
|
50
50
|
|
51
51
|
it "should return nil" do
|
52
|
-
@tv_show.kind.
|
52
|
+
expect(@tv_show.kind).to be_nil
|
53
53
|
end
|
54
54
|
end
|
55
55
|
end
|
@@ -58,7 +58,7 @@ describe :symbolize do
|
|
58
58
|
before { @tv_show[:kind] = :drama }
|
59
59
|
|
60
60
|
it "should return the symbol" do
|
61
|
-
@tv_show.kind.
|
61
|
+
expect(@tv_show.kind).to eq(:drama)
|
62
62
|
end
|
63
63
|
end
|
64
64
|
end
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: baudelaire
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Albert Bellonch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|