bastion 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/assets/javascripts/bastion/components/nutupane.factory.js +5 -0
- data/app/assets/stylesheets/bastion/bastion.less +5 -0
- data/app/assets/stylesheets/bastion/nutupane.less +4 -0
- data/app/assets/stylesheets/bastion/typography.less +4 -0
- data/lib/bastion/version.rb +1 -1
- data/test/components/nutupane.factory.test.js +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDgyM2Y4M2Y0YWMyMjA1OGRlNTZlNmRhNWQzYTA3MzZmYmViMGE1ZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTQ4MDdmOGUyMTRkZmNjOTVlNTNlMWZiNTI5OTU5NDBhNWU4Y2I0MQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
N2Y1MGVmN2NmZDdlMTAxZDM3Y2RjNWFhMTZjNjQ1NzhjOTUzMzBjZjU4NmM3
|
10
|
+
YTlhYjVmMWRkYmUxNzE3OTU3MGRiYzhiOGI4Y2MxN2Q3Mjg2NjFkNDA5YTE5
|
11
|
+
MmY2MzUyOGVmZmNjOGI3YjUwNWQxOTlhNDQ0ZmVhYzExNjA5NmU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTcyMDc4YWU3NzE1MjE1MDE1OTQzZTkwMGM5YzFiZmZlODRkYjAwZjg1ODY4
|
14
|
+
MjU3NmI1OTQzMWJmYTViYzQ3OWQ5NTEyMTkyZWE4YzkzMWU5YmYwYzU2OTg5
|
15
|
+
ZTlhZDg5NDQ5OGFlYzYxYjgwZjc1MTRmYzdlZmI4ZjZjMGEwMTk=
|
@@ -353,6 +353,11 @@ angular.module('Bastion.components').factory('Nutupane',
|
|
353
353
|
self.table.rows = [];
|
354
354
|
self.query();
|
355
355
|
};
|
356
|
+
|
357
|
+
self.setSearchKey = function (newKey) {
|
358
|
+
self.searchKey = newKey;
|
359
|
+
self.table.searchTerm = $location.search()[self.searchKey];
|
360
|
+
};
|
356
361
|
};
|
357
362
|
return Nutupane;
|
358
363
|
}]
|
data/lib/bastion/version.rb
CHANGED
@@ -233,6 +233,11 @@ describe('Factory: Nutupane', function() {
|
|
233
233
|
expect(translated[2]).toBe(data[1]);
|
234
234
|
});
|
235
235
|
|
236
|
+
it("provides a way to change the searchKey", function() {
|
237
|
+
nutupane.setSearchKey("keyFoo");
|
238
|
+
expect(nutupane.searchKey).toBe("keyFoo");
|
239
|
+
});
|
240
|
+
|
236
241
|
it("autocompletes using the original resource if possible", function() {
|
237
242
|
var data;
|
238
243
|
Resource.autocomplete = function() {return ["foo"]};
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bastion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric D Helms
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-10-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: angular-rails-templates
|