jdc 0.2.0 → 0.2.1.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/jdc/cli.rb +13 -1
  2. data/lib/jdc/version.rb +1 -1
  3. metadata +49 -60
data/lib/jdc/cli.rb CHANGED
@@ -103,7 +103,14 @@ module JDC
103
103
  info_changed = true
104
104
  end
105
105
 
106
- save_target_info(info, client.target) unless !info_changed
106
+ if info_changed
107
+ save_target_info(info, client.target)
108
+ end
109
+
110
+ unless info.key? :organization
111
+ client.current_organization = JDC::Populators::Organization.new(input).populate_and_save!
112
+ client.current_space = JDC::Populators::Space.new(input, client.current_organization).populate_and_save!
113
+ end
107
114
  end
108
115
 
109
116
  def check_logged_in
@@ -474,6 +481,11 @@ EOS
474
481
 
475
482
  save_target_info(info, target) unless !info_changed
476
483
 
484
+ unless info.key? :organization
485
+ @@client.current_organization = JDC::Populators::Organization.new(input).populate_and_save!
486
+ @@client.current_space = JDC::Populators::Space.new(input, @@client.current_organization).populate_and_save!
487
+ end
488
+
477
489
  @@client.current_organization = @@client.organization(info[:organization]) if info[:organization]
478
490
  @@client.current_space = @@client.space(info[:space]) if info[:space]
479
491
 
data/lib/jdc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module JDC
2
- VERSION = "0.2.0".freeze
2
+ VERSION = "0.2.1".freeze
3
3
  end
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jdc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
5
- prerelease:
4
+ version: 0.2.1.pre
5
+ prerelease: 6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jing Dong Foundry Team
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-08-29 00:00:00.000000000 Z
13
+ date: 2013-08-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: addressable
17
- requirement: &9373700 !ruby/object:Gem::Requirement
17
+ requirement: &6052020 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '2.2'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *9373700
25
+ version_requirements: *6052020
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: caldecott-client
28
- requirement: &9373000 !ruby/object:Gem::Requirement
28
+ requirement: &6050620 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,21 +33,10 @@ dependencies:
33
33
  version: 0.0.2
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *9373000
37
- - !ruby/object:Gem::Dependency
38
- name: jfoundry
39
- requirement: &9372320 !ruby/object:Gem::Requirement
40
- none: false
41
- requirements:
42
- - - =
43
- - !ruby/object:Gem::Version
44
- version: 0.1.0
45
- type: :runtime
46
- prerelease: false
47
- version_requirements: *9372320
36
+ version_requirements: *6050620
48
37
  - !ruby/object:Gem::Dependency
49
38
  name: interact
50
- requirement: &9371560 !ruby/object:Gem::Requirement
39
+ requirement: &6049920 !ruby/object:Gem::Requirement
51
40
  none: false
52
41
  requirements:
53
42
  - - ~>
@@ -55,10 +44,10 @@ dependencies:
55
44
  version: '0.5'
56
45
  type: :runtime
57
46
  prerelease: false
58
- version_requirements: *9371560
47
+ version_requirements: *6049920
59
48
  - !ruby/object:Gem::Dependency
60
49
  name: json_pure
61
- requirement: &9370140 !ruby/object:Gem::Requirement
50
+ requirement: &6049100 !ruby/object:Gem::Requirement
62
51
  none: false
63
52
  requirements:
64
53
  - - ~>
@@ -66,10 +55,10 @@ dependencies:
66
55
  version: '1.6'
67
56
  type: :runtime
68
57
  prerelease: false
69
- version_requirements: *9370140
58
+ version_requirements: *6049100
70
59
  - !ruby/object:Gem::Dependency
71
60
  name: mothership
72
- requirement: &9369600 !ruby/object:Gem::Requirement
61
+ requirement: &6047880 !ruby/object:Gem::Requirement
73
62
  none: false
74
63
  requirements:
75
64
  - - ! '>='
@@ -80,10 +69,10 @@ dependencies:
80
69
  version: '1.0'
81
70
  type: :runtime
82
71
  prerelease: false
83
- version_requirements: *9369600
72
+ version_requirements: *6047880
84
73
  - !ruby/object:Gem::Dependency
85
74
  name: multi_json
86
- requirement: &9368440 !ruby/object:Gem::Requirement
75
+ requirement: &6046880 !ruby/object:Gem::Requirement
87
76
  none: false
88
77
  requirements:
89
78
  - - ~>
@@ -91,10 +80,10 @@ dependencies:
91
80
  version: '1.3'
92
81
  type: :runtime
93
82
  prerelease: false
94
- version_requirements: *9368440
83
+ version_requirements: *6046880
95
84
  - !ruby/object:Gem::Dependency
96
85
  name: rest-client
97
- requirement: &9367260 !ruby/object:Gem::Requirement
86
+ requirement: &6046080 !ruby/object:Gem::Requirement
98
87
  none: false
99
88
  requirements:
100
89
  - - ~>
@@ -102,10 +91,10 @@ dependencies:
102
91
  version: '1.6'
103
92
  type: :runtime
104
93
  prerelease: false
105
- version_requirements: *9367260
94
+ version_requirements: *6046080
106
95
  - !ruby/object:Gem::Dependency
107
96
  name: uuidtools
108
- requirement: &9365740 !ruby/object:Gem::Requirement
97
+ requirement: &6045040 !ruby/object:Gem::Requirement
109
98
  none: false
110
99
  requirements:
111
100
  - - ~>
@@ -113,10 +102,10 @@ dependencies:
113
102
  version: '2.1'
114
103
  type: :runtime
115
104
  prerelease: false
116
- version_requirements: *9365740
105
+ version_requirements: *6045040
117
106
  - !ruby/object:Gem::Dependency
118
107
  name: blue-shell
119
- requirement: &9364360 !ruby/object:Gem::Requirement
108
+ requirement: &6043560 !ruby/object:Gem::Requirement
120
109
  none: false
121
110
  requirements:
122
111
  - - ! '>='
@@ -124,10 +113,10 @@ dependencies:
124
113
  version: 0.2.1
125
114
  type: :development
126
115
  prerelease: false
127
- version_requirements: *9364360
116
+ version_requirements: *6043560
128
117
  - !ruby/object:Gem::Dependency
129
118
  name: factory_girl
130
- requirement: &9363620 !ruby/object:Gem::Requirement
119
+ requirement: &6042660 !ruby/object:Gem::Requirement
131
120
  none: false
132
121
  requirements:
133
122
  - - ! '>='
@@ -135,10 +124,10 @@ dependencies:
135
124
  version: '0'
136
125
  type: :development
137
126
  prerelease: false
138
- version_requirements: *9363620
127
+ version_requirements: *6042660
139
128
  - !ruby/object:Gem::Dependency
140
129
  name: fakefs
141
- requirement: &9362080 !ruby/object:Gem::Requirement
130
+ requirement: &6041120 !ruby/object:Gem::Requirement
142
131
  none: false
143
132
  requirements:
144
133
  - - ~>
@@ -146,10 +135,10 @@ dependencies:
146
135
  version: 0.4.2
147
136
  type: :development
148
137
  prerelease: false
149
- version_requirements: *9362080
138
+ version_requirements: *6041120
150
139
  - !ruby/object:Gem::Dependency
151
140
  name: ffaker
152
- requirement: &9359980 !ruby/object:Gem::Requirement
141
+ requirement: &6039460 !ruby/object:Gem::Requirement
153
142
  none: false
154
143
  requirements:
155
144
  - - =
@@ -157,10 +146,10 @@ dependencies:
157
146
  version: '1.15'
158
147
  type: :development
159
148
  prerelease: false
160
- version_requirements: *9359980
149
+ version_requirements: *6039460
161
150
  - !ruby/object:Gem::Dependency
162
151
  name: gem-release
163
- requirement: &9359280 !ruby/object:Gem::Requirement
152
+ requirement: &6037480 !ruby/object:Gem::Requirement
164
153
  none: false
165
154
  requirements:
166
155
  - - ! '>='
@@ -168,10 +157,10 @@ dependencies:
168
157
  version: '0'
169
158
  type: :development
170
159
  prerelease: false
171
- version_requirements: *9359280
160
+ version_requirements: *6037480
172
161
  - !ruby/object:Gem::Dependency
173
162
  name: rake
174
- requirement: &9358280 !ruby/object:Gem::Requirement
163
+ requirement: &6036420 !ruby/object:Gem::Requirement
175
164
  none: false
176
165
  requirements:
177
166
  - - ~>
@@ -179,10 +168,10 @@ dependencies:
179
168
  version: '0.9'
180
169
  type: :development
181
170
  prerelease: false
182
- version_requirements: *9358280
171
+ version_requirements: *6036420
183
172
  - !ruby/object:Gem::Dependency
184
173
  name: rspec
185
- requirement: &9339120 !ruby/object:Gem::Requirement
174
+ requirement: &6017040 !ruby/object:Gem::Requirement
186
175
  none: false
187
176
  requirements:
188
177
  - - ~>
@@ -190,10 +179,10 @@ dependencies:
190
179
  version: '2.14'
191
180
  type: :development
192
181
  prerelease: false
193
- version_requirements: *9339120
182
+ version_requirements: *6017040
194
183
  - !ruby/object:Gem::Dependency
195
184
  name: rspec-instafail
196
- requirement: &9337920 !ruby/object:Gem::Requirement
185
+ requirement: &6016100 !ruby/object:Gem::Requirement
197
186
  none: false
198
187
  requirements:
199
188
  - - ~>
@@ -201,10 +190,10 @@ dependencies:
201
190
  version: 0.2.4
202
191
  type: :development
203
192
  prerelease: false
204
- version_requirements: *9337920
193
+ version_requirements: *6016100
205
194
  - !ruby/object:Gem::Dependency
206
195
  name: webmock
207
- requirement: &9336780 !ruby/object:Gem::Requirement
196
+ requirement: &6015000 !ruby/object:Gem::Requirement
208
197
  none: false
209
198
  requirements:
210
199
  - - ~>
@@ -212,10 +201,10 @@ dependencies:
212
201
  version: '1.9'
213
202
  type: :development
214
203
  prerelease: false
215
- version_requirements: *9336780
204
+ version_requirements: *6015000
216
205
  - !ruby/object:Gem::Dependency
217
206
  name: httpclient
218
- requirement: &9335700 !ruby/object:Gem::Requirement
207
+ requirement: &6014100 !ruby/object:Gem::Requirement
219
208
  none: false
220
209
  requirements:
221
210
  - - ~>
@@ -223,10 +212,10 @@ dependencies:
223
212
  version: '2.3'
224
213
  type: :development
225
214
  prerelease: false
226
- version_requirements: *9335700
215
+ version_requirements: *6014100
227
216
  - !ruby/object:Gem::Dependency
228
217
  name: yajl-ruby
229
- requirement: &9332260 !ruby/object:Gem::Requirement
218
+ requirement: &6013260 !ruby/object:Gem::Requirement
230
219
  none: false
231
220
  requirements:
232
221
  - - ! '>='
@@ -234,10 +223,10 @@ dependencies:
234
223
  version: '0'
235
224
  type: :development
236
225
  prerelease: false
237
- version_requirements: *9332260
226
+ version_requirements: *6013260
238
227
  - !ruby/object:Gem::Dependency
239
228
  name: nats
240
- requirement: &9326660 !ruby/object:Gem::Requirement
229
+ requirement: &6005740 !ruby/object:Gem::Requirement
241
230
  none: false
242
231
  requirements:
243
232
  - - ! '>='
@@ -245,10 +234,10 @@ dependencies:
245
234
  version: '0'
246
235
  type: :development
247
236
  prerelease: false
248
- version_requirements: *9326660
237
+ version_requirements: *6005740
249
238
  - !ruby/object:Gem::Dependency
250
239
  name: typhoeus
251
- requirement: &9325800 !ruby/object:Gem::Requirement
240
+ requirement: &6004000 !ruby/object:Gem::Requirement
252
241
  none: false
253
242
  requirements:
254
243
  - - ! '>='
@@ -256,10 +245,10 @@ dependencies:
256
245
  version: '0'
257
246
  type: :development
258
247
  prerelease: false
259
- version_requirements: *9325800
248
+ version_requirements: *6004000
260
249
  - !ruby/object:Gem::Dependency
261
250
  name: anchorman
262
- requirement: &9322560 !ruby/object:Gem::Requirement
251
+ requirement: &6000520 !ruby/object:Gem::Requirement
263
252
  none: false
264
253
  requirements:
265
254
  - - ! '>='
@@ -267,7 +256,7 @@ dependencies:
267
256
  version: '0'
268
257
  type: :development
269
258
  prerelease: false
270
- version_requirements: *9322560
259
+ version_requirements: *6000520
271
260
  description:
272
261
  email:
273
262
  - jae@jd.com
@@ -411,9 +400,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
411
400
  required_rubygems_version: !ruby/object:Gem::Requirement
412
401
  none: false
413
402
  requirements:
414
- - - ! '>='
403
+ - - ! '>'
415
404
  - !ruby/object:Gem::Version
416
- version: '0'
405
+ version: 1.3.1
417
406
  requirements: []
418
407
  rubyforge_project: jdc
419
408
  rubygems_version: 1.8.11