events_jp 0.0.2 → 0.0.3

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: b729bb3e28909069cfcbaa32fdfc7657c82c388c
4
- data.tar.gz: 23201e3c8fbcec526a4839f83147911263a518c6
3
+ metadata.gz: 3b3f081f36c7e9be6d3ae82028e7bdeca7bbbafe
4
+ data.tar.gz: 3676d6ec71a011a99b5f00bdc94e4fc07ae98787
5
5
  SHA512:
6
- metadata.gz: 8fd130c0693ec1318cb947297d9161aeaefec18096e13500f70da8648aab11005db5bda00c346a4ffe0ba54f7f225befa71ad341a29e8fec2b4b8a0c493b6680
7
- data.tar.gz: 01059d1e594d5e4367dd547207ff42ac3ea60cf33b99ba4fdf7eb0d4a850e454c79c7ed55b200a110d31d856bb5d0456b6645b548c0f4161221048ff2d4484ad
6
+ metadata.gz: 3d6ea4a36f9093986cf49aa6553d92dd3ea7a2750ec260ae5c5ec9edfbf34ba0f529c4615a51735d4901cc3471641181b1b4c51d3b0d708b361057477f099302
7
+ data.tar.gz: 047f1b0c313499cea8f3a22b39cd725204281caf85539116d50a39a4efb02be7f1492c240694736276ae94cc660d2d08e421dfb2eaafc7d2b765d07600fb8928
data/README.md CHANGED
@@ -21,7 +21,7 @@ Or install it yourself as:
21
21
  ### Search events
22
22
 
23
23
  ```ruby
24
- res = EventsJp.get_event(keyword: 'Ruby')
24
+ events = EventsJp.get_events(keyword: 'Ruby')
25
25
  events.each do |e|
26
26
  puts "#{e.service} - #{e.title}"
27
27
  end
@@ -32,7 +32,7 @@ end
32
32
  ### Get all events
33
33
 
34
34
  ```ruby
35
- res = EventsJp.get_event(service_limit: 100)
35
+ events = EventsJp.get_events(service_limit: 100)
36
36
  events.each do |e|
37
37
  puts "#{e.service} - #{e.title}"
38
38
  end
@@ -7,7 +7,7 @@ module EventsJp
7
7
  obj.map do |service|
8
8
  next if service == EventsJp::Doorkeeper && keyword
9
9
  service.get_events(keyword: keyword, limit: service_limit)
10
- end.flatten
10
+ end.flatten.compact
11
11
  end
12
12
  end
13
- end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module EventsJp
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
@@ -11,6 +11,10 @@ describe 'EventsJp::Event' do
11
11
  it 'return each more than 10 events' do
12
12
  expect(@result.count).to be > 40
13
13
  end
14
+
15
+ it "doesn't have nil" do
16
+ expect(@result.any?{|e| e.nil? }).to be_falsy
17
+ end
14
18
  end
15
19
 
16
20
  context 'no keyword' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: events_jp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - morizyun
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-03 00:00:00.000000000 Z
11
+ date: 2014-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hashie