nestive-rails 1.0.0 → 1.0.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: b4a82114bbbc89e6e3b29c18629748cde19b554a0c42391e58c0230c0888381b
4
- data.tar.gz: 309726bde20f1a3aa14dd14df75bbea17a31b6bb9fb3403041655d456f4f6406
3
+ metadata.gz: e778a2d47f320ad068588c3f44c490180ac6c4b11f798fc75221d9d90d062f4a
4
+ data.tar.gz: 61bdc1cbc98b08835b346ea28cf503749ea4815611fec54b31cbc6cf41068f58
5
5
  SHA512:
6
- metadata.gz: 52fc007847a4b51691d07120b18d4e97843beb4118a554071dca4a034b2c2f4059cb3a737ffc84d4f4ee2c2a43aa932135b2e4c27e319511d9e55dc12a4a8acb
7
- data.tar.gz: ddc33bfb5e9cc66631fd967170f1009cd89ada2060529cf52270244fc3f099d96448f92f2d6ec6dc13c254a545991c8a1c00954a492f3c2a171f1d68f155012b
6
+ metadata.gz: 31721d6e189247ae917be96041c83f52493e8f1d33206f896a0ab263071ac615dd913dd5293142d02f6002428e6e7f7b16612bca216feabddf7741d78551ca7f
7
+ data.tar.gz: b489b97f12348180d2093e33a15b2421ca41cf586a949458924e6c7a4a8501f0dfacd1d1cbbd9bad97781c4c66d27f83270511a2fbda889774631efae24b4e58
@@ -4,6 +4,11 @@
4
4
 
5
5
  * nothing yet
6
6
 
7
+ ### 1.0.1 - 2018-01-06
8
+
9
+ * enhancements
10
+ * cleaning up gem files
11
+
7
12
  ### 1.0.0 - 2017-12-19
8
13
 
9
14
  * initial release
data/README.md CHANGED
@@ -17,6 +17,13 @@ nestive-rails is *better* because it addresses these problems.
17
17
 
