Commit MetaInfo

修订版caa6c889cfe11d088fe0559a5793ec5bb3fe53aa (tree)
时间2016-03-12 06:10:19
作者Tatsuki Sugiura <sugi@nemu...>
CommiterTatsuki Sugiura

Log Message

Change to production env.

更改概述

差异

--- a/lib/osdn/cli.rb
+++ b/lib/osdn/cli.rb
@@ -11,8 +11,8 @@ require 'json'
1111
1212 module OSDN
1313 module CLI
14- @@client_id = "fd573bffcd132857b32a438d3f4b6f575580f286afc94a45e220db244919163e"
15- @@client_secret = "92b4792000e091668ccf2ac95981c35fd3ef347450a4fde1a9a3344e99100fa1"
14+ @@client_id = "osdn-cli"
15+ @@client_secret = "not-secret"
1616 def client_id
1717 @@client_id
1818 end
--- a/lib/osdn/cli/command/login.rb
+++ b/lib/osdn/cli/command/login.rb
@@ -4,7 +4,7 @@ module OSDN; module CLI; module Command
44 logger.debug "Trying login"
55 scope = %w(profile group group_write)
66
7- auth_url = "https://sf-test-sugi.office.osdn.jp/account/oauth2ui/authorize?client_id=#{CLI.client_id}&state=cli#{Time.now.to_i}&response_type=code&scope=#{scope.join('%20')}"
7+ auth_url = "https://osdn.jp/account/oauth2ui/authorize?client_id=#{CLI.client_id}&state=cli#{Time.now.to_i}&response_type=code&scope=#{scope.join('%20')}"
88
99 launch_brwoser auth_url
1010 puts
--- a/lib/osdn/cli/runner.rb
+++ b/lib/osdn/cli/runner.rb
@@ -65,12 +65,6 @@ module OSDN
6565 exit 1
6666 end
6767
68- OSDNClient.configure do |config|
69- # TODO: remove
70- config.verify_ssl = false
71- config.logger.level = logger.level
72- end
73-
7468 if command_name == 'help'
7569 help
7670 exit
Show on old repository browser