erb-file_out 0.1.1 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a2926c7fad033fbe1780b4e2fe6ff21370f1c2cd
4
- data.tar.gz: 77f1f3838aa817fea10acf8f2e5cdc2734de4045
2
+ SHA256:
3
+ metadata.gz: ed8de44fa2fd2cb22359fcb1e0d29e4672e8f086363028dea886af595fbc601a
4
+ data.tar.gz: 3e61173678cb4f8ce9e2c9a8a7c7ff3d3cd89e51a37f2c4b70f2795870bcc2c3
5
5
  SHA512:
6
- metadata.gz: b108f3eb5e8e2a48d42fda073efcfc3794fb9a0c6adb48961766b108131baa043ba4aad82e559eb07a27c4894fa68fa433cce9c523aa808a499ea7063d580b33
7
- data.tar.gz: 7dbb6881ec192160b0146e8fc16ab2cc213b12f41ad57a6a2d77498a0fa35d5f28d48579b4f364e05372a28e4eaeeb15225afdc96f4e7c729df8dc75c2305e88
6
+ metadata.gz: e5ed757c922b446d1f5d2c77390ed607539a3aad29e001a40e61b53e1c3e847ae22663e353fd2e2134db3476893184b6e5c3c4435dfb2ac92773ea64ec407e14
7
+ data.tar.gz: 0ec4525bbbb8b4c005a7aae4b85e6a0412972e6109893cb3b35b9a29c8b1ef7aaea1345b29fc05b1a6b2de78174f3c7d9a3cba114ad2d18b12a75a18b74313fd
@@ -2,7 +2,6 @@
2
2
 
3
3
  require 'erb'
4
4
  require 'tempfile'
5
- require 'erb/file_out/version'
6
5
 
7
6
  class ERB
8
7
  class FileOut < ERB
metadata CHANGED
@@ -1,113 +1,113 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erb-file_out
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian C. MacDonald
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-14 00:00:00.000000000 Z
11
+ date: 2018-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.13'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.13'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '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: '10.0'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '3.0'
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '3.0'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rubocop
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '0.46'
61
+ version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '0.46'
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: dotenv
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: 2.1.1
75
+ version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: 2.1.1
82
+ version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: simplecov
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '0.12'
89
+ version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: '0.12'
96
+ version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: codeclimate-test-reporter
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: 1.0.0
103
+ version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
- version: 1.0.0
110
+ version: '0'
111
111
  description: |
112
112
  By default, ERB compiles a script from the template and stores the result as a string in memory.
113
113
  This is not great when dealing with templates that could end up being very large after
@@ -119,21 +119,7 @@ executables: []
119
119
  extensions: []
120
120
  extra_rdoc_files: []
121
121
  files:
122
- - ".codeclimate.yml"
123
- - ".gitignore"
124
- - ".rspec"
125
- - ".rubocop.yml"
126
- - ".travis.yml"
127
- - CODE_OF_CONDUCT.md
128
- - Gemfile
129
- - LICENSE.txt
130
- - README.md
131
- - Rakefile
132
- - bin/console
133
- - bin/setup
134
- - erb-file_out.gemspec
135
122
  - lib/erb/file_out.rb
136
- - lib/erb/file_out/version.rb
137
123
  homepage: https://github.com/matchbookmac/erb-file_out
138
124
  licenses:
139
125
  - MIT
@@ -154,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
140
  version: '0'
155
141
  requirements: []
156
142
  rubyforge_project:
157
- rubygems_version: 2.6.8
143
+ rubygems_version: 2.7.3
158
144
  signing_key:
159
145
  specification_version: 4
160
146
  summary: Store ERB result on disc instead of in memory
