jchris-couchapp 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -2
- data/ruby/lib/couchapp.rb +1 -1
- data/ruby/spec/couchapp_spec.rb +7 -7
- metadata +2 -2
data/Rakefile
CHANGED
data/ruby/lib/couchapp.rb
CHANGED
data/ruby/spec/couchapp_spec.rb
CHANGED
@@ -71,7 +71,7 @@ describe "couchapp" do
|
|
71
71
|
@doc['_attachments']['index.html']["content_type"].should == 'text/html'
|
72
72
|
end
|
73
73
|
it "should create the manifest" do
|
74
|
-
@doc['
|
74
|
+
@doc['couchapp']['manifest'][0].should match(/foo\//)
|
75
75
|
end
|
76
76
|
it "should push and macro the doc shows" do
|
77
77
|
@doc['shows']['example-show'].should match(/Generated CouchApp Form Template/)
|
@@ -147,28 +147,28 @@ describe "couchapp" do
|
|
147
147
|
File.exist?("#{@fixdir}/my-app/views/more/map.js").should == true
|
148
148
|
end
|
149
149
|
it "should create view even if file dir is missing in manifest" do
|
150
|
-
@doc['
|
150
|
+
@doc['couchapp']["manifest"].delete_at(12)
|
151
151
|
@doc.save()
|
152
152
|
`rm -rf #{@fixdir}/my-app`
|
153
153
|
`cd #{@fixdir} && #{COUCHAPP} clone http://127.0.0.1:5984/#{TESTDB}/_design/my-app`
|
154
154
|
File.exist?("#{@fixdir}/my-app/views/example/map.js").should == true
|
155
155
|
end
|
156
156
|
it "should work without manifest" do
|
157
|
-
@doc['
|
157
|
+
@doc['couchapp'].delete('manifest')
|
158
158
|
@doc.save()
|
159
159
|
`rm -rf #{@fixdir}/my-app`
|
160
160
|
`cd #{@fixdir} && #{COUCHAPP} clone http://127.0.0.1:5984/#{TESTDB}/_design/my-app`
|
161
161
|
File.exist?("#{@fixdir}/my-app/views").should == true
|
162
162
|
end
|
163
|
-
it "should create foo/bar
|
164
|
-
@doc['
|
163
|
+
it "should create foo/bar without manifest" do
|
164
|
+
@doc['couchapp'].delete('manifest')
|
165
165
|
@doc.save()
|
166
166
|
`rm -rf #{@fixdir}/my-app`
|
167
167
|
`cd #{@fixdir} && #{COUCHAPP} clone http://127.0.0.1:5984/#{TESTDB}/_design/my-app`
|
168
|
-
File.exist?("#{@fixdir}/my-app/foo/bar
|
168
|
+
File.exist?("#{@fixdir}/my-app/foo/bar").should == true
|
169
169
|
end
|
170
170
|
it "should create lib/helpers.json without manifest" do
|
171
|
-
@doc['
|
171
|
+
@doc['couchapp'].delete('manifest')
|
172
172
|
@doc.save()
|
173
173
|
`rm -rf #{@fixdir}/my-app`
|
174
174
|
`cd #{@fixdir} && #{COUCHAPP} clone http://127.0.0.1:5984/#{TESTDB}/_design/my-app`
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jchris-couchapp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- J Chris Anderson
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: 1.1.3
|
34
34
|
version:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
|
-
name:
|
36
|
+
name: couchrest
|
37
37
|
version_requirement:
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|