rugular 0.9.2 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 66495d81c7809d4ada83b691e1df5d927d230fb9
4
- data.tar.gz: fa52e0d3130de3da2c22312d38c120a65180630b
3
+ metadata.gz: b019d4fb93c1f8dbef025fbbd562ce23bc84038e
4
+ data.tar.gz: 1fa0aee83473286d5dc1ebb7cd55c12f63905eaa
5
5
  SHA512:
6
- metadata.gz: 6188d57f0a551bca9bf3a52ba01d91058c52557b19c70f5dac082a36e0916c441fea91377cad999e10ad0bdd3315a4fd311f45fc7c0f4c47877eabf0b037c3b5
7
- data.tar.gz: 1e75e7756b5209fef8ca14391c6435fb4d585f2e7d699d24a76784624e25d4a2db3b426d89ff0abcc41dc60b0042318d55ae9da2d8fd967842e6f1cdfdaf40e8
6
+ metadata.gz: a2879d7e5ee26047c16093431ff9084f857b135bf9dd2691685402d669b84ddb84f61cedcb6e4841ab656e4bfd2a47899aaa0f86b2997b4f7d5f910380cad45c
7
+ data.tar.gz: 8250c2ad718e1062b315aee92234c79d67b9e630bbf25a2dce02ccb946cab795f3cb399ff6cd53a64d06edca37c5a7222580db850d87d6d4804c907dbe5eac79
@@ -27,6 +27,7 @@ module Rugular
27
27
  ~~~~~~~~*\o/~~~~~/\*~~~~~~~
28
28
  Installing bower components
29
29
  BOWER_MESSAGE
30
+ system('npm install -g bower')
30
31
  system('bower install')
31
32
  end
32
33
 
@@ -3,4 +3,11 @@ require "#{__dir__}/guards/rugular.rb"
3
3
  guard :rugular do
4
4
  watch /^src\/.+\.(coffee|haml|png|jpg|ttf|woff)$/
5
5
  watch 'bower_components.yaml'
