alephant-renderer 0.0.4.1 → 0.0.5

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: bf58a55bdfc519b68730298f56caf86353a96288
4
- data.tar.gz: 07f63dcae1d6adf36b94eab04cd9c112ed5f3b69
3
+ metadata.gz: 99aaf2d2aa11f5ac1f525a49943ad5e3b0662215
4
+ data.tar.gz: f50d57090b29cf1016ca6e80f6bd39b1b5598081
5
5
  SHA512:
6
- metadata.gz: b75fafe7f7973865bce3847ac58a751b70accec757b77db06fbab5d06c09235d5e5ce90e29de9f46ee4ce8895232255b12a79e802fc0877517ef64da0c4a48e2
7
- data.tar.gz: 253232ef80f5b25b2f975fe619b7d70f0f04775134a5e3b7311c98e158fc82fb04d4e02da3160e465ee104404ee6f06ce66b1d3f562a31e886d1487efabb26be
6
+ metadata.gz: 6e45b2dc23c8cd5d18db75445f4dbc138ff96f427ad73acd0a17292ef1eaf35a0bae2019b8447618fa89425bea9e3881b880594b7c3cd8beaaf4a1401226987b
7
+ data.tar.gz: 8eaf85eb822165ceb11ae4ae3a1f37aa5e17d6354f987a41142810482e576d7b6f7c306c65bf8c9f50e198438627f3ea3ce44ea4ba761c33d18e3a0e86bcc8e5
data/Gemfile CHANGED
@@ -2,3 +2,4 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in alephant-renderer.gemspec
4
4
  gemspec
5
+ gem 'hashie'
@@ -30,4 +30,5 @@ Gem::Specification.new do |spec|
30
30
 
31
31
  spec.add_runtime_dependency 'mustache', '>= 0.99.5'
32
32
  spec.add_runtime_dependency 'alephant-logger'
33
+ spec.add_runtime_dependency 'hashie'
33
34
  end
@@ -1,5 +1,5 @@
1
1
  module Alephant
2
2
  module Renderer
3
- VERSION = "0.0.4.1"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
@@ -1,12 +1,13 @@
1
1
  require 'mustache'
2
2
  require 'alephant/views'
3
+ require 'hashie'
3
4
 
4
5
  module Alephant::Views
5
6
  class Base < Mustache
6
7
  attr_accessor :data
7
8
 
8
9
  def initialize(data = {})
9
- @data = data
10
+ @data = Hashie::Mash.new data
10
11
  end
11
12
 
12
13
  def self.inherited(subclass)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alephant-renderer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4.1
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Kenny
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-19 00:00:00.000000000 Z
11
+ date: 2014-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -164,6 +164,20 @@ dependencies:
164
164
  version: '0'
165
165
  prerelease: false
166
166
  type: :runtime
167
+ - !ruby/object:Gem::Dependency
168
+ name: hashie
169
+ version_requirements: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ requirement: !ruby/object:Gem::Requirement
175
+ requirements:
176
+ - - '>='
177
+ - !ruby/object:Gem::Version
178
+ version: '0'
179
+ prerelease: false
180
+ type: :runtime
167
181
  description:
168
182
  email:
169
183
  - kenoir@gmail.com