d4c 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +2 -0
- data/lib/d4c.rb +2 -0
- data/lib/d4c/prepend_option_setter.rb +5 -1
- data/lib/d4c/version.rb +3 -1
- metadata +1 -2
- data/lib/tasks/d4c_tasks.rake +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa87ea1d4b2c68b11ab4efd4d6d2d4022bdbd232c67cdfc9a8ba762e3a3b6383
|
4
|
+
data.tar.gz: fe0265face34e63701ff0bb7d3be09571c8a7b7d836c116dc3e04b666c5e11e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7d39150d1afa32803c9bb36bbec9b7e1c86bafd97fc52c572b44e9a64fc381589ae15d9f7a75248957df3c22ae6a9f3f01db40040750c1108b8108c0f667d70
|
7
|
+
data.tar.gz: ce4fc8d9dcad86e5f4bfd49956dc1a9ad81a9a33d5caec9ef3846efd969d3a87494311424d46248ea6d260a6ebca248d62b95c8f2179fac875385d0f470b2940
|
data/Rakefile
CHANGED
data/lib/d4c.rb
CHANGED
@@ -8,10 +8,14 @@ module D4C
|
|
8
8
|
|
9
9
|
def initialize(app, options = {})
|
10
10
|
prepended_options.each do |option|
|
11
|
-
app.send(option.name
|
11
|
+
app.send(setter_method(option.name), options[option.name.to_sym])
|
12
12
|
end
|
13
13
|
|
14
14
|
super
|
15
15
|
end
|
16
|
+
|
17
|
+
def setter_method(name)
|
18
|
+
name.to_s + '='
|
19
|
+
end
|
16
20
|
end
|
17
21
|
end
|
data/lib/d4c/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: d4c
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- qwyng
|
@@ -85,7 +85,6 @@ files:
|
|
85
85
|
- lib/d4c/rails.rb
|
86
86
|
- lib/d4c/railtie.rb
|
87
87
|
- lib/d4c/version.rb
|
88
|
-
- lib/tasks/d4c_tasks.rake
|
89
88
|
homepage: https://github.com/QWYNG/d4c
|
90
89
|
licenses:
|
91
90
|
- MIT
|
data/lib/tasks/d4c_tasks.rake
DELETED