metanol 0.0.8 → 0.0.9

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
- SHA1:
3
- metadata.gz: 192b22e268ed2c08e3b83a989deba1c79035530b
4
- data.tar.gz: 779557ee8a0cc78ac1ccabca931e741cc1a833ef
2
+ SHA256:
3
+ metadata.gz: e5771b8a423b2a00649874c37703d23e4f1887bdacff02782d6114c00d25212e
4
+ data.tar.gz: edf84eae277f6304f323389f3fc52db66cec0c5c330c5c09a1591297ba180e01
5
5
  SHA512:
6
- metadata.gz: b5a924dcf8196ae2a6d12c860b7aa792b547d54b38618688ad4ed215bb0854a7116534b21c14acef8fed6f4692c166fcb094dc5b512cef1bdfac2e2a00828c4c
7
- data.tar.gz: 67cc4bab0f137f8dc6d99be1dedafbbd58fba91e8e64171ec09a0fe3caf341e287a6f95e0ef9339a81acca8188c44718123a5979c39c1e0a32caa664eb450162
6
+ metadata.gz: 77128d58842a5402013506b29993e9f29ad4ace21b1589b58df4d2b89b15e5c41a77eea1b2328f93ab0dde424c2e2909f95b4553a524da01658f79cbabdc1fa6
7
+ data.tar.gz: 8ead28875a8abe6785e80cb8d2ad1e43571e3f3e92c5141063b5c3db97aaeaabfdefe5ae7b0dda0aa28fa7be4b7efb7fe9eb85c994d27f6335a871e95d1a7136
data/.gitignore CHANGED
@@ -1,19 +1,28 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- .yardoc
6
- Gemfile.lock
7
- InstalledFiles
8
- _yardoc
9
- coverage
10
- doc/
11
- lib/bundler/man
12
- pkg
13
- rdoc
14
- spec/reports
15
- test/tmp
16
- test/version_tmp
17
- tmp
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+
13
+ # Ignore all logfiles and tempfiles.
14
+ /log/*
15
+ /tmp/*
18
16
  .idea/
19
- log/
17
+ !/log/.keep
18
+ !/tmp/.keep
19
+
20
+ .DS_Store
21
+ .byebug_history
22
+
23
+ # Ignore ruby version and gemset
24
+ .ruby-gemset
25
+ .ruby-version
26
+
27
+ # Ignore bin folder
28
+ /bin/
data/.overcommit.yml ADDED
@@ -0,0 +1,73 @@
1
+ gemfile: '.overcommit_gems'
2
+
3
+ CommitMsg:
4
+ ALL:
5
+ requires_files: false
6
+ quiet: false
7
+
8
+ EmptyMessage:
9
+ enabled: true
10
+ description: 'Checking for empty commit message'
11
+ quiet: true
12
+
13
+ SingleLineSubject:
14
+ enabled: true
15
+ description: 'Checking subject line'
16
+
17
+ TextWidth:
18
+ enabled: true
19
+ description: 'Checking commit subject and body width'
20
+ max_subject_width: 60
21
+ max_body_width: 72
22
+
23
+ TrailingPeriod:
24
+ enabled: true
25
+ description: 'Checking for trailing periods in commit subject'
26
+
27
+ PreCommit:
28
+ ALL:
29
+ problem_on_unmodified_line: report
30
+ requires_files: true
31
+ required: true
32
+ quiet: false
33
+
34
+ AuthorEmail:
35
+ enabled: true
36
+ description: 'Checking author email'
37
+ requires_files: false
38
+ pattern: '^[^@]+@.*$'
39
+
40
+ AuthorName:
41
+ enabled: true
42
+ description: 'Checking author name'
43
+ requires_files: false
44
+
45
+ BrokenSymlinks:
46
+ enabled: false # this was enabled by default
47
+ description: 'Checking for broken symlinks'
48
+
49
+ CaseConflicts:
50
+ enabled: true
51
+ description: 'Checking for case-insensitivity conflicts'
52
+
53
+ MergeConflicts:
54
+ enabled: true
55
+ description: 'Checking for merge conflicts'
56
+ required_executable: 'grep'
57
+ flags: ['-IHn', "^<<<<<<<[ \t]"]
58
+
59
+ RuboCop:
60
+ enabled: true
61
+ required: true
62
+ problem_on_unmodified_line: ignore
63
+ description: 'Analyzing ruby code with RuboCop'
64
+ required_executable: 'rubocop'
65
+ flags: ['--format=emacs', '--force-exclusion', '--display-cop-names', '--require=rubocop-rspec', '--require=rubocop-rails']
66
+ command: ['bundle', 'exec', 'rubocop']
67
+ install_command: 'gem install rubocop'
68
+ include:
69
+ - '**/*.rake'
70
+ - '**/*.rb'
71
+ - '**/*.ru'
72
+ - '**/Gemfile'
73
+ - '**/.overcommit_gems'
data/.overcommit_gems ADDED
@@ -0,0 +1,8 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'overcommit', '0.58.0'
4
+ gem 'rubocop', '1.21.0'
5
+ gem 'rubocop-performance', '1.11.5'
6
+ gem 'rubocop-rails', '2.12.2'
7
+ gem 'rubocop-rspec', '2.4.0'
8
+ gem 'rubocop-faker', '1.1.0'
@@ -0,0 +1,72 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ activesupport (6.1.4.1)
5
+ concurrent-ruby (~> 1.0, >= 1.0.2)
6
+ i18n (>= 1.6, < 2)
7
+ minitest (>= 5.1)
8
+ tzinfo (~> 2.0)
9
+ zeitwerk (~> 2.3)
10
+ ast (2.4.2)
11
+ childprocess (4.1.0)
12
+ concurrent-ruby (1.1.9)
13
+ faker (2.19.0)
14
+ i18n (>= 1.6, < 2)
15
+ i18n (1.8.10)
16
+ concurrent-ruby (~> 1.0)
17
+ iniparse (1.5.0)
18
+ minitest (5.14.4)
19
+ overcommit (0.58.0)
20
+ childprocess (>= 0.6.3, < 5)
21
+ iniparse (~> 1.4)
22
+ rexml (~> 3.2)
23
+ parallel (1.21.0)
24
+ parser (3.0.2.0)
25
+ ast (~> 2.4.1)
26
+ rack (2.2.3)
27
+ rainbow (3.0.0)
28
+ regexp_parser (2.1.1)
29
+ rexml (3.2.5)
30
+ rubocop (1.21.0)
31
+ parallel (~> 1.10)
32
+ parser (>= 3.0.0.0)
33
+ rainbow (>= 2.2.2, < 4.0)
34
+ regexp_parser (>= 1.8, < 3.0)
35
+ rexml
36
+ rubocop-ast (>= 1.9.1, < 2.0)
37
+ ruby-progressbar (~> 1.7)
38
+ unicode-display_width (>= 1.4.0, < 3.0)
39
+ rubocop-ast (1.11.0)
40
+ parser (>= 3.0.1.1)
41
+ rubocop-faker (1.1.0)
42
+ faker (>= 2.12.0)
43
+ rubocop (>= 0.82.0)
44
+ rubocop-performance (1.11.5)
45
+ rubocop (>= 1.7.0, < 2.0)
46
+ rubocop-ast (>= 0.4.0)
47
+ rubocop-rails (2.12.2)
48
+ activesupport (>= 4.2.0)
49
+ rack (>= 1.1)
50
+ rubocop (>= 1.7.0, < 2.0)
51
+ rubocop-rspec (2.4.0)
52
+ rubocop (~> 1.0)
53
+ rubocop-ast (>= 1.1.0)
54
+ ruby-progressbar (1.11.0)
55
+ tzinfo (2.0.4)
56
+ concurrent-ruby (~> 1.0)
57
+ unicode-display_width (2.1.0)
58
+ zeitwerk (2.4.2)
59
+
60
+ PLATFORMS
61
+ ruby
62
+
63
+ DEPENDENCIES
64
+ overcommit (= 0.58.0)
65
+ rubocop (= 1.21.0)
66
+ rubocop-faker (= 1.1.0)
67
+ rubocop-performance (= 1.11.5)
68
+ rubocop-rails (= 2.12.2)
69
+ rubocop-rspec (= 2.4.0)
70
+
71
+ BUNDLED WITH
72
+ 2.1.4
data/.rspec CHANGED
@@ -1 +1 @@
1
- --color
1
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,139 @@
1
+ inherit_from: .rubocop_todo.yml
2
+ require:
3
+ - rubocop-performance
4
+ - rubocop-rails
5
+ - rubocop-rspec
6
+ - rubocop-faker
7
+
8
+ # Following Cops were enabled:
9
+
10
+ Style/CollectionMethods:
11
+ Description: 'Preferred collection methods.'
12
+ StyleGuide: '#map-find-select-reduce-size'
13
+ Enabled: true
14
+
15
+ Layout/FirstArrayElementLineBreak:
16
+ Description: >-
17
+ Checks for a line break before the first element in a
18
+ multi-line array.
19
+ Enabled: true
20
+
21
+ Layout/FirstHashElementLineBreak:
22
+ Description: >-
23
+ Checks for a line break before the first element in a
24
+ multi-line hash.
25
+ Enabled: true
26
+
27
+ Style/ImplicitRuntimeError:
28
+ Description: >-
29
+ Use `raise` or `fail` with an explicit exception class and
30
+ message, rather than just a message.
31
+ Enabled: true
32
+
33
+ Style/MethodCalledOnDoEndBlock:
34
+ Description: 'Avoid chaining a method call on a do...end block.'
35
+ StyleGuide: '#single-line-blocks'
36
+ Enabled: true
37
+
38
+ Style/Send:
39
+ Description: 'Prefer `Object#__send__` or `Object#public_send` to `send`, as `send` may overlap with existing methods.'
40
+ StyleGuide: '#prefer-public-send'
41
+ Enabled: true
42
+
43
+ Style/BlockDelimiters:
44
+ IgnoredMethods:
45
+ - lambda
46
+ - proc
47
+
48
+ Rails/UnknownEnv:
49
+ Environments:
50
+ - production
51
+ - development
52
+ - test
53
+ - dev
54
+ - stage
55
+
56
+ Bundler/DuplicatedGem:
57
+ Enabled: true
58
+ Include:
59
+ - '**/Gemfile'
60
+ - '**/gems.rb'
61
+ - '**/.overcommit_gems'
62
+
63
+ Metrics/BlockLength:
64
+ Description: 'Avoid long blocks with many lines.'
65
+ Enabled: true
66
+ Exclude:
67
+ - 'Rakefile'
68
+ - '**/*.rake'
69
+ - 'spec/**/*.rb'
70
+ - 'config/routes.rb'
71
+ - 'config/routes/*.rb'
72
+ - 'config/environments/*.rb'
73
+ - 'app/api_docs/**/*.rb'
74
+
75
+ # Following Cops were disabled:
76
+
77
+ Style/Encoding:
78
+ Description: 'Use UTF-8 as the source file encoding.'
79
+ Enabled: false
80
+
81
+ Style/Documentation:
82
+ Description: 'Document classes and non-namespace modules.'
83
+ Enabled: false
84
+
85
+ Style/RescueModifier:
86
+ Description: 'Avoid using rescue in its modifier form.'
87
+ Enabled: false
88
+
89
+ Style/EmptyCaseCondition:
90
+ Description: 'Avoid empty condition in case statements.'
91
+ Enabled: false
92
+
93
+ # Rails cops
94
+
95
+ Rails:
96
+ Enabled: true
97
+
98
+ Rails/SkipsModelValidations:
99
+ Enabled: false
100
+
101
+ Rails/NotNullColumn:
102
+ Enabled: false
103
+
104
+ Rails/RenderInline:
105
+ Description: Prefer using a template over inline rendering.
106
+ Enabled: false
107
+
108
+ # RSpec cops
109
+
110
+ RSpec/ExampleLength:
111
+ Max: 15
112
+
113
+ RSpec/FilePath:
114
+ Description: 'Checks that spec file paths are consistent with the test subject.'
115
+ Enabled: true
116
+ IgnoreMethods: true
117
+ SpecSuffixOnly: true
118
+
119
+ RSpec/MultipleExpectations:
120
+ Description: 'Checks if examples contain too many `expect` calls.'
121
+ Enabled: false
122
+
123
+ RSpec/VerifiedDoubles:
124
+ Description: 'Prefer using verifying doubles over normal doubles.'
125
+ Enabled: false
126
+
127
+ RSpec/NestedGroups:
128
+ Max: 4
129
+
130
+ # Global configuration:
131
+
132
+ AllCops:
133
+ NewCops: enable
134
+ Exclude:
135
+ - 'db/schema.rb'
136
+ - 'bin/**/*'
137
+ - 'config/deploy.rb'
138
+ - 'config/puma.rb'
139
+ TargetRubyVersion: 2.6.3
data/.rubocop_todo.yml ADDED
File without changes
data/Gemfile CHANGED
@@ -1,11 +1,8 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
- # Specify your gem's dependencies in metanol.gemspec
4
- gemspec
5
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
5
6
 
