idobata 0.0.7 → 0.0.8

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: 08557b7ab233ed5fd457979d3ee5c4c26d0207fe
4
- data.tar.gz: 40d3b3d76d085fbcb402fb755d559ce6654a4ede
3
+ metadata.gz: 274e050da86f19328898e97cc9336f481d3969a4
4
+ data.tar.gz: 0fc42c2cc73b1c8f34c39d34148299b82a7872e6
5
5
  SHA512:
6
- metadata.gz: f60b134327dabcf2bf18d9879a32bcfd8ec9e1b6131ecb1eba33101b53b50cbd90c9bb63c8dfc5824dd32a8d8b0b0c5782472058f356b8f21f84b80024471125
7
- data.tar.gz: 0717c5d6d56f2ebaadbfe45c1e0a306e323435bd3876791f6a82de501dc929b0075ffd52fad440bd710de62d00a75356e1f232d2cb2b5a8178af73e0c772d810
6
+ metadata.gz: c444ec4f9da6c43166a191c060722eb6124449bc7c8343c914584cc662e322ef4f5ed71fd6814a29be0052328591df445960648fcf476dc73943b032a7dc6e73
7
+ data.tar.gz: 7367ad17b957785a571ebc80c265052554e45b0ce5219b34f3c210bc481c5d324cfa4e89e9076aea9390f2d224fd647c05eec22e9766df72ddb37b34a48d531b
data/idobata.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_runtime_dependency 'faraday', '~> 0.8.8'
21
+ spec.add_runtime_dependency 'faraday', '>= 0.8.8'
22
22
 
23
23
  spec.add_development_dependency "bundler", "~> 1.3"
24
24
  spec.add_development_dependency "rake"
@@ -1,3 +1,3 @@
1
1
  module Idobata
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: idobata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - asonas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-04 00:00:00.000000000 Z
11
+ date: 2014-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.8.8
20
20
  type: :runtime
21
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.8.8
27
27
  - !ruby/object:Gem::Dependency
@@ -84,7 +84,6 @@ files:
84
84
  - lib/idobata/client.rb
85
85
  - lib/idobata/message.rb
86
86
  - lib/idobata/version.rb
87
- - sample/idobata2es.rb
88
87
  - spec/lib/idobata/message_spec.rb
89
88
  - spec/spec_helper.rb
90
89
  homepage: https://github.com/asonas/idobata-ruby
@@ -107,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
106
  version: '0'
108
107
  requirements: []
109
108
  rubyforge_project:
110
- rubygems_version: 2.2.0
109
+ rubygems_version: 2.2.2
111
110
  signing_key:
112
111
  specification_version: 4
113
112
  summary: Ruby bindings of Idobata
data/sample/idobata2es.rb DELETED
@@ -1,18 +0,0 @@
1
- require 'elasticsearch'
2
- require 'json'
3
- es = Elasticsearch::Client.new(hosts: "localhost:9200")
4
-
5
- messages = JSON.parse(`curl 'https://idobata.io/api/messages?room_id=696' -H "X-API-Token: 748528b4eaa7ad402c01affa027c8263"`)['messages']
6
-
7
- #puts messages?
8
- messages.each do |message|
9
- if message['sender_type'] == "User"
10
- es.index index: "idobata-tmix", type: "idodobata-messages", body: {
11
- id: message['id'],
12
- sender_name: message['sender_name'],
13
- body: message['body'],
14
- images_urls: message['images_urls'],
15
- created_at: message['created_at']
16
- }
17
- end
18
- end