devcenter 1.1.0rc2 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/devcenter/client.rb +1 -1
- data/lib/devcenter/commands/push.rb +15 -2
- data/lib/devcenter/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d352eb839a6897d9f77d7a6c92e087226d4ebf52
|
|
4
|
+
data.tar.gz: e422574c967cb28606b259c0c0f279b0d4af6da4
|
|
5
5
|
!binary "U0hBNTEy":
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8364d4972ab68c3391e8fded0f65d240af897d61e274aeb4443c1a4de8f31a9ccdfc29a47fc7cf1693d8ccdf3ef0a67d403bcae418f7f3f60cc1e4fb9d8b15e4
|
|
7
|
+
data.tar.gz: 33ebc9d225132cdcfbc795f28f26c136b15a0c79c8d70b4c36bd243d0c7a7adb4d91603b1731a7b5d1b3ea61dc9104f1c31e39898c6a4da554697b6bed024bce
|
data/lib/devcenter/client.rb
CHANGED
|
@@ -66,11 +66,24 @@ module Devcenter::Commands
|
|
|
66
66
|
}
|
|
67
67
|
response = Devcenter::Client.update_article(token, article_id, article_params)
|
|
68
68
|
if response.ok?
|
|
69
|
-
|
|
69
|
+
body = response.body
|
|
70
|
+
verb = case body['status']
|
|
71
|
+
when 'published'
|
|
72
|
+
'published'
|
|
73
|
+
when 'published_quietly'
|
|
74
|
+
'published quietly'
|
|
75
|
+
when 'draft'
|
|
76
|
+
'pushed in draft mode'
|
|
77
|
+
when 'archived'
|
|
78
|
+
'archived'
|
|
79
|
+
when 'staging'
|
|
80
|
+
'pushed as staging mode'
|
|
81
|
+
end
|
|
82
|
+
say "Article \"#{body['title']}\" #{verb} to #{body['url']}"
|
|
70
83
|
else
|
|
71
84
|
error = response.body['error']
|
|
72
85
|
abort "Error pushing \"#{@slug}\": #{error}"
|
|
73
86
|
end
|
|
74
|
-
end
|
|
87
|
+
end
|
|
75
88
|
end
|
|
76
89
|
end
|
data/lib/devcenter/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: devcenter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Raul Murciano
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2014-01-25 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: listen
|
|
@@ -309,9 +309,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
309
309
|
version: '0'
|
|
310
310
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
311
311
|
requirements:
|
|
312
|
-
- - ! '
|
|
312
|
+
- - ! '>='
|
|
313
313
|
- !ruby/object:Gem::Version
|
|
314
|
-
version:
|
|
314
|
+
version: '0'
|
|
315
315
|
requirements: []
|
|
316
316
|
rubyforge_project:
|
|
317
317
|
rubygems_version: 2.0.3
|