epi_decorator 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 52de8fe2b308d95f9dcd42595e9e9c1487f4ffc8
4
- data.tar.gz: 59cbdfb38923c9925ef9d07c82c6a415b7b3a884
3
+ metadata.gz: 6a515ab7d53dfb682be28582d6828df24c29a73e
4
+ data.tar.gz: a61612bdbac9020742555666642b17679ffedcc0
5
5
  SHA512:
6
- metadata.gz: da5c37f5d71f9e6c832b12d7b44d03c0c76f7e6f456218cef15c961d6488e5b4bfdd261c1334db1937751aaafcd307167e4a2651372f35546506d4d74cfa2763
7
- data.tar.gz: d7e207c5cca3461cec33faa6233d1b7221791509549f75398bc2d844f57e3407f200ccc0baf9bb736438cc8ae8c028a635a813e207c672c12b821ef3609b08b5
6
+ metadata.gz: 2f10fba57f60bdbf50044d93351869edff34340686dd318da78fdc108b274f7eae5d9fd15cb075e7e23eefc0970c5bdf445f0f3e571dd18fd173bcb1ba6b90e3
7
+ data.tar.gz: 9c741635eb5edfc708b96601427d0cff88dc8ca64b140f3aa3e15d38ef2f8a3ac951f35f360ecdbf6d7dfa41eadfaaa87ae3d754444d746e94b74bd7084397b4
@@ -47,8 +47,8 @@ module EpiDecorator
47
47
  new(object)
48
48
  end
49
49
 
50
- def self.decorate_collection(collection)
51
- collection_decorator_class.new(collection, with: self)
50
+ def self.decorate_collection(collection, with: self)
51
+ collection_decorator_class.new(collection, with: with)
52
52
  end
53
53
 
54
54
  def self.decorates_association(association, options = {})
@@ -19,7 +19,7 @@ module EpiDecorator
19
19
 
20
20
  module ClassMethods
21
21
  def decorate
22
- decorator_class.decorate_collection(self.all)
22
+ decorator_class.decorate_collection(self.all, with: nil)
23
23
  end
24
24
 
25
25
  def decorator_class
@@ -1,3 +1,3 @@
1
1
  module EpiDecorator
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epi_decorator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shuo Chen
@@ -9,90 +9,90 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-06-08 00:00:00.000000000 Z
12
+ date: 2016-06-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - '>='
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: '4.1'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - '>='
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: '4.1'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: request_store
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - '>='
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
34
  version: '0'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - '>='
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: bundler
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ~>
46
+ - - "~>"
47
47
  - !ruby/object:Gem::Version
48
48
  version: '1.11'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - ~>
53
+ - - "~>"
54
54
  - !ruby/object:Gem::Version
55
55
  version: '1.11'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: rake
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ~>
60
+ - - "~>"
61
61
  - !ruby/object:Gem::Version
62
62
  version: '10.0'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ~>
67
+ - - "~>"
68
68
  - !ruby/object:Gem::Version
69
69
  version: '10.0'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: rspec
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - ~>
74
+ - - "~>"
75
75
  - !ruby/object:Gem::Version
76
76
  version: '3.0'
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - ~>
81
+ - - "~>"
82
82
  - !ruby/object:Gem::Version
83
83
  version: '3.0'
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: sqlite3
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - '>='
88
+ - - ">="
89
89
  - !ruby/object:Gem::Version
90
90
  version: '0'
91
91
  type: :development
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - '>='
95
+ - - ">="
96
96
  - !ruby/object:Gem::Version
97
97
  version: '0'
98
98
  description: A simple decorator for Rails to replace Draper.
@@ -103,10 +103,10 @@ executables: []
103
103
  extensions: []
104
104
  extra_rdoc_files: []
105
105
  files:
106
- - .byebug_history
107
- - .gitignore
108
- - .rspec
109
- - .travis.yml
106
+ - ".byebug_history"
107
+ - ".gitignore"
108
+ - ".rspec"
109
+ - ".travis.yml"
110
110
  - CODE_OF_CONDUCT.md
111
111
  - Gemfile
112
112
  - LICENSE.txt
@@ -133,17 +133,17 @@ require_paths:
133
133
  - lib
134
134
  required_ruby_version: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  requirements:
141
- - - '>='
141
+ - - ">="
142
142
  - !ruby/object:Gem::Version
143
143
  version: '0'
144
144
  requirements: []
145
145
  rubyforge_project:
146
- rubygems_version: 2.2.2
146
+ rubygems_version: 2.4.8
147
147
  signing_key:
148
148
  specification_version: 4
149
149
  summary: A simple decorator for Rails to replace Draper.