hexx-cli 0.0.2 → 0.0.3

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
  SHA1:
3
- metadata.gz: b8d7559e73a92c44357167058c16f2e3d58ca668
4
- data.tar.gz: f9475867be9a3f45273ed4d0048bcd09cb030ca9
3
+ metadata.gz: 43d98a7d720585174f404c63fc9a2e966e33a672
4
+ data.tar.gz: cc22e252fa1d0597ab4e9707eb9ad614f4792fe0
5
5
  SHA512:
6
- metadata.gz: 32d5583c78a9475a523762f46a7db03ed72f717fee6350627666d1c198cd127c6fbd4702e79909068825e1c9a9af129d47716e944ffcec9dbaad27d0d648bb89
7
- data.tar.gz: 0a6366c9801ae22b5da5e69031ea30eb2f7a2b64e43a43e5de17659ed3c7797d5061d453084c8d2349ec021c551706399c69894c425fcd3401385bc48456ceed
6
+ metadata.gz: a0aa62d2b3c7a30bc1658cf8014cc8bf388d7d01ed797303ea2ce937e11fa0370c42cc4e603c2a231b7e9a8b15fd9c3268a6da162e7dd75d78f08fdf013c27f2
7
+ data.tar.gz: b4f193af210311f230ddde5bde968f84e0e1e0d40da5145c54e01a27fc582d0bad2448316745f3b1c123cedaa22a1e222b8d8416706963cc706aeb2f1fc24222
data/lib/hexx/cli/base.rb CHANGED
@@ -42,7 +42,8 @@ module Hexx
42
42
  def from_template(source)
43
43
  path = find_in_source_paths(source)
44
44
  content = ::File.read(path)
45
- ERB.new(content, nil, "-").result
45
+ context = instance_eval("binding")
46
+ ERB.new(content, nil, "-").result(context)
46
47
  end
47
48
 
48
49
  # Copies files from source folder into the destination one
@@ -6,7 +6,7 @@ module Hexx
6
6
 
7
7
  # The semantic version of the module.
8
8
  # @see http://semver.org/ Semantic versioning 2.0
9
- VERSION = "0.0.2".freeze
9
+ VERSION = "0.0.3".freeze
10
10
 
11
11
  end
12
12
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hexx-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kozin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-16 00:00:00.000000000 Z
11
+ date: 2015-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: extlib