6
+
7
+ ignore %r(^bower_components/*)
8
+ ignore %r(^node_modules/*)
9
+ ignore %r(^release/*)
10
+ ignore %r(^dist/*)
11
+ ignore %r(^vendor/*)
12
+ ignore %r(^\.tmp/*)
6
13
  end
@@ -1,4 +1,4 @@
1
- <%= name %>Factory = ($q) ->
1
+ <%= name.capitalize %> = ($q) ->
2
2
  getquestions = ->
3
3
  questions = [
4
4
  {
@@ -25,6 +25,6 @@
25
25
  questions: getQuestions()
26
26
  }
27
27
 
28
- <%= name %>Factory.$inject = ['$q']
28
+ <%= name.capitalize %>.$inject = ['$q']
29
29
 
30
- angular.module('<%= name %>').factory('<%= name %>Factory', <%= name %>Factory)
30
+ angular.module('<%= name %>').factory('<%= name.capitalize %>', <%= name.capitalize %>)
@@ -1,6 +1,6 @@
1
- AppController = ->
2
- @title = 'App'
1
+ appController = ->
2
+ @title = 'app'
3
3
 
4
- angular.module('app').controller('AppController', AppController)
4
+ angular.module('app').controller('appController', appController)
5
5
 
6
6
 
@@ -4,7 +4,7 @@ AppRouting = ($stateProvider, $urlRouterProvider) ->
4
4
  $stateProvider.state 'root',
5
5
  url: '/'
6
6
  templateUrl: 'app/app.html'
7
- controller: 'AppController'
7
+ controller: 'appController'
8
8
  controllerAs: 'app'
9
9
 
10
10
  AppRouting.$inject = ['$stateProvider', '$urlRouterProvider']
@@ -1,18 +1,12 @@
1
- describe '<%= camelcase_name %>Controller', ->
1
+ describe '<%= name %>Controller', ->
2
2
  beforeEach module('<%= camelcase_name %>')
3
3
 
4
- $controller = undefined
4
+ controller = undefined
5
5
 
6
- beforeEach inject((_$controller_) ->
7
- # The injector unwraps the underscores (_) from around the parameter names when matching
8
- $controller = _$controller_
9
-
10
- return
11
- )
6
+ beforeEach inject (_$controller_) ->
7
+ controller = _$controller_('<%= name %>Controller')
12
8
 
13
9
  describe 'this.title', ->
14
- it 'is initially set to "<%= camelcase_name %>"', ->
15
- controller = $controller('<%= camelcase_name %>Controller')
16
- expect(controller.title).toEqual '<%= camelcase_name %>'
10
+ it 'sets default value', ->
11
+ expect(controller.title).toEqual '<%= name %>'
17
12
  return
18
-
@@ -1,3 +1,3 @@
1
1
  module Rugular
2
- VERSION = '0.9.2'
2
+ VERSION = '0.9.4'
3
3
  end
data/rugular.gemspec CHANGED
@@ -17,21 +17,22 @@ Gem::Specification.new do |spec|
17
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
18
  spec.require_paths = ['lib']
19
19
 
20
- spec.add_runtime_dependency 'actionview', '~> 4'
21
- spec.add_runtime_dependency 'bitters', '~> 1'
22
- spec.add_runtime_dependency 'bourbon', '~> 4'
23
- spec.add_runtime_dependency 'coffee-script', '~> 2'
24
- spec.add_runtime_dependency 'foreman', '~> 0'
25
- spec.add_runtime_dependency 'guard', '~> 2'
26
- spec.add_runtime_dependency 'guard-compat', '~> 1'
27
- spec.add_runtime_dependency 'haml', '~> 4'
28
- spec.add_runtime_dependency 'neat', '~> 1'
29
- spec.add_runtime_dependency 'nokogiri', '~> 1'
30
- spec.add_runtime_dependency 'sass', '~> 3'
31
- spec.add_runtime_dependency 'sass-globbing', '~> 1'
32
- spec.add_runtime_dependency 'thor', '~> 0'
33
- spec.add_runtime_dependency 'tmuxinator', '~> 0'
34
- spec.add_runtime_dependency 'uglifier', '~> 2'
20
+ spec.add_runtime_dependency 'actionview', '~> 4'
21
+ spec.add_runtime_dependency 'activesupport', '~> 4'
22
+ spec.add_runtime_dependency 'bitters', '~> 1'
23
+ spec.add_runtime_dependency 'bourbon', '~> 4'
24
+ spec.add_runtime_dependency 'coffee-script', '~> 2'
25
+ spec.add_runtime_dependency 'foreman', '~> 0'
26
+ spec.add_runtime_dependency 'guard', '~> 2'
27
+ spec.add_runtime_dependency 'guard-compat', '~> 1'
28
+ spec.add_runtime_dependency 'haml', '~> 4'
29
+ spec.add_runtime_dependency 'neat', '~> 1'
30
+ spec.add_runtime_dependency 'nokogiri', '~> 1'
31
+ spec.add_runtime_dependency 'sass', '~> 3'
32
+ spec.add_runtime_dependency 'sass-globbing', '~> 1'
33
+ spec.add_runtime_dependency 'thor', '~> 0'
34
+ spec.add_runtime_dependency 'tmuxinator', '~> 0'
35
+ spec.add_runtime_dependency 'uglifier', '~> 2'
35
36
 
36
37
  spec.add_development_dependency 'aruba', '~> 0'
37
38
  spec.add_development_dependency 'byebug', '~> 3'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rugular
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Shook
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-25 00:00:00.000000000 Z
11
+ date: 2015-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '4'
27
+ - !ruby/object:Gem::Dependency
28
+ name: activesupport
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '4'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '4'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: bitters
29
43
  requirement: !ruby/object:Gem::Requirement