taiga 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/README.md +7 -1
- data/Rakefile +11 -0
- data/lib/taiga/version.rb +1 -1
- data/lib/taiga.rb +27 -6
- data/taiga.gemspec +2 -0
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 968b3fa7b1040247cc2f8c62ed85e2aae8b7d38e97161be3eb7fb037f69d687b
|
4
|
+
data.tar.gz: 1be9c62e916f97eedfd2578dec2fcbcefa85ab2a76135485aafc38389d1c5624
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c6279c1d30c96576004cd29a2afd9cdbe723dd773d15f4001dd59322200eacf2dc1b1305086fba85a346857aa5518f5bae822ec9e9e1ec5bf1e22e0ca5c235a
|
7
|
+
data.tar.gz: d85ce14cd6411a00b865c70ea36a44a2a308424547f8dbac5827e98518b89da56591678c4df68071b6e2c04927fbd7dcdf9aff1b739d09ab5863ae5279d9da0b
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## [v0.2.0](https://github.com/opus-codium/ruby-taiga/tree/v0.2.0) (2022-11-30)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/opus-codium/ruby-taiga/compare/v0.1.0...v0.2.0)
|
6
|
+
|
7
|
+
**Merged pull requests:**
|
8
|
+
|
9
|
+
- Extend API support [\#1](https://github.com/opus-codium/ruby-taiga/pull/1) ([neomilium](https://github.com/neomilium))
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
|
data/README.md
CHANGED
@@ -38,7 +38,13 @@ pp projects.milestones.to_hash
|
|
38
38
|
|
39
39
|
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
40
40
|
|
41
|
-
To install this gem onto your local machine, run `bundle exec rake install`.
|
41
|
+
To install this gem onto your local machine, run `bundle exec rake install`.
|
42
|
+
|
43
|
+
To release a new version:
|
44
|
+
1. update the version number in `version.rb`
|
45
|
+
1. generate CHANGELOG.md with `bundle exec rake changelog`
|
46
|
+
1. commit changes
|
47
|
+
1. run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
42
48
|
|
43
49
|
## Contributing
|
44
50
|
|
data/Rakefile
CHANGED
@@ -3,6 +3,17 @@
|
|
3
3
|
require 'bundler/gem_tasks'
|
4
4
|
require 'rubocop/rake_task'
|
5
5
|
|
6
|
+
require 'taiga/version'
|
7
|
+
|
6
8
|
RuboCop::RakeTask.new
|
7
9
|
|
10
|
+
require 'github_changelog_generator/task'
|
11
|
+
|
12
|
+
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
|
13
|
+
config.user = 'opus-codium'
|
14
|
+
config.project = 'ruby-taiga'
|
15
|
+
config.since_tag = 'v0.1.0'
|
16
|
+
config.future_release = "v#{Taiga::VERSION}"
|
17
|
+
end
|
18
|
+
|
8
19
|
task default: :rubocop
|
data/lib/taiga/version.rb
CHANGED
data/lib/taiga.rb
CHANGED
@@ -27,23 +27,44 @@ module Taiga
|
|
27
27
|
def milestones
|
28
28
|
Taiga::Milestone.all(project: id)
|
29
29
|
end
|
30
|
+
|
31
|
+
def user_stories
|
32
|
+
Taiga::UserStory.all project: id
|
33
|
+
end
|
30
34
|
end
|
31
35
|
|
32
|
-
class
|
33
|
-
get :all, '/
|
34
|
-
get :find, '/
|
36
|
+
class UserStory < FlexiBase
|
37
|
+
get :all, '/userstories'
|
38
|
+
get :find, '/userstories/:id'
|
39
|
+
|
40
|
+
post :create, '/userstories', requires: %i[project subject]
|
35
41
|
|
36
42
|
def tasks
|
37
|
-
Taiga::Task.all
|
43
|
+
Taiga::Task.all user_story: id, project: project
|
38
44
|
end
|
39
45
|
end
|
40
46
|
|
41
|
-
class
|
42
|
-
get :
|
47
|
+
class Milestone < FlexiBase
|
48
|
+
get :all, '/milestones', has_many: { user_stories: UserStory }
|
49
|
+
get :find, '/milestones/:id'
|
50
|
+
|
51
|
+
def tasks
|
52
|
+
Taiga::Task.all milestone: id, project: project
|
53
|
+
end
|
43
54
|
end
|
44
55
|
|
45
56
|
class Task < FlexiBase
|
46
57
|
get :all, '/tasks'
|
58
|
+
|
59
|
+
post :create, '/tasks', requires: %i[project subject]
|
60
|
+
|
61
|
+
delete :remove, '/tasks/:id'
|
62
|
+
before_request :clear_params
|
63
|
+
def clear_params(name, request)
|
64
|
+
# NOTE: Flexirest puts all object attributes as parameter but Taiga reject these ones, so we need to clean all parameters before request
|
65
|
+
request.get_params = {} if name == :remove
|
66
|
+
nil
|
67
|
+
end
|
47
68
|
end
|
48
69
|
|
49
70
|
class Auth < Flexirest::Base
|
data/taiga.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: taiga
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Romuald Conty
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: flexirest
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: github_changelog_generator
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
description: Taiga API client
|
42
56
|
email:
|
43
57
|
- romuald@opus-codium.fr
|
@@ -46,6 +60,7 @@ extensions: []
|
|
46
60
|
extra_rdoc_files: []
|
47
61
|
files:
|
48
62
|
- ".rubocop.yml"
|
63
|
+
- CHANGELOG.md
|
49
64
|
- Gemfile
|
50
65
|
- README.md
|
51
66
|
- Rakefile
|