arcadia 0.12.0 → 0.12.1

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -1,8 +1,8 @@
1
1
  = Arcadia Ide
2
- version 0.12.0
2
+ version 0.12.1
3
3
 
4
4
  by Antonio Galeone
5
- on Nov 18, 2012
5
+ on Dec 18, 2012
6
6
 
7
7
 
8
8
  == About
@@ -17,6 +17,8 @@ Some of Arcadia ide project features include:
17
17
  * Highly extensibility architecture.
18
18
 
19
19
  == News
20
+ [0.12.1]
21
+ - fixed bug in file-history
20
22
 
21
23
  [0.12.0]
22
24
  - added new extension : terminal's integration
@@ -25,7 +27,7 @@ Some of Arcadia ide project features include:
25
27
  - buffers' interchange between more instance of editor
26
28
  - introduced internationalization of text :
27
29
  in conf/LC/ are searched translation files in format <locale>.LANG (es. en-UK.LANG)
28
- locale is settable in ~/.arcadia.arcadia.conf overriding default (locale=en-UK)
30
+ locale is settable in ~/.arcadia/arcadia.conf overriding default (locale=en-UK)
29
31
  ... collaborations in translations are welcome!
30
32
  - added possibility to interact with running application typing input in output's console
31
33
  - introduced in file-history a new kind of view (list view) activable by button on toolbar
@@ -383,7 +383,10 @@ class FilesHistrory < ArcadiaExt
383
383
  ensure
384
384
  f.close unless f.nil?
385
385
  end
386
+ else
387
+ create_history_file
386
388
  end
389
+ to_ret
387
390
  end
388
391
 
389
392
  def refresh_history_lines
@@ -645,6 +648,19 @@ class FilesHistrory < ArcadiaExt
645
648
  end
646
649
  end
647
650
 
651
+ def create_history_file(_content=nil)
652
+ dir,fil =File.split(File.expand_path(history_file))
653
+ if !File.exist?(dir)
654
+ Dir.mkdir(dir)
655
+ end
656
+ f = File.new(history_file, "w+")
657
+ begin
658
+ f.syswrite(_content) if f && _content
659
+ ensure
660
+ f.close unless f.nil?
661
+ end
662
+ end
663
+
648
664
  def add2history(_filename, _text_index='1.0')
649
665
  #return if !@h_stack[_filename].nil?
650
666
  if _filename && File.exist?(_filename)
@@ -673,16 +689,7 @@ class FilesHistrory < ArcadiaExt
673
689
  f.close unless f.nil?
674
690
  end
675
691
  else
676
- dir,fil =File.split(File.expand_path(history_file))
677
- if !File.exist?(dir)
678
- Dir.mkdir(dir)
679
- end
680
- f = File.new(history_file, "w+")
681
- begin
682
- f.syswrite(_filename+"\n") if f
683
- ensure
684
- f.close unless f.nil?
685
- end
692
+ create_history_file(_filename+"\n")
686
693
  end
687
694
  refresh_history_lines
688
695
  end
data/lib/a-core.rb CHANGED
@@ -24,7 +24,7 @@ class Arcadia < TkApplication
24
24
  super(
25
25
  ApplicationParams.new(
26
26
  'arcadia',
27
- '0.12.0',
27
+ '0.12.1',
28
28
  'conf/arcadia.conf',
29
29
  'conf/arcadia.pers'
30
30
  )
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arcadia
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-18 00:00:00.000000000 Z
12
+ date: 2012-12-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: coderay
16
- requirement: &9474580 !ruby/object:Gem::Requirement
16
+ requirement: &16094480 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 1.0.3
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *9474580
24
+ version_requirements: *16094480
25
25
  description: Arcadia Ide
26
26
  email: antonio-galeone@rubyforge.org
27
27
  executables: