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 CHANGED
@@ -1,3 +1,9 @@
1
+ == 0.1.1 [10-04-10]
2
+
3
+ - Fixed compass url (poswald)
4
+ - Fix json error in couchapprc (FrancisVarga)
5
+ - Fix dependencies in gemspec (rubbish)
6
+
1
7
  == 0.1.0 [09-26-10]
2
8
 
3
9
  - Initial Release
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://compassstyle.org), and just generally following
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
@@ -7,7 +7,7 @@ require 'logger'
7
7
  $LOAD_PATH.unshift(File.expand_path(File.join(File.dirname(__FILE__))))
8
8
 
9
9
  module Soca
10
- VERSION = '0.1.0'
10
+ VERSION = '0.1.1'
11
11
 
12
12
  class << self
13
13
  attr_accessor :debug
data/lib/soca/cli.rb CHANGED
@@ -183,6 +183,9 @@ module Soca
183
183
 
184
184
  def pusher(env)
185
185
  Soca::Pusher.new(appdir, env, config_file)
186
+ rescue => e
187
+ say e.message, :red
188
+ exit
186
189
  end
187
190
 
188
191
  end
data/lib/soca/pusher.rb CHANGED
@@ -16,7 +16,11 @@ module Soca
16
16
  end
17
17
 
18
18
  def load_config
19
- @config = JSON.parse(File.read(config_path))
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
@@ -4,7 +4,7 @@
4
4
  "db": "http://admin:admin@localhost:5984/<%= appname %>"
5
5
  },
6
6
  "production": {
7
- "db": ""http://admin:admin@localhost:5984/<%= appname %>"
7
+ "db": "http://admin:admin@localhost:5984/<%= appname %>"
8
8
  }
9
9
  }
10
10
  }
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.0"
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-09-26}
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: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
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-09-26 00:00:00 +02:00
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: typhoeus
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: *id002
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: &id003 !ruby/object:Gem::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: *id003
99
+ version_requirements: *id005
69
100
  - !ruby/object:Gem::Dependency
70
101
  name: compass
71
102
  prerelease: false
72
- requirement: &id004 !ruby/object:Gem::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: *id004
115
+ version_requirements: *id006
85
116
  - !ruby/object:Gem::Dependency
86
117
  name: shoulda
87
118
  prerelease: false
88
- requirement: &id005 !ruby/object:Gem::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: *id005
129
+ version_requirements: *id007
99
130
  - !ruby/object:Gem::Dependency
100
131
  name: yard
101
132
  prerelease: false
102
- requirement: &id006 !ruby/object:Gem::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: *id006
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: