maril 0.1.1 → 0.1.2

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: 93388dd3ee1c7ee421e13f3385ce3da8ce159185
4
- data.tar.gz: c5dc7f08a4487f18db14e9f543d2bd6d6ba44d17
3
+ metadata.gz: 69cf5cc4cb86c5d80d6fab69bab4cd66687be526
4
+ data.tar.gz: e8ca0c759c8cb3d8e0737b3d757f1f187ab8b66f
5
5
  SHA512:
6
- metadata.gz: 62b4232a83180f2c0a266fddc80083efc7c86e4404c4e62495264ea0aaa6459b66fd10be0394574f8ab514c701597d211f5c2e85e15624f23305848378db4af0
7
- data.tar.gz: f94e7b19042302b76efb99a9059f18152a4ea1daa3b4c9338d8ff8b139f0ec6450a74b1b22ddf42398f7784666afc91f1f1c11db48581b649710e8385ada1ddd
6
+ metadata.gz: d9eba6b6efbdfe0f7366ec3bd4f7786058f6605d449eb477fabc7572b19ff2283d21ff743337a073da47af67fafd23bdc014e94e28f2eb724c32898d3bf61179
7
+ data.tar.gz: e25c70f258d511056e7a324cf187910a1468461b0867cad5769a4b59b5d615029d4b9c4c01ffaf3abada45e64ffe39c32927456a68ee951d1f6cecb4b1a3870c
data/README.md CHANGED
@@ -32,6 +32,13 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
32
32
 
33
33
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
34
34
 
35
+ ## Release
36
+
37
+ ```
38
+ $ rake build
39
+ $ rake release
40
+ ```
41
+
35
42
  ## Contributing
36
43
 
37
44
  Bug reports and pull requests are welcome on GitHub at https://github.com/agate/maril. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
@@ -9,7 +9,7 @@ module Maril
9
9
  app = fetch_app
10
10
  cmd = [ 'docker run --rm -it' ]
11
11
  app['env'].each do |k, v|
12
- cmd << "-e #{k}=#{v}"
12
+ cmd << "--env #{k}=#{v}"
13
13
  end
14
14
  app['container']['docker']['parameters'].each do |parameter|
15
15
  cmd << "--#{parameter['key']} #{parameter['value']}"
@@ -19,7 +19,7 @@ module Maril
19
19
  end
20
20
  cmd << app['container']['docker']['image']
21
21
  cmd << app['cmd'] if app['cmd']
22
- cmd.join(" ")
22
+ cmd.join(" \\\n")
23
23
  end
24
24
 
25
25
  private
@@ -1,3 +1,3 @@
1
1
  module Maril
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -1,7 +1,7 @@
1
1
  // ==UserScript==
2
2
  // @name Maril
3
3
  // @namespace https://github.com/agate/maril
4
- // @version 0.1.1
4
+ // @version 0.1.2
5
5
  // @description Marathon Application Run In Local
6
6
  // @author agate<agate.hao@gmail.com>
7
7
  // @match http://PUT.YOUR.MARATHON.DOMAIN.HERE/*
@@ -24,7 +24,7 @@
24
24
  let cmd = [ "docker run --rm -it" ];
25
25
 
26
26
  for (var key in app.env) {
27
- cmd.push(`-e ${key}=${app.env[key]}`);
27
+ cmd.push(`--env ${key}=${app.env[key]}`);
28
28
  }
29
29
  app.container.docker.parameters.forEach((parameter) => {
30
30
  cmd.push(`--${parameter.key} ${parameter.value}`);
@@ -34,7 +34,7 @@
34
34
  });
35
35
  cmd.push(app.container.docker.image);
36
36
 
37
- GM_setClipboard(cmd.join(" "));
37
+ GM_setClipboard(cmd.join(" \\\n"));
38
38
  alert("Already saved the docker run command into your clipboard.");
39
39
  },
40
40
  onerror: (response) => {
@@ -24,7 +24,7 @@
24
24
  let cmd = [ "docker run --rm -it" ];
25
25
 
26
26
  for (var key in app.env) {
27
- cmd.push(`-e ${key}=${app.env[key]}`);
27
+ cmd.push(`--env ${key}=${app.env[key]}`);
28
28
  }
29
29
  app.container.docker.parameters.forEach((parameter) => {
30
30
  cmd.push(`--${parameter.key} ${parameter.value}`);
@@ -34,7 +34,7 @@
34
34
  });
35
35
  cmd.push(app.container.docker.image);
36
36
 
37
- GM_setClipboard(cmd.join(" "));
37
+ GM_setClipboard(cmd.join(" \\\n"));
38
38
  alert("Already saved the docker run command into your clipboard.");
39
39
  },
40
40
  onerror: (response) => {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maril
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - agate