decent_decoration 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +71 -77
- data/decent_decoration.gemspec +2 -2
- data/lib/decent_decoration/version.rb +1 -1
- data/spec/decoration_spec.rb +2 -2
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1aa71247d2bf5b7309474433f88627901e73bac
|
4
|
+
data.tar.gz: 1e7a9e7e8a7979b5e3e116be0ce054f21d9ecfa4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60fceb31d6bba64463616ed8b15143be80e88869a9312be031ca53245fdc68c71eed90e49479e40c1346cb58fc0e882b14e2b1c8ab134a3498a35206a3cb8221
|
7
|
+
data.tar.gz: 5be114ab13afe495ceefdafe28d81ae1815f7da371c333500528ad3d6683c5ab12c0b2dbf759fcc576fafa208049b81f6a0bab306f87d4d6259ee2b881a03280
|
data/CHANGELOG.md
ADDED
data/Gemfile.lock
CHANGED
@@ -1,41 +1,39 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
decent_decoration (0.0.
|
4
|
+
decent_decoration (0.0.4)
|
5
5
|
decent_exposure (> 0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
actionmailer (
|
11
|
-
actionpack (=
|
10
|
+
actionmailer (4.0.0)
|
11
|
+
actionpack (= 4.0.0)
|
12
12
|
mail (~> 2.5.3)
|
13
|
-
actionpack (
|
14
|
-
|
15
|
-
|
16
|
-
builder (~> 3.0.0)
|
13
|
+
actionpack (4.0.0)
|
14
|
+
activesupport (= 4.0.0)
|
15
|
+
builder (~> 3.1.0)
|
17
16
|
erubis (~> 2.7.0)
|
18
|
-
|
19
|
-
rack (~>
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
builder (3.0.4)
|
17
|
+
rack (~> 1.5.2)
|
18
|
+
rack-test (~> 0.6.2)
|
19
|
+
activemodel (4.0.0)
|
20
|
+
activesupport (= 4.0.0)
|
21
|
+
builder (~> 3.1.0)
|
22
|
+
activerecord (4.0.0)
|
23
|
+
activemodel (= 4.0.0)
|
24
|
+
activerecord-deprecated_finders (~> 1.0.2)
|
25
|
+
activesupport (= 4.0.0)
|
26
|
+
arel (~> 4.0.0)
|
27
|
+
activerecord-deprecated_finders (1.0.3)
|
28
|
+
activesupport (4.0.0)
|
29
|
+
i18n (~> 0.6, >= 0.6.4)
|
30
|
+
minitest (~> 4.2)
|
31
|
+
multi_json (~> 1.3)
|
32
|
+
thread_safe (~> 0.1)
|
33
|
+
tzinfo (~> 0.3.37)
|
34
|
+
arel (4.0.0)
|
35
|
+
atomic (1.1.13)
|
36
|
+
builder (3.1.4)
|
39
37
|
colorize (0.5.8)
|
40
38
|
coveralls (0.6.7)
|
41
39
|
colorize
|
@@ -43,79 +41,75 @@ GEM
|
|
43
41
|
rest-client
|
44
42
|
simplecov (>= 0.7)
|
45
43
|
thor
|
46
|
-
decent_exposure (2.
|
47
|
-
diff-lcs (1.2.
|
48
|
-
draper (1.1
|
44
|
+
decent_exposure (2.2.1)
|
45
|
+
diff-lcs (1.2.4)
|
46
|
+
draper (1.2.1)
|
49
47
|
actionpack (>= 3.0)
|
50
48
|
activesupport (>= 3.0)
|
51
49
|
request_store (~> 1.0.3)
|
52
50
|
erubis (2.7.0)
|
53
|
-
hike (1.2.
|
54
|
-
i18n (0.6.
|
55
|
-
|
56
|
-
json (1.7.7)
|
57
|
-
mail (2.5.3)
|
58
|
-
i18n (>= 0.4.0)
|
51
|
+
hike (1.2.3)
|
52
|
+
i18n (0.6.5)
|
53
|
+
mail (2.5.4)
|
59
54
|
mime-types (~> 1.16)
|
60
55
|
treetop (~> 1.4.8)
|
61
|
-
mime-types (1.
|
62
|
-
|
56
|
+
mime-types (1.25)
|
57
|
+
minitest (4.7.5)
|
58
|
+
multi_json (1.7.9)
|
63
59
|
polyglot (0.3.3)
|
64
|
-
rack (1.
|
65
|
-
rack-cache (1.2)
|
66
|
-
rack (>= 0.4)
|
67
|
-
rack-ssl (1.3.3)
|
68
|
-
rack
|
60
|
+
rack (1.5.2)
|
69
61
|
rack-test (0.6.2)
|
70
62
|
rack (>= 1.0)
|
71
|
-
rails (
|
72
|
-
actionmailer (=
|
73
|
-
actionpack (=
|
74
|
-
activerecord (=
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
railties (
|
80
|
-
actionpack (=
|
81
|
-
activesupport (=
|
82
|
-
rack-ssl (~> 1.3.2)
|
63
|
+
rails (4.0.0)
|
64
|
+
actionmailer (= 4.0.0)
|
65
|
+
actionpack (= 4.0.0)
|
66
|
+
activerecord (= 4.0.0)
|
67
|
+
activesupport (= 4.0.0)
|
68
|
+
bundler (>= 1.3.0, < 2.0)
|
69
|
+
railties (= 4.0.0)
|
70
|
+
sprockets-rails (~> 2.0.0)
|
71
|
+
railties (4.0.0)
|
72
|
+
actionpack (= 4.0.0)
|
73
|
+
activesupport (= 4.0.0)
|
83
74
|
rake (>= 0.8.7)
|
84
|
-
|
85
|
-
|
86
|
-
rake (10.0.4)
|
87
|
-
rdoc (3.12.2)
|
88
|
-
json (~> 1.4)
|
75
|
+
thor (>= 0.18.1, < 2.0)
|
76
|
+
rake (10.1.0)
|
89
77
|
request_store (1.0.5)
|
90
78
|
rest-client (1.6.7)
|
91
79
|
mime-types (>= 1.16)
|
92
|
-
rspec (2.
|
93
|
-
rspec-core (~> 2.
|
94
|
-
rspec-expectations (~> 2.
|
95
|
-
rspec-mocks (~> 2.
|
96
|
-
rspec-core (2.
|
97
|
-
rspec-expectations (2.
|
80
|
+
rspec (2.14.1)
|
81
|
+
rspec-core (~> 2.14.0)
|
82
|
+
rspec-expectations (~> 2.14.0)
|
83
|
+
rspec-mocks (~> 2.14.0)
|
84
|
+
rspec-core (2.14.5)
|
85
|
+
rspec-expectations (2.14.2)
|
98
86
|
diff-lcs (>= 1.1.3, < 2.0)
|
99
|
-
rspec-mocks (2.
|
100
|
-
rspec-rails (2.
|
87
|
+
rspec-mocks (2.14.3)
|
88
|
+
rspec-rails (2.14.0)
|
101
89
|
actionpack (>= 3.0)
|
102
90
|
activesupport (>= 3.0)
|
103
91
|
railties (>= 3.0)
|
104
|
-
rspec-core (~> 2.
|
105
|
-
rspec-expectations (~> 2.
|
106
|
-
rspec-mocks (~> 2.
|
92
|
+
rspec-core (~> 2.14.0)
|
93
|
+
rspec-expectations (~> 2.14.0)
|
94
|
+
rspec-mocks (~> 2.14.0)
|
107
95
|
simplecov (0.7.1)
|
108
96
|
multi_json (~> 1.0)
|
109
97
|
simplecov-html (~> 0.7.1)
|
110
98
|
simplecov-html (0.7.1)
|
111
|
-
sprockets (2.
|
99
|
+
sprockets (2.10.0)
|
112
100
|
hike (~> 1.2)
|
113
101
|
multi_json (~> 1.0)
|
114
102
|
rack (~> 1.0)
|
115
103
|
tilt (~> 1.1, != 1.3.0)
|
104
|
+
sprockets-rails (2.0.0)
|
105
|
+
actionpack (>= 3.0)
|
106
|
+
activesupport (>= 3.0)
|
107
|
+
sprockets (~> 2.8)
|
116
108
|
thor (0.18.1)
|
117
|
-
|
118
|
-
|
109
|
+
thread_safe (0.1.2)
|
110
|
+
atomic
|
111
|
+
tilt (1.4.1)
|
112
|
+
treetop (1.4.15)
|
119
113
|
polyglot
|
120
114
|
polyglot (>= 0.3.1)
|
121
115
|
tzinfo (0.3.37)
|
@@ -124,10 +118,10 @@ PLATFORMS
|
|
124
118
|
ruby
|
125
119
|
|
126
120
|
DEPENDENCIES
|
127
|
-
activesupport (
|
121
|
+
activesupport (>= 3.2)
|
128
122
|
coveralls
|
129
123
|
decent_decoration!
|
130
124
|
draper (>= 1.0.0)
|
131
|
-
rails (
|
125
|
+
rails (>= 3.2)
|
132
126
|
rspec (~> 2.13)
|
133
127
|
rspec-rails (~> 2.13)
|
data/decent_decoration.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |gem|
|
|
19
19
|
gem.add_runtime_dependency 'decent_exposure', '> 0'
|
20
20
|
gem.add_development_dependency 'rspec', '~> 2.13'
|
21
21
|
gem.add_development_dependency 'rspec-rails', '~> 2.13'
|
22
|
-
gem.add_development_dependency 'rails', '
|
23
|
-
gem.add_development_dependency 'activesupport', '
|
22
|
+
gem.add_development_dependency 'rails', '>= 3.2'
|
23
|
+
gem.add_development_dependency 'activesupport', '>= 3.2'
|
24
24
|
gem.add_development_dependency 'draper', '>= 1.0.0'
|
25
25
|
end
|
data/spec/decoration_spec.rb
CHANGED
@@ -32,7 +32,7 @@ describe DecentDecoration::Decoration do
|
|
32
32
|
describe "#decorate_method" do
|
33
33
|
describe "when name is plural" do
|
34
34
|
subject { klass.new(:conferences, decorator: decorator) }
|
35
|
-
let(:decorator) {
|
35
|
+
let(:decorator) { double }
|
36
36
|
|
37
37
|
it "should be :decorate_collection if decorator supports it" do
|
38
38
|
decorator.stub(:decorate_collection)
|
@@ -58,7 +58,7 @@ describe DecentDecoration::Decoration do
|
|
58
58
|
|
59
59
|
describe "when name is singular" do
|
60
60
|
subject { klass.new(:conference, decorator: decorator) }
|
61
|
-
let(:decorator) {
|
61
|
+
let(:decorator) { double }
|
62
62
|
|
63
63
|
it "should not be :decorate_collection even if decorator supports it" do
|
64
64
|
decorator.stub(:decorate_collection)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decent_decoration
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomasz Pewiński
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: decent_exposure
|
@@ -56,28 +56,28 @@ dependencies:
|
|
56
56
|
name: rails
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '3.2'
|
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: '3.2'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: activesupport
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - '>='
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '3.2'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - '>='
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '3.2'
|
83
83
|
- !ruby/object:Gem::Dependency
|
@@ -103,6 +103,7 @@ extra_rdoc_files: []
|
|
103
103
|
files:
|
104
104
|
- .gitignore
|
105
105
|
- .travis.yml
|
106
|
+
- CHANGELOG.md
|
106
107
|
- Gemfile
|
107
108
|
- Gemfile.lock
|
108
109
|
- LICENSE.txt
|
@@ -139,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
140
|
version: '0'
|
140
141
|
requirements: []
|
141
142
|
rubyforge_project:
|
142
|
-
rubygems_version: 2.0.
|
143
|
+
rubygems_version: 2.0.3
|
143
144
|
signing_key:
|
144
145
|
specification_version: 4
|
145
146
|
summary: Use decent_exposure with decorators (e.g. Draper)
|