arethusa-cli 0.1.0 → 0.1.1
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.
- checksums.yaml +4 -4
- data/lib/arethusa/cli/generator.rb +4 -11
- 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: b5c2ac3469acd770f86bb5129dc61fb5aa88f5e9
|
|
4
|
+
data.tar.gz: a9436334a79adc249731d5a827c696db057e61dc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 90e7a1fe4479bfcfe24f45a317901943e072c934d9550d2479e43bf49536d720cf4a6eaa5a3b76d5fbfabe8663bea0f0b7f9e3dbdc82dbc0f955f8e8a085d383
|
|
7
|
+
data.tar.gz: 39fa70bfcf8b020fc89fc0589972eac5127fa37a639e75a5cdb7978dac6a3a6ca3e8edda366190bcde9ec869a55702fe4e46b079bcffaa94c706bf3d7dd3aaa8
|
|
@@ -24,8 +24,7 @@ class Arethusa::CLI
|
|
|
24
24
|
create_files
|
|
25
25
|
|
|
26
26
|
try('insert module into arethusa', :add_module)
|
|
27
|
-
try('add
|
|
28
|
-
try('add minification task', :add_minification_task)
|
|
27
|
+
try('add to Gruntfile', :add_to_gruntfile)
|
|
29
28
|
try('add module to index.html', :add_to_index)
|
|
30
29
|
|
|
31
30
|
commit_changes if options[:commit]
|
|
@@ -113,15 +112,9 @@ class Arethusa::CLI
|
|
|
113
112
|
js_dir('arethusa.js')
|
|
114
113
|
end
|
|
115
114
|
|
|
116
|
-
def
|
|
117
|
-
insert_into_file(gruntfile, after: /
|
|
118
|
-
%[
|
|
119
|
-
end
|
|
120
|
-
end
|
|
121
|
-
|
|
122
|
-
def add_minification_task
|
|
123
|
-
insert_into_file(gruntfile, after: /registerTask\('minify.*?\n/, force: false) do
|
|
124
|
-
%{ 'uglify:#{name(true)}',\n}
|
|
115
|
+
def add_to_gruntfile
|
|
116
|
+
insert_into_file(gruntfile, after: /var arethusaModules.*?\n/, force: false) do
|
|
117
|
+
%[ "#{namespaced_name}",\n]
|
|
125
118
|
end
|
|
126
119
|
end
|
|
127
120
|
|
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.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- LFDM
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-08-
|
|
11
|
+
date: 2014-08-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|