mattermost-api4-ruby 0.0.8 → 0.0.9

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
- SHA1:
3
- metadata.gz: 4d2172dab7043981ddc6e9f23a1252c603b708b9
4
- data.tar.gz: 977042fdc8a7bdc73582f35033fc44cde43129f4
2
+ SHA256:
3
+ metadata.gz: d97995dcba471128cfc66bbf780838e6719ddc162f257ff440e402d6aed4df65
4
+ data.tar.gz: 6e885c142ccf11596cd1eb4a134c61f7651ebecede65b4b83896e924df2cd87c
5
5
  SHA512:
6
- metadata.gz: 0b5df1bb0875c5cbbd43289c090c2a5446209d2ba03182f7e8bfa8ea6ed3ed157cb8355c1acdcf8790369aebddf7fe2574c4d175b7b0666f239b2b6c552eb821
7
- data.tar.gz: e77fadbea409b42f6d9a1b2c30e926fdad9424725cefe27fa87c2bc5dcab45abf7304528c702ecdb65f324640ededded48dd37630fb98ec3a2b759f81b6f4929
6
+ metadata.gz: 7b94d19e5af862a08f6142a2526f6aea61a06840bfd4228f924112f5098a5d9d3a6f9edcc1d054ced7854efb2ec442508c4b3270ef16e5d20a8408d58aecf677
7
+ data.tar.gz: 01a7a1946bcf2cad86887f2aa9195e2944cc6e9d12cb5d9289e934a63d7479b24116e0272d6d9d9c71fb8266b9b5f5835e81cbb3ee8f0e9ac05e25b8fceb46b4
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  # Change Log
2
2
 
3
- ## [v0.0.8](https://github.com/maruTA-bis5/mattermost-api4-ruby/tree/v0.0.8) (2018-01-31)
3
+ ## [0.0.9](https://github.com/maruTA-bis5/mattermost-api4-ruby/tree/0.0.9) (2018-10-18)
4
+ [Full Changelog](https://github.com/maruTA-bis5/mattermost-api4-ruby/compare/v0.0.8...0.0.9)
5
+
6
+ **Implemented enhancements:**
7
+
8
+ - Allow mattermost servers to use subdirectory [\#17](https://github.com/maruTA-bis5/mattermost-api4-ruby/pull/17) ([haccht](https://github.com/haccht))
9
+
10
+ ## [v0.0.8](https://github.com/maruTA-bis5/mattermost-api4-ruby/tree/v0.0.8) (2018-01-30)
4
11
  [Full Changelog](https://github.com/maruTA-bis5/mattermost-api4-ruby/compare/v0.0.7...v0.0.8)
5
12
 
6
13
  **Implemented enhancements:**
@@ -9,7 +9,7 @@ module Mattermost
9
9
  include Mattermost::Endpoint
10
10
  include Mattermost::Request
11
11
 
12
- attr_accessor :server, :token, :headers
12
+ attr_accessor :server, :subdir, :token, :headers
13
13
 
14
14
  # *DEPRECATED* I'll remove this method soon
15
15
  def base_uri
@@ -18,7 +18,8 @@ module Mattermost
18
18
  deprecate :base_uri, :none, 2018, 1
19
19
 
20
20
  def initialize(server)
21
- self.server = server
21
+ self.server = URI.join(server, '/').to_s
22
+ self.subdir = URI(server).path
22
23
  self.headers = {:Accept => "application/json"}
23
24
  end
24
25
 
@@ -45,7 +45,7 @@ module Mattermost
45
45
  end
46
46
 
47
47
  def api(path)
48
- "/api/v4#{path}"
48
+ "#{subdir}/api/v4#{path}"
49
49
  end
50
50
 
51
51
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "mattermost-api4-ruby"
5
- spec.version = "0.0.8"
5
+ spec.version = "0.0.9"
6
6
  spec.authors = ["Takayuki Maruyama"]
7
7
  spec.email = ["bis5.wsys@gmail.com"]
8
8
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mattermost-api4-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takayuki Maruyama
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-30 00:00:00.000000000 Z
11
+ date: 2018-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -202,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
202
202
  version: '0'
203
203
  requirements: []
204
204
  rubyforge_project:
205
- rubygems_version: 2.5.1
205
+ rubygems_version: 2.7.6
206
206
  signing_key:
207
207
  specification_version: 4
208
208
  summary: Mattermost API v4 client for ruby