rmthemegen 0.0.37 → 0.0.38

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.
data/bin/geany_fix.rb CHANGED
@@ -18,9 +18,11 @@
18
18
  # geany_fix.rb uses a local copy of gems color and xml-simple, in order
19
19
  # ease use as a stand-alone utility.
20
20
 
21
- require File.dirname(__FILE__)+"/token_list"
22
- require File.dirname(__FILE__)+'/color/color'
23
- require File.dirname(__FILE__)+'/xmlsimple.rb'
21
+ require File.expand_path("../../lib/rmthemegen/token_list",__FILE__)
22
+ require File.expand_path('../../lib/rmthemegen/color/color',__FILE__)
23
+ require File.expand_path("../../lib/rmthemegen/xmlsimple.rb",__FILE__)
24
+ #require File.dirname(__FILE__)#+'./lib/rmthemegen/color/color'
25
+ #require File.dirname(__FILE__)#+'./lib/rmthemegen/xmlsimple.rb'
24
26
 
25
27
  module RMThemeGen
26
28
  class GeanyFixer < RMThemeParent
data/bin/geanyfy.rb CHANGED
@@ -32,14 +32,57 @@ class Geanyfy
32
32
  end
33
33
  end
34
34
 
35
- def open_all_files
36
- @open_string = "/usr/bin/geany "
35
+ def open_all_files2
36
+ @open_string = "geany"
37
+ @filelist.each do |f|
38
+ @open_string += ' "' + f + '"'
39
+ end
40
+ @open_string += " &"
41
+ puts "#{@open_string}"
42
+ # Kernel.exec(@open_string)
43
+ Kernel.fork do
44
+ `#{@open_string}`
45
+ end
46
+ puts "geanyfy says 'Happy Editing..'"
47
+ # `#{@open_string} `
48
+ end
49
+
50
+
51
+
52
+ def open_all_files3
53
+ puts "geanyfy opening #{@filelist.size} files"
37
54
  @filelist.each do |f|
38
- @open_string += " " + f
55
+ puts "geany #{f} &"
56
+ Kernel.fork do
57
+ `geany #{f} &`
58
+ end
59
+ end
60
+ puts "geanyfy - editing #{@filelist.size} files"
61
+ # `#{@open_string} `
62
+ end
63
+
64
+ def open_all_files
65
+ atatime=10
66
+ atatime.freeze
67
+ c2=0 #counter
68
+ c3=0
69
+ limit = @filelist.size
70
+ puts "geanyfy opening #{@filelist.size} files"
71
+ while c2 < limit do
72
+ @command = "geany "
73
+ c3=0
74
+ while c2 < limit && c3 < atatime do
75
+ @command += "\"#{@filelist[c2]}\" "
76
+ c2 += 1 ; c3 += 1
77
+ end
78
+ puts "#{@command}"
79
+ Kernel.fork do
80
+ `#{@command}`
81
+ end
39
82
  end
40
- @open_string += " & "
41
- `#{@open_string} `
83
+ puts "geanyfy - editing #{@filelist.size} files"
42
84
  end
85
+
43
86
  end
44
87
 
45
88
  g=Geanyfy.new
@@ -407,8 +407,8 @@ module RMThemeGen
407
407
  XmlSimple.xml_out(@xmlout,{:keeproot=>true,:xmldeclaration=>true,:outputfile=> @outf, :rootname => "scheme"})
408
408
  @outf.close
409
409
  @theme_successfully_created = true
410
- puts "textmate_hash: "
411
- puts @textmate_hash.inspect
410
+ #puts "textmate_hash: "
411
+ #puts @textmate_hash.inspect
412
412
  return File.expand_path(@outf.path)
413
413
  end
414
414
 
@@ -1,3 +1,3 @@
1
1
  module Rmthemegen
2
- VERSION = "0.0.37"
2
+ VERSION = "0.0.38"
3
3
  end
data/rmthemegen.gemspec CHANGED
@@ -4,7 +4,7 @@ require "rmthemegen/version"
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "rmthemegen"
7
- s.version = "0.0.37"
7
+ s.version = "0.0.38"
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["David Heitzman"]
10
10
  s.email = ["evolvemeans@gmail.com"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rmthemegen
3
3
  version: !ruby/object:Gem::Version
4
- hash: 85
4
+ hash: 83
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 37
10
- version: 0.0.37
9
+ - 38
10
+ version: 0.0.38
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Heitzman
@@ -15,7 +15,8 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-28 00:00:00 Z
18
+ date: 2011-07-29 00:00:00 -05:00
19
+ default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: xml-simple
@@ -196,6 +197,7 @@ files:
196
197
  - test/textmate_themes/krTheme.tmTheme
197
198
  - test/textmate_themes/monoindustrial.tmTheme
198
199
  - test/tm_token_to_scope_list
200
+ has_rdoc: true
199
201
  homepage: http://aptifuge.com
200
202
  licenses: []
201
203
 
@@ -229,7 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
229
231
  requirements: []
230
232
 
231
233
  rubyforge_project: rmthemegen
232
- rubygems_version: 1.8.5
234
+ rubygems_version: 1.6.2
233
235
  signing_key:
234
236
  specification_version: 3
235
237
  summary: Generates RubyMine >= 3.0 editor color themes