bastion 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gruntfile.js +1 -7
- data/README.md +14 -0
- data/app/assets/javascripts/bastion/components/bst-container-scroll.directive.js +2 -1
- data/app/assets/javascripts/bastion/components/nutupane-table.directive.js +18 -2
- data/app/assets/javascripts/bastion/i18n/bastion.pot +131 -0
- data/app/assets/javascripts/bastion/i18n/translations.js +4 -3
- data/app/assets/stylesheets/bastion/nutupane.less +10 -0
- data/app/views/bastion/layouts/application.html.erb +1 -1
- data/bastion.js +9 -0
- data/grunt/jshint.js +1 -0
- data/grunt/karma.js +1 -2
- data/grunt/nggettext_compile.js +12 -0
- data/grunt/nggettext_extract.js +12 -0
- data/lib/bastion/version.rb +1 -1
- data/package.json +2 -1
- data/test/components/bst-container-scroll.directive.test.js +3 -1
- metadata +5 -3
- data/app/assets/javascripts/bastion/i18n/katello.pot +0 -968
data/grunt/jshint.js
CHANGED
data/grunt/karma.js
CHANGED
@@ -30,6 +30,7 @@ module.exports = {
|
|
30
30
|
basePath + 'vendor/assets/javascripts/bastion/ngUpload/ng-upload.js',
|
31
31
|
basePath + '.tmp/bower_components/angular-mocks/angular-mocks.js',
|
32
32
|
|
33
|
+
basePath + 'app/assets/javascripts/bastion/bastion-bootstrap.js',
|
33
34
|
basePath + 'app/assets/javascripts/bastion/bastion.module.js',
|
34
35
|
basePath + 'app/assets/javascripts/bastion/bastion-resource.factory.js',
|
35
36
|
basePath + 'app/assets/javascripts/bastion/i18n/i18n.module.js',
|
@@ -55,8 +56,6 @@ module.exports = {
|
|
55
56
|
'app/assets/javascripts/' + pluginName + '/**/*.js',
|
56
57
|
'app/assets/javascripts/' + pluginName + '/**/*.html',
|
57
58
|
|
58
|
-
basePath + 'app/assets/javascripts/bastion/bastion-bootstrap.js',
|
59
|
-
|
60
59
|
basePath + 'test/test-mocks.module.js',
|
61
60
|
'test/**/*test.js'
|
62
61
|
],
|
@@ -0,0 +1,12 @@
|
|
1
|
+
var basePath = __dirname + '/../',
|
2
|
+
pluginName = process.cwd().split('/').pop();
|
3
|
+
|
4
|
+
module.exports = {
|
5
|
+
options: {
|
6
|
+
module: 'Bastion.i18n'
|
7
|
+
},
|
8
|
+
bastion: {
|
9
|
+
src: ['app/assets/javascripts/**/*.po'],
|
10
|
+
dest: 'app/assets/javascripts/' + pluginName + '/i18n/translations.js'
|
11
|
+
}
|
12
|
+
};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
var basePath = __dirname + '/../',
|
2
|
+
pluginName = process.cwd().split('/').pop();
|
3
|
+
|
4
|
+
module.exports = {
|
5
|
+
bastion: {
|
6
|
+
options: {
|
7
|
+
markerName: 'translate'
|
8
|
+
},
|
9
|
+
src: ['app/assets/javascripts/**/*.html', 'app/assets/javascripts/**/*.js'],
|
10
|
+
dest: 'app/assets/javascripts/' + pluginName + '/i18n/' + pluginName + '.pot'
|
11
|
+
}
|
12
|
+
};
|
data/lib/bastion/version.rb
CHANGED
data/package.json
CHANGED
@@ -50,7 +50,9 @@ describe('Directive: bstContainerScroll', function() {
|
|
50
50
|
tableWidth = table.width(),
|
51
51
|
windowElement = angular.element(window);
|
52
52
|
|
53
|
-
windowElement.width(
|
53
|
+
expect(table.width()).toNotEqual(windowElement.width());
|
54
|
+
|
55
|
+
table.width('300px');
|
54
56
|
windowElement.trigger('resize');
|
55
57
|
|
56
58
|
expect(table.width()).toEqual(windowElement.width());
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bastion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Katello
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: angular-rails-templates
|
@@ -124,8 +124,8 @@ files:
|
|
124
124
|
- app/assets/javascripts/bastion/features/features.module.js
|
125
125
|
- app/assets/javascripts/bastion/features/features.service.js
|
126
126
|
- app/assets/javascripts/bastion/i18n/README
|
127
|
+
- app/assets/javascripts/bastion/i18n/bastion.pot
|
127
128
|
- app/assets/javascripts/bastion/i18n/i18n.module.js
|
128
|
-
- app/assets/javascripts/bastion/i18n/katello.pot
|
129
129
|
- app/assets/javascripts/bastion/i18n/locale/README
|
130
130
|
- app/assets/javascripts/bastion/i18n/translate.service.js
|
131
131
|
- app/assets/javascripts/bastion/i18n/translations.js
|
@@ -160,6 +160,8 @@ files:
|
|
160
160
|
- grunt/htmlhint.js
|
161
161
|
- grunt/jshint.js
|
162
162
|
- grunt/karma.js
|
163
|
+
- grunt/nggettext_compile.js
|
164
|
+
- grunt/nggettext_extract.js
|
163
165
|
- lib/bastion.rb
|
164
166
|
- lib/bastion/engine.rb
|
165
167
|
- lib/bastion/version.rb
|