render_me_pretty 0.8.2 → 0.8.3

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
2
  SHA256:
3
- metadata.gz: 37afb0227c2842468c859b1a702b109e017eb0b8514bb64d39b93cd843d62775
4
- data.tar.gz: 68bec95258f7211f9449f27c619879d235d13b612fb99b8522ef5f72b0ff3ae4
3
+ metadata.gz: b5113f6fcbc7bf8b34aab3bff299fb3791b4d2a7f9e7f3079638e981a5ee38bb
4
+ data.tar.gz: d1be7dc5df735c9cb11e7502299a01116c035e477cd3f63805a8560f2c83cc27
5
5
  SHA512:
6
- metadata.gz: 26384f2792d24e9b5a8b4267c9afd064b772154ab60e3d1f49a194755e16ee55da3e2ae03c82d2149897fac674e392173240d9b5d01b9529aaa86f1234578daa
7
- data.tar.gz: af714d14c2f4ee3927e579599f05289c906ecd7d8c586a989194cb238142eb4fb4be2d30e5169943acad63fe074e941c49a607cc76490415bedbd91f57af8030
6
+ metadata.gz: 41cc2f8f88c9f9b4e630c679469aecb73980d96d1c52cb2b72ce190fa101d7d7288596d717167c4893aa4fade2612409bb4b50b3137df38d44c9a23a3c5c27ac
7
+ data.tar.gz: 67a9a575c7c65e682f90d0216abb8302ab7489baa52d23e7cc3c61407e8da74fa9e8a5fa9b27e872780822f6a188379ae7966b3641174ba4191399146227df01
@@ -0,0 +1,58 @@
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
@@ -3,6 +3,10 @@
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.8.3]
7
+ - add .circleci/config.yml
8
+ - show full backtrace when error not found within users layout or project path
9
+
6
10
  ## [0.8.2]
7
11
  - use rainbow gem for terminal color
8
12
 
@@ -10,7 +10,13 @@ class RenderMePretty::Erb
10
10
  error_line = lines.select do |line|
11
11
  line.include?(template_path_with_error)
12
12
  end.first
13
- error_line.split(':')[1].to_i
13
+
14
+ if error_line.nil?
15
+ puts "WARN: Unable to find line number. Fallback and print out full backtrace."
16
+ puts @exception.backtrace
17
+ else
18
+ error_line.split(':')[1].to_i
19
+ end
14
20
  end
15
21
 
16
22
  def error_in_layout?
@@ -1,3 +1,3 @@
1
1
  module RenderMePretty
2
- VERSION = "0.8.2"
2
+ VERSION = "0.8.3"
3
3
  end
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.2
4
+ version: 0.8.3
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-01-25 00:00:00.000000000 Z
11
+ date: 2019-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -101,6 +101,7 @@ executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
+ - ".circleci/config.yml"
104
105
  - ".gitignore"
105
106
  - ".rspec"
106
107
  - CHANGELOG.md
@@ -136,8 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
137
  - !ruby/object:Gem::Version
137
138
  version: '0'
138
139
  requirements: []
139
- rubyforge_project:
140
- rubygems_version: 2.7.6
140
+ rubygems_version: 3.0.3
141
141
  signing_key:
142
142
  specification_version: 4
143
143
  summary: Render ERB template and provide more useful message pointing out the line