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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c1789a5f59487c598989f7f4e68c705a837ff9cd090cd34c88de8c83e4f1d60
4
- data.tar.gz: 4c57c7649417d0f0a0905dd3a2554e59f265782a9fef4d7430c527f7fabf3824
3
+ metadata.gz: fa87ea1d4b2c68b11ab4efd4d6d2d4022bdbd232c67cdfc9a8ba762e3a3b6383
4
+ data.tar.gz: fe0265face34e63701ff0bb7d3be09571c8a7b7d836c116dc3e04b666c5e11e2
5
5
  SHA512:
6
- metadata.gz: 581c5414eaa82616a81311d4318c5d369cc8a1efa227091a3102a4cb2e08a8a71333bd141ca7d499482de8d978bee25925e28670f2aa6d8b010fd49098237dbc
7
- data.tar.gz: 665924f8d6d2e1ead11d00b82ff75b6f4f6f5e3706ffbca293b27a4365000134315caaeda4e5057fdbe73d3fa9280703791c66b6b6a38c7f117caeac7bbbb120
6
+ metadata.gz: b7d39150d1afa32803c9bb36bbec9b7e1c86bafd97fc52c572b44e9a64fc381589ae15d9f7a75248957df3c22ae6a9f3f01db40040750c1108b8108c0f667d70
7
+ data.tar.gz: ce4fc8d9dcad86e5f4bfd49956dc1a9ad81a9a33d5caec9ef3846efd969d3a87494311424d46248ea6d260a6ebca248d62b95c8f2179fac875385d0f470b2940
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  begin
2
4
  require 'bundler/setup'
3
5
  rescue LoadError
data/lib/d4c.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'd4c/console_option_set'
2
4
  require 'd4c/rails'
3
5
  require 'd4c/railtie'
@@ -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 + '=', options[option.name.to_sym])
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
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module D4C
2
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
3
5
  end
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.0
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
@@ -1,4 +0,0 @@
1
- # desc "Explaining what the task does"
2
- # task :d4c do
3
- # # Task goes here
4
- # end