rid 0.5.2 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. data/LICENSE +1 -1
  2. data/README +14 -0
  3. data/Rakefile +18 -33
  4. data/VERSION +1 -0
  5. data/bin/rid +3 -6
  6. data/lib/rid/app.rb +49 -0
  7. data/lib/rid/attachments.rb +6 -2
  8. data/lib/rid/commands.rb +61 -39
  9. data/lib/rid/core_ext/hash.rb +1 -1
  10. data/lib/rid/database.rb +69 -0
  11. data/lib/rid/document.rb +99 -0
  12. data/lib/rid.rb +14 -41
  13. data/rid.gemspec +49 -78
  14. data/spec/mock_app/_database +1 -0
  15. data/spec/rid/app_spec.rb +59 -0
  16. data/spec/rid/attachments_spec.rb +2 -2
  17. data/spec/rid/commands_spec.rb +14 -0
  18. data/spec/rid/database_spec.rb +25 -0
  19. data/spec/rid/document_spec.rb +36 -0
  20. data/spec/spec_helper.rb +6 -0
  21. metadata +127 -86
  22. data/.gitmodules +0 -3
  23. data/README.rdoc +0 -92
  24. data/lib/rid/actions/base.rb +0 -15
  25. data/lib/rid/actions/pull.rb +0 -28
  26. data/lib/rid/actions/push.rb +0 -53
  27. data/lib/rid/actions/routes.rb +0 -44
  28. data/lib/rid/commands/destroy.rb +0 -9
  29. data/lib/rid/commands/generate.rb +0 -9
  30. data/lib/rid/commands/pull.rb +0 -4
  31. data/lib/rid/commands/push.rb +0 -4
  32. data/lib/rid/commands/routes.rb +0 -4
  33. data/lib/rid/design_document.rb +0 -149
  34. data/lib/rid/generators/application/USAGE +0 -10
  35. data/lib/rid/generators/application/application_generator.rb +0 -56
  36. data/lib/rid/generators/application/templates/README +0 -1
  37. data/lib/rid/generators/application/templates/_attachments/index.html +0 -11
  38. data/lib/rid/generators/application/templates/_attachments/stylesheets/application.css +0 -25
  39. data/lib/rid/generators/application/templates/_id +0 -1
  40. data/lib/rid/generators/application/templates/gitignore +0 -0
  41. data/lib/rid/generators/application/templates/lib/mustache.js +0 -305
  42. data/lib/rid/generators/application/templates/lib/path.js +0 -5
  43. data/lib/rid/generators/application/templates/lib/templates/layout.mustache +0 -14
  44. data/lib/rid/generators/application/templates/ridrc +0 -1
  45. data/lib/rid/generators/application/templates/validate_doc_update.js +0 -3
  46. data/lib/rid/generators/base.rb +0 -66
  47. data/lib/rid/generators/list/USAGE +0 -8
  48. data/lib/rid/generators/list/list_generator.rb +0 -10
  49. data/lib/rid/generators/list/templates/index.mustache +0 -23
  50. data/lib/rid/generators/list/templates/list.js +0 -34
  51. data/lib/rid/generators/named_base.rb +0 -22
  52. data/lib/rid/generators/scaffold/USAGE +0 -10
  53. data/lib/rid/generators/scaffold/scaffold_generator.rb +0 -32
  54. data/lib/rid/generators/show/USAGE +0 -8
  55. data/lib/rid/generators/show/show_generator.rb +0 -13
  56. data/lib/rid/generators/show/templates/delete.mustache +0 -20
  57. data/lib/rid/generators/show/templates/deleted.mustache +0 -3
  58. data/lib/rid/generators/show/templates/form.mustache +0 -22
  59. data/lib/rid/generators/show/templates/show.js +0 -48
  60. data/lib/rid/generators/show/templates/show.mustache +0 -13
  61. data/lib/rid/generators/update/USAGE +0 -8
  62. data/lib/rid/generators/update/templates/update.js +0 -48
  63. data/lib/rid/generators/update/update_generator.rb +0 -9
  64. data/lib/rid/generators/validation/USAGE +0 -9
  65. data/lib/rid/generators/validation/templates/validate_doc_update.js +0 -3
  66. data/lib/rid/generators/validation/validation_generator.rb +0 -34
  67. data/lib/rid/generators/view/USAGE +0 -8
  68. data/lib/rid/generators/view/templates/map.js +0 -5
  69. data/lib/rid/generators/view/view_generator.rb +0 -17
  70. data/lib/rid/generators.rb +0 -63
  71. data/lib/rid/makros.rb +0 -114
  72. data/lib/rid/version.rb +0 -3
  73. data/spec/rid/design_document_spec.rb +0 -220
  74. data/spec/rid/makros_spec.rb +0 -94
  75. data/spec/rid_spec.rb +0 -7
