discourse_api 0.8.0 → 0.8.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e774662e2101d7cc9efd59ecc530b1fd850d9aae
4
- data.tar.gz: e957df497e9510660dfb359f0e2964279c069036
3
+ metadata.gz: 1b16d39076c47bcf8981135aaa0200f7d53d97eb
4
+ data.tar.gz: 8827f146d4565777ea9257332002b80a9bb1ecf8
5
5
  SHA512:
6
- metadata.gz: 5cb7f3d6efe4850225c1ed35a2e0ff8508afa97f358e1d1b68a45f15ff37d42f70a72b23981779d3b2315f8495d2d9258848f5411cc8da14ccd3f2480d216ca2
7
- data.tar.gz: 76422bb639def262ac7ab4c075f063a6bf972e950d9d098813cd7b702a113c00bde43ccd548ae343a77b7cacbaf451f0f978a05a0814b413f94718d864698e09
6
+ metadata.gz: b7c10094e68e98260f544c74d913ff3f0f356d19b40cfdb32317bcc4a1dd9cc07563765d9f915cf071f32c5e79d2b672260bf485d8a39fa2a24bd41f5e2b81f0
7
+ data.tar.gz: 47e94f1eb157f6caccc9e8ea749a984e810e50305d775887b16f304cad1c1990c1ef4c884e54c9ca61892f867f03e8c56b5c23f8d35c9325c2ccd3b69ce6e784
data/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
+ ## [0.8.1] - 2016-03-03
6
+ ### Fixed
7
+ - enable use of discourse_api to make unauthenticated requests to discourse
8
+ endpoints like /categories and /topics
9
+
10
+ ## [0.8.0] - 2016-02-28
11
+ ### Added
12
+ - get stats from admin dashboard
13
+ - get only stat totals from admin dashboard
14
+
5
15
  ## [0.7.0] - 2015-12-09
6
16
  ### Added
7
17
  - get user by external_id
@@ -105,8 +105,10 @@ module DiscourseApi
105
105
  # Use Faraday's default HTTP adapter
106
106
  conn.adapter Faraday.default_adapter
107
107
  #pass api_key and api_username on every request
108
- conn.params['api_key'] = api_key
109
- conn.params['api_username'] = api_username
108
+ unless api_username.nil?
109
+ conn.params['api_key'] = api_key
110
+ conn.params['api_username'] = api_username
111
+ end
110
112
  end
111
113
  end
112
114
 
@@ -1,3 +1,3 @@
1
1
  module DiscourseApi
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: discourse_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Saffron
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-02-28 00:00:00.000000000 Z
14
+ date: 2016-03-04 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: faraday