atrium-ruby 0.4.0 → 0.4.1

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: 42caf39875be0fa993e181c51b3459db1c1d440e
4
- data.tar.gz: 4918bb0cb78f99640a59d17582959d0bd20a914b
3
+ metadata.gz: 38e033562f3b5bd5c2cb0dc6b7e6f96ef5620493
4
+ data.tar.gz: a641e28a4086ef3be8c07701947844d02968cae6
5
5
  SHA512:
6
- metadata.gz: 5572677570fdc3c930466f8ab46672ae2e36a022b2ec034a3d53d8b3db8a5faa6071ed2f3bf004c970eac49bae266e4de441d26c94cc86ac95c44145f21e5340
7
- data.tar.gz: 65519bb471aae9b9613ac3a3b7d0bdddf9c7209b2093cdefdb4920cee4fcf72a5cefe8208d6d274836fe71eeafd39e427f6c5ac7b7d0cc77d5285527d4ea85bd
6
+ metadata.gz: bf2b724e1f327c56c0b6420c3f6f2b40328883a8afde6c35e278c318c49f919fb9ad5189e35aa17b55bdcaea3e67dc8c77b82eafbc6a6e09961d11350216b9f3
7
+ data.tar.gz: 38cee369dad1399513f5000a86aed9b284dcc4c84da71d219bfcbd85baabcd8916de31dda0f0692131375ed308e703be32719a988edb4a277c03a27497d45b9f
data/lib/atrium/member.rb CHANGED
@@ -78,9 +78,9 @@ module Atrium
78
78
  member_response = ::Atrium.client.make_request(:get, endpoint)
79
79
 
80
80
  member_params = member_response["challenges"]
81
- challenges = member_params.map do |ch|
82
- ch[:member_guid] = self.guid
83
- ::Atrium::Challenge.new(ch)
81
+ challenges = member_params.map do |challenge|
82
+ challenge[:member_guid] = self.guid
83
+ ::Atrium::Challenge.new(challenge)
84
84
  end
85
85
  challenges
86
86
  end
@@ -177,4 +177,4 @@ module Atrium
177
177
  }
178
178
  end
179
179
  end
180
- end
180
+ end
@@ -62,7 +62,12 @@ module Atrium
62
62
  end
63
63
  @current_page += 1
64
64
  end
65
- list
65
+
66
+ if limit.present?
67
+ list.first(limit)
68
+ else
69
+ list
70
+ end
66
71
  end
67
72
 
68
73
  def response_list_in_batches(limit: nil, &block)
@@ -1,3 +1,3 @@
1
1
  module Atrium
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,94 +1,94 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atrium-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Carstens, Dan Jones, Zach Toolson
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
11
  date: 2017-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
+ name: active_attr
14
15
  requirement: !ruby/object:Gem::Requirement
15
16
  requirements:
16
17
  - - ">="
17
18
  - !ruby/object:Gem::Version
18
19
  version: '0'
19
- name: active_attr
20
- prerelease: false
21
20
  type: :runtime
21
+ prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
+ name: httpclient
28
29
  requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
31
  - - ">="
31
32
  - !ruby/object:Gem::Version
32
33
  version: '0'
33
- name: httpclient
34
- prerelease: false
35
34
  type: :runtime
35
+ prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
+ name: bundler
42
43
  requirement: !ruby/object:Gem::Requirement
43
44
  requirements:
44
45
  - - "~>"
45
46
  - !ruby/object:Gem::Version
46
47
  version: '1.12'
47
- name: bundler
48
- prerelease: false
49
48
  type: :development
49
+ prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.12'
55
55
  - !ruby/object:Gem::Dependency
56
+ name: pry
56
57
  requirement: !ruby/object:Gem::Requirement
57
58
  requirements:
58
59
  - - ">="
59
60
  - !ruby/object:Gem::Version
60
61
  version: '0'
61
- name: pry
62
- prerelease: false
63
62
  type: :development
63
+ prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
+ name: rake
70
71
  requirement: !ruby/object:Gem::Requirement
71
72
  requirements:
72
73
  - - "~>"
73
74
  - !ruby/object:Gem::Version
74
75
  version: '10.0'
75
- name: rake
76
- prerelease: false
77
76
  type: :development
77
+ prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '10.0'
83
83
  - !ruby/object:Gem::Dependency
84
+ name: rspec
84
85
  requirement: !ruby/object:Gem::Requirement
85
86
  requirements:
86
87
  - - ">="
87
88
  - !ruby/object:Gem::Version
88
89
  version: '0'
89
- name: rspec
90
- prerelease: false
91
90
  type: :development
91
+ prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - ">="
@@ -126,7 +126,7 @@ homepage: http://github.com/mxenabled/atrium-ruby
126
126
  licenses:
127
127
  - MIT
128
128
  metadata: {}
129
- post_install_message:
129
+ post_install_message:
130
130
  rdoc_options: []
131
131
  require_paths:
132
132
  - lib
@@ -141,9 +141,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  - !ruby/object:Gem::Version
142
142
  version: '0'
143
143
  requirements: []
144
- rubyforge_project:
145
- rubygems_version: 2.6.8
146
- signing_key:
144
+ rubyforge_project:
145
+ rubygems_version: 2.5.1
146
+ signing_key:
147
147
  specification_version: 4
148
148
  summary: Ruby wrapper for the Atrium API by MX
149
149
  test_files: []