rubymine2xcode-theme 0.0.1
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/.gitignore +59 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +27 -0
- data/LICENSE +22 -0
- data/README.md +29 -0
- data/Rakefile +9 -0
- data/bin/rubymine2xcode +99 -0
- data/lib/rubymine2xcode-theme.rb +158 -0
- data/lib/rubymine2xcode-theme/rubymine.rb +80 -0
- data/lib/rubymine2xcode-theme/version.rb +3 -0
- data/lib/rubymine2xcode-theme/xcode.rb +65 -0
- data/rubymine2xcode-theme.gemspec +26 -0
- data/spec/colour_conversions_spec.rb +26 -0
- data/spec/converter_spec.rb +26 -0
- data/spec/files/Dusk.dvtcolortheme +142 -0
- data/spec/files/cobalt.xml +3277 -0
- data/spec/rubymine_parsing_spec.rb +48 -0
- data/spec/spec_helper.rb +4 -0
- metadata +94 -0
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
|
4
|
+
describe "Parsing Rubymine XML file" do
|
5
|
+
|
6
|
+
|
7
|
+
before :all do
|
8
|
+
@r2x = Rubymine2Xcode::RubymineTheme.load_file COBALT_TEST_FILE
|
9
|
+
end
|
10
|
+
|
11
|
+
|
12
|
+
it "builds an Array of colours" do
|
13
|
+
@r2x.colours.should be_an(Array)
|
14
|
+
@r2x.colours.should_not be_empty
|
15
|
+
end
|
16
|
+
|
17
|
+
it "can access colours by index" do
|
18
|
+
@r2x.colours[0].should == { :name => "CARET_COLOR", :value => "ffffff" }
|
19
|
+
end
|
20
|
+
|
21
|
+
it "can access colours by name" do
|
22
|
+
@r2x.colour_named("CARET_ROW_COLOR").should == "1629"
|
23
|
+
end
|
24
|
+
|
25
|
+
it "builds an Hash of attributes" do
|
26
|
+
@r2x.attributes.should be_a(Hash)
|
27
|
+
@r2x.attributes.should_not be_empty
|
28
|
+
end
|
29
|
+
|
30
|
+
it "each attribute hash has a hash of values" do
|
31
|
+
@r2x.attributes.each_pair do |name, values|
|
32
|
+
values.should be_a(Hash)
|
33
|
+
values.should_not be_empty
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
it "gets the font name and size" do
|
38
|
+
@r2x.font_name.should == "Monaco"
|
39
|
+
@r2x.font_size.should == 12
|
40
|
+
end
|
41
|
+
|
42
|
+
it "print a list of attribute names" do
|
43
|
+
@r2x.attributes.each do |attr|
|
44
|
+
attr[0].should_not be_nil
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,94 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rubymine2xcode-theme
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Matt Connolly
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-04-04 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: plist
|
16
|
+
requirement: &70204215263040 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70204215263040
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rspec
|
27
|
+
requirement: &70204215262620 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :development
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70204215262620
|
36
|
+
description: A tool for converting Rubymine XML theme files into Xcode theme files
|
37
|
+
email:
|
38
|
+
- matt.connolly@me.com
|
39
|
+
executables:
|
40
|
+
- rubymine2xcode
|
41
|
+
extensions: []
|
42
|
+
extra_rdoc_files: []
|
43
|
+
files:
|
44
|
+
- .gitignore
|
45
|
+
- Gemfile
|
46
|
+
- Gemfile.lock
|
47
|
+
- LICENSE
|
48
|
+
- README.md
|
49
|
+
- Rakefile
|
50
|
+
- bin/rubymine2xcode
|
51
|
+
- lib/rubymine2xcode-theme.rb
|
52
|
+
- lib/rubymine2xcode-theme/rubymine.rb
|
53
|
+
- lib/rubymine2xcode-theme/version.rb
|
54
|
+
- lib/rubymine2xcode-theme/xcode.rb
|
55
|
+
- rubymine2xcode-theme.gemspec
|
56
|
+
- spec/colour_conversions_spec.rb
|
57
|
+
- spec/converter_spec.rb
|
58
|
+
- spec/files/Dusk.dvtcolortheme
|
59
|
+
- spec/files/cobalt.xml
|
60
|
+
- spec/rubymine_parsing_spec.rb
|
61
|
+
- spec/spec_helper.rb
|
62
|
+
homepage: ''
|
63
|
+
licenses: []
|
64
|
+
post_install_message:
|
65
|
+
rdoc_options: []
|
66
|
+
require_paths:
|
67
|
+
- lib
|
68
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
69
|
+
none: false
|
70
|
+
requirements:
|
71
|
+
- - ! '>='
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0'
|
74
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
|
+
none: false
|
76
|
+
requirements:
|
77
|
+
- - ! '>='
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0'
|
80
|
+
requirements: []
|
81
|
+
rubyforge_project:
|
82
|
+
rubygems_version: 1.8.17
|
83
|
+
signing_key:
|
84
|
+
specification_version: 3
|
85
|
+
summary: A tool for converting Rubymine XML theme files into Xcode theme files. The
|
86
|
+
resulting Xcode theme file will automatically be saved into the correct Library
|
87
|
+
path where Xcode will find it for the current user.
|
88
|
+
test_files:
|
89
|
+
- spec/colour_conversions_spec.rb
|
90
|
+
- spec/converter_spec.rb
|
91
|
+
- spec/files/Dusk.dvtcolortheme
|
92
|
+
- spec/files/cobalt.xml
|
93
|
+
- spec/rubymine_parsing_spec.rb
|
94
|
+
- spec/spec_helper.rb
|