18
18
  * [Installation](#installation)
19
19
  * [Usage](#usage)
20
+ * [Declaring an area of content with `area`](#declaring-an-area-of-content-with-area)
21
+ * [Appending content to an area with `append`](#appending-content-to-an-area-with-append)
22
+ * [Prepending content to an area with `prepend`](#prepending-content-to-an-area-with-prepend)
23
+ * [Replacing content with `replace`](#replacing-content-with-replace)
24
+ * [Removing content with `purge`](#removing-content-with-purge)
25
+ * [Extending a layout in a child layout (or view) with `extends`](#extending-a-layout-in-a-child-layout-or-view-with-extends)
26
+ * [Example](#example)
20
27
  * [Caching](#caching)
21
28
  * [To Do](#to-do)
22
29
  * [Contributing](#contributing)
@@ -49,7 +56,7 @@ gem 'nestive-rails', github: 'jonhue/nestive-rails'
49
56
 
50
57
  ## Usage
51
58
 
52
- ### Declaring an area of content with `area`:
59
+ ### Declaring an area of content with `area`
53
60
 
54
61
  The `area` helper is a lot like Rails' own `<%= yield :foo %>`, and is used in layouts to define and render a chunk of content in your layout:
55
62
 
@@ -69,7 +76,7 @@ Unlike `yield`, `area` will allow your parent layouts to add content to the area
69
76
 
70
77
  It's important to note that this isn't *default* content, it *is* the content (unless a child changes it).
71
78
 
72
- ### Appending content to an area with `append`:
79
+ ### Appending content to an area with `append`
73
80
 
74
81
  The implementation details are quite different, but the `append` helper works much like Rails' built-in `content_for`. It will work with either a String or block, adding the new content onto the end of any content previously provided by parent layouts:
75
82
 
@@ -82,7 +89,7 @@ The implementation details are quite different, but the `append` helper works mu
82
89
  <% end %>
83
90
  ```
84
91
 
85
- ### Prepending content to an area with `prepend`:
92
+ ### Prepending content to an area with `prepend`
86
93
 
87
94
  Exactly what you think it is. The reverse of `append` (duh), adding the new content at the start of any content previously provided by parent layouts:
88
95
 
@@ -179,7 +186,9 @@ You can nest many levels deep:
179
186
  <% end %>
180
187
  ```
181
188
 
182
- ## The token blog example
189
+ ---
190
+
191
+ ## Example
183
192
 
184
193
  Set-up a global layout defining some content areas.
185
194
 
@@ -1,4 +1,4 @@
1
- require 'rails'
1
+ require 'rails/railtie'
2
2
 
3
3
  module NestiveRails
4
4
  class Railtie < Rails::Railtie
@@ -1,5 +1,5 @@
1
1
  module NestiveRails
2
2
 
3
- VERSION = '1.0.0'
3
+ VERSION = '1.0.1'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nestive-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Hübotter
@@ -10,50 +10,50 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-12-19 00:00:00.000000000 Z
13
+ date: 2018-01-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: bundler
16
+ name: rails
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - "~>"
19
+ - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: '1.16'
22
- type: :development
21
+ version: '5.0'
22
+ type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - "~>"
26
+ - - ">="
27
27
  - !ruby/object:Gem::Version
28
- version: '1.16'
28
+ version: '5.0'
29
29
  - !ruby/object:Gem::Dependency
30
- name: rake
30
+ name: rspec
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - "~>"
34
34
  - !ruby/object:Gem::Version
35
- version: '10.0'
35
+ version: '3.7'
36
36
  type: :development
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - "~>"
41
41
  - !ruby/object:Gem::Version
42
- version: '10.0'
42
+ version: '3.7'
43
43
  - !ruby/object:Gem::Dependency
44
- name: rails
44
+ name: rubocop
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ">="
47
+ - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: '5.0'
50
- type: :runtime
49
+ version: '0.52'
50
+ type: :development
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
- - - ">="
54
+ - - "~>"
55
55
  - !ruby/object:Gem::Version
56
- version: '5.0'
56
+ version: '0.52'
57
57
  description: A Better Nested Inheritable Layouts Plugin for Rails 5
58
58
  email:
59
59
  - jonas.huebotter@gmail.com
@@ -63,24 +63,13 @@ executables: []
63
63
  extensions: []
64
64
  extra_rdoc_files: []
65
65
  files:
66
- - ".github/issue_template.md"
67
- - ".github/pull_request_template.md"
68
- - ".gitignore"
69
- - ".travis.yml"
70
66
  - CHANGELOG.md
71
- - CODE_OF_CONDUCT.md
72
- - CONTRIBUTING.md
73
- - DEPRECATIONS.md
74
- - Gemfile
75
67
  - LICENSE
76
68
  - README.md
77
- - Rakefile
78
- - init.rb
79
69
  - lib/nestive-rails.rb
80
70
  - lib/nestive-rails/layout_helper.rb
81
71
  - lib/nestive-rails/railtie.rb
82
72
  - lib/nestive-rails/version.rb
83
- - nestive-rails.gemspec
84
73
  homepage: https://github.com/jonhue/nestive-rails
85
74
  licenses:
86
75
  - MIT
@@ -101,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
90
  version: '0'
102
91
  requirements: []
103
92
  rubyforge_project:
104
- rubygems_version: 2.7.3
93
+ rubygems_version: 2.7.4
105
94
  signing_key:
106
95
  specification_version: 4
107
96
  summary: A Better Nested Inheritable Layouts Plugin for Rails 5
@@ -1,14 +0,0 @@
1
- ### Expected behavior
2
- Tell us what should happen
3
-
4
- ### Actual behavior
5
- Tell us what happens instead
6
-
7
- ### Steps to reproduce
8
- Show a way to reproduce
9
-
10
- ### System configuration
11
-
12
- **Ruby version**:
13
-
14
- **Rails version**:
@@ -1,21 +0,0 @@
1
- ### Summary
2
-
3
- Provide a general description of the code changes in your pull
4
- request... were there any bugs you had fixed? If so, mention them. If
5
- these bugs have open GitHub issues, be sure to tag them here as well,
6
- to keep the conversation linked together.
7
-
8
- ### Other Information
9
-
10
- If there's anything else that's important and relevant to your pull
11
- request, mention that information here. This could include
12
- benchmarks, or other information.
13
-
14
- If you are updating any of the CHANGELOG files or are asked to update the
15
- CHANGELOG files by reviewers, please add the CHANGELOG entry at the top of the file.
16
-
17
- Finally, if your pull request affects documentation or any non-code
18
- changes, guidelines for those changes are [available
19
- here](https://github.com/jonhue/nestive-rails/blob/master/CONTRIBUTING.md)
20
-
21
- Thanks for contributing to `nestive-rails`!
data/.gitignore DELETED
@@ -1,8 +0,0 @@
1
- test/debug.log
2
- coverage
3
- rdoc
4
- memory
5
- *.gem
6
- .rvmrc
7
- Gemfile.lock
8
- log
@@ -1,3 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.3.3
@@ -1,46 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
-
7
- ## Our Standards
8
-
9
- Examples of behavior that contributes to creating a positive environment include:
10
-
11
- * Using welcoming and inclusive language
12
- * Being respectful of differing viewpoints and experiences
13
- * Gracefully accepting constructive criticism
14
- * Focusing on what is best for the community
15
- * Showing empathy towards other community members
16
-
17
- Examples of unacceptable behavior by participants include:
18
-
19
- * The use of sexualized language or imagery and unwelcome sexual attention or advances
20
- * Trolling, insulting/derogatory comments, and personal or political attacks
21
- * Public or private harassment
22
- * Publishing others' private information, such as a physical or electronic address, without explicit permission
23
- * Other conduct which could reasonably be considered inappropriate in a professional setting
24
-
25
- ## Our Responsibilities
26
-
27
- Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28
-
29
- Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30
-
31
- ## Scope
32
-
33
- This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34
-
35
- ## Enforcement
36
-
37
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at help@slooob.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38
-
39
- Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40
-
41
- ## Attribution
42
-
43
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44
-
45
- [homepage]: http://contributor-covenant.org
46
- [version]: http://contributor-covenant.org/version/1/4/
@@ -1 +0,0 @@
1
- # Contributing
@@ -1,3 +0,0 @@
1
- # Deprecations
2
-
3
- No deprecations
data/Gemfile DELETED
@@ -1,7 +0,0 @@
1
- source 'http://rubygems.org'
2
-
3
- git_source :github do |repo_name|
4
- "https://github.com/#{repo_name}"
5
- end
6
-
7
- gemspec
data/Rakefile DELETED
@@ -1,2 +0,0 @@
1
- require 'bundler/gem_tasks'
2
- task default: :spec
data/init.rb DELETED
@@ -1 +0,0 @@
1
- require 'nestive-rails'
@@ -1,23 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- require File.expand_path(File.join('..', 'lib', 'nestive-rails', 'version'), __FILE__)
3
-
4
- Gem::Specification.new do |gem|
5
- gem.name = 'nestive-rails'
6
- gem.version = NestiveRails::VERSION
7
- gem.platform = Gem::Platform::RUBY
8
- gem.summary = 'A Better Nested Inheritable Layouts Plugin for Rails 5'
9
- gem.description = 'A Better Nested Inheritable Layouts Plugin for Rails 5'
10
- gem.authors = ['Jonas Hübotter', 'Justin French', 'Pavel Pravosud']
11
- gem.email = ['jonas.huebotter@gmail.com', 'justin@indent.com.au', 'pavel@pravosud.com']
12
- gem.homepage = 'https://github.com/jonhue/nestive-rails'
13
- gem.license = 'MIT'
14
-
15
- gem.files = `git ls-files`.split("\n")
16
- gem.require_paths = ['lib']
17
-
18
- gem.required_ruby_version = '>= 2.3'
19
-
20
- gem.add_development_dependency 'bundler', '~> 1.16'
21
- gem.add_development_dependency 'rake', '~> 10.0'
22
- gem.add_dependency 'rails', '>= 5.0'
23
- end