data/rid.gemspec CHANGED
@@ -5,125 +5,96 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rid}
8
- s.version = "0.5.2"
8
+ s.version = "1.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Johannes J. Schmidt"]
12
- s.date = %q{2010-03-17}
12
+ s.date = %q{2010-08-20}
13
13
  s.default_executable = %q{rid}
14
- s.description = %q{With Couch you can easy build a standalone CouchDB application. Couch aims to bring some of the Rails beauty to CouchDB. Currently Couch supports Rails style Generators you will love, using the same awesome Thor library used in Rails3.}
14
+ s.description = %q{Rid is a toolkit to relax in web development. Based on CouchDB you get a distributed, high scaling web application infrastructure with Rid. This is the Rid core.}
15
15
  s.email = %q{schmidt@netzmerk.com}
16
16
  s.executables = ["rid"]
17
17
  s.extra_rdoc_files = [
18
18
  "LICENSE",
19
- "README.rdoc"
19
+ "README"
20
20
  ]
21
21
  s.files = [
22
22
  ".gitignore",
23
- ".gitmodules",
24
23
  "LICENSE",
25
- "README.rdoc",
24
+ "README",
26
25
  "Rakefile",
26
+ "VERSION",
27
27
  "bin/rid",
28
28
  "lib/rid.rb",
29
- "lib/rid/actions/base.rb",
30
- "lib/rid/actions/pull.rb",
31
- "lib/rid/actions/push.rb",
32
- "lib/rid/actions/routes.rb",
29
+ "lib/rid/app.rb",
33
30
  "lib/rid/attachments.rb",
34
31
  "lib/rid/commands.rb",
35
- "lib/rid/commands/destroy.rb",
36
- "lib/rid/commands/generate.rb",
37
- "lib/rid/commands/pull.rb",
38
- "lib/rid/commands/push.rb",
39
- "lib/rid/commands/routes.rb",
40
32
  "lib/rid/core_ext/hash.rb",
41
- "lib/rid/design_document.rb",
42
- "lib/rid/generators.rb",
43
- "lib/rid/generators/application/USAGE",
44
- "lib/rid/generators/application/application_generator.rb",
45
- "lib/rid/generators/application/templates/README",
46
- "lib/rid/generators/application/templates/_attachments/index.html",
47
- "lib/rid/generators/application/templates/_attachments/stylesheets/application.css",
48
- "lib/rid/generators/application/templates/_id",
49
- "lib/rid/generators/application/templates/gitignore",
50
- "lib/rid/generators/application/templates/lib/mustache.js",
51
- "lib/rid/generators/application/templates/lib/path.js",
52
- "lib/rid/generators/application/templates/lib/templates/layout.mustache",
53
- "lib/rid/generators/application/templates/ridrc",
54
- "lib/rid/generators/application/templates/validate_doc_update.js",
55
- "lib/rid/generators/base.rb",
56
- "lib/rid/generators/list/USAGE",
57
- "lib/rid/generators/list/list_generator.rb",
58
- "lib/rid/generators/list/templates/index.mustache",
59
- "lib/rid/generators/list/templates/list.js",
60
- "lib/rid/generators/named_base.rb",
61
- "lib/rid/generators/scaffold/USAGE",
62
- "lib/rid/generators/scaffold/scaffold_generator.rb",
63
- "lib/rid/generators/show/USAGE",
64
- "lib/rid/generators/show/show_generator.rb",
65
- "lib/rid/generators/show/templates/delete.mustache",
66
- "lib/rid/generators/show/templates/deleted.mustache",
67
- "lib/rid/generators/show/templates/form.mustache",
68
- "lib/rid/generators/show/templates/show.js",
69
- "lib/rid/generators/show/templates/show.mustache",
70
- "lib/rid/generators/update/USAGE",
71
- "lib/rid/generators/update/templates/update.js",
72
- "lib/rid/generators/update/update_generator.rb",
73
- "lib/rid/generators/validation/USAGE",
74
- "lib/rid/generators/validation/templates/validate_doc_update.js",
75
- "lib/rid/generators/validation/validation_generator.rb",
76
- "lib/rid/generators/view/USAGE",
77
- "lib/rid/generators/view/templates/map.js",
78
- "lib/rid/generators/view/view_generator.rb",
79
- "lib/rid/makros.rb",
80
- "lib/rid/version.rb",
33
+ "lib/rid/database.rb",
34
+ "lib/rid/document.rb",
81
35
  "rid.gemspec",
36
+ "spec/mock_app/_database",
37
+ "spec/rid/app_spec.rb",
82
38
  "spec/rid/attachments_spec.rb",
39
+ "spec/rid/commands_spec.rb",
83
40
  "spec/rid/core_ext/hash_spec.rb",
84
- "spec/rid/design_document_spec.rb",
85
- "spec/rid/makros_spec.rb",
86
- "spec/rid_spec.rb",
41
+ "spec/rid/database_spec.rb",
42
+ "spec/rid/document_spec.rb",
87
43
  "spec/spec.opts",
88
44
  "spec/spec_helper.rb"
89
45
  ]
