render_me_pretty 0.8.4 → 0.9.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/workflows/rspec.yml +15 -0
- data/CHANGELOG.md +6 -0
- data/README.md +1 -1
- data/lib/render_me_pretty/erb.rb +1 -0
- data/lib/render_me_pretty/version.rb +1 -1
- metadata +4 -4
- data/.circleci/config.yml +0 -58
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28f4378bce74504d490fde1c53d18fa5132a9aa5ea072fdde13a322181222325
|
4
|
+
data.tar.gz: 35d9971f8c07a02bf099d2b0a78c6d204fa5a542027399d99d334776366b0615
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b370e5090fcc8c5c6344caf169562a491ea319d1cc866d4968f5ea659e10009ed17383413181b8657048040e77cc99d8e18e01d9bf04d50fa8f21a885895fcff
|
7
|
+
data.tar.gz: 4f5b87455ae81cb9e3b49f7e1771e1155f5c8a3a6e797e8833616c6dcef6f836f2de99546cf880aeaad3c081345406202f01574652490d7c50095d43b614e54a
|
@@ -0,0 +1,15 @@
|
|
1
|
+
name: Run RSpec tests
|
2
|
+
on: [push,pull_request]
|
3
|
+
jobs:
|
4
|
+
test:
|
5
|
+
runs-on: ubuntu-latest
|
6
|
+
steps:
|
7
|
+
- uses: actions/checkout@v2
|
8
|
+
- name: Set up Ruby
|
9
|
+
uses: ruby/setup-ruby@v1
|
10
|
+
with:
|
11
|
+
ruby-version: 3.2
|
12
|
+
bundler-cache: true
|
13
|
+
- name: Run tests
|
14
|
+
run: |
|
15
|
+
bundle exec rspec
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,12 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
|
5
5
|
|
6
|
+
## [0.9.0] - 2023-06-06
|
7
|
+
- [#2](https://github.com/tongueroo/render_me_pretty/pull/2) require tilt so EMPTY_HASH is defined
|
8
|
+
- [#3](https://github.com/tongueroo/render_me_pretty/pull/3) CI: Github Actions Rspec
|
9
|
+
- add github action badge
|
10
|
+
- remove circleci
|
11
|
+
|
6
12
|
## [0.8.4] - 2021-12-28
|
7
13
|
- fix activesupport require
|
8
14
|
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Render Me Pretty
|
2
2
|
|
3
|
-
|
3
|
+

|
4
4
|
|
5
5
|
[](https://www.boltops.com)
|
6
6
|
|
data/lib/render_me_pretty/erb.rb
CHANGED
@@ -39,6 +39,7 @@ If you want to use your own context object, pass it as a variable. The context
|
|
39
39
|
The context will be `person`. So person methods and instance variables will be available in the ERB templates.
|
40
40
|
|
41
41
|
=end
|
42
|
+
require 'tilt'
|
42
43
|
require 'tilt/erb'
|
43
44
|
|
44
45
|
module RenderMePretty
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: render_me_pretty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -101,7 +101,7 @@ executables: []
|
|
101
101
|
extensions: []
|
102
102
|
extra_rdoc_files: []
|
103
103
|
files:
|
104
|
-
- ".
|
104
|
+
- ".github/workflows/rspec.yml"
|
105
105
|
- ".gitignore"
|
106
106
|
- ".rspec"
|
107
107
|
- CHANGELOG.md
|
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
136
|
- !ruby/object:Gem::Version
|
137
137
|
version: '0'
|
138
138
|
requirements: []
|
139
|
-
rubygems_version: 3.
|
139
|
+
rubygems_version: 3.4.10
|
140
140
|
signing_key:
|
141
141
|
specification_version: 4
|
142
142
|
summary: Render ERB template and provide more useful message pointing out the line
|
data/.circleci/config.yml
DELETED
@@ -1,58 +0,0 @@
|
|
1
|
-
# Ruby CircleCI 2.0 configuration file
|
2
|
-
#
|
3
|
-
# Check https://circleci.com/docs/2.0/language-ruby/ for more details
|
4
|
-
#
|
5
|
-
version: 2
|
6
|
-
jobs:
|
7
|
-
build:
|
8
|
-
docker:
|
9
|
-
# specify the version you desire here
|
10
|
-
- image: circleci/ruby:2.5.3
|
11
|
-
|
12
|
-
working_directory: ~/repo
|
13
|
-
|
14
|
-
steps:
|
15
|
-
- checkout
|
16
|
-
|
17
|
-
- run:
|
18
|
-
name: submodule sync
|
19
|
-
command: |
|
20
|
-
git submodule sync
|
21
|
-
git submodule update --init
|
22
|
-
|
23
|
-
# Download and cache dependencies
|
24
|
-
- restore_cache:
|
25
|
-
keys:
|
26
|
-
- v2-dependencies-{{ checksum "Gemfile.lock" }}
|
27
|
-
# fallback to using the latest cache if no exact match is found
|
28
|
-
- v2-dependencies-
|
29
|
-
|
30
|
-
- run:
|
31
|
-
name: install dependencies
|
32
|
-
command: |
|
33
|
-
bundle install --jobs=4 --retry=3 --path vendor/bundle
|
34
|
-
|
35
|
-
- save_cache:
|
36
|
-
paths:
|
37
|
-
- ./vendor/bundle
|
38
|
-
key: v2-dependencies-{{ checksum "Gemfile.lock" }}
|
39
|
-
|
40
|
-
# run tests!
|
41
|
-
- run:
|
42
|
-
name: run tests
|
43
|
-
command: |
|
44
|
-
mkdir /tmp/test-results
|
45
|
-
|
46
|
-
cat >.rspec <<EOL
|
47
|
-
--format documentation
|
48
|
-
--require spec_helper
|
49
|
-
EOL
|
50
|
-
|
51
|
-
bundle exec rspec
|
52
|
-
|
53
|
-
# collect reports
|
54
|
-
- store_test_results:
|
55
|
-
path: /tmp/test-results
|
56
|
-
- store_artifacts:
|
57
|
-
path: /tmp/test-results
|
58
|
-
destination: test-results
|