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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d24133f1b179d1979bf3a5a8ca12757f51f4c6fe
4
- data.tar.gz: 56f35f061e82ade82a37edf62ee5bb4fd4a028c5
3
+ metadata.gz: 47cace2287f24338aefe30d5a70f510d3ac4720b
4
+ data.tar.gz: bc42629a5bdba3e5a222ce5dade6b8d29782bb9f
5
5
  SHA512:
6
- metadata.gz: 1b2dc62687fa1b7a97d6a033de660f0e9114d18b99a96fc4052f2be641337ad3348888c363402a5c676abf57202ace5789b6fad3e4683f8ed881c8b020a6a04d
7
- data.tar.gz: 8dd85008b003a19982247b4bd7fc46c6c52b2a2c417ef23bae1046fdd82064410e429d8e5a3d118d44f170eade61d753cdb9cde80f91a2ae04b929e2091b662b
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
- args.empty? && !block_given? ? attributes[method] : super
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
@@ -1,3 +1,3 @@
1
1
  module RedmineRest
2
- VERSION = '0.5.1'.freeze
2
+ VERSION = '0.5.2'.freeze
3
3
  end
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.1
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-19 00:00:00.000000000 Z
11
+ date: 2016-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler