erb_with_hash 0.0.2 → 0.1.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 +5 -5
- data/.travis.yml +7 -0
- data/README.md +2 -0
- data/Rakefile +7 -0
- data/erb_with_hash.gemspec +1 -0
- data/lib/erb_with_hash.rb +6 -2
- data/lib/erb_with_hash/version.rb +1 -1
- data/spec/erb_with_hash_spec.rb +13 -0
- metadata +21 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c27d070a33e97f7496e4040e731042dcbe68955a9f3a0457fc22785ab1e76e9d
|
4
|
+
data.tar.gz: 8f2731979a85d6bb305f5be593a49890f598ba2dd7e50ddf4ddd965c40712bfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3eb3c0c1cf9574a18c4c74968902947c50b833469d54ac8315a80292e5c9960ff35f1fd0c496d7249cb40f69535d8bb394a264fed7178be15037536b02ff136
|
7
|
+
data.tar.gz: c3675167401ee7ce6b9cb17632b05527b8a57a0a7aa5c4eaf9af52c1d46a5074bf66d057ea49fb6e1166449bf9895870f8952cd39522a4658e0e250b2e4eee04
|
data/.travis.yml
ADDED
data/README.md
CHANGED
data/Rakefile
CHANGED
data/erb_with_hash.gemspec
CHANGED
data/lib/erb_with_hash.rb
CHANGED
@@ -0,0 +1,13 @@
|
|
1
|
+
require_relative '../lib/erb_with_hash'
|
2
|
+
|
3
|
+
RSpec.describe ERBWithHash do
|
4
|
+
describe '#result_with_hash' do
|
5
|
+
let(:template) {
|
6
|
+
ERB.new "<% b = a + 1 %><%= a %> + 1 = <%= b %>"
|
7
|
+
}
|
8
|
+
|
9
|
+
subject { template.result_with_hash(a: 1) }
|
10
|
+
|
11
|
+
it { is_expected.to eq "1 + 1 = 2" }
|
12
|
+
end
|
13
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: erb_with_hash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masatoshi Seki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
description: Arrow Hash in ERB#result
|
42
56
|
email:
|
43
57
|
executables: []
|
@@ -45,6 +59,7 @@ extensions: []
|
|
45
59
|
extra_rdoc_files: []
|
46
60
|
files:
|
47
61
|
- ".gitignore"
|
62
|
+
- ".travis.yml"
|
48
63
|
- Gemfile
|
49
64
|
- LICENSE.txt
|
50
65
|
- README.md
|
@@ -52,6 +67,7 @@ files:
|
|
52
67
|
- erb_with_hash.gemspec
|
53
68
|
- lib/erb_with_hash.rb
|
54
69
|
- lib/erb_with_hash/version.rb
|
70
|
+
- spec/erb_with_hash_spec.rb
|
55
71
|
homepage: https://github.com/takkanm/erb_with_hash
|
56
72
|
licenses:
|
57
73
|
- MIT
|
@@ -72,8 +88,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
88
|
version: '0'
|
73
89
|
requirements: []
|
74
90
|
rubyforge_project:
|
75
|
-
rubygems_version: 2.
|
91
|
+
rubygems_version: 2.6.14
|
76
92
|
signing_key:
|
77
93
|
specification_version: 4
|
78
94
|
summary: Arrow Hash in ERB#result
|
79
|
-
test_files:
|
95
|
+
test_files:
|
96
|
+
- spec/erb_with_hash_spec.rb
|