groupdocs 0.2.10 → 0.2.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,6 +21,10 @@ module GroupDocs
21
21
  # @attr [Array<Hash>] answers
22
22
  attr_accessor :answers
23
23
 
24
+ # Human-readable accessors
25
+ alias_method :default_answer, :def_answer
26
+ alias_method :default_answer=, :def_answer=
27
+
24
28
  #
25
29
  # Converts each answer to GroupDocs::Questionnaire::Question::Answer object.
26
30
  #
@@ -1,3 +1,3 @@
1
1
  module GroupDocs
2
- VERSION = '0.2.10'
2
+ VERSION = '0.2.11'
3
3
  end # GroupDocs
@@ -26,6 +26,13 @@ describe GroupDocs::Questionnaire::Question do
26
26
  it { should respond_to(:answers) }
27
27
  it { should respond_to(:answers=) }
28
28
 
29
+ it 'has human-readable accessors' do
30
+ subject.should respond_to(:default_answer)
31
+ subject.should respond_to(:default_answer=)
32
+ subject.method(:default_answer).should == subject.method(:def_answer)
33
+ subject.method(:default_answer=).should == subject.method(:def_answer=)
34
+ end
35
+
29
36
  describe '#answers=' do
30
37
  it 'converts each answer to GroupDocs::Questionnaire::Question::Answer object' do
31
38
  subject.answers = [{ text: 'Text1', value: 'Value1' }, { text: 'Text2', value: 'Value2' }]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groupdocs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.10
4
+ version: 0.2.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-02 00:00:00.000000000 Z
12
+ date: 2012-06-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client
16
- requirement: &12222800 !ruby/object:Gem::Requirement
16
+ requirement: &14690440 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '1.6'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *12222800
24
+ version_requirements: *14690440
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: json
27
- requirement: &12237640 !ruby/object:Gem::Requirement
27
+ requirement: &14705180 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '1.7'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *12237640
35
+ version_requirements: *14705180
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: ruby-hmac
38
- requirement: &12235920 !ruby/object:Gem::Requirement
38
+ requirement: &14703760 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0.4'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *12235920
46
+ version_requirements: *14703760
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec
49
- requirement: &12234200 !ruby/object:Gem::Requirement
49
+ requirement: &14702040 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '2.9'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *12234200
57
+ version_requirements: *14702040
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rake
60
- requirement: &12233160 !ruby/object:Gem::Requirement
60
+ requirement: &14701000 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0.9'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *12233160
68
+ version_requirements: *14701000
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: simplecov
71
- requirement: &12232300 !ruby/object:Gem::Requirement
71
+ requirement: &14700140 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0.6'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *12232300
79
+ version_requirements: *14700140
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: yard
82
- requirement: &12245240 !ruby/object:Gem::Requirement
82
+ requirement: &14713080 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '0.8'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *12245240
90
+ version_requirements: *14713080
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: webmock
93
- requirement: &12243000 !ruby/object:Gem::Requirement
93
+ requirement: &14710840 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,7 +98,7 @@ dependencies:
98
98
  version: '1.8'
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *12243000
101
+ version_requirements: *14710840
102
102
  description: Ruby SDK for GroupDocs REST API
103
103
  email: p0deje@gmail.com
104
104
  executables: []
@@ -255,7 +255,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
255
255
  version: '0'
256
256
  segments:
257
257
  - 0
258
- hash: -947784112716663600
258
+ hash: -266361151929611546
259
259
  required_rubygems_version: !ruby/object:Gem::Requirement
260
260
  none: false
261
261
  requirements:
@@ -264,7 +264,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
264
264
  version: '0'
265
265
  segments:
266
266
  - 0
267
- hash: -947784112716663600
267
+ hash: -266361151929611546
268
268
  requirements: []
269
269
  rubyforge_project:
270
270
  rubygems_version: 1.8.10