render_me_pretty 0.8.3 → 0.9.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
2
  SHA256:
3
- metadata.gz: b5113f6fcbc7bf8b34aab3bff299fb3791b4d2a7f9e7f3079638e981a5ee38bb
4
- data.tar.gz: d1be7dc5df735c9cb11e7502299a01116c035e477cd3f63805a8560f2c83cc27
3
+ metadata.gz: 28f4378bce74504d490fde1c53d18fa5132a9aa5ea072fdde13a322181222325
4
+ data.tar.gz: 35d9971f8c07a02bf099d2b0a78c6d204fa5a542027399d99d334776366b0615
5
5
  SHA512:
6
- metadata.gz: 41cc2f8f88c9f9b4e630c679469aecb73980d96d1c52cb2b72ce190fa101d7d7288596d717167c4893aa4fade2612409bb4b50b3137df38d44c9a23a3c5c27ac
7
- data.tar.gz: 67a9a575c7c65e682f90d0216abb8302ab7489baa52d23e7cc3c61407e8da74fa9e8a5fa9b27e872780822f6a188379ae7966b3641174ba4191399146227df01
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/.gitignore CHANGED
@@ -6,3 +6,4 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+ /Gemfile.lock
data/CHANGELOG.md CHANGED
@@ -3,6 +3,15 @@
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
+
12
+ ## [0.8.4] - 2021-12-28
13
+ - fix activesupport require
14
+
6
15
  ## [0.8.3]
7
16
  - add .circleci/config.yml
8
17
  - show full backtrace when error not found within users layout or project path
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Render Me Pretty
2
2
 
3
- [![CircleCI](https://circleci.com/gh/tongueroo/render_me_pretty.svg?style=svg)](https://circleci.com/gh/tongueroo/render_me_pretty)
3
+ ![workflow](https://github.com/tongueroo/render_me_pretty/actions/workflows/rspec.yml/badge.svg)
4
+
5
+ [![BoltOps Badge](https://img.boltops.com/boltops/badges/boltops-badge.png)](https://www.boltops.com)
4
6
 
5
7
  Let's say you have an error in your ERB template:
6
8
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module RenderMePretty
2
- VERSION = "0.8.3"
2
+ VERSION = "0.9.0"
3
3
  end
@@ -1,6 +1,7 @@
1
1
  require "render_me_pretty/version"
2
+ require "active_support"
2
3
  require "active_support/core_ext/string"
3
- require 'rainbow/ext/string'
4
+ require "rainbow/ext/string"
4
5
 
5
6
  module RenderMePretty
6
7
  autoload :Erb, 'render_me_pretty/erb'
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.8.3
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: 2019-08-30 00:00:00.000000000 Z
11
+ date: 2023-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -101,12 +101,11 @@ executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
- - ".circleci/config.yml"
104
+ - ".github/workflows/rspec.yml"
105
105
  - ".gitignore"
106
106
  - ".rspec"
107
107
  - CHANGELOG.md
108
108
  - Gemfile
109
- - Gemfile.lock
110
109
  - README.md
111
110
  - Rakefile
112
111
  - bin/console
@@ -137,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
136
  - !ruby/object:Gem::Version
138
137
  version: '0'
139
138
  requirements: []
140
- rubygems_version: 3.0.3
139
+ rubygems_version: 3.4.10
141
140
  signing_key:
142
141
  specification_version: 4
143
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
data/Gemfile.lock DELETED
@@ -1,52 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- render_me_pretty (0.8.2)
5
- activesupport
6
- rainbow
7
- tilt
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- activesupport (5.2.2)
13
- concurrent-ruby (~> 1.0, >= 1.0.2)
14
- i18n (>= 0.7, < 2)
15
- minitest (~> 5.1)
16
- tzinfo (~> 1.1)
17
- concurrent-ruby (1.1.4)
18
- diff-lcs (1.3)
19
- i18n (1.5.3)
20
- concurrent-ruby (~> 1.0)
21
- minitest (5.11.3)
22
- rainbow (3.0.0)
23
- rake (12.3.2)
24
- rspec (3.8.0)
25
- rspec-core (~> 3.8.0)
26
- rspec-expectations (~> 3.8.0)
27
- rspec-mocks (~> 3.8.0)
28
- rspec-core (3.8.0)
29
- rspec-support (~> 3.8.0)
30
- rspec-expectations (3.8.2)
31
- diff-lcs (>= 1.2.0, < 2.0)
32
- rspec-support (~> 3.8.0)
33
- rspec-mocks (3.8.0)
34
- diff-lcs (>= 1.2.0, < 2.0)
35
- rspec-support (~> 3.8.0)
36
- rspec-support (3.8.0)
37
- thread_safe (0.3.6)
38
- tilt (2.0.9)
39
- tzinfo (1.2.5)
40
- thread_safe (~> 0.1)
41
-
42
- PLATFORMS
43
- ruby
44
-
45
- DEPENDENCIES
46
- bundler
47
- rake
48
- render_me_pretty!
49
- rspec
50
-
51
- BUNDLED WITH
52
- 1.17.2