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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 19e2718d8968704f70abfbfe20bd6d17246c7357
4
- data.tar.gz: bef252b72283c9306a98163a0904cb010dd48b48
2
+ SHA256:
3
+ metadata.gz: cd3fcd861bf215db7fa066c42e2a154cf4d57670aba0fd70547df467c3161d20
4
+ data.tar.gz: be30224d039cc377279ec81dfee96a78bdd2336ddabf530695ae8c6552ebdc2f
5
5
  SHA512:
6
- metadata.gz: 741549676399a8f9ecfe84a32eb593fdfa5f1aadbc148a8cfe287f9a0a1c7d63ffecd04cad373fdcbb159bbd5be06036afec18e905ea5b12e92505ff4a66daac
7
- data.tar.gz: 04c99a32c556153aef94b3fe6179ea883c7b80a11f68c7a224ef6268dcbf72389698977759f9edf2db61869ed8a80df42e2a9300d873093782e46b6f6a60f857
6
+ metadata.gz: 7ef19518393f33f4b65b7754acca52cdecf37f3505599d2238791f1844ef88554a597ce745db8420d2c8454e52a4556f747a2ba7d8825dca7f52005d6ddd5dac
7
+ data.tar.gz: e75ad86979666b71399078cbee495f3f2fa8fe262b7c94e0cd6dcc8c021dc6dab9df191c6ca72bf5325291f65d045c37427f450af2c8c3db6e451005bbed2119
@@ -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.4.1
5
- - 2.2.2
7
+ - 2.5.3
6
8
  gemfile:
7
- - gemfiles/railties-5-0.gemfile
8
- - gemfiles/railties-5-1.gemfile
9
+ - gemfiles/railties-6-0.gemfile
10
+ - gemfiles/railties-master.gemfile
9
11
  notifications:
10
12
  email: false
@@ -1,3 +1,7 @@
1
+ # 6.0.0
2
+
3
+ * compatibility with rails 6 (#8 @phoet)
4
+
1
5
  # 5.1.0
2
6
 
3
7
  * compatibility with rails 5.1 (#5 @Edouard-chin)
@@ -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
@@ -1,69 +1,73 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- partially_useful (5.1.0)
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.1.1)
11
- actionview (= 5.1.1)
12
- activesupport (= 5.1.1)
10
+ actionpack (5.2.3)
11
+ actionview (= 5.2.3)
12
+ activesupport (= 5.2.3)
13
13
  rack (~> 2.0)
14
- rack-test (~> 0.6.3)
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.1.1)
18
- activesupport (= 5.1.1)
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.1.1)
23
+ activesupport (5.2.3)
24
24
  concurrent-ruby (~> 1.0, >= 1.0.2)
25
- i18n (~> 0.7)
25
+ i18n (>= 0.7, < 2)
26
26
  minitest (~> 5.1)
27
27
  tzinfo (~> 1.1)
28
28
  builder (3.2.3)
29
- concurrent-ruby (1.0.5)
30
- erubi (1.6.0)
31
- i18n (0.8.1)
32
- loofah (2.0.3)
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.8.2)
35
- mini_portile2 (2.1.0)
36
- minitest (5.10.2)
37
- nokogiri (1.7.2)
38
- mini_portile2 (~> 2.1.0)
39
- rack (2.0.3)
40
- rack-test (0.6.3)
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.3)
46
- loofah (~> 2.0)
47
- railties (5.1.1)
48
- actionpack (= 5.1.1)
49
- activesupport (= 5.1.1)
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.18.1, < 2.0)
53
- rake (12.0.0)
54
- thor (0.19.4)
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.3)
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 (>= 1.6)
67
+ bundler (>= 2.0)
64
68
  byebug
65
69
  partially_useful!
66
70
  rake (>= 10.0)
67
71
 
68
72
  BUNDLED WITH
69
- 1.14.6
73
+ 2.0.1
@@ -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
- "THE (extended) BEER-WARE LICENSE" (Revision 42.0815): [phoet](mailto:ps@nofail.de) contributed to this project.
60
+ See [LICENSE.md](https://github.com/phoet/partially_useful/blob/master/LICENSE.md).
60
61
 
61
- As long as you retain this notice you can do whatever you want with this stuff.
62
- If we meet some day, and you think this stuff is worth it, you can buy me some beers in return.
62
+ ## Changelog
63
+
64
+ See [CHANGELOG.md](https://github.com/phoet/partially_useful/blob/master/CHANGELOG.md).
@@ -2,4 +2,4 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec path: '..'
4
4
 
5
- gem 'railties', '~> 5.0'
5
+ gem 'railties', '~> 6.0.0.rc1'
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec path: '..'
4
+
5
+ gem 'railties', github: 'rails/rails', branch: 'master'
@@ -1,16 +1,11 @@
1
1
  module PartiallyUseful
2
2
  module PartialRenderer
3
- def self.included(klass)
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#{original_rails_render(context, options, block)}\n<!-- end #{msg}-->\n".html_safe
6
+ "<!-- start #{msg}-->\n#{super(context, options, &block)}\n<!-- end #{msg}-->\n".html_safe
12
7
  else
13
- original_rails_render(context, options, block)
8
+ super(context, options, &block)
14
9
  end
15
10
  end
16
11
 
@@ -4,7 +4,7 @@ module PartiallyUseful
4
4
 
5
5
  initializer :partially_useful do |app|
6
6
  if app.config.partially_useful
7
- ActionView::PartialRenderer.send(:include, PartiallyUseful::PartialRenderer)
7
+ ActionView::Renderer.prepend(PartiallyUseful::PartialRenderer)
8
8
  end
9
9
  end
10
10
  end
@@ -1,3 +1,3 @@
1
1
  module PartiallyUseful
2
- VERSION = "5.1.0"
2
+ VERSION = "6.0.0"
3
3
  end
@@ -20,6 +20,6 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_dependency 'railties', '>= 4.1'
22
22
 
23
- spec.add_development_dependency "bundler", ">= 1.6"
23
+ spec.add_development_dependency "bundler", ">= 2.0"
24
24
  spec.add_development_dependency "rake", ">= 10.0"
25
25
  end
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: 5.1.0
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: 2017-05-17 00:00:00.000000000 Z
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: '1.6'
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: '1.6'
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-5-0.gemfile
70
- - gemfiles/railties-5-1.gemfile
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.8
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
@@ -1,5 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec path: '..'
4
-
5
- gem 'railties', '~> 5.1'