6
- group :test do
7
- gem 'rspec', '~> 2.14.0', require: nil
8
- gem 'rspec-rails', '~> 2.14.0', require: nil
9
- gem 'sqlite3', '>= 0'
10
- gem 'webrat', '>= 0'
11
- end
7
+ # Specify your gem's dependencies in asap-tools.gemspec
8
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,194 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ metanol (0.0.9)
5
+ rails (>= 6.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actioncable (6.1.4.1)
11
+ actionpack (= 6.1.4.1)
12
+ activesupport (= 6.1.4.1)
13
+ nio4r (~> 2.0)
14
+ websocket-driver (>= 0.6.1)
15
+ actionmailbox (6.1.4.1)
16
+ actionpack (= 6.1.4.1)
17
+ activejob (= 6.1.4.1)
18
+ activerecord (= 6.1.4.1)
19
+ activestorage (= 6.1.4.1)
20
+ activesupport (= 6.1.4.1)
21
+ mail (>= 2.7.1)
22
+ actionmailer (6.1.4.1)
23
+ actionpack (= 6.1.4.1)
24
+ actionview (= 6.1.4.1)
25
+ activejob (= 6.1.4.1)
26
+ activesupport (= 6.1.4.1)
27
+ mail (~> 2.5, >= 2.5.4)
28
+ rails-dom-testing (~> 2.0)
29
+ actionpack (6.1.4.1)
30
+ actionview (= 6.1.4.1)
31
+ activesupport (= 6.1.4.1)
32
+ rack (~> 2.0, >= 2.0.9)
33
+ rack-test (>= 0.6.3)
34
+ rails-dom-testing (~> 2.0)
35
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
36
+ actiontext (6.1.4.1)
37
+ actionpack (= 6.1.4.1)
38
+ activerecord (= 6.1.4.1)
39
+ activestorage (= 6.1.4.1)
40
+ activesupport (= 6.1.4.1)
41
+ nokogiri (>= 1.8.5)
42
+ actionview (6.1.4.1)
43
+ activesupport (= 6.1.4.1)
44
+ builder (~> 3.1)
45
+ erubi (~> 1.4)
46
+ rails-dom-testing (~> 2.0)
47
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
48
+ activejob (6.1.4.1)
49
+ activesupport (= 6.1.4.1)
50
+ globalid (>= 0.3.6)
51
+ activemodel (6.1.4.1)
52
+ activesupport (= 6.1.4.1)
53
+ activerecord (6.1.4.1)
54
+ activemodel (= 6.1.4.1)
55
+ activesupport (= 6.1.4.1)
56
+ activestorage (6.1.4.1)
57
+ actionpack (= 6.1.4.1)
58
+ activejob (= 6.1.4.1)
59
+ activerecord (= 6.1.4.1)
60
+ activesupport (= 6.1.4.1)
61
+ marcel (~> 1.0.0)
62
+ mini_mime (>= 1.1.0)
63
+ activesupport (6.1.4.1)
64
+ concurrent-ruby (~> 1.0, >= 1.0.2)
65
+ i18n (>= 1.6, < 2)
66
+ minitest (>= 5.1)
67
+ tzinfo (~> 2.0)
68
+ zeitwerk (~> 2.3)
69
+ addressable (2.8.0)
70
+ public_suffix (>= 2.0.2, < 5.0)
71
+ builder (3.2.4)
72
+ byebug (11.1.3)
73
+ capybara (3.35.3)
74
+ addressable
75
+ mini_mime (>= 0.1.3)
76
+ nokogiri (~> 1.8)
77
+ rack (>= 1.6.0)
78
+ rack-test (>= 0.6.3)
79
+ regexp_parser (>= 1.5, < 3.0)
80
+ xpath (~> 3.2)
81
+ coderay (1.1.3)
82
+ concurrent-ruby (1.1.9)
83
+ crass (1.0.6)
84
+ diff-lcs (1.4.4)
85
+ erubi (1.10.0)
86
+ globalid (0.5.2)
87
+ activesupport (>= 5.0)
88
+ i18n (1.8.10)
89
+ concurrent-ruby (~> 1.0)
90
+ loofah (2.12.0)
91
+ crass (~> 1.0.2)
92
+ nokogiri (>= 1.5.9)
93
+ mail (2.7.1)
94
+ mini_mime (>= 0.1.1)
95
+ marcel (1.0.2)
96
+ method_source (1.0.0)
97
+ mini_mime (1.1.1)
98
+ mini_portile2 (2.6.1)
99
+ minitest (5.14.4)
100
+ nio4r (2.5.8)
101
+ nokogiri (1.12.5)
102
+ mini_portile2 (~> 2.6.1)
103
+ racc (~> 1.4)
104
+ pry (0.13.1)
105
+ coderay (~> 1.1)
106
+ method_source (~> 1.0)
107
+ pry-byebug (3.9.0)
108
+ byebug (~> 11.0)
109
+ pry (~> 0.13.0)
110
+ public_suffix (4.0.6)
111
+ racc (1.5.2)
112
+ rack (2.2.3)
113
+ rack-test (1.1.0)
114
+ rack (>= 1.0, < 3)
115
+ rails (6.1.4.1)
116
+ actioncable (= 6.1.4.1)
117
+ actionmailbox (= 6.1.4.1)
118
+ actionmailer (= 6.1.4.1)
119
+ actionpack (= 6.1.4.1)
120
+ actiontext (= 6.1.4.1)
121
+ actionview (= 6.1.4.1)
122
+ activejob (= 6.1.4.1)
123
+ activemodel (= 6.1.4.1)
124
+ activerecord (= 6.1.4.1)
125
+ activestorage (= 6.1.4.1)
126
+ activesupport (= 6.1.4.1)
127
+ bundler (>= 1.15.0)
128
+ railties (= 6.1.4.1)
129
+ sprockets-rails (>= 2.0.0)
130
+ rails-dom-testing (2.0.3)
131
+ activesupport (>= 4.2.0)
132
+ nokogiri (>= 1.6)
133
+ rails-html-sanitizer (1.4.2)
134
+ loofah (~> 2.3)
135
+ railties (6.1.4.1)
136
+ actionpack (= 6.1.4.1)
137
+ activesupport (= 6.1.4.1)
138
+ method_source
139
+ rake (>= 0.13)
140
+ thor (~> 1.0)
141
+ rake (13.0.6)
142
+ regexp_parser (2.1.1)
143
+ rspec (3.10.0)
144
+ rspec-core (~> 3.10.0)
145
+ rspec-expectations (~> 3.10.0)
146
+ rspec-mocks (~> 3.10.0)
147
+ rspec-core (3.10.1)
148
+ rspec-support (~> 3.10.0)
149
+ rspec-expectations (3.10.1)
150
+ diff-lcs (>= 1.2.0, < 2.0)
151
+ rspec-support (~> 3.10.0)
152
+ rspec-mocks (3.10.2)
153
+ diff-lcs (>= 1.2.0, < 2.0)
154
+ rspec-support (~> 3.10.0)
155
+ rspec-rails (5.0.2)
156
+ actionpack (>= 5.2)
157
+ activesupport (>= 5.2)
158
+ railties (>= 5.2)
159
+ rspec-core (~> 3.10)
160
+ rspec-expectations (~> 3.10)
161
+ rspec-mocks (~> 3.10)
162
+ rspec-support (~> 3.10)
163
+ rspec-support (3.10.2)
164
+ sprockets (4.0.2)
165
+ concurrent-ruby (~> 1.0)
166
+ rack (> 1, < 3)
167
+ sprockets-rails (3.2.2)
168
+ actionpack (>= 4.0)
169
+ activesupport (>= 4.0)
170
+ sprockets (>= 3.0.0)
171
+ sqlite3 (1.4.2)
172
+ thor (1.1.0)
173
+ tzinfo (2.0.4)
174
+ concurrent-ruby (~> 1.0)
175
+ websocket-driver (0.7.5)
176
+ websocket-extensions (>= 0.1.0)
177
+ websocket-extensions (0.1.5)
178
+ xpath (3.2.0)
179
+ nokogiri (~> 1.8)
180
+ zeitwerk (2.4.2)
181
+
182
+ PLATFORMS
183
+ ruby
184
+
185
+ DEPENDENCIES
186
+ capybara
187
+ metanol!
188
+ pry-byebug
189
+ rspec (>= 3.0)
190
+ rspec-rails (>= 5.0)
191
+ sqlite3
192
+
193
+ BUNDLED WITH
194
+ 2.1.4
data/README.md CHANGED
@@ -6,7 +6,7 @@ This is a meta tags plugin which helps to manage meta tags in your Rails applica
6
6
 
7
7
  Add this line to your application's Gemfile:
8
8
 
9
- gem 'metanol', '~> 0.0.5'
9
+ gem 'metanol', '~> 0.0.8'
10
10
 
11
11
  And then execute:
12
12
 
@@ -93,3 +93,8 @@ Also the plugin provides some helper's methods for getting a meta's value: `get_
93
93
  3. Commit your changes (`git commit -am 'Add some feature'`)
94
94
  4. Push to the branch (`git push origin my-new-feature`)
95
95
  5. Create new Pull Request
96
+
97
+ ### Do not forget to install OverCommit before making a PR
98
+
99
+ 1. Run `bundle install --gemfile=.overcommit_gems`
100
+ 2. Run `overcommit -i`
data/Rakefile CHANGED
@@ -1 +1 @@
1
- require "bundler/gem_tasks"
1
+ require 'bundler/gem_tasks'
@@ -1,4 +1,4 @@
1
1
  module Metanol
2
2
  class Engine < ::Rails::Engine
3
3
  end
4
- end
4
+ end
@@ -1,13 +1,12 @@
1
1
  require 'active_support/dependencies'
2
2
 
3
3
  module Metanol
4
-
5
4
  # Engine's controller which has all methods for storing and processing meta tag's data
6
5
  module EngineController
7
6
  extend ActiveSupport::Concern
8
7
 
9
8
  included do
10
- before_filter :clear_metanols
9
+ before_action :clear_metanols
11
10
  end
12
11
 
13
12
  module ClassMethods
@@ -43,7 +42,7 @@ module Metanol
43
42
  end
44
43
  end
45
44
 
46
- def add_meta_by_type(repo, type, name, value, filters=[])
45
+ def add_meta_by_type(repo, type, name, value, filters = [])
47
46
  meta_class = SUPPORT_GROUPS[type]
48
47
  key = get_meta_key(type, name)
49
48
  unless repo.key? key
@@ -85,7 +84,5 @@ module Metanol
85
84
  def clear_metanols
86
85
  @action_metanols = {}
87
86
  end
88
-
89
87
  end
90
-
91
- end
88
+ end
@@ -1,6 +1,5 @@
1
1
  module Metanol
2
2
  module Helpers
3
-
4
3
  # Render all meta tags
5
4
  def metanol_tags
6
5
  result = ''
@@ -20,10 +19,11 @@ module Metanol
20
19
  SUPPORT_GROUPS.keys.each do |method|
21
20
  get_method_name = "get_#{method == :main ? '' : "#{method}_"}meta"
22
21
  define_method get_method_name do |name|
23
- self.controller.send(get_method_name, name)
22
+ controller.__send__(get_method_name, name)
24
23
  end
25
24
 
26
25
  next if method == :og
26
+
27
27
  method_name = "metanol_#{method}_tags"
28
28
  class_type = SUPPORT_GROUPS[method]
29
29
  define_method method_name do
@@ -40,13 +40,13 @@ module Metanol
40
40
 
41
41
  def metanol_render_tags(type)
42
42
  result = ''
43
- metanols = self.controller.class.common_metanols.merge(self.controller.action_metanols)
43
+ metanols = controller.class.common_metanols.merge(controller.action_metanols)
44
44
  metanols.each_value do |value|
45
45
  next unless value.is_a? type
46
+
46
47
  result << value.render
47
48
  end
48
49
  result
49
50
  end
50
-
51
51
  end
52
- end
52
+ end