iterm2mintty 0.0.2 → 0.0.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 954f2d3ed7f14e79ee2da475da942084fc1db0e2
4
- data.tar.gz: a363b5ce6ac853e5eb1dc494557a287a73a97c78
3
+ metadata.gz: f2680e29622eb149bbbc5bae9a08e1151407b06a
4
+ data.tar.gz: 9f02585fe9a8597ae2100387fadd2f88a332028b
5
5
  SHA512:
6
- metadata.gz: 49546930a224a7a16f9136f1db3cb918ec76bf7e49c970dc768c142ca26a7bc3d1a2c65dc989087fd59e90aa0ffce70a76418307bb61253a76db9392d382316a
7
- data.tar.gz: 9d533bc4fee347961e3dd7d95c119aa39e223e487ba371db1873656bca8afcd95e2d46013e659b6f1587986ba46bec1622f6758fd5b1272935e1dd17f671b6a3
6
+ metadata.gz: 6e8458bd3e3bf82715a255c2d9542234df8b5b64d02d4385468ece9c1083de60e2f34a24d2194b5d39788a94a562b3bf7b08e321292df91c3424649ac5b39149
7
+ data.tar.gz: 89d56d564b69171b892d8d70dec5f0988f5098a6ee54506e071578395bfe032452d5e39d67ec2cb63772421f6ef33cab70bb235839dcba6f7984a9ea5db5b7f9
data/.gitignore CHANGED
@@ -11,4 +11,6 @@
11
11
  *.so
12
12
  *.o
13
13
  *.a
14
+ *.gem
15
+ .minttyrc
14
16
  mkmf.log
data/README.md CHANGED
@@ -29,7 +29,7 @@ Should output a .minttyrc file in whatever directory you ran it in.
29
29
 
30
30
  ## Contributing
31
31
 
32
- 1. Fork it ( https://github.com/[my-github-username]/iterm2mintty/fork )
32
+ 1. Fork it ( https://github.com/bobcats/iterm2mintty/fork )
33
33
  2. Create your feature branch (`git checkout -b my-new-feature`)
34
34
  3. Commit your changes (`git commit -am 'Add some feature'`)
35
35
  4. Push to the branch (`git push origin my-new-feature`)
@@ -1,3 +1,3 @@
1
1
  class Iterm2mintty
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/iterm2mintty.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  require "iterm2mintty/version"
2
2
  require "plist"
3
- require "pry"
4
3
 
5
4
  class Iterm2mintty
6
5
  attr_reader :pathname, :ansi_colors
@@ -16,37 +15,28 @@ class Iterm2mintty
16
15
  end
17
16
 
18
17
  def ansi_colors
19
- @ansi_colors ||=
20
- parsed_theme.map do |k, v|
21
- red = Integer(v["Red Component"] * 255)
22
- green = Integer(v["Green Component"] * 255)
23
- blue = Integer(v["Blue Component"] * 255)
24
- color = Color.new(red, green, blue)
25
-
26
- case k
27
- when /Ansi/
28
- number = Integer(k.match(/\d+/)[0])
29
- ANSIColor.new(number: number, color: color)
30
- when "Background Color"
31
- BGColor.new(color: color)
32
- when "Foreground Color"
33
- FGColor.new(color: color)
34
- when "Cursor Color"
35
- CursorColor.new(color: color)
36
- end
37
- end.compact
18
+ parsed_theme.map do |k, v|
19
+ red = Integer(v["Red Component"] * 255)
20
+ green = Integer(v["Green Component"] * 255)
21
+ blue = Integer(v["Blue Component"] * 255)
22
+ color = Color.new(red, green, blue)
23
+
24
+ case k
25
+ when /Ansi/
26
+ number = Integer(k.match(/\d+/)[0])
27
+ ANSIColor.new(number: number, color: color)
28
+ when "Background Color"
29
+ BGColor.new(color: color)
30
+ when "Foreground Color"
31
+ FGColor.new(color: color)
32
+ when "Cursor Color"
33
+ CursorColor.new(color: color)
34
+ end
35
+ end.compact
38
36
  end
39
37
 
40
38
  def parsed_theme
41
- @parsed_theme ||= Plist.parse_xml(pathname)
42
- end
43
- end
44
-
45
- class Iterm2mintty::Mintty
46
- def self.rc_build(colors)
47
- puts colors.map do |color|
48
- color.to_mintty
49
- end
39
+ Plist.parse_xml(pathname)
50
40
  end
51
41
  end
52
42
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iterm2mintty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Field