rrimm 0.12.0 → 0.12.1
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 +8 -8
- data/lib/rrimm/feed_config_extensions.rb +1 -0
- data/rrimm.gemspec +1 -1
- data/spec/feed_config_spec.rb +12 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODgwNzU2ZTBmNTM2OTM0NDAwYTc1MmMzMjY3OGQ3NTMwZmFhNjg4Yw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NzkzYmRlMDQyZWQxZGY1OWI0MTIwNzk2MmExZmFiMmM5OGUxNTFiYw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NGRiYzgyNDVhNjY1NDhhNWY4ZGE3ODkzYTY2MDIwZGI4MmM0NzBjNjczYWZm
|
10
|
+
MTRjZGJmNTY5ZjcyYzhiMTdhNTZjZWIzMTZkMDJkMGU4M2ExYTgyNjdkYTlh
|
11
|
+
OWUyNmEwYmRlZTI1MGE0MDBiMzkzZWYzMzZiMTBiMWVjY2FmMDc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NDdhMjM1MmI5ZjE4OTcwM2RlMDEyZGE5NjhkZTY3MTc5NWE1YTJhOTY2NTNi
|
14
|
+
YWIxODY5YTM5YzUwODMyNDkxNGRhZDM3MmU1ZTQyNDUxNTgzMjhhNjY3NzRj
|
15
|
+
YTFiNjVhZGE3Y2NmN2M4YWQ2NjFiNTk3YjRmZWM5OGRiNzE2OGI=
|
data/rrimm.gemspec
CHANGED
data/spec/feed_config_spec.rb
CHANGED
@@ -31,6 +31,13 @@ describe RRImm::FeedConfig do
|
|
31
31
|
f.massages << {select: Proc.new { |el| el % 2 == 0 }}
|
32
32
|
expect(f.massage(feed)).to eq([2,4])
|
33
33
|
end
|
34
|
+
it 'applies 2 massages in a row' do
|
35
|
+
feed = (1..10)
|
36
|
+
f = RRImm::FeedConfig.new 'a random feed'
|
37
|
+
f.massages << {select: Proc.new { |el| el % 2 == 0 }}
|
38
|
+
f.massages << {select: Proc.new { |el| el % 4 == 0 }}
|
39
|
+
expect(f.massage(feed)).to eq([4,8])
|
40
|
+
end
|
34
41
|
end
|
35
42
|
|
36
43
|
describe ".format" do
|
@@ -53,5 +60,10 @@ describe RRImm::FeedConfigExtensions do
|
|
53
60
|
f.select { |el| el % 2 == 0 }
|
54
61
|
expect(f.massage(feed)).to eq([2,4])
|
55
62
|
end
|
63
|
+
it 'returns the feed config to allow chaining' do
|
64
|
+
feed = (1..5)
|
65
|
+
f = RRImm::FeedConfig.new 'a random feed'
|
66
|
+
expect(f.select { |el| el % 2 == 0 }).to be_a(RRImm::FeedConfig)
|
67
|
+
end
|
56
68
|
end
|
57
69
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rrimm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Grégoire Seux
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: open_uri_redirections
|