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 +4 -4
- data/lib/rugular/tasks/dependencies.rb +1 -0
- data/lib/rugular/tasks/server/Guardfile +7 -0
- data/lib/rugular/templates/factory/app.factory.coffee.erb +3 -3
- data/lib/rugular/templates/new/src/app/app.controller.coffee +3 -3
- data/lib/rugular/templates/new/src/app/app.routes.coffee +1 -1
- data/lib/rugular/templates/route/app.controller.spec.coffee.erb +6 -12
- data/lib/rugular/version.rb +1 -1
- data/rugular.gemspec +16 -15
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b019d4fb93c1f8dbef025fbbd562ce23bc84038e
|
4
|
+
data.tar.gz: 1fa0aee83473286d5dc1ebb7cd55c12f63905eaa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2879d7e5ee26047c16093431ff9084f857b135bf9dd2691685402d669b84ddb84f61cedcb6e4841ab656e4bfd2a47899aaa0f86b2997b4f7d5f910380cad45c
|
7
|
+
data.tar.gz: 8250c2ad718e1062b315aee92234c79d67b9e630bbf25a2dce02ccb946cab795f3cb399ff6cd53a64d06edca37c5a7222580db850d87d6d4804c907dbe5eac79
|
@@ -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 %>
|
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
|
28
|
+
<%= name.capitalize %>.$inject = ['$q']
|
29
29
|
|
30
|
-
angular.module('<%= name %>').factory('<%= name %>
|
30
|
+
angular.module('<%= name %>').factory('<%= name.capitalize %>', <%= name.capitalize %>)
|
@@ -4,7 +4,7 @@ AppRouting = ($stateProvider, $urlRouterProvider) ->
|
|
4
4
|
$stateProvider.state 'root',
|
5
5
|
url: '/'
|
6
6
|
templateUrl: 'app/app.html'
|
7
|
-
controller: '
|
7
|
+
controller: 'appController'
|
8
8
|
controllerAs: 'app'
|
9
9
|
|
10
10
|
AppRouting.$inject = ['$stateProvider', '$urlRouterProvider']
|
@@ -1,18 +1,12 @@
|
|
1
|
-
describe '<%=
|
1
|
+
describe '<%= name %>Controller', ->
|
2
2
|
beforeEach module('<%= camelcase_name %>')
|
3
3
|
|
4
|
-
|
4
|
+
controller = undefined
|
5
5
|
|
6
|
-
beforeEach inject(
|
7
|
-
|
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 '
|
15
|
-
controller
|
16
|
-
expect(controller.title).toEqual '<%= camelcase_name %>'
|
10
|
+
it 'sets default value', ->
|
11
|
+
expect(controller.title).toEqual '<%= name %>'
|
17
12
|
return
|
18
|
-
|
data/lib/rugular/version.rb
CHANGED
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',
|
21
|
-
spec.add_runtime_dependency '
|
22
|
-
spec.add_runtime_dependency '
|
23
|
-
spec.add_runtime_dependency '
|
24
|
-
spec.add_runtime_dependency '
|
25
|
-
spec.add_runtime_dependency '
|
26
|
-
spec.add_runtime_dependency 'guard
|
27
|
-
spec.add_runtime_dependency '
|
28
|
-
spec.add_runtime_dependency '
|
29
|
-
spec.add_runtime_dependency '
|
30
|
-
spec.add_runtime_dependency '
|
31
|
-
spec.add_runtime_dependency 'sass
|
32
|
-
spec.add_runtime_dependency '
|
33
|
-
spec.add_runtime_dependency '
|
34
|
-
spec.add_runtime_dependency '
|
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.
|
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-
|
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
|