idl_erep 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +21 -0
  3. data/bin/idl_erep +5 -1
  4. data/idl_erep.gemspec +1 -1
  5. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bde29765729c71913452a9bf850e21482c21db82
4
- data.tar.gz: cfabef6c180f59041348ba262b7c76087023068d
3
+ metadata.gz: ec032d8a15adf406d211c9d40b0addd4577dea6d
4
+ data.tar.gz: c2316dc1dfbd900ab33c072bd321c7a41c3197b0
5
5
  SHA512:
6
- metadata.gz: 5c4c9620301bde428c1e6efbf09ed72587a0026d0b04a8af12cc9afb8910867b7b398e87da260a2d490397e379414ed74122ae34c224aa81a7c4662de7d1c4eb
7
- data.tar.gz: 747a3b8c4cbab34599262f39e6f26f081007da4455e1dab2a7fc2265b5b62eccbf59ec516af6f98552aeb04734ae7021412655eb5529e9965dda0b10e4088103
6
+ metadata.gz: e377a05691f2fd3a621e345ae8945f1f149891502000c89f444dcfa8959020fa3b7268749b2658cc0d915df77404374a7b4772f7464fac546d01714e7493f26e
7
+ data.tar.gz: a974a2f5c334c3e132ca85e4ab3943060ff3b7c7f7975d3dcf2a19af4fa13fb3392113fa3b4ae2290c34b0a820254d6932427320a774a43c404b53c5ccf82012
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Rintaro Okamura
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -15,7 +15,7 @@ homehist = '~/.idl_history'
15
15
  currhist = './.idl_history'
16
16
  histlim = 10000
17
17
  defcomplist = ['help', 'plot', 'print', 'window']
18
- compfuncs = ["defcomplist", "get_dir_elems", "get_dir_pros"]
18
+ compfuncs = ["defcomplist", "get_dir_elems", "get_dir_pros", "get_hist_comp(10)"]
19
19
 
20
20
  stderr_blink_ptrn = /^% Execution halted at.*$|^%.*Incorrect number of arguments.$/
21
21
  stdout_blue_ptrn = /(UNDEFINED|BYTE|INT|LONG|STRING|UINT|ULONG|LONG64|ULONG64)/
@@ -36,6 +36,10 @@ def get_dir_pros()
36
36
  pros
37
37
  end
38
38
 
39
+ def get_hist_comp(lim)
40
+ Readline::HISTORY.to_a.reverse.take(lim).reverse
41
+ end
42
+
39
43
  def extract_idl_command(line)
40
44
  line.gsub(/ <!--.*-->$/, '')
41
45
  end
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "idl_erep"
7
- spec.version = "0.0.5"
7
+ spec.version = "0.0.6"
8
8
  spec.authors = ["Rintaro Okamura"]
9
9
  spec.email = ["rintaro.okamura+github@gmail.com"]
10
10
  spec.summary = %q{An enhanced interactive environment for IDL}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: idl_erep
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rintaro Okamura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-10 00:00:00.000000000 Z
11
+ date: 2015-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -62,6 +62,7 @@ extra_rdoc_files: []
62
62
  files:
63
63
  - ".gitignore"
64
64
  - Gemfile
65
+ - LICENSE
65
66
  - README.md
66
67
  - Rakefile
67
68
  - bin/idl_erep