bizside-redmine-client 0.0.1 → 0.0.2

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
- SHA1:
3
- metadata.gz: ccbf9316e52bbc4741788170d4b8df1861739b05
4
- data.tar.gz: 701e5f7b1b3cb36d87aea56fbcbd048762769b10
2
+ SHA256:
3
+ metadata.gz: 75d7a8838ae863cebc1c4b8471cb13f56f2c447c1c90712c4405ca10f1e1fa98
4
+ data.tar.gz: 607c05428fc61c0e867d4d971fdef1c994de588c211c5386568cc805d666efbb
5
5
  SHA512:
6
- metadata.gz: 200fd08c22f22e6e462b5af2c45d2671f87985114cfb1f817abff160c70590874419334e182b616997d087dfb6b4b28ae30004a8cd980127d17943aaec8516d0
7
- data.tar.gz: 1d27984ab1e0c33d7a5b447b85d07ef121f7e05308a11bfcfa727246fea83cd9de391dbd02cb8b1fcdd4f912b02241b2468140bbc64145c25fea161643a2fb6d
6
+ metadata.gz: 0eb4059c196580c27d8456614e67b67c23639df008165e4e494fbfdc9c4db20c1ebd4a5c4c5e982cc9a2483e3da51c04c44686fe914d9807e82b573e3a8eae56
7
+ data.tar.gz: fbac1fd09bdd517030010f72c57351225bb1fafcb1f23012c33843a7de07d6f4bd7ce5c9c37fdab75a095c60aa912ec8c4407c0c0a3760c5115055f6ac5b3279
data/.gitignore CHANGED
@@ -1,4 +1,5 @@
1
1
  /.bundle/
2
+ /.project
2
3
  /.yardoc
3
4
  /_yardoc/
4
5
  /coverage/
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # Bizside::Redmine::Client
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/bizside/redmine/client`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ Redmine API client implmentation used by BizSide
6
4
 
7
5
  ## Installation
8
6
 
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.add_dependency 'activesupport', '>= 3.2', '< 6.0.0'
27
27
  spec.add_dependency 'nokogiri', '~> 1.10'
28
28
 
29
- spec.add_development_dependency "bundler", "~> 1.17"
29
+ spec.add_development_dependency "bundler", "~> 2.0"
30
30
  spec.add_development_dependency "rake", "~> 10.0"
31
31
  spec.add_development_dependency "minitest", "~> 5.0"
32
32
  spec.add_development_dependency 'webmock', '~> 3.0'
@@ -105,19 +105,19 @@ class Bizside::Redmine::Client
105
105
  path = "#{prefix}/projects/#{params[:project_identifier]}/wiki/#{params[:page_name]}.xml"
106
106
  content = "<wiki_page><text>#{params[:content]}</text></wiki_page>"
107
107
  response = connection.post_or_put(path, content)
108
- decode(:wiki_page, response)
108
+ Bizside::Redmine::ResultSet.new(:wiki_page, response.status)
109
109
  end
110
110
 
111
111
  def create_analyzed_wiki_pages(params)
112
112
  content = "<wiki_page><text>#{params[:content]}</text></wiki_page>"
113
113
  response = connection.post_or_put("#{prefix}/projects/#{params[:project_identifier]}/wiki/#{params[:page_name]}.xml", content)
114
- decode(:wiki_page, response)
114
+ Bizside::Redmine::ResultSet.new(:wiki_page, response.status)
115
115
  end
116
116
 
117
117
  def create_errors_wiki_pages(params)
118
118
  content = "<wiki_page><text>h3. #{params[:page_name]} <notextile></notextile>&lt;pre&gt;#{params[:content]}&lt;/pre&gt;</text></wiki_page>"
119
119
  response = connection.post_or_put("#{prefix}/projects/#{params[:project_identifier]}/wiki/#{params[:page_name]}.xml", content)
120
- decode(:wiki_page, response)
120
+ Bizside::Redmine::ResultSet.new(:wiki_page, response.status)
121
121
  end
122
122
 
123
123
  def create_aggregated_wiki_page(params)
@@ -1,7 +1,7 @@
1
1
  module Bizside
2
2
  module Redmine
3
3
  class Client
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bizside-redmine-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - y-matsuda
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-28 00:00:00.000000000 Z
11
+ date: 2019-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -64,14 +64,14 @@ dependencies:
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '1.17'
67
+ version: '2.0'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '1.17'
74
+ version: '2.0'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: rake
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -155,8 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  - !ruby/object:Gem::Version
156
156
  version: '0'
157
157
  requirements: []
158
- rubyforge_project:
159
- rubygems_version: 2.5.2.3
158
+ rubygems_version: 3.0.4
160
159
  signing_key:
161
160
  specification_version: 4
162
161
  summary: redmine client for bizside