dyndoc-ruby 1.0.17 → 1.0.18

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/dyn-ctl +0 -48
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c8c36319ed5105f4220bd9ae8eb9a4e51037873
4
- data.tar.gz: 277ad61dfee09f92c46806078663ac88486f1b7d
3
+ metadata.gz: b9c60bb2f004e8138db8e95976e8066a76d9ba4f
4
+ data.tar.gz: e0994e654ee51ded5463543eae8d344b948eb337
5
5
  SHA512:
6
- metadata.gz: 7d7ffb0e3f881d0a8c5499242328febd4296922fbad00e58680aeda2b2184a668099e49fcbd0f7afa0156cdaf1c44fd4ef5e5dde44cf262a2bd6f7a50d3a5cd1
7
- data.tar.gz: 9c292e477f2a830ec7748b0212b84dcbc623a7fe192846f05b8acb3ed2e3f32f6f8e83fefb84e9e6cc33fbff1ebac2fdfa40a38f661a5cd4156ab2ed88b55b03
6
+ metadata.gz: 3b0cb0fddcba4d4dac3b5fb64e70891d4d31e1ef103ded2522268ca769fab08fa0b3340578db7c4f1f78fd61843e75748f4ed40e1ff09f06178969edc961dc83
7
+ data.tar.gz: 23fe2a81e900e5760265137986ff372c495b25c066f3e5ae74f139161e051e2e5801e8a54b5dfa4b825823d0f5a14a0e4f58424290ad3c6dc5441fde4c2eac85
data/bin/dyn-ctl CHANGED
@@ -79,53 +79,6 @@ when "stop"
79
79
  when "status"
80
80
  SRVS.each {|srv| puts srv+(`#{srv} status`.empty? ? "stopped" : "running")}
81
81
 
82
- when "new"
83
-
84
- if RUBY_PLATFORM =~ /darwin/
85
- ## launchctl seems to work but actually: dyn-srv, dyn-html and dyn-http started but noit properly
86
-
87
- DYNCTL_ERR_FILE = File.join(ENV["HOME"],"dyndoc","log","")+CMD+".err"
88
- DYNCTL_OUT_FILE = File.join(ENV["HOME"],"dyndoc","log","")+CMD+".out"
89
- FileUtils.mkdir_p File.join(ENV["HOME"],"dyndoc",'log')
90
-
91
- unless File.exists? DYNCTL_PLIST
92
- plist= <<-END.sub(/CMD/,CMD).sub(/DYN_CMD/,`which #{CMD}`.strip).sub(/ERR_FILE/,DYNCTL_ERR_FILE).sub(/OUT_FILE/,DYNCTL_OUT_FILE).sub(/DYN_PATH/,ENV["PATH"]).sub(/DYN_LANG/,ENV["LANG"]).sub(/DYN_JULIA_DIR/,ENV["JULIA_DIR"])
93
- <?xml version="1.0" encoding="UTF-8"?>
94
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
95
- <plist version="1.0">
96
- <dict>
97
- <key>EnvironmentVariables</key>
98
- <dict>
99
- <key>PATH</key>
100
- <string>DYN_PATH</string>
101
- <key>LANG</key>
102
- <string>DYN_LANG</string>
103
- <key>JULIA_DIR</key>
104
- <string>DYN_JULIA_DIR</string>
105
- </dict>
106
- <key>Label</key>
107
- <string>CMD</string>
108
- <key>ProgramArguments</key>
109
- <array>
110
- <string>DYN_CMD</string>
111
- </array>
112
- <key>RunAtLoad</key>
113
- <true/>
114
- <key>StartInterval</key>
115
- <integer>10</integer>
116
- <key>StandardErrorPath</key>
117
- <string>ERR_FILE</string>
118
- <key>StandardOutPath</key>
119
- <string>OUT_FILE</string>
120
- </dict>
121
- </plist>
122
- END
123
- File.open(DYNCTL_PLIST,"w") do |f|
124
- f << plist
125
- end
126
- end
127
- end
128
-
129
82
  when "new"
130
83
 
131
84
  if RUBY_PLATFORM =~ /darwin/
@@ -173,7 +126,6 @@ when "new"
173
126
  end
174
127
  end
175
128
 
176
-
177
129
  when "load"
178
130
  `launchctl load #{DYNCTL_PLIST}` if RUBY_PLATFORM =~ /darwin/ and File.exists? DYNCTL_PLIST
179
131
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dyndoc-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.17
4
+ version: 1.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - RCqls