soca 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY +6 -0
- data/README.md +1 -1
- data/Rakefile +2 -0
- data/lib/soca.rb +1 -1
- data/lib/soca/cli.rb +3 -0
- data/lib/soca/pusher.rb +5 -1
- data/lib/soca/templates/couchapprc.erb +1 -1
- data/soca.gemspec +8 -2
- metadata +45 -14
data/HISTORY
CHANGED
data/README.md
CHANGED
@@ -36,7 +36,7 @@ places them in their expected JSON slot, you make a new sort of couchapp.
|
|
36
36
|
Unlike a traditional couchapp, a soca couchapp is actually one way - you're
|
37
37
|
source directory is actually 'compiled' into its final state. This allows you
|
38
38
|
to do things you couldnt before, including bundling js files, using external
|
39
|
-
tools like [compass](http://
|
39
|
+
tools like [compass](http://compass-style.org), and just generally following
|
40
40
|
your own preffered directory structure. This does mean that there is no `soca
|
41
41
|
clone` to get a couchapp out of CouchDB - though replicating works the same as
|
42
42
|
before (and is probably faster because you push only the docs you need or
|
data/Rakefile
CHANGED
@@ -12,7 +12,9 @@ begin
|
|
12
12
|
gem.homepage = "http://github.com/quirkey/soca"
|
13
13
|
gem.authors = ["Aaron Quint"]
|
14
14
|
gem.add_dependency 'json', '~>1.4.6'
|
15
|
+
gem.add_dependency 'mime-types', '~>1.16'
|
15
16
|
gem.add_dependency 'typhoeus', '~>0.1.31'
|
17
|
+
gem.add_dependency 'thor', '~>0.14.0'
|
16
18
|
gem.add_dependency 'jim', '~>0.2.3'
|
17
19
|
gem.add_dependency 'compass', '~>0.10.5'
|
18
20
|
gem.add_development_dependency "shoulda", ">= 0"
|
data/lib/soca.rb
CHANGED
data/lib/soca/cli.rb
CHANGED
data/lib/soca/pusher.rb
CHANGED
@@ -16,7 +16,11 @@ module Soca
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def load_config
|
19
|
-
|
19
|
+
if File.readable?(config_path)
|
20
|
+
@config = JSON.parse(File.read(config_path))
|
21
|
+
else
|
22
|
+
raise "Could not find config at '#{config_path}'. Run `soca init`"
|
23
|
+
end
|
20
24
|
end
|
21
25
|
|
22
26
|
def load_couchapprc
|
data/soca.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{soca}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Aaron Quint"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-10-04}
|
13
13
|
s.default_executable = %q{soca}
|
14
14
|
s.description = %q{soca is a different way of writing apps for CouchDB. The structure is up to you.}
|
15
15
|
s.email = %q{aaron@quirkey.com}
|
@@ -82,14 +82,18 @@ Gem::Specification.new do |s|
|
|
82
82
|
|
83
83
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
84
84
|
s.add_runtime_dependency(%q<json>, ["~> 1.4.6"])
|
85
|
+
s.add_runtime_dependency(%q<mime-types>, ["~> 1.16"])
|
85
86
|
s.add_runtime_dependency(%q<typhoeus>, ["~> 0.1.31"])
|
87
|
+
s.add_runtime_dependency(%q<thor>, ["~> 0.14.0"])
|
86
88
|
s.add_runtime_dependency(%q<jim>, ["~> 0.2.3"])
|
87
89
|
s.add_runtime_dependency(%q<compass>, ["~> 0.10.5"])
|
88
90
|
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
89
91
|
s.add_development_dependency(%q<yard>, [">= 0"])
|
90
92
|
else
|
91
93
|
s.add_dependency(%q<json>, ["~> 1.4.6"])
|
94
|
+
s.add_dependency(%q<mime-types>, ["~> 1.16"])
|
92
95
|
s.add_dependency(%q<typhoeus>, ["~> 0.1.31"])
|
96
|
+
s.add_dependency(%q<thor>, ["~> 0.14.0"])
|
93
97
|
s.add_dependency(%q<jim>, ["~> 0.2.3"])
|
94
98
|
s.add_dependency(%q<compass>, ["~> 0.10.5"])
|
95
99
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
@@ -97,7 +101,9 @@ Gem::Specification.new do |s|
|
|
97
101
|
end
|
98
102
|
else
|
99
103
|
s.add_dependency(%q<json>, ["~> 1.4.6"])
|
104
|
+
s.add_dependency(%q<mime-types>, ["~> 1.16"])
|
100
105
|
s.add_dependency(%q<typhoeus>, ["~> 0.1.31"])
|
106
|
+
s.add_dependency(%q<thor>, ["~> 0.14.0"])
|
101
107
|
s.add_dependency(%q<jim>, ["~> 0.2.3"])
|
102
108
|
s.add_dependency(%q<compass>, ["~> 0.10.5"])
|
103
109
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soca
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Aaron Quint
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-10-04 00:00:00 -07:00
|
19
19
|
default_executable: soca
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -35,9 +35,24 @@ dependencies:
|
|
35
35
|
type: :runtime
|
36
36
|
version_requirements: *id001
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
|
-
name:
|
38
|
+
name: mime-types
|
39
39
|
prerelease: false
|
40
40
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
hash: 47
|
46
|
+
segments:
|
47
|
+
- 1
|
48
|
+
- 16
|
49
|
+
version: "1.16"
|
50
|
+
type: :runtime
|
51
|
+
version_requirements: *id002
|
52
|
+
- !ruby/object:Gem::Dependency
|
53
|
+
name: typhoeus
|
54
|
+
prerelease: false
|
55
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
41
56
|
none: false
|
42
57
|
requirements:
|
43
58
|
- - ~>
|
@@ -49,11 +64,27 @@ dependencies:
|
|
49
64
|
- 31
|
50
65
|
version: 0.1.31
|
51
66
|
type: :runtime
|
52
|
-
version_requirements: *
|
67
|
+
version_requirements: *id003
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
name: thor
|
70
|
+
prerelease: false
|
71
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ~>
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
hash: 39
|
77
|
+
segments:
|
78
|
+
- 0
|
79
|
+
- 14
|
80
|
+
- 0
|
81
|
+
version: 0.14.0
|
82
|
+
type: :runtime
|
83
|
+
version_requirements: *id004
|
53
84
|
- !ruby/object:Gem::Dependency
|
54
85
|
name: jim
|
55
86
|
prerelease: false
|
56
|
-
requirement: &
|
87
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
57
88
|
none: false
|
58
89
|
requirements:
|
59
90
|
- - ~>
|
@@ -65,11 +96,11 @@ dependencies:
|
|
65
96
|
- 3
|
66
97
|
version: 0.2.3
|
67
98
|
type: :runtime
|
68
|
-
version_requirements: *
|
99
|
+
version_requirements: *id005
|
69
100
|
- !ruby/object:Gem::Dependency
|
70
101
|
name: compass
|
71
102
|
prerelease: false
|
72
|
-
requirement: &
|
103
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
73
104
|
none: false
|
74
105
|
requirements:
|
75
106
|
- - ~>
|
@@ -81,11 +112,11 @@ dependencies:
|
|
81
112
|
- 5
|
82
113
|
version: 0.10.5
|
83
114
|
type: :runtime
|
84
|
-
version_requirements: *
|
115
|
+
version_requirements: *id006
|
85
116
|
- !ruby/object:Gem::Dependency
|
86
117
|
name: shoulda
|
87
118
|
prerelease: false
|
88
|
-
requirement: &
|
119
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
89
120
|
none: false
|
90
121
|
requirements:
|
91
122
|
- - ">="
|
@@ -95,11 +126,11 @@ dependencies:
|
|
95
126
|
- 0
|
96
127
|
version: "0"
|
97
128
|
type: :development
|
98
|
-
version_requirements: *
|
129
|
+
version_requirements: *id007
|
99
130
|
- !ruby/object:Gem::Dependency
|
100
131
|
name: yard
|
101
132
|
prerelease: false
|
102
|
-
requirement: &
|
133
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
103
134
|
none: false
|
104
135
|
requirements:
|
105
136
|
- - ">="
|
@@ -109,7 +140,7 @@ dependencies:
|
|
109
140
|
- 0
|
110
141
|
version: "0"
|
111
142
|
type: :development
|
112
|
-
version_requirements: *
|
143
|
+
version_requirements: *id008
|
113
144
|
description: soca is a different way of writing apps for CouchDB. The structure is up to you.
|
114
145
|
email: aaron@quirkey.com
|
115
146
|
executables:
|