arethusa-cli 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/arethusa/cli/generator.rb +3 -3
- data/lib/arethusa/cli/templates/service.tt +5 -0
- data/lib/arethusa/cli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77ae9eb0d92543f1d0836e12eafb311d3072eac5
|
4
|
+
data.tar.gz: 3ec21e4e897bd0ce270dc80dcb66b63be03d50de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a1d92479b26602c24b782598484fbc6e4f15ea1248e2ebd44bb3aa01302351999e41f53e44466e73c03c64542e4d5f025e36bd29cad6e99e120d2b88c9f0efc
|
7
|
+
data.tar.gz: 85e43804460ad7d9f155a98fe52c91a4b6505253aa9fbcf0d160d7c79be90adffa97995105aea077978c4f2676d8d583220209fe90c91b1e8b0d44cdc26ce3e9
|
@@ -84,8 +84,8 @@ class Arethusa::CLI
|
|
84
84
|
end
|
85
85
|
|
86
86
|
def add_module
|
87
|
-
insert_into_file(arethusa_main,
|
88
|
-
"
|
87
|
+
insert_into_file(arethusa_main, after: /arethusa\.core',\n/, force: false) do
|
88
|
+
" '#{namespaced_name(true)}',\n"
|
89
89
|
end
|
90
90
|
end
|
91
91
|
|
@@ -100,7 +100,7 @@ class Arethusa::CLI
|
|
100
100
|
end
|
101
101
|
|
102
102
|
def add_minification_task
|
103
|
-
insert_into_file(gruntfile, after: /registerTask
|
103
|
+
insert_into_file(gruntfile, after: /registerTask\('minify.*?\n/, force: false) do
|
104
104
|
%{ 'uglify:#{name(true)}',\n}
|
105
105
|
end
|
106
106
|
end
|
@@ -6,6 +6,11 @@ angular.module('<%= namespaced_name(true) %>').service('<%= name(true) %>', [
|
|
6
6
|
function(state, configurator) {
|
7
7
|
var self = this;
|
8
8
|
|
9
|
+
this.defaultConf = {
|
10
|
+
name: '<%= name(true) %>',
|
11
|
+
template: 'templates/<%= namespaced_name %>/<%= name %>.html'
|
12
|
+
}
|
13
|
+
|
9
14
|
function configure() {
|
10
15
|
configurator.getConfAndDelegate('<%= name(true) %>', self);
|
11
16
|
}
|
data/lib/arethusa/cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arethusa-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- LFDM
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|