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 CHANGED
@@ -45,10 +45,10 @@ spec = Gem::Specification.new do |s|
45
45
  http://json.rubyforge.org/
46
46
  >=1.1.3
47
47
 
48
- couchrest
48
+ couchrest
49
49
  Lean and RESTful interface to CouchDB.
50
50
  http://github.com/jchris/couchrest
51
- >= 0.11.0
51
+ >=0.11.0
52
52
 
53
53
  "
54
54
 
@@ -4,7 +4,7 @@ require 'digest/md5'
4
4
 
5
5
  module CouchApp
6
6
 
7
- VERSION = '0.1.6'
7
+ VERSION = '0.1.7'
8
8
 
9
9
  end
10
10
 
@@ -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['app_meta']['manifest'][0].should match(/foo\//)
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['app_meta']["manifest"].delete_at(12)
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['app_meta'].delete('manifest')
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.txt without manifest" do
164
- @doc['app_meta'].delete('manifest')
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.txt").should == true
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['app_meta'].delete('manifest')
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: couchapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - J Chris Anderson
@@ -35,7 +35,7 @@ dependencies:
35
35
  version: 1.1.3
36
36
  version:
37
37
  - !ruby/object:Gem::Dependency
38
- name: "couchrest "
38
+ name: couchrest
39
39
  type: :runtime
40
40
  version_requirement:
41
41
  version_requirements: !ruby/object:Gem::Requirement