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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f48ec75c883c287c053aeedfaf921f1d2bc4f090
4
- data.tar.gz: 3c408164423627a2195d5c1448fbc25272f4566b
3
+ metadata.gz: 77ae9eb0d92543f1d0836e12eafb311d3072eac5
4
+ data.tar.gz: 3ec21e4e897bd0ce270dc80dcb66b63be03d50de
5
5
  SHA512:
6
- metadata.gz: 1ca2f5fe78937403589415fa8d3f535e4d7df69245d9b60aa6940ded98bbbcbe174b8c3855897a5417e48ccdbf2e31940ca79a18420851d7dbbc78cc47b69836
7
- data.tar.gz: 85aa7f9e9df371a583e86d8f22975fe806e2a44dbd81d798b2712a32fff9f580349a7d6ba6da693a571ee68879ea798314fc1a4c54930b09b4fed21a4943f2fe
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, before: /\n\]/, force: false) do
88
- ",\n '#{namespaced_name(true)}'"
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.*?minify.*?\n/, force: false) do
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
  }
@@ -1,5 +1,5 @@
1
1
  module Arethusa
2
2
  class CLI
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
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.3
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 00:00:00.000000000 Z
11
+ date: 2014-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler