angular_sprinkles 0.2.13 → 0.2.14

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
  SHA1:
3
- metadata.gz: f2f319c333ef62df99ce38f1283be024f3f14477
4
- data.tar.gz: 849dfd932ebb1c60be65283e11ff205a58ed28da
3
+ metadata.gz: dff2c0fdcd7737a0adcce73fb1ce61386b3c0b42
4
+ data.tar.gz: d333af388f0a7ccfbe56f3824e8336b01a5cacf6
5
5
  SHA512:
6
- metadata.gz: bd87b46e1bc7f03482f2bd517d1c843a23aa5710e658ee1ee22ca66f2ace9289e85049aaa97e94e5e289e83512202bd44648ce9475b1a850aad866b06ed3e7cd
7
- data.tar.gz: 32af876fc588272a8dec951bf92a5d13684592be338097b9b07566c44bb9d20d6353038079d00ac6042466cfcd5edffdc8d9375c54949d831b7c80361f8bdc99
6
+ metadata.gz: 3cacd67c49ae9ea243664e5ba9b40bc5a8192a6a38767e12f99c9d10b3c6bf4478ea200a7e9d2f87ee69499ef9be9eca221039219cdeddc5e9233ca0a1f002af
7
+ data.tar.gz: 3b5557d45d3b8904e28ecb59929829e7ea5090c1fa5d8afec07a8c043b9d033e14bd01ab02f74b135b3af94b91cb1f08eb9cfd0ce1eef0712b09a74528988090
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.13
1
+ 0.2.14
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: angular_sprinkles 0.2.13 ruby lib
5
+ # stub: angular_sprinkles 0.2.14 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "angular_sprinkles"
9
- s.version = "0.2.13"
9
+ s.version = "0.2.14"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
@@ -2,7 +2,7 @@ module AngularSprinkles
2
2
  module Directive
3
3
  class Input
4
4
  def initialize(args)
5
- @args = (args || {}).symbolize_keys
5
+ @args = (args || {})
6
6
  end
7
7
 
8
8
  def attributes
@@ -13,7 +13,7 @@ module AngularSprinkles
13
13
 
14
14
  def to_json_hash
15
15
  Hash[@args.map do |k, v|
16
- [k, v.is_a?(String) ? v : v.to_json]
16
+ [k.to_s.underscore.dasherize, v.is_a?(String) ? v : v.to_json]
17
17
  end]
18
18
  end
19
19
  end
@@ -1,7 +1,7 @@
1
1
  require "spec_helper"
2
2
 
3
3
  describe AngularSprinkles::Directive::Input do
4
- let(:args) { { key: value } }
4
+ let(:args) { { "key" => value } }
5
5
 
6
6
  subject { described_class.new(args) }
7
7
 
@@ -17,7 +17,7 @@ describe AngularSprinkles::Directive::Input do
17
17
  let(:value) { double(to_json: 1) }
18
18
 
19
19
  it "turns the args hash into a jsonified data hash" do
20
- expect(subject.attributes).to eq({ data: { key: 1 } })
20
+ expect(subject.attributes).to eq({ data: { "key" => 1 } })
21
21
  end
22
22
  end
23
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: angular_sprinkles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.13
4
+ version: 0.2.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabe Scholz