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 +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/discourse_api/client.rb +4 -2
- data/lib/discourse_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1b16d39076c47bcf8981135aaa0200f7d53d97eb
|
|
4
|
+
data.tar.gz: 8827f146d4565777ea9257332002b80a9bb1ecf8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/discourse_api/client.rb
CHANGED
|
@@ -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
|
-
|
|
109
|
-
|
|
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
|
|
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.
|
|
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-
|
|
14
|
+
date: 2016-03-04 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: faraday
|