rucola 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.
- data/ChangeLog +27 -0
- data/History.txt +5 -0
- data/app_generators/rucola/templates/app/controllers/application_controller.rb +1 -1
- data/lib/rucola/info_plist.rb +1 -2
- data/lib/rucola/version.rb +1 -1
- data/lib/rucola/xcode.rb +1 -2
- data/test/test_document_model_generator.rb +0 -1
- data/test/test_info_plist.rb +4 -0
- data/website/index.html +1 -1
- metadata +2 -2
data/ChangeLog
CHANGED
@@ -1,3 +1,30 @@
|
|
1
|
+
2007-11-29 Eloy Duran <e.duran@superalloy.nl>
|
2
|
+
|
3
|
+
* lib/rucola/info_plist.rb,
|
4
|
+
test/test_info_plist.rb:
|
5
|
+
|
6
|
+
InfoPlist#app_name returns a ruby string instead of a NSString.
|
7
|
+
|
8
|
+
2007-11-29 Eloy Duran <e.duran@superalloy.nl>
|
9
|
+
|
10
|
+
* app_generators/rucola/templates/app/controllers/application_controller.rb,
|
11
|
+
lib/rucola/info_plist.rb,
|
12
|
+
lib/rucola/version.rb,
|
13
|
+
lib/rucola/xcode.rb,
|
14
|
+
test/test_document_model_generator.rb:
|
15
|
+
|
16
|
+
Fixed bugs that were introduced because the default is again to return mutable objects in RC.
|
17
|
+
|
18
|
+
2007-11-29 Eloy Duran <e.duran@superalloy.nl>
|
19
|
+
|
20
|
+
* History.txt,
|
21
|
+
README.txt,
|
22
|
+
config/hoe.rb,
|
23
|
+
website/index.html,
|
24
|
+
website/index.txt:
|
25
|
+
|
26
|
+
Updated for 0.0.2.
|
27
|
+
|
1
28
|
2007-11-21 Eloy Duran <e.duran@superalloy.nl>
|
2
29
|
|
3
30
|
* lib/rucola/initializer.rb,
|
data/History.txt
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
== 0.0.3 2007-12-08
|
2
|
+
|
3
|
+
* Fixed some critical bugs in the xcode & nib manipulation code, which were introduced because the default is to return mutable objects in RubyCocoa again.
|
4
|
+
* InfoPlist#app_name returns a ruby string instead of a NSString, which fixes a bug in the AR generator.
|
5
|
+
|
1
6
|
== 0.0.2 2007-11-26
|
2
7
|
|
3
8
|
=== RUCOLA Core:
|
@@ -7,7 +7,7 @@ class ApplicationController < Rucola::RCController
|
|
7
7
|
|
8
8
|
puts "ApplicationController awoke."
|
9
9
|
puts "Edit: app/controllers/application_controller.rb"
|
10
|
-
puts "\
|
10
|
+
puts "\nIts window is: #{@main_window.inspect}"
|
11
11
|
end
|
12
12
|
|
13
13
|
# NSApplication delegate methods
|
data/lib/rucola/info_plist.rb
CHANGED
@@ -15,7 +15,6 @@ module Rucola
|
|
15
15
|
|
16
16
|
def document_types
|
17
17
|
@data['CFBundleDocumentTypes'] ||= []
|
18
|
-
@data['CFBundleDocumentTypes'] = @data['CFBundleDocumentTypes'].to_ns
|
19
18
|
@data['CFBundleDocumentTypes']
|
20
19
|
end
|
21
20
|
|
@@ -36,7 +35,7 @@ module Rucola
|
|
36
35
|
|
37
36
|
# Returns the name of the application (CFBundleExecutable).
|
38
37
|
def app_name
|
39
|
-
@data['CFBundleExecutable']
|
38
|
+
@data['CFBundleExecutable'].to_s
|
40
39
|
end
|
41
40
|
end
|
42
41
|
end
|
data/lib/rucola/version.rb
CHANGED
data/lib/rucola/xcode.rb
CHANGED
@@ -42,7 +42,7 @@ module Rucola
|
|
42
42
|
private :nil_if_empty
|
43
43
|
|
44
44
|
def objects
|
45
|
-
@project_data['objects'] = @project_data['objects']
|
45
|
+
@project_data['objects'] = @project_data['objects']
|
46
46
|
end
|
47
47
|
|
48
48
|
# Get's the id & values for a object which name is the one passed to this method.
|
@@ -78,7 +78,6 @@ module Rucola
|
|
78
78
|
def add_build_phase_to_project_target(object_id)
|
79
79
|
# Add the new build phase to the main project target if it doesn't already exist
|
80
80
|
build_target_id, build_target_values = object_for_project_target
|
81
|
-
build_target_values['buildPhases'] = build_target_values['buildPhases'].to_ns
|
82
81
|
build_target_values['buildPhases'].push(object_id) unless build_target_values['buildPhases'].include?(object_id)
|
83
82
|
end
|
84
83
|
|
@@ -37,7 +37,6 @@ class TestDocumentModelGenerator < Test::Unit::TestCase
|
|
37
37
|
plist_mock = mock('Info Plist')
|
38
38
|
OSX::NSDictionary.expects(:dictionaryWithContentsOfFile).returns(plist_mock)
|
39
39
|
doc_types = []
|
40
|
-
plist_mock.expects(:[]=).at_least_once.returns(doc_types)
|
41
40
|
plist_mock.expects(:[]).at_least_once.with('CFBundleDocumentTypes').returns(doc_types)
|
42
41
|
plist_mock.expects(:writeToFile_atomically)
|
43
42
|
|
data/test/test_info_plist.rb
CHANGED
@@ -32,4 +32,8 @@ describe "Info" do
|
|
32
32
|
it "should be able to return the name of the application" do
|
33
33
|
@info_plist.app_name.should == 'MyApp'
|
34
34
|
end
|
35
|
+
|
36
|
+
it "should should return a ruby string as the name of the application" do
|
37
|
+
@info_plist.app_name.should.be.an.instance_of String
|
38
|
+
end
|
35
39
|
end
|
data/website/index.html
CHANGED
@@ -33,7 +33,7 @@
|
|
33
33
|
<h1>rucola</h1>
|
34
34
|
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/rucola"; return false'>
|
35
35
|
<p>Get Version</p>
|
36
|
-
<a href="http://rubyforge.org/projects/rucola" class="numbers">0.0.
|
36
|
+
<a href="http://rubyforge.org/projects/rucola" class="numbers">0.0.3</a>
|
37
37
|
</div>
|
38
38
|
<h1>→ ‘rucola’</h1>
|
39
39
|
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: rucola
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.0.
|
7
|
-
date: 2007-
|
6
|
+
version: 0.0.3
|
7
|
+
date: 2007-12-08 00:00:00 +01:00
|
8
8
|
summary: Rucola is an extension for RubyCocoa. It has a application skeleton generator and builds an "opinionated" application layout, like the one known from rails. And comes with RubyCocoa specific rake tasks.
|
9
9
|
require_paths:
|
10
10
|
- lib
|