bastion 0.1.12 → 0.1.13

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.
data/grunt/jshint.js CHANGED
@@ -5,5 +5,6 @@ module.exports = {
5
5
  all: [
6
6
  'Gruntfile.js',
7
7
  'app/assets/javascripts/**/*.js',
8
+ '!app/assets/javascripts/bastion/i18n/translations.js'
8
9
  ]
9
10
  };
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
+ };
@@ -1,3 +1,3 @@
1
1
  module Bastion
2
- VERSION = "0.1.12"
2
+ VERSION = "0.1.13"
3
3
  end
data/package.json CHANGED
@@ -14,7 +14,8 @@
14
14
  "karma-coverage": "~0.2.6",
15
15
  "grunt-htmlhint": "~0.4.1",
16
16
  "grunt-concurrent": "~1.0.0",
17
- "generator-bastion": "~0.1.2"
17
+ "generator-bastion": "~0.1.2",
18
+ "grunt-angular-gettext": "~0.2.15"
18
19
  },
19
20
  "engines": {
20
21
  "node": ">=0.8.0"
@@ -50,7 +50,9 @@ describe('Directive: bstContainerScroll', function() {
50
50
  tableWidth = table.width(),
51
51
  windowElement = angular.element(window);
52
52
 
53
- windowElement.width('300px');
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.12
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: 2014-12-08 00:00:00.000000000 Z
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