kronk 1.9.5 → 1.9.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3131792c5cada686c4716bf66fb3396d68aa9392
4
- data.tar.gz: 46d2628088e25d5cde756984b8ec41b82d0c774b
3
+ metadata.gz: b043225334e3146194e45e8786ff2c47574606a5
4
+ data.tar.gz: 52d722f85fd38a53c8a64d367a6cf8840360808c
5
5
  SHA512:
6
- metadata.gz: f673287a126de6374adbe41de49327d75f9a1c364afc07763ea186101bd02015546c99842b1658eaa037a856a124a8c2e2ba2f8c733206e40194dad5f8b3a1e5
7
- data.tar.gz: 68f4e60ed01cad9b558d9e72674f8c2803d3f3d424c1e9c2110f1085168b93c2e8e5b2c065529188d7538041fd303ef3b3f50a219e0a257776a6a1df2d1fdd8d
6
+ metadata.gz: c641b3413508480348cf6e7c3096f8ceb6b328c6ea71448276dd57679b103ba727db92798cabf6634d8a59cacec52f122333261153772486f7c235a646b1e5c3
7
+ data.tar.gz: 60983a1651cce9be00bd14e0af511c8974f7e34a23f5c1fb21c7de8875c6777eab236b34127e0e5c52478979a632b8976fb4dd256cff4a5dade43db18b734451
@@ -1,3 +1,17 @@
1
+ === 1.9.6 / 2014-08-20
2
+
3
+ * Bugfixes:
4
+
5
+ * Fix for first time kronk-oauth run
6
+
7
+ * Don't colorize responses when writing to non-tty stdout
8
+
9
+ === 1.9.5 / 2014-08-20
10
+
11
+ * Enhancements:
12
+
13
+ * Add kronk-oauth CLI for oauth config management
14
+
1
15
  === 1.9.4 / 2012-09-04
2
16
 
3
17
  * Enhancements:
@@ -1,6 +1,6 @@
1
1
  = Kronk
2
2
 
3
- * http://kronk.me
3
+ * http://jcasts.me/kronk
4
4
 
5
5
  == DESCRIPTION:
6
6
 
@@ -357,7 +357,7 @@ and generate the RDoc.
357
357
 
358
358
  (The MIT License)
359
359
 
360
- Copyright (c) 2010-2012 Jeremie Castagna
360
+ Copyright (c) 2010-2014 Jeremie Castagna
361
361
 
362
362
  Permission is hereby granted, free of charge, to any person obtaining
363
363
  a copy of this software and associated documentation files (the
@@ -16,7 +16,7 @@ require 'yaml'
16
16
  class Kronk
17
17
 
18
18
  # This gem's version.
19
- VERSION = '1.9.5'
19
+ VERSION = '1.9.6'
20
20
 
21
21
  require 'kronk/constants'
22
22
  require 'kronk/queue_runner'
@@ -88,7 +88,7 @@ class Kronk
88
88
  end
89
89
  end
90
90
 
91
- @oauth_config = Kronk::OAuthConfig.load_file(DEFAULT_OAUTH_FILE)
91
+ @oauth_config = Kronk::OAuthConfig.load_file(DEFAULT_OAUTH_FILE) if File.file?(DEFAULT_OAUTH_FILE)
92
92
  end
93
93
 
94
94
 
@@ -537,6 +537,11 @@ Parse and run diffs against data from live and cached http responses.
537
537
  options[:uris] << BufferedIO.new($stdin)
538
538
  end
539
539
 
540
+ unless $stdout.tty?
541
+ Kronk.config[:color_data] = false
542
+ Kronk.config[:diff_format] = 'ascii'
543
+ end
544
+
540
545
  options[:uris].concat argv
541
546
  options[:uris].slice!(2..-1)
542
547
 
@@ -103,6 +103,8 @@ class Kronk::Cmd::OAuth
103
103
  exit 2
104
104
  end
105
105
 
106
+ Kronk::Cmd.load_config_file
107
+
106
108
  new(Kronk::DEFAULT_OAUTH_FILE).send(*parse_args(argv))
107
109
  end
108
110
 
@@ -62,7 +62,7 @@ class Kronk
62
62
 
63
63
  # The default Kronk user agent.
64
64
  DEFAULT_USER_AGENT =
65
- "Kronk/#{VERSION} (#{RUBY_PLATFORM}; U; en-US; http://kronk.me) \
65
+ "Kronk/#{VERSION} (#{RUBY_PLATFORM}; U; en-US; http://jcasts.me/kronk) \
66
66
  #{RUBY_ENGINE}/#{RUBY_VERSION}p#{RUBY_PATCHLEVEL}"
67
67
 
68
68
  # Aliases for various user-agents. Thanks Mechanize! :)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kronk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.5
4
+ version: 1.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremie Castagna
@@ -237,7 +237,7 @@ files:
237
237
  - test/test_request_parser.rb
238
238
  - test/test_response.rb
239
239
  - test/test_xml_parser.rb
240
- homepage: http://kronk.me
240
+ homepage: http://jcasts.me/kronk
241
241
  licenses:
242
242
  - MIT
243
243
  metadata: {}