rhodes 0.3.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. data/Manifest.txt +0 -61
  2. data/Rakefile +11 -13
  3. data/lib/rhodes.rb +2 -2
  4. metadata +33 -77
  5. data/History.txt +0 -40
  6. data/README.rdoc +0 -2
  7. data/bin/rhogen +0 -8
  8. data/generators/rhogen.rb +0 -131
  9. data/generators/templates/application/application.rb +0 -4
  10. data/generators/templates/application/index.erb +0 -11
  11. data/generators/templates/application/layout.erb +0 -17
  12. data/generators/templates/model/config.rb +0 -3
  13. data/generators/templates/model/controller.rb +0 -49
  14. data/generators/templates/model/edit.erb +0 -21
  15. data/generators/templates/model/index.erb +0 -10
  16. data/generators/templates/model/new.erb +0 -16
  17. data/generators/templates/model/show.erb +0 -6
  18. data/generators/templates/source/source_adapter.rb +0 -56
  19. data/lib/ServeME.rb +0 -7
  20. data/lib/TestServe.rb +0 -9
  21. data/lib/bsearch.rb +0 -120
  22. data/lib/builtinME.rb +0 -588
  23. data/lib/date.rb +0 -1792
  24. data/lib/date/format.rb +0 -1339
  25. data/lib/dateME.rb +0 -24
  26. data/lib/erb.rb +0 -896
  27. data/lib/find.rb +0 -81
  28. data/lib/rational.rb +0 -19
  29. data/lib/rationalME.rb +0 -530
  30. data/lib/rho.rb +0 -1
  31. data/lib/rho/render.rb +0 -51
  32. data/lib/rho/rho.rb +0 -240
  33. data/lib/rho/rhoapplication.rb +0 -36
  34. data/lib/rho/rhocontact.rb +0 -110
  35. data/lib/rho/rhocontroller.rb +0 -35
  36. data/lib/rho/rhofsconnector.rb +0 -32
  37. data/lib/rho/rhosupport.rb +0 -139
  38. data/lib/rho/rhoviewhelpers.rb +0 -121
  39. data/lib/rhoframework.rb +0 -38
  40. data/lib/rhofsconnector.rb +0 -1
  41. data/lib/rhom.rb +0 -1
  42. data/lib/rhom/rhom.rb +0 -58
  43. data/lib/rhom/rhom_db_adapter.rb +0 -185
  44. data/lib/rhom/rhom_db_adapterME.rb +0 -93
  45. data/lib/rhom/rhom_object.rb +0 -65
  46. data/lib/rhom/rhom_object_factory.rb +0 -197
  47. data/lib/rhom/rhom_source.rb +0 -60
  48. data/lib/singleton.rb +0 -137
  49. data/lib/time.rb +0 -489
  50. data/spec/app_generator_spec.rb +0 -33
  51. data/spec/app_manifest.txt +0 -3
  52. data/spec/configs/account.rb +0 -3
  53. data/spec/configs/case.rb +0 -3
  54. data/spec/configs/employee.rb +0 -3
  55. data/spec/generator_spec_helper.rb +0 -12
  56. data/spec/model_generator_spec.rb +0 -36
  57. data/spec/rho_controller_spec.rb +0 -139
  58. data/spec/rho_spec.rb +0 -61
  59. data/spec/rhom_object_factory_spec.rb +0 -132
  60. data/spec/rhom_spec.rb +0 -45
  61. data/spec/source_generator_spec.rb +0 -27
  62. data/spec/spec_helper.rb +0 -48
  63. data/spec/stubs.rb +0 -31
  64. data/spec/syncdbtest.sqlite +0 -0
  65. data/tasks/rspec.rake +0 -34
