mortar 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -0
- data/lib/mortar/version.rb +1 -1
- data/spec/mortar/command/projects_spec.rb +6 -0
- data/spec/mortar/project_spec.rb +1 -5
- metadata +149 -143
data/README.md
CHANGED
@@ -4,6 +4,8 @@ Mortar is a platform as a service for Hadoop. With Mortar, you can run jobs on H
|
|
4
4
|
|
5
5
|
The Mortar Development Framework lets you develop Mortar Hadoop jobs directly on your local computer without installing any Hadoop libraries. Lots more info can be found on the [Mortar help site](http://help.mortardata.com).
|
6
6
|
|
7
|
+
[![Build Status](https://travis-ci.org/mortardata/mortar.png?branch=master)](https://travis-ci.org/mortardata/mortar) [![Dependency Status](https://gemnasium.com/mortardata/mortar.png)](https://gemnasium.com/mortardata/mortar)
|
8
|
+
|
7
9
|
# Setup
|
8
10
|
|
9
11
|
## Dependencies
|
data/lib/mortar/version.rb
CHANGED
@@ -103,6 +103,9 @@ STDERR
|
|
103
103
|
mock(Mortar::Auth.api).get_project(project_id).returns(Excon::Response.new(:body => {"status" => Mortar::API::Projects::STATUS_CREATING})).ordered
|
104
104
|
mock(Mortar::Auth.api).get_project(project_id).returns(Excon::Response.new(:body => {"status" => Mortar::API::Projects::STATUS_ACTIVE,
|
105
105
|
"git_url" => project_git_url})).ordered
|
106
|
+
|
107
|
+
mock(@git).has_dot_git?().returns(true)
|
108
|
+
mock(@git).remotes.with_any_args.returns({})
|
106
109
|
mock(@git).remote_add("mortar", project_git_url)
|
107
110
|
|
108
111
|
stderr, stdout = execute("projects:create #{project_name} --polling_interval 0.05", nil, @git)
|
@@ -120,6 +123,9 @@ STDOUT
|
|
120
123
|
mock(Mortar::Auth.api).get_project(project_id).returns(Excon::Response.new(:body => {"status_description" => "Creating", "status_code" => Mortar::API::Projects::STATUS_CREATING})).ordered
|
121
124
|
mock(Mortar::Auth.api).get_project(project_id).returns(Excon::Response.new(:body => {"status_description" => "Active", "status_code" => Mortar::API::Projects::STATUS_ACTIVE,
|
122
125
|
"git_url" => project_git_url})).ordered
|
126
|
+
|
127
|
+
mock(@git).has_dot_git?().returns(true)
|
128
|
+
mock(@git).remotes.with_any_args.returns({})
|
123
129
|
mock(@git).remote_add("mortar", project_git_url)
|
124
130
|
|
125
131
|
stderr, stdout = execute("projects:create #{project_name} --polling_interval 0.05", nil, @git)
|
data/spec/mortar/project_spec.rb
CHANGED
@@ -15,14 +15,10 @@
|
|
15
15
|
#
|
16
16
|
|
17
17
|
require "spec_helper"
|
18
|
-
require 'fakefs/spec_helpers'
|
19
18
|
require "mortar/project"
|
20
19
|
|
21
20
|
module Mortar
|
22
|
-
describe Project do
|
23
|
-
# use FakeFS file system
|
24
|
-
include FakeFS::SpecHelpers
|
25
|
-
|
21
|
+
describe Project do
|
26
22
|
context "tmp" do
|
27
23
|
it "creates a tmp dir if one does not exist" do
|
28
24
|
with_blank_project do |p|
|
metadata
CHANGED
@@ -1,183 +1,177 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: mortar
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 4
|
9
|
+
- 3
|
10
|
+
version: 0.4.3
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Mortar Data
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
17
|
+
|
18
|
+
date: 2012-11-27 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
15
21
|
name: mortar-api-ruby
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: 0.4.0
|
22
|
-
type: :runtime
|
23
22
|
prerelease: false
|
24
|
-
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
24
|
none: false
|
26
|
-
requirements:
|
25
|
+
requirements:
|
27
26
|
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
- - ~>
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: 0.7.5
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 13
|
29
|
+
segments:
|
30
|
+
- 0
|
31
|
+
- 4
|
32
|
+
- 1
|
33
|
+
version: 0.4.1
|
38
34
|
type: :runtime
|
35
|
+
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: netrc
|
39
38
|
prerelease: false
|
40
|
-
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ~>
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: 0.7.5
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
|
-
name: launchy
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
49
40
|
none: false
|
50
|
-
requirements:
|
41
|
+
requirements:
|
51
42
|
- - ~>
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 5
|
45
|
+
segments:
|
46
|
+
- 0
|
47
|
+
- 7
|
48
|
+
version: "0.7"
|
54
49
|
type: :runtime
|
50
|
+
version_requirements: *id002
|
51
|
+
- !ruby/object:Gem::Dependency
|
52
|
+
name: launchy
|
55
53
|
prerelease: false
|
56
|
-
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - ~>
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 2.1.1
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: curb
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
54
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
65
55
|
none: false
|
66
|
-
requirements:
|
56
|
+
requirements:
|
67
57
|
- - ~>
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
hash: 1
|
60
|
+
segments:
|
61
|
+
- 2
|
62
|
+
- 1
|
63
|
+
version: "2.1"
|
70
64
|
type: :runtime
|
65
|
+
version_requirements: *id003
|
66
|
+
- !ruby/object:Gem::Dependency
|
67
|
+
name: curb
|
71
68
|
prerelease: false
|
72
|
-
|
69
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
73
70
|
none: false
|
74
|
-
requirements:
|
71
|
+
requirements:
|
75
72
|
- - ~>
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
|
78
|
-
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
hash: 27
|
75
|
+
segments:
|
76
|
+
- 0
|
77
|
+
- 8
|
78
|
+
version: "0.8"
|
79
|
+
type: :runtime
|
80
|
+
version_requirements: *id004
|
81
|
+
- !ruby/object:Gem::Dependency
|
79
82
|
name: excon
|
80
|
-
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
|
-
requirements:
|
83
|
-
- - ~>
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
version: 0.15.4
|
86
|
-
type: :development
|
87
83
|
prerelease: false
|
88
|
-
|
84
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
89
85
|
none: false
|
90
|
-
requirements:
|
86
|
+
requirements:
|
91
87
|
- - ~>
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
requirements:
|
99
|
-
- - ! '>='
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
version: '0'
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
hash: 21
|
90
|
+
segments:
|
91
|
+
- 0
|
92
|
+
- 15
|
93
|
+
version: "0.15"
|
102
94
|
type: :development
|
95
|
+
version_requirements: *id005
|
96
|
+
- !ruby/object:Gem::Dependency
|
97
|
+
name: fakefs
|
103
98
|
prerelease: false
|
104
|
-
|
99
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
105
100
|
none: false
|
106
|
-
requirements:
|
107
|
-
- -
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
none: false
|
114
|
-
requirements:
|
115
|
-
- - ! '>='
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
hash: 3
|
105
|
+
segments:
|
106
|
+
- 0
|
107
|
+
version: "0"
|
118
108
|
type: :development
|
109
|
+
version_requirements: *id006
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: gem-release
|
119
112
|
prerelease: false
|
120
|
-
|
121
|
-
none: false
|
122
|
-
requirements:
|
123
|
-
- - ! '>='
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
version: '0'
|
126
|
-
- !ruby/object:Gem::Dependency
|
127
|
-
name: rake
|
128
|
-
requirement: !ruby/object:Gem::Requirement
|
113
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
129
114
|
none: false
|
130
|
-
requirements:
|
131
|
-
- -
|
132
|
-
- !ruby/object:Gem::Version
|
133
|
-
|
115
|
+
requirements:
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
hash: 3
|
119
|
+
segments:
|
120
|
+
- 0
|
121
|
+
version: "0"
|
134
122
|
type: :development
|
123
|
+
version_requirements: *id007
|
124
|
+
- !ruby/object:Gem::Dependency
|
125
|
+
name: rake
|
135
126
|
prerelease: false
|
136
|
-
|
137
|
-
none: false
|
138
|
-
requirements:
|
139
|
-
- - ! '>='
|
140
|
-
- !ruby/object:Gem::Version
|
141
|
-
version: '0'
|
142
|
-
- !ruby/object:Gem::Dependency
|
143
|
-
name: rr
|
144
|
-
requirement: !ruby/object:Gem::Requirement
|
127
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
145
128
|
none: false
|
146
|
-
requirements:
|
147
|
-
- -
|
148
|
-
- !ruby/object:Gem::Version
|
149
|
-
|
129
|
+
requirements:
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
hash: 3
|
133
|
+
segments:
|
134
|
+
- 0
|
135
|
+
version: "0"
|
150
136
|
type: :development
|
137
|
+
version_requirements: *id008
|
138
|
+
- !ruby/object:Gem::Dependency
|
139
|
+
name: rr
|
151
140
|
prerelease: false
|
152
|
-
|
141
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
153
142
|
none: false
|
154
|
-
requirements:
|
155
|
-
- -
|
156
|
-
- !ruby/object:Gem::Version
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
none: false
|
162
|
-
requirements:
|
163
|
-
- - ! '>='
|
164
|
-
- !ruby/object:Gem::Version
|
165
|
-
version: '0'
|
143
|
+
requirements:
|
144
|
+
- - ">="
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
hash: 3
|
147
|
+
segments:
|
148
|
+
- 0
|
149
|
+
version: "0"
|
166
150
|
type: :development
|
151
|
+
version_requirements: *id009
|
152
|
+
- !ruby/object:Gem::Dependency
|
153
|
+
name: rspec
|
167
154
|
prerelease: false
|
168
|
-
|
155
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
169
156
|
none: false
|
170
|
-
requirements:
|
171
|
-
- -
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
|
157
|
+
requirements:
|
158
|
+
- - ">="
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
hash: 3
|
161
|
+
segments:
|
162
|
+
- 0
|
163
|
+
version: "0"
|
164
|
+
type: :development
|
165
|
+
version_requirements: *id010
|
174
166
|
description: Client library and command-line tool to interact with the Mortar service.
|
175
167
|
email: support@mortardata.com
|
176
|
-
executables:
|
168
|
+
executables:
|
177
169
|
- mortar
|
178
170
|
extensions: []
|
171
|
+
|
179
172
|
extra_rdoc_files: []
|
180
|
-
|
173
|
+
|
174
|
+
files:
|
181
175
|
- README.md
|
182
176
|
- bin/mortar
|
183
177
|
- lib/mortar.rb
|
@@ -244,26 +238,38 @@ files:
|
|
244
238
|
- spec/support/display_message_matcher.rb
|
245
239
|
homepage: http://mortardata.com/
|
246
240
|
licenses: []
|
241
|
+
|
247
242
|
post_install_message:
|
248
243
|
rdoc_options: []
|
249
|
-
|
244
|
+
|
245
|
+
require_paths:
|
250
246
|
- lib
|
251
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
247
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
252
248
|
none: false
|
253
|
-
requirements:
|
254
|
-
- -
|
255
|
-
- !ruby/object:Gem::Version
|
249
|
+
requirements:
|
250
|
+
- - ">="
|
251
|
+
- !ruby/object:Gem::Version
|
252
|
+
hash: 57
|
253
|
+
segments:
|
254
|
+
- 1
|
255
|
+
- 8
|
256
|
+
- 7
|
256
257
|
version: 1.8.7
|
257
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
258
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
258
259
|
none: false
|
259
|
-
requirements:
|
260
|
-
- -
|
261
|
-
- !ruby/object:Gem::Version
|
262
|
-
|
260
|
+
requirements:
|
261
|
+
- - ">="
|
262
|
+
- !ruby/object:Gem::Version
|
263
|
+
hash: 3
|
264
|
+
segments:
|
265
|
+
- 0
|
266
|
+
version: "0"
|
263
267
|
requirements: []
|
268
|
+
|
264
269
|
rubyforge_project:
|
265
270
|
rubygems_version: 1.8.24
|
266
271
|
signing_key:
|
267
272
|
specification_version: 3
|
268
273
|
summary: Client library and CLI to interact with the Mortar service.
|
269
274
|
test_files: []
|
275
|
+
|