expo 0.2.1 → 0.2.3

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.
Files changed (3) hide show
  1. data/lib/expo.rb +7 -1
  2. metadata +6 -4
  3. checksums.yaml +0 -15
data/lib/expo.rb CHANGED
@@ -17,7 +17,13 @@ class Expo
17
17
  @inner_calls = []
18
18
  end
19
19
 
20
- def expo(object=nil, context={})
20
+ def expo_collection(objects, context={})
21
+ objects.map.with_index do |object, index|
22
+ expo(object, context.merge({index: index}))
23
+ end
24
+ end
25
+
26
+ def expo(object, context={})
21
27
  @object = object
22
28
  @context = context
23
29
  if object.nil?
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: expo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.3
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Serguei Filimonov
@@ -19,25 +20,26 @@ files:
19
20
  - lib/expo.rb
20
21
  homepage: https://github.com/sergueif/expo
21
22
  licenses: []
22
- metadata: {}
23
23
  post_install_message:
24
24
  rdoc_options: []
25
25
  require_paths:
26
26
  - lib
27
27
  required_ruby_version: !ruby/object:Gem::Requirement
28
+ none: false
28
29
  requirements:
29
30
  - - ! '>='
30
31
  - !ruby/object:Gem::Version
31
32
  version: '0'
32
33
  required_rubygems_version: !ruby/object:Gem::Requirement
34
+ none: false
33
35
  requirements:
34
36
  - - ! '>='
35
37
  - !ruby/object:Gem::Version
36
38
  version: '0'
37
39
  requirements: []
38
40
  rubyforge_project:
39
- rubygems_version: 2.0.3
41
+ rubygems_version: 1.8.24
40
42
  signing_key:
41
- specification_version: 4
43
+ specification_version: 3
42
44
  summary: Expo of object presentations
43
45
  test_files: []
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YmI3NTU2NDk5ZDI0NWQzMTQ3ODc0NjQ0MmEzOTQ2MjdhYTQ1ZWZlMQ==
5
- data.tar.gz: !binary |-
6
- MTk0NjgzOWU3N2ZhYzk3OGIzYWY0NTg2ZTNkMjYzNjFjNDEyYzk5MQ==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- MzU2ZWIwNmU4YjAyNWFhYTRmMzIwOGViYzUwYzJjZGU2ZjhkNjkyYjkzMzJj
10
- ZDNlNjVhNTE5Y2FmYjZjMWYzMGEyMTBlMTc4MjFmOTA4YzhiNDM3NThlOThl
11
- ZWE3M2Q1MjYxMDAxYzIxOTI2ZTdmNzllMmY3N2IxNTNmMjYzYjQ=
12
- data.tar.gz: !binary |-
13
- M2QwNGNmNjExMTg3ZThmNjk0NDY1ZjEwODMwN2M3OWE5MDBiMGM2NjM2NzI3
14
- NjA1NDRmMjVkM2Y5MjNjYTRhMTU4ODgwZmNiMDhkMDI1N2JiODNkODQ0NTgw
15
- NWNkMDczOWNlNzE1ODQwOWFjMjBmYWU0NWI0NGUzMzhlZjA2MGU=