@@ -1,27 +0,0 @@
1
- require File.dirname(__FILE__) + '/generator_spec_helper'
2
-
3
- describe Rhogen::SourceGenerator do
4
-
5
- source_name = 'NeatSource'
6
-
7
- it "should complain if no name is specified" do
8
- lambda {
9
- @generator = Rhogen::SourceGenerator.new('/tmp', {})
10
- }.should raise_error(::Templater::TooFewArgumentsError)
11
- end
12
-
13
- before do
14
- @generator = Rhogen::SourceGenerator.new('/tmp', {}, source_name)
15
- end
16
-
17
- it "should create neat_source.rb files" do
18
- ['neat_source.rb'].each do |template|
19
- @generator.should create("/tmp/lib/#{template}")
20
- end
21
- end
22
-
23
- it "should generate valid erb templates" do
24
- pending "need to figure out how to validate erb"
25
- end
26
-
27
- end
@@ -1,48 +0,0 @@
1
- begin
2
- require 'spec'
3
- rescue LoadError
4
- require 'rubygems'
5
- gem 'rspec'
6
- require 'spec'
7
- end
8
-
9
- $:.unshift(File.join(File.dirname(__FILE__), '..'))
10
-
11
- # Use the rubygem for local testing
12
- require 'spec/stubs'
13
- require 'rho/rho'
14
- require 'rhom/rhom'
15
-
16
- describe "rho initializer", :shared => true do
17
-
18
- attr_accessor :rhom, :rho
19
-
20
- before(:all) do
21
- FileUtils.mkdir_p('build')
22
- FileUtils.cp_r('spec/syncdbtest.sqlite','build/syncdbtest.sqlite')
23
- Object::const_set("SYNC_DB_FILE", "build/syncdbtest.sqlite") unless defined? SYNC_DB_FILE
24
- @rho = Rho::RHO.new(File.join(File.dirname(File.expand_path(__FILE__)), 'app_manifest.txt'))
25
- @rhom = Rhom::RhomObjectFactory.new
26
- end
27
-
28
- after(:all) do
29
- FileUtils.rm_rf('build')
30
- end
31
-
32
- def array_print(arr)
33
- arr.each_with_index do |x,i|
34
- puts "arr[#{i}] = #{x.inspect}"
35
- end
36
- end
37
- end
38
-
39
- describe "rho db initializer", :shared => true do
40
- before(:each) do
41
- FileUtils.cp_r('spec/syncdbtest.sqlite','build/syncdbtest.sqlite')
42
- end
43
-
44
- after(:each) do
45
- FileUtils.rm_rf('build/syncdbtest.sqlite')
46
- @rhom = nil
47
- end
48
- end
@@ -1,31 +0,0 @@
1
- # Stubs for testing
2
- class Fixnum
3
- def fdiv
4
- end
5
- end
6
- class Bignum
7
- def fdiv
8
- end
9
- end
10
- class SyncEngine
11
- def self.dosync
12
- end
13
- def self.lock_sync_mutex
14
- end
15
- def self.unlock_sync_mutex
16
- end
17
- def self.login
18
- 1
19
- end
20
- def self.logout
21
- end
22
- def self.logged_in
23
- 1
24
- end
25
- end
26
- require 'rho'
27
- class << Rho::RhoFSConnector
28
- def __rhoGetCurrentDir
29
- "../../../apps/"
30
- end
31
- end
Binary file
@@ -1,34 +0,0 @@
1
- begin
2
- require 'spec'
3
- rescue LoadError
4
- require 'rubygems'
5
- require 'spec'
6
- end
7
- begin
8
- require 'spec/rake/spectask'
9
- rescue LoadError
10
- puts <<-EOS
11
- To use rspec for testing you must install rspec gem:
12
- gem install rspec
13
- EOS
14
- exit(0)
15
- end
16
-
17
- task :test do
18
- end
19
-
20
- $:.unshift(File.join(File.dirname(__FILE__), '..'))
21
- require 'spec/stubs'
22
-
23
- desc "Run the specs under spec/models"
24
- Spec::Rake::SpecTask.new do |t|
25
- t.spec_opts = ['--options', "spec/spec.opts"]
26
- t.spec_files = FileList['spec/**/*_spec.rb']
27
- t.rcov = true
28
- t.rcov_opts = ['--include',
29
- '"lib/rhom/*,lib/rho/*"',
30
- '-x',
31
- 'spec,gems,sqlite3/*,lib/date.rb,lib/rational.rb,lib/time.rb,lib/find.rb,config.rb,lib/erb.rb,lib/singleton.rb,lib/pairparser.rb',
32
- '--text-report',
33
- '--html']
34
- end