aerials 0.0.1 → 0.0.2

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: 55d124b4056f7777832c330340576788de10c2a3
4
- data.tar.gz: 2102944d9b1c3e50302cc8ccfc7a4d7745aa565c
3
+ metadata.gz: dfeb52aadb8fbd51583379067ea0917411b66038
4
+ data.tar.gz: e47d08335dc26865205bfae7f40735cfd96bd4fb
5
5
  SHA512:
6
- metadata.gz: 0798f0491e79da7edb1a9b7bc24a38ec58e9313139a2461f545fad115703c08f2102fb92619d5e36979ec2291b6679f0f2e9a984a2b64f2025d5f03accb6a660
7
- data.tar.gz: 99a100cacef2d39d5bc87d4f35aca29fde188748abb2ff7e04bf6a932846e1c53ab7e81aa187c0021f31ece456bc20d5f08a8ab9b42c6ac60d0e2f642b990b89
6
+ metadata.gz: 3f8cd1663a37bfcccfa7a43175f562324873fc183b94492c09bfe219df8bd764692f140c8c2cc4758549505ea109c487e5d626043c50c7c0d16cdf190a38744b
7
+ data.tar.gz: a88207e5f1cd99a4681356353a1cccfbb6101e95f81ad9b3c96d92814d37e273dd442df08bec811c0018890564ca7892cc4a11a1c1cd3025687c12cccfc944ab
@@ -6,7 +6,7 @@ class Aerials
6
6
  end
7
7
 
8
8
  def self.create_json_rails(struct, exclude: [:action, :controller, :key])
9
- self.create_json(struct, exclude)
9
+ self.create_json(struct, exclude: exclude)
10
10
  end
11
11
 
12
12
  def self.create_json(struct, exclude: [])
@@ -1,3 +1,3 @@
1
1
  class Aerials
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -63,5 +63,12 @@ describe Aerials do
63
63
  struct = {'b' => 'c', 'c' => 'z', 'a' => 'g', 'd' => 'e'}
64
64
  expect(Aerials.create_json struct, exclude: ['c', 'd']).to eq "{'a':'g','b':'c'}"
65
65
  end
66
+
67
+ it 'excludes controller & action for Rails' do
68
+ struct = { action: 'action',
69
+ controller: 'controller',
70
+ data: 'some data'}
71
+ expect(Aerials.create_json_rails struct).to eq "{'data':'some data'}"
72
+ end
66
73
  end
67
74
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aerials
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Exempliarov