redmine_rest 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/redmine_rest/models/issue.rb +4 -1
- data/lib/redmine_rest/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: 47cace2287f24338aefe30d5a70f510d3ac4720b
|
4
|
+
data.tar.gz: bc42629a5bdba3e5a222ce5dade6b8d29782bb9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b79646ee24677762a75bf20314b98e82406f7652b84b2b3b9c6fec2854eadaf88c9e523c12922c1ca436bde2670bb52f3c429c85c1dd56c86bbaa2e682ab2d2a
|
7
|
+
data.tar.gz: 2e5799a39d574563b4e2a5732e53e14e61a5eb8a98ad1f869c3b7a017fbc7669ebfbd1b3cbe6f0e1a8128bf838d35f32d0488565071633700c23ae5db4ecfda8
|
@@ -4,6 +4,7 @@ require_relative 'user'
|
|
4
4
|
require_relative 'project'
|
5
5
|
require_relative 'version'
|
6
6
|
require_relative 'relation'
|
7
|
+
require_relative 'tracker'
|
7
8
|
require_relative 'collections/issue'
|
8
9
|
|
9
10
|
module RedmineRest
|
@@ -15,6 +16,7 @@ module RedmineRest
|
|
15
16
|
self.format = :xml
|
16
17
|
self.collection_parser = Collections::Issue
|
17
18
|
|
19
|
+
has_one :tracker, class_name: Tracker
|
18
20
|
has_one :author, class_name: User
|
19
21
|
has_one :assigned_to, class_name: User
|
20
22
|
has_one :project, class_name: Project
|
@@ -46,7 +48,8 @@ module RedmineRest
|
|
46
48
|
end
|
47
49
|
|
48
50
|
def method_missing(method, *args)
|
49
|
-
|
51
|
+
return super if block_given? || method.to_s.end_with?('?') || !args.empty?
|
52
|
+
attributes[method]
|
50
53
|
end
|
51
54
|
end
|
52
55
|
end
|
data/lib/redmine_rest/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redmine_rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitriy Non
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|