@@ -1,22 +0,0 @@
1
- ---
2
- engines:
3
- duplication:
4
- enabled: true
5
- config:
6
- languages:
7
- - ruby
8
- fixme:
9
- enabled: true
10
- rubocop:
11
- enabled: true
12
- ratings:
13
- paths:
14
- - "**.inc"
15
- - "**.js"
16
- - "**.jsx"
17
- - "**.module"
18
- - "**.php"
19
- - "**.py"
20
- - "**.rb"
21
- exclude_paths:
22
- - spec/
data/.gitignore DELETED
@@ -1,11 +0,0 @@
1
- /.env
2
- /.DS_Store
3
- /.bundle/
4
- /.yardoc
5
- /Gemfile.lock
6
- /_yardoc/
7
- /coverage/
8
- /doc/
9
- /pkg/
10
- /spec/reports/
11
- /tmp/
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --format documentation
2
- --color
@@ -1,24 +0,0 @@
1
- AllCops:
2
- TargetRubyVersion: 2.3
3
-
4
- Documentation:
5
- Enabled: false
6
-
7
- Metrics/LineLength:
8
- Max: 120
9
-
10
- Style/BlockDelimiters:
11
- EnforcedStyle: semantic
12
-
13
- Style/MultilineBlockChain:
14
- Enabled: false
15
-
16
- Style/MultilineMethodCallIndentation:
17
- Enabled: true
18
- EnforcedStyle: aligned
19
-
20
- Style/AndOr:
21
- EnforcedStyle: conditionals
22
-
23
- Style/FrozenStringLiteralComment:
24
- EnforcedStyle: always
@@ -1,5 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.3.3
5
- before_install: gem install bundler -v 1.13.6
@@ -1,74 +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
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, gender identity and expression, level of experience,
9
- nationality, personal appearance, race, religion, or sexual identity and
10
- 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 imacdonald@rumblefish.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 [http://contributor-covenant.org/version/1/4][version]
72
-
73
- [homepage]: http://contributor-covenant.org
74
- [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile DELETED
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
- source 'https://rubygems.org'
3
-
4
- # Specify your gem's dependencies in erb-file_out.gemspec
5
- gemspec
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2017 Ian MacDonald
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
data/README.md DELETED
@@ -1,64 +0,0 @@
1
- # ERB::FileOut
2
-
3
- By default, ERB compiles a script from the template and stores the result as a string in memory.
4
- This is not great when dealing with templates that could end up being very large after rendering.
5
- ERB::FileOut provides a way to write the result of a template to disk instead of storing it in memory.
6
-
7
- [![Build Status](https://travis-ci.org/matchbookmac/erb-file_out.svg?branch=master)](https://travis-ci.org/matchbookmac/erb-file_out)
8
-
9
- [![Code Climate](https://codeclimate.com/github/matchbookmac/erb-file_out/badges/gpa.svg)](https://codeclimate.com/github/matchbookmac/erb-file_out)
10
-
11
- [![Test Coverage](https://codeclimate.com/github/matchbookmac/erb-file_out/badges/coverage.svg)](https://codeclimate.com/github/matchbookmac/erb-file_out/coverage)
12
-
13
- [![Issue Count](https://codeclimate.com/github/matchbookmac/erb-file_out/badges/issue_count.svg)](https://codeclimate.com/github/matchbookmac/erb-file_out)
14
-
15
- [![Gem Version](https://badge.fury.io/rb/erb-file_out.svg)](https://badge.fury.io/rb/erb-file_out)
16
-
17
- ## Installation
18
-
19
- Add this line to your application's Gemfile:
20
-
21
- ```ruby
22
- gem 'erb-file_out'
23
- ```
24
-
25
- And then execute:
26
-
27
- $ bundle
28
-
29
- Or install it yourself as:
30
-
31
- $ gem install erb-file_out
32
-
33
- ## Usage
34
-
35
- `ERB::FileOut` has the same API as `ERB`, except that it returns a path string instead of the template result.
36
-
37
- ``` ruby
38
- require 'erb/file_out'
39
- require 'pathname'
40
-
41
- result = Pathname.new(ERB::FileOut.new("This: <%= 'is' %> Pretty: <%= 'cool' %>")
42
- result.read
43
-
44
- # => 'This: is Pretty: cool'
45
- ```
46
-
47
- ## Development
48
-
49
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests.
50
- You can also run `bin/console` for an interactive prompt that will allow you to experiment.
51
-
52
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the
53
- version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version,
54
- push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
55
-
56
- ## Contributing
57
-
58
- Bug reports and pull requests are welcome on GitHub at https://github.com/matchbookmac/erb-file_out. This project is
59
- intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the
60
- [Contributor Covenant](http://contributor-covenant.org) code of conduct.
61
-
62
- ## License
63
-
64
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/Rakefile DELETED
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'bundler/gem_tasks'
4
- require 'rspec/core/rake_task'
5
- require 'dotenv/tasks'
6
-
7
- RSpec::Core::RakeTask.new(:spec)
8
-
9
- task default: :spec
10
-
11
- task post_spec_hook: :dotenv do
12
- at_exit {
13
- `codeclimate-test-reporter`
14
- }
15
- end
16
-
17
- Rake::Task['spec'].enhance(['post_spec_hook'])
@@ -1,15 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require 'bundler/setup'
5
- require 'erb/file_out'
6
-
7
- # You can add fixtures and/or initialization code here to make experimenting
8
- # with your gem easier. You can also use a different console, if you like.
9
-
10
- # (If you use this, don't forget to add pry to your Gemfile!)
11
- # require "pry"
12
- # Pry.start
13
-
14
- require 'irb'
15
- IRB.start
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
@@ -1,36 +0,0 @@
1
- # frozen_string_literal: true
2
- # coding: utf-8
3
-
4
- lib = File.expand_path('../lib', __FILE__)
5
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
6
- require 'erb/file_out/version'
7
-
8
- Gem::Specification.new do |spec|
9
- spec.name = 'erb-file_out'
10
- spec.version = ERB::FileOut::VERSION
11
- spec.authors = ['Ian C. MacDonald']
12
- spec.email = ['ian@iancmacdonald.com']
13
-
14
- spec.summary = 'Store ERB result on disc instead of in memory'
15
- spec.description = <<~DESC
16
- By default, ERB compiles a script from the template and stores the result as a string in memory.
17
- This is not great when dealing with templates that could end up being very large after
18
- rendering. ERB::FileOut provides a way to write the result of a template to disk instead of
19
- storing it in memory.
20
- DESC
21
- spec.homepage = 'https://github.com/matchbookmac/erb-file_out'
22
- spec.license = 'MIT'
23
-
24
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
25
- f.match(%r{^(test|spec|features)/})
26
- end
27
- spec.require_paths = ['lib']
28
-
29
- spec.add_development_dependency 'bundler', '~> 1.13'
30
- spec.add_development_dependency 'rake', '~> 10.0'
31
- spec.add_development_dependency 'rspec', '~> 3.0'
32
- spec.add_development_dependency 'rubocop', '~> 0.46'
33
- spec.add_development_dependency 'dotenv', '~> 2.1.1'
34
- spec.add_development_dependency 'simplecov', '~> 0.12'
35
- spec.add_development_dependency 'codeclimate-test-reporter', '~> 1.0.0'
36
- end
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class ERB
4
- class FileOut < ERB
5
- VERSION = '0.1.1'
6
- end
7
- end