motion-list 1.0.1 → 1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -0
  3. data/command/motion-list.rb +25 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c782dec2f580f798fe2bc90c322e231282825007
4
- data.tar.gz: 17bc1909a2d7b3735b2570a48bb826848459c686
3
+ metadata.gz: 17129eb1bd7389145943c26f9bc9f099dec58ada
4
+ data.tar.gz: f897d933acca546246b9dadf58b358d34f20927c
5
5
  SHA512:
6
- metadata.gz: c627e09360ada06f5645d227a72ad11f153a90ee5302652ccdd2328fc30082580863283f3ffa605d0ffccb92bb457453b3f658f319d7efe50940fd5dd17d4a3c
7
- data.tar.gz: 7b3a34df68cee18ca93fe7d7e2571010a983ab3dd9714020b39faa9f20e069369f50cefad988565512e14fe432e594ef41f904dbed9f2d0eba2c77c48b8a08c5
6
+ metadata.gz: dfd347f228d341efcbfc323bb21b6c7da78b70c988a7e084b0d86992e65296afce49ee81a96b247df148552fd2a90cdccdbc70c4adf5827ef239c4d1028e94ab
7
+ data.tar.gz: 40a0026aa3304a493a9bd49f822cfa5ebbd52cb4b20c678553a727d461ca5765e31d98710253dce91e4ca15dd395143a9011fe4f8085d020988cf0a15c8d296e
data/README.md CHANGED
@@ -40,6 +40,20 @@ Motion::Project::App.setup do |app|
40
40
  end
41
41
  ```
42
42
 
43
+ ### env
44
+
45
+ `list env` command shows the list of environment variables which are able to use in project.
46
+
47
+ ```
48
+ $ motion list env
49
+ ARR_CYCLES_DISABLE : Disable the cycle detector in memory management.
50
+ DISABLE_CAPTURE : Disable capturing UI view with 'command key + mouse over' in REPL
51
+ args : To pass command-line arguments when launching the application. (ex 'rake args="-com.apple.CoreData.SQLDebug 1"')
52
+ background_fetch : Launch an application for background fetch in the iOS Simulator.
53
+ debug : Launch the debugger.
54
+ ...
55
+ ```
56
+
43
57
  ### simulator
44
58
 
45
59
  `list simulator` command shows the list of simulator device types which you can use.
@@ -7,6 +7,7 @@ module Motion; class Command
7
7
  HELP_MESSAGE =<<'END'
8
8
  SUB-COMMAND
9
9
  * codesigning - Show codesignings in Keychain
10
+ * env - Show environment variables which are able to use in project
10
11
  * simulator - Show simulators
11
12
  END
12
13
 
@@ -26,6 +27,8 @@ END
26
27
  show_codesigning
27
28
  when "simulator"
28
29
  show_simulator
30
+ when "env"
31
+ show_env
29
32
  else
30
33
  help! HELP_MESSAGE
31
34
  end
@@ -40,5 +43,27 @@ END
40
43
  simctl = File.join(xcode_dir, 'Platforms/iPhoneSimulator.platform/Developer/usr/bin/simctl')
41
44
  system "#{simctl} list"
42
45
  end
46
+
47
+ def show_env
48
+ env = {
49
+ ARR_CYCLES_DISABLE: "Disable the cycle detector in memory management.",
50
+ DISABLE_CAPTURE: "Disable capturing UI view with 'command key + mouse over' in REPL",
51
+ mode: "Build mode. ('development' or 'release')",
52
+ jobs: "Number of concurrent jobs for compilation.",
53
+ background_fetch: "Launch an application for background fetch in the iOS Simulator.",
54
+ skip_build: "Run the app without recompiling.",
55
+ device_name: "Specify iOS simulater device. (ex 'iPad Air')",
56
+ target: "Specify iOS simulater version.",
57
+ install_only: "Just install the app. (ex 'rake device install_only=1')",
58
+ debug: "Launch the debugger.",
59
+ no_continue: "The debugger will not continue to the application. This should be used with 'debug'.",
60
+ output: "Specify output format in testing. (ex 'spec_dox', 'fast', 'test_unit', 'tap' and 'knock')",
61
+ args: "To pass command-line arguments when launching the application. (ex 'rake args=\"-com.apple.CoreData.SQLDebug 1\"')",
62
+ }
63
+
64
+ env.sort.each do |k, v|
65
+ puts sprintf("%20s : %s", k, v)
66
+ end
67
+ end
43
68
  end
44
69
  end; end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-list
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: '1.1'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Watson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-09 00:00:00.000000000 Z
11
+ date: 2015-05-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This is RubyMotion plugin which provides various lists.
14
14
  email: