pry-parsecom 0.0.3 → 0.0.4
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.
data/README.md
CHANGED
@@ -53,7 +53,7 @@ CLI for parse.com
|
|
53
53
|
__type: Pointer
|
54
54
|
className: _User
|
55
55
|
objectId: ZybBXQEIjI
|
56
|
-
body:
|
56
|
+
body: Hello
|
57
57
|
comments: <Ralations>
|
58
58
|
createdAt: '2013-11-17T13:37:44.055Z'
|
59
59
|
updatedAt: '2013-11-17T13:38:30.908Z'
|
@@ -65,7 +65,7 @@ CLI for parse.com
|
|
65
65
|
__type: Pointer
|
66
66
|
className: _User
|
67
67
|
objectId: ZybBXQEIjI
|
68
|
-
body:
|
68
|
+
body: World
|
69
69
|
comments: <Ralations>
|
70
70
|
createdAt: '2013-11-17T14:33:00.134Z'
|
71
71
|
updatedAt: '2013-11-17T14:33:25.436Z'
|
@@ -14,7 +14,7 @@ PryParsecom::Commands.create_command "show-applications" do
|
|
14
14
|
|
15
15
|
def process
|
16
16
|
PryParsecom::Setting.setup_if_needed
|
17
|
-
table = PryParsecom::Table.new %w(Name
|
17
|
+
table = PryParsecom::Table.new %w(Name Using)
|
18
18
|
PryParsecom::Setting.app_names.each do |name|
|
19
19
|
table.add_row [name, name == PryParsecom::Setting.current_app ? '*' : '']
|
20
20
|
end
|
@@ -19,9 +19,10 @@ PryParsecom::Commands.create_command 'show-classes' do
|
|
19
19
|
end
|
20
20
|
|
21
21
|
PryParsecom::Setting.setup_if_needed
|
22
|
-
|
22
|
+
app_name = args.first || PryParsecom::Setting.current_app
|
23
|
+
setting = PryParsecom::Setting.by_name app_name
|
23
24
|
unless setting
|
24
|
-
output.puts
|
25
|
+
output.puts "Application no found: #{app_name}"
|
25
26
|
return
|
26
27
|
end
|
27
28
|
|
@@ -13,12 +13,24 @@ PryParsecom::Commands.create_command "show-credentials" do
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def process
|
16
|
+
if 1 < args.size
|
17
|
+
output.puts opt
|
18
|
+
return
|
19
|
+
end
|
20
|
+
|
16
21
|
PryParsecom::Setting.setup_if_needed
|
17
|
-
table = PryParsecom::Table.new %w(Key Value)
|
18
|
-
|
19
|
-
['
|
20
|
-
['
|
21
|
-
|
22
|
+
table = PryParsecom::Table.new %w(Key Value)
|
23
|
+
if args.empty?
|
24
|
+
table.add_row ['APPLICATION_ID', Parse.application_id || '']
|
25
|
+
table.add_row ['REST_API_KEY', Parse.api_key || '']
|
26
|
+
table.add_row ['MASTER_KEY', (Parse.master_key || '').sub(/.{30}$/, '*' * 30)]
|
27
|
+
else
|
28
|
+
app_name = args.first
|
29
|
+
setting = PryParsecom::Setting.by_name app_name
|
30
|
+
table.add_row ['APPLICATION_ID', setting.app_id]
|
31
|
+
table.add_row ['REST_API_KEY', setting.api_key]
|
32
|
+
table.add_row ['MASTER_KEY', (setting.master_key || '').sub(/.{30}$/, '*' * 30)]
|
33
|
+
end
|
22
34
|
output.puts table
|
23
35
|
end
|
24
36
|
end
|
data/lib/pry-parsecom/version.rb
CHANGED
data/pry-parsecom.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |gem|
|
|
10
10
|
gem.email = ["andyjpn@gmail.com"]
|
11
11
|
gem.description = %q{CLI for parse.com}
|
12
12
|
gem.summary = %q{CLI for parse.com}
|
13
|
-
gem.homepage = ""
|
13
|
+
gem.homepage = "https://github.com/technohippy/pry-parsecom"
|
14
14
|
gem.license = "MIT"
|
15
15
|
|
16
16
|
gem.files = `git ls-files`.split($/)
|
data/todo.txt
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pry-parsecom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-11-
|
12
|
+
date: 2013-11-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: pry
|
@@ -88,7 +88,7 @@ files:
|
|
88
88
|
- lib/pry-parsecom/version.rb
|
89
89
|
- pry-parsecom.gemspec
|
90
90
|
- todo.txt
|
91
|
-
homepage:
|
91
|
+
homepage: https://github.com/technohippy/pry-parsecom
|
92
92
|
licenses:
|
93
93
|
- MIT
|
94
94
|
post_install_message:
|