active_decorator 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +7 -0
- data/.github/workflows/main.yml +131 -0
- data/CHANGELOG.md +19 -0
- data/Gemfile +34 -0
- data/README.md +4 -4
- data/Rakefile +1 -1
- data/lib/active_decorator/decorator.rb +36 -36
- data/lib/active_decorator/helpers.rb +6 -2
- data/lib/active_decorator/version.rb +1 -1
- data/lib/active_decorator/view_context.rb +30 -5
- data/lib/generators/rspec/templates/decorator_spec.rb +1 -1
- metadata +5 -14
- data/.travis.yml +0 -100
- data/gemfiles/Gemfile-rails.4.2.x +0 -8
- data/gemfiles/Gemfile-rails.5.0.x +0 -7
- data/gemfiles/Gemfile-rails.5.1.x +0 -6
- data/gemfiles/Gemfile-rails.5.2.x +0 -7
- data/gemfiles/Gemfile-rails.6.0.x +0 -7
- data/gemfiles/Gemfile-rails.6.1.x +0 -8
- data/gemfiles/Gemfile-rails.edge +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24bc5e2bff457e42cf67f9382718c8317b4b208ded7f64d008d4314bd3e58dd0
|
4
|
+
data.tar.gz: c06a655a2d778a46a5b57559b7dc9091960130846b9f4a28f526715a5b7c652f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7535ee72c44901d579416091437f2ffe78ded2dc535a1e442412f7257004d6bb42f2eff340e31fb563a3fd3bdfa6002dc85d81c0ef4dfd32cefddd4d7b046e63
|
7
|
+
data.tar.gz: c6e02769eff8fcd3e53d0e1456554639038d39377d970aba27310cf1c971c0913785c2f2b1a0e4a9e0de3fe3e34d0d4540ff661b44ead9a242321e30e0195dde
|
@@ -0,0 +1,131 @@
|
|
1
|
+
name: build
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
pull_request:
|
6
|
+
schedule:
|
7
|
+
- cron: '45 23 * * *'
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
build:
|
11
|
+
name: Ruby ${{ matrix.ruby_version }} / Rails ${{ matrix.rails_version }}${{ matrix.api == '1' && ' / API' || '' }}
|
12
|
+
strategy:
|
13
|
+
matrix:
|
14
|
+
ruby_version: [ruby-head, '3.4', '3.3', '3.2', '3.1']
|
15
|
+
rails_version: [edge, '8.0', '7.2', '7.1', '7.0', '6.1']
|
16
|
+
api: ['0', '1']
|
17
|
+
|
18
|
+
include:
|
19
|
+
- ruby_version: '3.0'
|
20
|
+
rails_version: '7.1'
|
21
|
+
- ruby_version: '3.0'
|
22
|
+
rails_version: '7.1'
|
23
|
+
api: '1'
|
24
|
+
- ruby_version: '3.0'
|
25
|
+
rails_version: '7.0'
|
26
|
+
- ruby_version: '3.0'
|
27
|
+
rails_version: '7.0'
|
28
|
+
api: '1'
|
29
|
+
- ruby_version: '3.0'
|
30
|
+
rails_version: '6.1'
|
31
|
+
- ruby_version: '3.0'
|
32
|
+
rails_version: '6.1'
|
33
|
+
api: '1'
|
34
|
+
|
35
|
+
- ruby_version: '2.7'
|
36
|
+
rails_version: '7.1'
|
37
|
+
- ruby_version: '2.7'
|
38
|
+
rails_version: '7.1'
|
39
|
+
api: '1'
|
40
|
+
- ruby_version: '2.7'
|
41
|
+
rails_version: '7.0'
|
42
|
+
- ruby_version: '2.7'
|
43
|
+
rails_version: '7.0'
|
44
|
+
api: '1'
|
45
|
+
- ruby_version: '2.7'
|
46
|
+
rails_version: '6.1'
|
47
|
+
- ruby_version: '2.7'
|
48
|
+
rails_version: '6.1'
|
49
|
+
api: '1'
|
50
|
+
- ruby_version: '2.7'
|
51
|
+
rails_version: '6.0'
|
52
|
+
- ruby_version: '2.7'
|
53
|
+
rails_version: '6.0'
|
54
|
+
api: '1'
|
55
|
+
|
56
|
+
- ruby_version: '2.6'
|
57
|
+
rails_version: '6.1'
|
58
|
+
- ruby_version: '2.6'
|
59
|
+
rails_version: '6.1'
|
60
|
+
api: '1'
|
61
|
+
- ruby_version: '2.6'
|
62
|
+
rails_version: '6.0'
|
63
|
+
- ruby_version: '2.6'
|
64
|
+
rails_version: '6.0'
|
65
|
+
api: '1'
|
66
|
+
- ruby_version: '2.6'
|
67
|
+
rails_version: '5.2'
|
68
|
+
- ruby_version: '2.6'
|
69
|
+
rails_version: '5.2'
|
70
|
+
api: '1'
|
71
|
+
- ruby_version: '2.6'
|
72
|
+
rails_version: '5.1'
|
73
|
+
- ruby_version: '2.6'
|
74
|
+
rails_version: '5.1'
|
75
|
+
api: '1'
|
76
|
+
- ruby_version: '2.6'
|
77
|
+
rails_version: '5.0'
|
78
|
+
- ruby_version: '2.6'
|
79
|
+
rails_version: '5.0'
|
80
|
+
api: '1'
|
81
|
+
|
82
|
+
- ruby_version: '2.5'
|
83
|
+
rails_version: '5.2'
|
84
|
+
|
85
|
+
- ruby_version: '2.4'
|
86
|
+
rails_version: '5.2'
|
87
|
+
|
88
|
+
- ruby_version: '2.3'
|
89
|
+
rails_version: '5.2'
|
90
|
+
- ruby_version: '2.3'
|
91
|
+
rails_version: '4.2'
|
92
|
+
bundler_version: '1'
|
93
|
+
|
94
|
+
- ruby_version: '2.2'
|
95
|
+
rails_version: '5.2'
|
96
|
+
|
97
|
+
- ruby_version: '2.1'
|
98
|
+
rails_version: '4.2'
|
99
|
+
bundler_version: '1'
|
100
|
+
|
101
|
+
exclude:
|
102
|
+
- ruby_version: '3.1'
|
103
|
+
rails_version: edge
|
104
|
+
- ruby_version: '3.1'
|
105
|
+
rails_version: edge
|
106
|
+
api: '1'
|
107
|
+
- ruby_version: '3.1'
|
108
|
+
rails_version: '8.0'
|
109
|
+
- ruby_version: '3.1'
|
110
|
+
rails_version: '8.0'
|
111
|
+
api: '1'
|
112
|
+
|
113
|
+
env:
|
114
|
+
RAILS_VERSION: ${{ matrix.rails_version }}
|
115
|
+
API: ${{ matrix.api }}
|
116
|
+
|
117
|
+
runs-on: ubuntu-24.04
|
118
|
+
|
119
|
+
steps:
|
120
|
+
- uses: actions/checkout@v5
|
121
|
+
|
122
|
+
- uses: ruby/setup-ruby@v1
|
123
|
+
with:
|
124
|
+
ruby-version: ${{ matrix.ruby_version }}
|
125
|
+
rubygems: ${{ (matrix.ruby_version < '2.7' && 'default') || (matrix.ruby_version < '3' && '3.4.22') || 'latest' }}
|
126
|
+
bundler: ${{ matrix.bundler_version }}
|
127
|
+
bundler-cache: true
|
128
|
+
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
129
|
+
|
130
|
+
- run: bundle exec rake
|
131
|
+
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
data/CHANGELOG.md
CHANGED
@@ -1,23 +1,42 @@
|
|
1
|
+
## 1.5.0
|
2
|
+
|
3
|
+
* Don't drop keyword arguments when delegating helper methods via method_missing
|
4
|
+
|
5
|
+
* Use ActiveSupport::CurrentAttributes (if available) for storing ViewContext instead of `Thread.current` for better thread safety
|
6
|
+
|
7
|
+
|
8
|
+
## 1.4.1
|
9
|
+
|
10
|
+
* Support Ruby 3.2 by `File.exists?` => `File.exist?` in generator [@kyoshidajp]
|
11
|
+
|
12
|
+
* A little bit of internal code cleanup
|
13
|
+
|
14
|
+
|
1
15
|
## 1.4.0
|
2
16
|
|
3
17
|
* Decorate non-nil objects where `nil?` returns true, namely, ActionText::RichText body [@jamesbrooks]
|
4
18
|
|
19
|
+
|
5
20
|
## 1.3.4
|
6
21
|
|
7
22
|
* Support Rails 6.1 [@y-yagi]
|
8
23
|
|
24
|
+
|
9
25
|
## 1.3.3
|
10
26
|
|
11
27
|
* Fixed Ruby 2.7 keyword arguments warning [@pocke]
|
12
28
|
|
29
|
+
|
13
30
|
## 1.3.2
|
14
31
|
|
15
32
|
* Fixed NameError on ActionController::API controllers without jbuilder enhancement [@kamillle]
|
16
33
|
|
34
|
+
|
17
35
|
## 1.3.1
|
18
36
|
|
19
37
|
* Switched back from Ruby's `const_get` to Active Support `constantize` for fetching decorator modules, due to inability to properly detect namespaced decorator [@sinsoku]
|
20
38
|
|
39
|
+
|
21
40
|
## 1.3.0
|
22
41
|
|
23
42
|
* Switched from Active Support `constantize` to Ruby's `const_get` when fetching decorator modules
|
data/Gemfile
CHANGED
@@ -3,3 +3,37 @@
|
|
3
3
|
source 'https://rubygems.org'
|
4
4
|
|
5
5
|
gemspec
|
6
|
+
|
7
|
+
if ENV['RAILS_VERSION'] == 'edge'
|
8
|
+
gem 'rails', git: 'https://github.com/rails/rails.git'
|
9
|
+
gem 'rackup'
|
10
|
+
elsif ENV['RAILS_VERSION']
|
11
|
+
gem 'rails', "~> #{ENV['RAILS_VERSION']}.0"
|
12
|
+
if ENV['RAILS_VERSION'] <= '5.0'
|
13
|
+
gem 'sqlite3', '< 1.4'
|
14
|
+
elsif (ENV['RAILS_VERSION'] <= '8') || (RUBY_VERSION < '3')
|
15
|
+
gem 'sqlite3', '< 2'
|
16
|
+
end
|
17
|
+
gem 'rackup' if ENV['RAILS_VERSION'] > '7.1'
|
18
|
+
else
|
19
|
+
gem 'rails'
|
20
|
+
end
|
21
|
+
|
22
|
+
if RUBY_VERSION < '2.7'
|
23
|
+
gem 'puma', '< 6'
|
24
|
+
else
|
25
|
+
gem 'puma'
|
26
|
+
end
|
27
|
+
|
28
|
+
gem 'nokogiri', RUBY_VERSION < '2.1' ? '~> 1.6.0' : '>= 1.7'
|
29
|
+
gem 'loofah', RUBY_VERSION < '2.5' ? '< 2.21.0' : '>= 0'
|
30
|
+
gem 'concurrent-ruby', RUBY_VERSION < '2.3' ? '~> 1.1.0' : '>= 1.2'
|
31
|
+
gem 'selenium-webdriver', RUBY_VERSION == '3.0' ? '4.9.0' : '>= 0'
|
32
|
+
gem 'webdrivers' if (ENV['RAILS_VERSION'] && ENV['RAILS_VERSION'] >= '6') && (RUBY_VERSION < '3')
|
33
|
+
gem 'net-smtp' if RUBY_VERSION >= '3.1'
|
34
|
+
gem 'jbuilder' unless ENV['API'] == '1'
|
35
|
+
gem 'mutex_m' if RUBY_VERSION >= '3.4'
|
36
|
+
gem 'base64' if RUBY_VERSION >= '3.4'
|
37
|
+
gem 'bigdecimal' if RUBY_VERSION >= '3.4'
|
38
|
+
gem 'logger' if RUBY_VERSION >= '3.5'
|
39
|
+
gem 'benchmark' if RUBY_VERSION >= '3.5'
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
# ActiveDecorator [](https://github.com/amatsuda/active_decorator/actions) [](https://codeclimate.com/github/amatsuda/active_decorator)
|
2
2
|
|
3
|
-
A simple and Rubyish view helper for Rails 4, Rails 5, and Rails
|
3
|
+
A simple and Rubyish view helper for Rails 4, Rails 5, Rails 6, Rails 7, and Rails 8. Keep your helpers and views Object-Oriented!
|
4
4
|
|
5
5
|
|
6
6
|
## Features ##
|
@@ -15,9 +15,9 @@ A simple and Rubyish view helper for Rails 4, Rails 5, and Rails 6. Keep your he
|
|
15
15
|
|
16
16
|
## Supported versions ##
|
17
17
|
|
18
|
-
* Ruby 2.
|
18
|
+
* Ruby 2.1.x, 2.2.x, 2.3.x, 2.4.x, 2.5.x, 2.6.x, 2.7.x, 3.0.x, 3.1.x, 3.2.x, 3.3.x, 3.4.x, and 3.5 (trunk)
|
19
19
|
|
20
|
-
* Rails 4.2.x, 5.0, 5.1, 5.2, 6.0, 6.1,
|
20
|
+
* Rails 4.2.x, 5.0, 5.1, 5.2, 6.0, 6.1, 7.0, 7.1, 7.2, 8.0, and 8.1 (edge)
|
21
21
|
|
22
22
|
|
23
23
|
## Supported ORMs ##
|
data/Rakefile
CHANGED
@@ -9,7 +9,7 @@ module ActiveDecorator
|
|
9
9
|
include Singleton
|
10
10
|
|
11
11
|
def initialize
|
12
|
-
|
12
|
+
@decorators = {}
|
13
13
|
end
|
14
14
|
|
15
15
|
# Decorates the given object.
|
@@ -27,34 +27,22 @@ module ActiveDecorator
|
|
27
27
|
|
28
28
|
case obj
|
29
29
|
when Array
|
30
|
-
obj.each
|
31
|
-
decorate r
|
32
|
-
end
|
30
|
+
obj.each {|e| decorate e }
|
33
31
|
when Hash
|
34
|
-
obj.each_value
|
35
|
-
decorate v
|
36
|
-
end
|
32
|
+
obj.each_value {|v| decorate v }
|
37
33
|
when nil, true, false
|
38
|
-
|
34
|
+
# Do nothing
|
39
35
|
else
|
40
|
-
if defined?
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
obj.extend ActiveDecorator::
|
45
|
-
else
|
46
|
-
# Rails 3.x and 4.x
|
47
|
-
obj.extend ActiveDecorator::RelationDecoratorLegacy unless obj.is_a? ActiveDecorator::RelationDecoratorLegacy
|
48
|
-
end
|
49
|
-
else
|
50
|
-
if defined?(ActiveRecord) && obj.is_a?(ActiveRecord::Base) && !obj.is_a?(ActiveDecorator::Decorated)
|
51
|
-
obj.extend ActiveDecorator::Decorated
|
36
|
+
if defined? ActiveRecord
|
37
|
+
if obj.is_a? ActiveRecord::Relation
|
38
|
+
return decorate_relation obj
|
39
|
+
elsif ActiveRecord::Base === obj
|
40
|
+
obj.extend ActiveDecorator::Decorated unless ActiveDecorator::Decorated === obj
|
52
41
|
end
|
53
|
-
|
54
|
-
d = decorator_for obj.class
|
55
|
-
return obj unless d
|
56
|
-
obj.extend d unless obj.is_a? d
|
57
42
|
end
|
43
|
+
|
44
|
+
d = decorator_for obj.class
|
45
|
+
obj.extend d if d && !(d === obj)
|
58
46
|
end
|
59
47
|
|
60
48
|
obj
|
@@ -63,45 +51,57 @@ module ActiveDecorator
|
|
63
51
|
# Decorates AR model object's association only when the object was decorated.
|
64
52
|
# Returns the association instance.
|
65
53
|
def decorate_association(owner, target)
|
66
|
-
|
54
|
+
(ActiveDecorator::Decorated === owner) ? decorate(target) : target
|
67
55
|
end
|
68
56
|
|
69
57
|
private
|
70
58
|
# Returns a decorator module for the given class.
|
71
59
|
# Returns `nil` if no decorator module was found.
|
72
60
|
def decorator_for(model_class)
|
73
|
-
return
|
61
|
+
return @decorators[model_class] if @decorators.key? model_class
|
74
62
|
|
75
63
|
decorator_name = "#{model_class.name}#{ActiveDecorator.config.decorator_suffix}"
|
76
64
|
d = decorator_name.constantize
|
77
65
|
unless Class === d
|
78
66
|
d.send :include, ActiveDecorator::Helpers
|
79
|
-
|
67
|
+
@decorators[model_class] = d
|
80
68
|
else
|
81
69
|
# Cache nil results
|
82
|
-
|
70
|
+
@decorators[model_class] = nil
|
83
71
|
end
|
84
72
|
rescue NameError
|
85
73
|
if model_class.respond_to?(:base_class) && (model_class.base_class != model_class)
|
86
|
-
|
74
|
+
@decorators[model_class] = decorator_for model_class.base_class
|
87
75
|
else
|
88
76
|
# Cache nil results
|
89
|
-
|
77
|
+
@decorators[model_class] = nil
|
90
78
|
end
|
91
79
|
end
|
92
|
-
end
|
93
80
|
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
81
|
+
# Decorate with proper monkey patch based on AR version
|
82
|
+
def decorate_relation(obj)
|
83
|
+
if obj.respond_to?(:records)
|
84
|
+
# Rails 5.0
|
85
|
+
obj.extend ActiveDecorator::RelationDecorator unless ActiveDecorator::RelationDecorator === obj
|
86
|
+
else
|
87
|
+
# Rails 3.x and 4.x
|
88
|
+
obj.extend ActiveDecorator::RelationDecoratorLegacy unless ActiveDecorator::RelationDecoratorLegacy === obj
|
89
|
+
end
|
90
|
+
obj
|
98
91
|
end
|
99
92
|
end
|
100
93
|
|
101
|
-
#
|
94
|
+
# Override AR::Relation#records to decorate each element after being loaded (for AR 5+)
|
102
95
|
module RelationDecorator
|
103
96
|
def records
|
104
97
|
ActiveDecorator::Decorator.instance.decorate super
|
105
98
|
end
|
106
99
|
end
|
100
|
+
|
101
|
+
# Override AR::Relation#to_a to decorate each element after being loaded (for AR 3 and 4)
|
102
|
+
module RelationDecoratorLegacy
|
103
|
+
def to_a
|
104
|
+
ActiveDecorator::Decorator.instance.decorate super
|
105
|
+
end
|
106
|
+
end
|
107
107
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# On the fly delegation from the decorator to the decorated object and the helpers.
|
4
4
|
module ActiveDecorator
|
5
5
|
module Helpers
|
6
|
-
def method_missing(method, *args, &block)
|
6
|
+
def method_missing(method, *args, **kwargs, &block)
|
7
7
|
super
|
8
8
|
rescue NoMethodError, NameError => e1
|
9
9
|
# the error is not mine, so just releases it as is.
|
@@ -11,7 +11,11 @@ module ActiveDecorator
|
|
11
11
|
|
12
12
|
if (view_context = ActiveDecorator::ViewContext.current)
|
13
13
|
begin
|
14
|
-
|
14
|
+
if kwargs.any?
|
15
|
+
view_context.send method, *args, **kwargs, &block
|
16
|
+
else
|
17
|
+
view_context.send method, *args, &block
|
18
|
+
end
|
15
19
|
rescue NoMethodError => e2
|
16
20
|
raise e2 if e2.name != method
|
17
21
|
|
@@ -2,7 +2,36 @@
|
|
2
2
|
|
3
3
|
# A module that carries the controllers' view_context to decorators.
|
4
4
|
module ActiveDecorator
|
5
|
-
|
5
|
+
# Use Rails' CurrentAttributes if available (Rails 5.2+)
|
6
|
+
if defined? ActiveSupport::CurrentAttributes
|
7
|
+
class ViewContext < ActiveSupport::CurrentAttributes
|
8
|
+
# Rails 7.2+
|
9
|
+
if method(:attribute).parameters.include? [:key, :default]
|
10
|
+
attribute :view_context_stack, default: []
|
11
|
+
else
|
12
|
+
attribute :view_context_stack
|
13
|
+
|
14
|
+
def view_context_stack
|
15
|
+
attributes[:view_context_stack] ||= []
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
resets do
|
20
|
+
view_context_stack = nil
|
21
|
+
end
|
22
|
+
end
|
23
|
+
else
|
24
|
+
# Fallback implementation for Rails < 5.2
|
25
|
+
class ViewContext
|
26
|
+
class << self
|
27
|
+
def view_context_stack
|
28
|
+
Thread.current[:active_decorator_view_contexts] ||= []
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
class ViewContext
|
6
35
|
class << self
|
7
36
|
def current
|
8
37
|
view_context_stack.last
|
@@ -16,10 +45,6 @@ module ActiveDecorator
|
|
16
45
|
view_context_stack.pop
|
17
46
|
end
|
18
47
|
|
19
|
-
def view_context_stack
|
20
|
-
Thread.current[:active_decorator_view_contexts] ||= []
|
21
|
-
end
|
22
|
-
|
23
48
|
def run_with(view_context)
|
24
49
|
push view_context
|
25
50
|
yield
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require '<%= File.
|
3
|
+
require '<%= File.exist?('spec/rails_helper.rb') ? 'rails_helper' : 'spec_helper' %>'
|
4
4
|
|
5
5
|
RSpec.describe <%= class_name %>Decorator do
|
6
6
|
let(:<%= singular_name %>) { <%= class_name %>.new.extend <%= class_name %>Decorator }
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_decorator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Akira Matsuda
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: activesupport
|
@@ -129,21 +128,15 @@ executables: []
|
|
129
128
|
extensions: []
|
130
129
|
extra_rdoc_files: []
|
131
130
|
files:
|
131
|
+
- ".github/dependabot.yml"
|
132
|
+
- ".github/workflows/main.yml"
|
132
133
|
- ".gitignore"
|
133
|
-
- ".travis.yml"
|
134
134
|
- CHANGELOG.md
|
135
135
|
- Gemfile
|
136
136
|
- MIT-LICENSE
|
137
137
|
- README.md
|
138
138
|
- Rakefile
|
139
139
|
- active_decorator.gemspec
|
140
|
-
- gemfiles/Gemfile-rails.4.2.x
|
141
|
-
- gemfiles/Gemfile-rails.5.0.x
|
142
|
-
- gemfiles/Gemfile-rails.5.1.x
|
143
|
-
- gemfiles/Gemfile-rails.5.2.x
|
144
|
-
- gemfiles/Gemfile-rails.6.0.x
|
145
|
-
- gemfiles/Gemfile-rails.6.1.x
|
146
|
-
- gemfiles/Gemfile-rails.edge
|
147
140
|
- lib/active_decorator.rb
|
148
141
|
- lib/active_decorator/config.rb
|
149
142
|
- lib/active_decorator/decorated.rb
|
@@ -169,7 +162,6 @@ homepage: https://github.com/amatsuda/active_decorator
|
|
169
162
|
licenses:
|
170
163
|
- MIT
|
171
164
|
metadata: {}
|
172
|
-
post_install_message:
|
173
165
|
rdoc_options: []
|
174
166
|
require_paths:
|
175
167
|
- lib
|
@@ -184,8 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
184
176
|
- !ruby/object:Gem::Version
|
185
177
|
version: '0'
|
186
178
|
requirements: []
|
187
|
-
rubygems_version: 3.
|
188
|
-
signing_key:
|
179
|
+
rubygems_version: 3.8.0.dev
|
189
180
|
specification_version: 4
|
190
181
|
summary: A simple and Rubyish view helper for Rails
|
191
182
|
test_files: []
|
data/.travis.yml
DELETED
@@ -1,100 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
|
3
|
-
addons:
|
4
|
-
chrome: stable
|
5
|
-
|
6
|
-
before_install:
|
7
|
-
- sudo apt update -qq
|
8
|
-
- sudo apt install -y chromium-chromedriver
|
9
|
-
- gem i bundler -v '<2'
|
10
|
-
|
11
|
-
cache: bundler
|
12
|
-
|
13
|
-
# rvm:
|
14
|
-
# - 2.6.7
|
15
|
-
# - 2.5.9
|
16
|
-
# - 2.4.10
|
17
|
-
# - 2.3.8
|
18
|
-
# - 2.2.10
|
19
|
-
# - 2.1.10
|
20
|
-
# - 2.0.0
|
21
|
-
# gemfile:
|
22
|
-
# - gemfiles/Gemfile-rails.5.2.x
|
23
|
-
# - gemfiles/Gemfile-rails.5.1.x
|
24
|
-
# - gemfiles/Gemfile-rails.5.0.x
|
25
|
-
# - gemfiles/Gemfile-rails.4.2.x
|
26
|
-
|
27
|
-
matrix:
|
28
|
-
include:
|
29
|
-
- rvm: 3.0.1
|
30
|
-
gemfile: gemfiles/Gemfile-rails.6.1.x
|
31
|
-
- rvm: 3.0.1
|
32
|
-
gemfile: gemfiles/Gemfile-rails.6.1.x
|
33
|
-
env: API=1
|
34
|
-
|
35
|
-
- rvm: 2.7.3
|
36
|
-
gemfile: gemfiles/Gemfile-rails.6.1.x
|
37
|
-
- rvm: 2.7.3
|
38
|
-
gemfile: gemfiles/Gemfile-rails.6.1.x
|
39
|
-
env: API=1
|
40
|
-
- rvm: 2.7.3
|
41
|
-
gemfile: gemfiles/Gemfile-rails.6.0.x
|
42
|
-
- rvm: 2.7.3
|
43
|
-
gemfile: gemfiles/Gemfile-rails.6.0.x
|
44
|
-
env: API=1
|
45
|
-
|
46
|
-
- rvm: 2.6.7
|
47
|
-
gemfile: gemfiles/Gemfile-rails.6.1.x
|
48
|
-
- rvm: 2.6.7
|
49
|
-
gemfile: gemfiles/Gemfile-rails.6.1.x
|
50
|
-
env: API=1
|
51
|
-
- rvm: 2.6.7
|
52
|
-
gemfile: gemfiles/Gemfile-rails.6.0.x
|
53
|
-
- rvm: 2.6.7
|
54
|
-
gemfile: gemfiles/Gemfile-rails.6.0.x
|
55
|
-
env: API=1
|
56
|
-
- rvm: 2.6.7
|
57
|
-
gemfile: gemfiles/Gemfile-rails.5.2.x
|
58
|
-
- rvm: 2.6.7
|
59
|
-
gemfile: gemfiles/Gemfile-rails.5.2.x
|
60
|
-
env: API=1
|
61
|
-
- rvm: 2.6.7
|
62
|
-
gemfile: gemfiles/Gemfile-rails.5.1.x
|
63
|
-
- rvm: 2.6.7
|
64
|
-
gemfile: gemfiles/Gemfile-rails.5.1.x
|
65
|
-
env: API=1
|
66
|
-
- rvm: 2.6.7
|
67
|
-
gemfile: gemfiles/Gemfile-rails.5.0.x
|
68
|
-
- rvm: 2.6.7
|
69
|
-
gemfile: gemfiles/Gemfile-rails.5.0.x
|
70
|
-
env: API=1
|
71
|
-
|
72
|
-
- rvm: 2.5.9
|
73
|
-
gemfile: gemfiles/Gemfile-rails.5.2.x
|
74
|
-
|
75
|
-
- rvm: 2.4.10
|
76
|
-
gemfile: gemfiles/Gemfile-rails.5.2.x
|
77
|
-
|
78
|
-
- rvm: 2.3.8
|
79
|
-
gemfile: gemfiles/Gemfile-rails.5.2.x
|
80
|
-
- rvm: 2.3.8
|
81
|
-
gemfile: gemfiles/Gemfile-rails.4.2.x
|
82
|
-
|
83
|
-
- rvm: 2.2.10
|
84
|
-
gemfile: gemfiles/Gemfile-rails.5.2.x
|
85
|
-
|
86
|
-
- rvm: 2.1.10
|
87
|
-
gemfile: gemfiles/Gemfile-rails.4.2.x
|
88
|
-
|
89
|
-
- rvm: 2.0.0
|
90
|
-
gemfile: gemfiles/Gemfile-rails.4.2.x
|
91
|
-
|
92
|
-
- rvm: ruby-head
|
93
|
-
gemfile: gemfiles/Gemfile-rails.edge
|
94
|
-
- rvm: ruby-head
|
95
|
-
gemfile: gemfiles/Gemfile-rails.edge
|
96
|
-
env: API=1
|
97
|
-
|
98
|
-
allow_failures:
|
99
|
-
- rvm: ruby-head
|
100
|
-
- gemfile: gemfiles/Gemfile-rails.edge
|
data/gemfiles/Gemfile-rails.edge
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
gemspec path: '..'
|
4
|
-
|
5
|
-
git_source(:github) do |repo_name|
|
6
|
-
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
|
7
|
-
"https://github.com/#{repo_name}.git"
|
8
|
-
end
|
9
|
-
|
10
|
-
github 'rails/rails' do
|
11
|
-
gem 'rails'
|
12
|
-
end
|
13
|
-
|
14
|
-
unless ENV['API']
|
15
|
-
github 'rails/jbuilder' do
|
16
|
-
gem 'jbuilder'
|
17
|
-
end
|
18
|
-
end
|