partially_useful 5.1.0 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +6 -4
- data/CHANGELOG.md +4 -0
- data/CODE_OF_CONDUCT.md +76 -0
- data/Gemfile.lock +36 -32
- data/LICENSE.md +4 -0
- data/README.md +5 -3
- data/gemfiles/{railties-5-0.gemfile → railties-6-0.gemfile} +1 -1
- data/gemfiles/railties-master.gemfile +5 -0
- data/lib/partially_useful/partial_renderer.rb +3 -8
- data/lib/partially_useful/railtie.rb +1 -1
- data/lib/partially_useful/version.rb +1 -1
- data/partially_useful.gemspec +1 -1
- metadata +9 -7
- data/gemfiles/railties-5-1.gemfile +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: cd3fcd861bf215db7fa066c42e2a154cf4d57670aba0fd70547df467c3161d20
|
4
|
+
data.tar.gz: be30224d039cc377279ec81dfee96a78bdd2336ddabf530695ae8c6552ebdc2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ef19518393f33f4b65b7754acca52cdecf37f3505599d2238791f1844ef88554a597ce745db8420d2c8454e52a4556f747a2ba7d8825dca7f52005d6ddd5dac
|
7
|
+
data.tar.gz: e75ad86979666b71399078cbee495f3f2fa8fe262b7c94e0cd6dcc8c021dc6dab9df191c6ca72bf5325291f65d045c37427f450af2c8c3db6e451005bbed2119
|
data/.travis.yml
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
sudo: false
|
2
|
+
before_install:
|
3
|
+
- gem update --system
|
4
|
+
- gem install bundler
|
2
5
|
script: "bundle exec rake"
|
3
6
|
rvm:
|
4
|
-
- 2.
|
5
|
-
- 2.2.2
|
7
|
+
- 2.5.3
|
6
8
|
gemfile:
|
7
|
-
- gemfiles/railties-
|
8
|
-
- gemfiles/railties-
|
9
|
+
- gemfiles/railties-6-0.gemfile
|
10
|
+
- gemfiles/railties-master.gemfile
|
9
11
|
notifications:
|
10
12
|
email: false
|
data/CHANGELOG.md
CHANGED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, sex characteristics, gender identity and expression,
|
9
|
+
level of experience, education, socio-economic status, nationality, personal
|
10
|
+
appearance, race, religion, or sexual identity and orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at phoetmail@googlemail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
|
72
|
+
|
73
|
+
[homepage]: https://www.contributor-covenant.org
|
74
|
+
|
75
|
+
For answers to common questions about this code of conduct, see
|
76
|
+
https://www.contributor-covenant.org/faq
|
data/Gemfile.lock
CHANGED
@@ -1,69 +1,73 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
partially_useful (
|
4
|
+
partially_useful (6.0.0)
|
5
5
|
railties (>= 4.1)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
actionpack (5.
|
11
|
-
actionview (= 5.
|
12
|
-
activesupport (= 5.
|
10
|
+
actionpack (5.2.3)
|
11
|
+
actionview (= 5.2.3)
|
12
|
+
activesupport (= 5.2.3)
|
13
13
|
rack (~> 2.0)
|
14
|
-
rack-test (
|
14
|
+
rack-test (>= 0.6.3)
|
15
15
|
rails-dom-testing (~> 2.0)
|
16
16
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
17
|
-
actionview (5.
|
18
|
-
activesupport (= 5.
|
17
|
+
actionview (5.2.3)
|
18
|
+
activesupport (= 5.2.3)
|
19
19
|
builder (~> 3.1)
|
20
20
|
erubi (~> 1.4)
|
21
21
|
rails-dom-testing (~> 2.0)
|
22
22
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
23
|
-
activesupport (5.
|
23
|
+
activesupport (5.2.3)
|
24
24
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
25
|
-
i18n (
|
25
|
+
i18n (>= 0.7, < 2)
|
26
26
|
minitest (~> 5.1)
|
27
27
|
tzinfo (~> 1.1)
|
28
28
|
builder (3.2.3)
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
29
|
+
byebug (11.0.1)
|
30
|
+
concurrent-ruby (1.1.5)
|
31
|
+
crass (1.0.4)
|
32
|
+
erubi (1.8.0)
|
33
|
+
i18n (1.6.0)
|
34
|
+
concurrent-ruby (~> 1.0)
|
35
|
+
loofah (2.2.3)
|
36
|
+
crass (~> 1.0.2)
|
33
37
|
nokogiri (>= 1.5.9)
|
34
|
-
method_source (0.
|
35
|
-
mini_portile2 (2.
|
36
|
-
minitest (5.
|
37
|
-
nokogiri (1.
|
38
|
-
mini_portile2 (~> 2.
|
39
|
-
rack (2.0.
|
40
|
-
rack-test (
|
41
|
-
rack (>= 1.0)
|
38
|
+
method_source (0.9.2)
|
39
|
+
mini_portile2 (2.4.0)
|
40
|
+
minitest (5.11.3)
|
41
|
+
nokogiri (1.10.3)
|
42
|
+
mini_portile2 (~> 2.4.0)
|
43
|
+
rack (2.0.7)
|
44
|
+
rack-test (1.1.0)
|
45
|
+
rack (>= 1.0, < 3)
|
42
46
|
rails-dom-testing (2.0.3)
|
43
47
|
activesupport (>= 4.2.0)
|
44
48
|
nokogiri (>= 1.6)
|
45
|
-
rails-html-sanitizer (1.0.
|
46
|
-
loofah (~> 2.
|
47
|
-
railties (5.
|
48
|
-
actionpack (= 5.
|
49
|
-
activesupport (= 5.
|
49
|
+
rails-html-sanitizer (1.0.4)
|
50
|
+
loofah (~> 2.2, >= 2.2.2)
|
51
|
+
railties (5.2.3)
|
52
|
+
actionpack (= 5.2.3)
|
53
|
+
activesupport (= 5.2.3)
|
50
54
|
method_source
|
51
55
|
rake (>= 0.8.7)
|
52
|
-
thor (>= 0.
|
53
|
-
rake (12.
|
54
|
-
thor (0.
|
56
|
+
thor (>= 0.19.0, < 2.0)
|
57
|
+
rake (12.3.2)
|
58
|
+
thor (0.20.3)
|
55
59
|
thread_safe (0.3.6)
|
56
|
-
tzinfo (1.2.
|
60
|
+
tzinfo (1.2.5)
|
57
61
|
thread_safe (~> 0.1)
|
58
62
|
|
59
63
|
PLATFORMS
|
60
64
|
ruby
|
61
65
|
|
62
66
|
DEPENDENCIES
|
63
|
-
bundler (>=
|
67
|
+
bundler (>= 2.0)
|
64
68
|
byebug
|
65
69
|
partially_useful!
|
66
70
|
rake (>= 10.0)
|
67
71
|
|
68
72
|
BUNDLED WITH
|
69
|
-
|
73
|
+
2.0.1
|
data/LICENSE.md
ADDED
@@ -0,0 +1,4 @@
|
|
1
|
+
"THE (extended) BEER-WARE LICENSE" (Revision 42.0815): [phoet](mailto:ps@nofail.de) contributed to this project.
|
2
|
+
|
3
|
+
As long as you retain this notice you can do whatever you want with this stuff.
|
4
|
+
If we meet some day, and you think this stuff is worth it, you can buy me some beers in return.
|
data/README.md
CHANGED
@@ -43,6 +43,7 @@ If you run into any problems, make sure to disable the gem and restart your Rail
|
|
43
43
|
|
44
44
|
## Supported Ruby and Rails versions
|
45
45
|
|
46
|
+
Version 6.0.x has support for Rails 6.0.x.
|
46
47
|
Version 5.1.0 has support for Rails 5.x and Ruby 2.x.
|
47
48
|
Older Rails and Ruby versions are supported by the 0.x releases.
|
48
49
|
|
@@ -56,7 +57,8 @@ Older Rails and Ruby versions are supported by the 0.x releases.
|
|
56
57
|
|
57
58
|
## License
|
58
59
|
|
59
|
-
|
60
|
+
See [LICENSE.md](https://github.com/phoet/partially_useful/blob/master/LICENSE.md).
|
60
61
|
|
61
|
-
|
62
|
-
|
62
|
+
## Changelog
|
63
|
+
|
64
|
+
See [CHANGELOG.md](https://github.com/phoet/partially_useful/blob/master/CHANGELOG.md).
|
@@ -1,16 +1,11 @@
|
|
1
1
|
module PartiallyUseful
|
2
2
|
module PartialRenderer
|
3
|
-
def
|
4
|
-
klass.send :alias_method, :original_rails_render, :render
|
5
|
-
klass.send :remove_method, :render
|
6
|
-
end
|
7
|
-
|
8
|
-
def render(context, options, block)
|
3
|
+
def render_partial(context, options, &block)
|
9
4
|
if html_context?(context)
|
10
5
|
msg = "rendering '#{options[:partial]}' with locals '#{(options[:locals] || {}).keys}'"
|
11
|
-
"<!-- start #{msg}-->\n#{
|
6
|
+
"<!-- start #{msg}-->\n#{super(context, options, &block)}\n<!-- end #{msg}-->\n".html_safe
|
12
7
|
else
|
13
|
-
|
8
|
+
super(context, options, &block)
|
14
9
|
end
|
15
10
|
end
|
16
11
|
|
data/partially_useful.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: partially_useful
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 6.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- phoet
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '2.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '2.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -62,12 +62,14 @@ files:
|
|
62
62
|
- ".gitignore"
|
63
63
|
- ".travis.yml"
|
64
64
|
- CHANGELOG.md
|
65
|
+
- CODE_OF_CONDUCT.md
|
65
66
|
- Gemfile
|
66
67
|
- Gemfile.lock
|
68
|
+
- LICENSE.md
|
67
69
|
- README.md
|
68
70
|
- Rakefile
|
69
|
-
- gemfiles/railties-
|
70
|
-
- gemfiles/railties-
|
71
|
+
- gemfiles/railties-6-0.gemfile
|
72
|
+
- gemfiles/railties-master.gemfile
|
71
73
|
- lib/partially_useful.rb
|
72
74
|
- lib/partially_useful/partial_renderer.rb
|
73
75
|
- lib/partially_useful/railtie.rb
|
@@ -126,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
128
|
version: '0'
|
127
129
|
requirements: []
|
128
130
|
rubyforge_project:
|
129
|
-
rubygems_version: 2.6
|
131
|
+
rubygems_version: 2.7.6
|
130
132
|
signing_key:
|
131
133
|
specification_version: 4
|
132
134
|
summary: Helps finding partials in large html pages
|