90
- s.homepage = %q{http://jo.github.com/rid/}
46
+ s.homepage = %q{http://rid.github.com/rid}
91
47
  s.rdoc_options = ["--charset=UTF-8"]
92
48
  s.require_paths = ["lib"]
93
- s.rubyforge_project = %q{rid}
94
- s.rubygems_version = %q{1.3.6}
95
- s.summary = %q{Standalone Couchdb Application Development Suite}
49
+ s.rubygems_version = %q{1.3.7}
50
+ s.summary = %q{Rest in development core.}
96
51
  s.test_files = [
97
52
  "spec/spec_helper.rb",
98
- "spec/rid_spec.rb",
99
53
  "spec/rid/core_ext/hash_spec.rb",
100
- "spec/rid/makros_spec.rb",
54
+ "spec/rid/database_spec.rb",
55
+ "spec/rid/commands_spec.rb",
56
+ "spec/rid/app_spec.rb",
101
57
  "spec/rid/attachments_spec.rb",
102
- "spec/rid/design_document_spec.rb"
58
+ "spec/rid/document_spec.rb"
103
59
  ]
104
60
 
105
61
  if s.respond_to? :specification_version then
106
62
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
107
63
  s.specification_version = 3
108
64
 
109
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
110
- s.add_runtime_dependency(%q<thor>, [">= 0.13.4"])
111
- s.add_runtime_dependency(%q<rest-client>, [">= 1.4.1"])
112
- s.add_runtime_dependency(%q<json_pure>, [">= 1.2.2"])
113
- s.add_runtime_dependency(%q<activesupport>, [">= 3.0.0.beta"])
65
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
66
+ s.add_runtime_dependency(%q<commander>, [">= 4.0.3"])
67
+ s.add_runtime_dependency(%q<filander>, [">= 0.6.0"])
68
+ s.add_runtime_dependency(%q<rest-client>, [">= 1.5.0"])
69
+ s.add_runtime_dependency(%q<json_pure>, [">= 1.4.2"])
70
+ s.add_runtime_dependency(%q<activesupport>, [">= 0"])
71
+ s.add_runtime_dependency(%q<rid-push>, [">= 0"])
72
+ s.add_runtime_dependency(%q<rid-init>, [">= 0"])
73
+ s.add_runtime_dependency(%q<rid-dd>, [">= 0"])
74
+ s.add_runtime_dependency(%q<rid-export>, [">= 0"])
114
75
  s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
115
76
  else
116
- s.add_dependency(%q<thor>, [">= 0.13.4"])
117
- s.add_dependency(%q<rest-client>, [">= 1.4.1"])
118
- s.add_dependency(%q<json_pure>, [">= 1.2.2"])
119
- s.add_dependency(%q<activesupport>, [">= 3.0.0.beta"])
77
+ s.add_dependency(%q<commander>, [">= 4.0.3"])
78
+ s.add_dependency(%q<filander>, [">= 0.6.0"])
79
+ s.add_dependency(%q<rest-client>, [">= 1.5.0"])
80
+ s.add_dependency(%q<json_pure>, [">= 1.4.2"])
81
+ s.add_dependency(%q<activesupport>, [">= 0"])
82
+ s.add_dependency(%q<rid-push>, [">= 0"])
83
+ s.add_dependency(%q<rid-init>, [">= 0"])
84
+ s.add_dependency(%q<rid-dd>, [">= 0"])
85
+ s.add_dependency(%q<rid-export>, [">= 0"])
120
86
  s.add_dependency(%q<rspec>, [">= 1.2.9"])
121
87
  end
122
88
  else
123
- s.add_dependency(%q<thor>, [">= 0.13.4"])
124
- s.add_dependency(%q<rest-client>, [">= 1.4.1"])
125
- s.add_dependency(%q<json_pure>, [">= 1.2.2"])
126
- s.add_dependency(%q<activesupport>, [">= 3.0.0.beta"])
89
+ s.add_dependency(%q<commander>, [">= 4.0.3"])
90
+ s.add_dependency(%q<filander>, [">= 0.6.0"])
91
+ s.add_dependency(%q<rest-client>, [">= 1.5.0"])
92
+ s.add_dependency(%q<json_pure>, [">= 1.4.2"])
93
+ s.add_dependency(%q<activesupport>, [">= 0"])
94
+ s.add_dependency(%q<rid-push>, [">= 0"])
95
+ s.add_dependency(%q<rid-init>, [">= 0"])
96
+ s.add_dependency(%q<rid-dd>, [">= 0"])
97
+ s.add_dependency(%q<rid-export>, [">= 0"])
127
98
  s.add_dependency(%q<rspec>, [">= 1.2.9"])
128
99
  end
129
100
  end
@@ -0,0 +1 @@
1
+ mydb
@@ -0,0 +1,59 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
+ require 'rid/app'
3
+
4
+ describe "App" do
5
+ describe "initialization" do
6
+ it "should set root as pathname" do
7
+ app = Rid::App.new
8
+ app.root.should be_a(Pathname)
9
+ end
10
+
11
+ it "should set root from options" do
12
+ app = Rid::App.new(OpenStruct.new(:root => "myroot"))
13
+ app.root.should == Pathname.new("myroot")
14
+ end
15
+
16
+ it "should default root to pwd" do
17
+ app = Rid::App.new
18
+ app.root.should == Pathname.new(Dir.pwd)
19
+ end
20
+
21
+ it "should set database url from options" do
22
+ app = Rid::App.new(OpenStruct.new(:database => "mydb"))
23
+ app.db_url.should == "mydb"
24
+ end
25
+
26
+ it "should default database url to contents of _database file at root" do
27
+ app = Rid::App.new(OpenStruct.new(:root => mock_app_root))
28
+ app.db_url.should == "mydb"
29
+ end
30
+ end
31
+
32
+ describe "db" do
33
+ before do
34
+ @app = Rid::App.new(OpenStruct.new(:database => "mydb"))
35
+ end
36
+
37
+ it "should return an instance od Rid::Database" do
38
+ @app.db.should be_a(Rid::Database)
39
+ end
40
+
41
+ it "should return a database set to db_name" do
42
+ @app.db.name.should == 'mydb'
43
+ end
44
+ end
45
+
46
+ describe "documents" do
47
+ before do
48
+ @app = Rid::App.new(OpenStruct.new(:root => mock_app_root))
49
+ end
50
+
51
+ it "should be an array" do
52
+ @app.documents.should be_a(Array)
53
+ end
54
+
55
+ it "should return Document instances" do
56
+ @app.documents.all? { |d| d.should be_a(Rid::Document) }
57
+ end
58
+ end
59
+ end
@@ -1,9 +1,9 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
- require 'rid/design_document'
2
+ require 'rid/document'
3
3
 
4
4
  describe "Attachments" do
5
5
  before do
6
- @doc = Rid::DesignDocument.new
6
+ @doc = Rid::Document.new
7
7
  end
8
8
 
9
9
  describe "map" do
@@ -0,0 +1,14 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
+ require 'rid/commands'
3
+
4
+ describe "Commands" do
5
+ describe "gems" do
6
+ it "should be an array" do
7
+ Rid::Commands.gems.should be_a(Array)
8
+ end
9
+
10
+ it "should not include rid gem" do
11
+ Rid::Commands.gems.should_not include("rid")
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,25 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
+ require 'rid/database'
3
+
4
+ describe "Database" do
5
+ before do
6
+ @name = "http://127.0.0.1:5984/rid-tests"
7
+ @db = Rid::Database.new(@name)
8
+ end
9
+
10
+ after do
11
+ RestClient.delete(@name) rescue nil
12
+ end
13
+
14
+ describe "initialization" do
15
+ it "should initialize database by name" do
16
+ @db.name.should == @name
17
+ end
18
+ end
19
+
20
+ describe "get" do
21
+ it "should return nil if document was not found" do
22
+ @db.get(Rid::Document.new).should be_nil
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,36 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
+ require 'rid/document'
3
+
4
+ describe "Document" do
5
+ before do
6
+ @doc = Rid::Document.new
7
+ @hash = {}
8
+ end
9
+
10
+ describe "read!" do
11
+ end
12
+
13
+ describe "to_json" do
14
+ it "should convert key-value pair" do
15
+ @doc.hash = { "key" => "value" }
16
+ @doc.to_json.should == '{"key":"value"}'
17
+ end
18
+
19
+ it "should convert nested hash" do
20
+ @doc.hash = { "hash" => { "key" => "value" } }
21
+ @doc.to_json.should == '{"hash":{"key":"value"}}'
22
+ end
23
+ end
24
+
25
+ describe "json=" do
26
+ it "should read key-value pair" do
27
+ @doc.json = '{"key":"value"}'
28
+ @doc.hash.should == { "key" => "value" }
29
+ end
30
+
31
+ it "should read nested hash" do
32
+ @doc.json = '{"hash":{"key":"value"}}'
33
+ @doc.hash.should == { "hash" => { "key" => "value" } }
34
+ end
35
+ end
36
+ end
data/spec/spec_helper.rb CHANGED
@@ -7,3 +7,9 @@ require 'spec/autorun'
7
7
  Spec::Runner.configure do |config|
8
8
 
9
9
  end
10
+
11
+ # returns the dirname of the mock app
12
+ #
13
+ def mock_app_root
14
+ File.expand_path('../mock_app', __FILE__)
15
+ end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rid
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 19
4
5
  prerelease: false
5
6
  segments:
7
+ - 1
6
8
  - 0
7
- - 5
8
9
  - 2
9
- version: 0.5.2
10
+ version: 1.0.2
10
11
  platform: ruby
11
12
  authors:
12
13
  - Johannes J. Schmidt
@@ -14,81 +15,160 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-03-17 00:00:00 +01:00
18
+ date: 2010-08-20 00:00:00 +02:00
18
19
  default_executable: rid
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
- name: thor
22
+ name: commander
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ">="
26
28
  - !ruby/object:Gem::Version
29
+ hash: 57
27
30
  segments:
28
- - 0
29
- - 13
30
31
  - 4
31
- version: 0.13.4
32
+ - 0
33
+ - 3
34
+ version: 4.0.3
32
35
  type: :runtime
33
36
  version_requirements: *id001
34
37
  - !ruby/object:Gem::Dependency
35
- name: rest-client
38
+ name: filander
36
39
  prerelease: false
37
40
  requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
38
42
  requirements:
39
43
  - - ">="
40
44
  - !ruby/object:Gem::Version
45
+ hash: 7
41
46
  segments:
42
- - 1
43
- - 4
44
- - 1
45
- version: 1.4.1
47
+ - 0
48
+ - 6
49
+ - 0
50
+ version: 0.6.0
46
51
  type: :runtime
47
52
  version_requirements: *id002
48
53
  - !ruby/object:Gem::Dependency
49
- name: json_pure
54
+ name: rest-client
50
55
  prerelease: false
51
56
  requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
52
58
  requirements:
53
59
  - - ">="
54
60
  - !ruby/object:Gem::Version
61
+ hash: 3
55
62
  segments:
56
63
  - 1
57
- - 2
58
- - 2
59
- version: 1.2.2
64
+ - 5
65
+ - 0
66
+ version: 1.5.0
60
67
  type: :runtime
61
68
  version_requirements: *id003
62
69
  - !ruby/object:Gem::Dependency
63
- name: activesupport
70
+ name: json_pure
64
71
  prerelease: false
65
72
  requirement: &id004 !ruby/object:Gem::Requirement
73
+ none: false
66
74
  requirements:
67
75
  - - ">="
68
76
  - !ruby/object:Gem::Version
77
+ hash: 3
78
+ segments:
79
+ - 1
80
+ - 4
81
+ - 2
82
+ version: 1.4.2
83
+ type: :runtime
84
+ version_requirements: *id004
85
+ - !ruby/object:Gem::Dependency
86
+ name: activesupport
87
+ prerelease: false
88
+ requirement: &id005 !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ hash: 3
69
94
  segments:
70
- - 3
71
95
  - 0
96
+ version: "0"
97
+ type: :runtime
98
+ version_requirements: *id005
99
+ - !ruby/object:Gem::Dependency
100
+ name: rid-push
101
+ prerelease: false
102
+ requirement: &id006 !ruby/object:Gem::Requirement
103
+ none: false
104
+ requirements:
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ hash: 3
108
+ segments:
72
109
  - 0
73
- - beta
74
- version: 3.0.0.beta
110
+ version: "0"
75
111
  type: :runtime
76
- version_requirements: *id004
112
+ version_requirements: *id006
113
+ - !ruby/object:Gem::Dependency
114
+ name: rid-init
115
+ prerelease: false
116
+ requirement: &id007 !ruby/object:Gem::Requirement
117
+ none: false
118
+ requirements:
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ hash: 3
122
+ segments:
123
+ - 0
124
+ version: "0"
125
+ type: :runtime
126
+ version_requirements: *id007
127
+ - !ruby/object:Gem::Dependency
128
+ name: rid-dd
129
+ prerelease: false
130
+ requirement: &id008 !ruby/object:Gem::Requirement
131
+ none: false
132
+ requirements:
133
+ - - ">="
134
+ - !ruby/object:Gem::Version
135
+ hash: 3
136
+ segments:
137
+ - 0
138
+ version: "0"
139
+ type: :runtime
140
+ version_requirements: *id008
141
+ - !ruby/object:Gem::Dependency
142
+ name: rid-export
143
+ prerelease: false
144
+ requirement: &id009 !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ">="
148
+ - !ruby/object:Gem::Version
149
+ hash: 3
150
+ segments:
151
+ - 0
152
+ version: "0"
153
+ type: :runtime
154
+ version_requirements: *id009
77
155
  - !ruby/object:Gem::Dependency
78
156
  name: rspec
79
157
  prerelease: false
80
- requirement: &id005 !ruby/object:Gem::Requirement
158
+ requirement: &id010 !ruby/object:Gem::Requirement
159
+ none: false
81
160
  requirements:
82
161
  - - ">="
83
162
  - !ruby/object:Gem::Version
163
+ hash: 13
84
164
  segments:
85
165
  - 1
86
166
  - 2
87
167
  - 9
88
168
  version: 1.2.9
89
169
  type: :development
90
- version_requirements: *id005
91
- description: With Couch you can easy build a standalone CouchDB application. Couch aims to bring some of the Rails beauty to CouchDB. Currently Couch supports Rails style Generators you will love, using the same awesome Thor library used in Rails3.
170
+ version_requirements: *id010
171
+ description: Rid is a toolkit to relax in web development. Based on CouchDB you get a distributed, high scaling web application infrastructure with Rid. This is the Rid core.
92
172
  email: schmidt@netzmerk.com
93
173
  executables:
94
174
  - rid
@@ -96,77 +176,33 @@ extensions: []
96
176
 
97
177
  extra_rdoc_files:
98
178
  - LICENSE
99
- - README.rdoc
179
+ - README
100
180
  files:
101
181
  - .gitignore
102
- - .gitmodules
103
182
  - LICENSE
104
- - README.rdoc
183
+ - README
105
184
  - Rakefile
185
+ - VERSION
106
186
  - bin/rid
107
187
  - lib/rid.rb
108
- - lib/rid/actions/base.rb
109
- - lib/rid/actions/pull.rb
110
- - lib/rid/actions/push.rb
111
- - lib/rid/actions/routes.rb
188
+ - lib/rid/app.rb
112
189
  - lib/rid/attachments.rb
113
190
  - lib/rid/commands.rb
114
- - lib/rid/commands/destroy.rb
115
- - lib/rid/commands/generate.rb
116
- - lib/rid/commands/pull.rb
117
- - lib/rid/commands/push.rb
118
- - lib/rid/commands/routes.rb
119
191
  - lib/rid/core_ext/hash.rb
120
- - lib/rid/design_document.rb
121
- - lib/rid/generators.rb
122
- - lib/rid/generators/application/USAGE
123
- - lib/rid/generators/application/application_generator.rb
124
- - lib/rid/generators/application/templates/README
125
- - lib/rid/generators/application/templates/_attachments/index.html
126
- - lib/rid/generators/application/templates/_attachments/stylesheets/application.css
127
- - lib/rid/generators/application/templates/_id
128
- - lib/rid/generators/application/templates/gitignore
129
- - lib/rid/generators/application/templates/lib/mustache.js
130
- - lib/rid/generators/application/templates/lib/path.js
131
- - lib/rid/generators/application/templates/lib/templates/layout.mustache
132
- - lib/rid/generators/application/templates/ridrc
133
- - lib/rid/generators/application/templates/validate_doc_update.js
134
- - lib/rid/generators/base.rb
135
- - lib/rid/generators/list/USAGE
136
- - lib/rid/generators/list/list_generator.rb
137
- - lib/rid/generators/list/templates/index.mustache
138
- - lib/rid/generators/list/templates/list.js
139
- - lib/rid/generators/named_base.rb
140
- - lib/rid/generators/scaffold/USAGE
141
- - lib/rid/generators/scaffold/scaffold_generator.rb
142
- - lib/rid/generators/show/USAGE
143
- - lib/rid/generators/show/show_generator.rb
144
- - lib/rid/generators/show/templates/delete.mustache
145
- - lib/rid/generators/show/templates/deleted.mustache
146
- - lib/rid/generators/show/templates/form.mustache
147
- - lib/rid/generators/show/templates/show.js
148
- - lib/rid/generators/show/templates/show.mustache
149
- - lib/rid/generators/update/USAGE
150
- - lib/rid/generators/update/templates/update.js
151
- - lib/rid/generators/update/update_generator.rb
152
- - lib/rid/generators/validation/USAGE
153
- - lib/rid/generators/validation/templates/validate_doc_update.js
154
- - lib/rid/generators/validation/validation_generator.rb
155
- - lib/rid/generators/view/USAGE
156
- - lib/rid/generators/view/templates/map.js
157
- - lib/rid/generators/view/view_generator.rb
158
- - lib/rid/makros.rb
159
- - lib/rid/version.rb
192
+ - lib/rid/database.rb
193
+ - lib/rid/document.rb
160
194
  - rid.gemspec
195
+ - spec/mock_app/_database
196
+ - spec/rid/app_spec.rb
161
197
  - spec/rid/attachments_spec.rb
198
+ - spec/rid/commands_spec.rb
162
199
  - spec/rid/core_ext/hash_spec.rb
163
- - spec/rid/design_document_spec.rb
164
- - spec/rid/makros_spec.rb
165
- - spec/rid_spec.rb
200
+ - spec/rid/database_spec.rb
201
+ - spec/rid/document_spec.rb
166
202
  - spec/spec.opts
167
203
  - spec/spec_helper.rb
168
204
  has_rdoc: true
169
- homepage: http://jo.github.com/rid/
205
+ homepage: http://rid.github.com/rid
170
206
  licenses: []
171
207
 
172
208
  post_install_message:
@@ -175,30 +211,35 @@ rdoc_options:
175
211
  require_paths:
176
212
  - lib
177
213
  required_ruby_version: !ruby/object:Gem::Requirement
214
+ none: false
178
215
  requirements:
179
216
  - - ">="
180
217
  - !ruby/object:Gem::Version
218
+ hash: 3
181
219
  segments:
182
220
  - 0
183
221
  version: "0"
184
222
  required_rubygems_version: !ruby/object:Gem::Requirement
223
+ none: false
185
224
  requirements:
186
225
  - - ">="
187
226
  - !ruby/object:Gem::Version
227
+ hash: 3
188
228
  segments:
189
229
  - 0
190
230
  version: "0"
191
231
  requirements: []
192
232
 
193
- rubyforge_project: rid
194
- rubygems_version: 1.3.6
233
+ rubyforge_project:
234
+ rubygems_version: 1.3.7
195
235
  signing_key:
196
236
  specification_version: 3
197
- summary: Standalone Couchdb Application Development Suite
237
+ summary: Rest in development core.
198
238
  test_files:
199
239
  - spec/spec_helper.rb
200
- - spec/rid_spec.rb
201
240
  - spec/rid/core_ext/hash_spec.rb
202
- - spec/rid/makros_spec.rb
241
+ - spec/rid/database_spec.rb
242
+ - spec/rid/commands_spec.rb
243
+ - spec/rid/app_spec.rb
203
244
  - spec/rid/attachments_spec.rb
204
- - spec/rid/design_document_spec.rb
245
+ - spec/rid/document_spec.rb
data/.gitmodules DELETED
@@ -1,3 +0,0 @@
1
- [submodule "vendor/mustache.js"]
2
- path = vendor/mustache.js
3
- url = git://github.com/janl/mustache.js.git