neo4apis-twitter 0.0.5 → 0.1.0

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: 71e1141ee25fc7f64d4300313d81c784a609a655
4
- data.tar.gz: 8f056f27356a4c52bfebbb183fa204e272c9f9c2
3
+ metadata.gz: 1427ba9cc8ac90d30eb484718d84bc01fdde663d
4
+ data.tar.gz: b7459019f9bee650ad02163056336dee1a796c4e
5
5
  SHA512:
6
- metadata.gz: 7bf71bfc3c87e148c523868cd9229ea39e958369e7c271b84a73bd614c1734ddab57a0f5db9a8287bc6b40c15a1b75620ee8bb4bb659f83826ca34c82f724dbc
7
- data.tar.gz: b48c79a734ec21a7dd4bc6fa25f5333d6421fae4d94f031d61dcb10dd72b375a4a589d3c85aacad6bc6349e99e6a3ba6bbe0a5c40c5dbd5b798b218bc910fe72
6
+ metadata.gz: 6f9850d9a63dcfb44a42695d6c8b182e4118aecd19f9b420f34791fc2b03482c02865665891e055b0287a72a501f9fab3287553c3123462798e79aa32560eab6
7
+ data.tar.gz: a971a013742cd92e61ee61b4129b897a8913b12c4e38a04659a9b75d576aeb8345648254d6a8d3c445dba9839ee4197fe12a6b6510890ff540ad0e7561e42658
@@ -2,10 +2,14 @@ require 'neo4apis'
2
2
 
3
3
  module Neo4Apis
4
4
  class Twitter < Base
5
+ prefix :Twitter
6
+
5
7
  uuid :Tweet, :id
6
8
  uuid :User, :id
7
9
  uuid :HashTag, :text
8
10
 
11
+ batch_size 1000
12
+
9
13
  importer :Tweet do |tweet|
10
14
  user_node = import :User, tweet.user
11
15
 
@@ -40,10 +44,6 @@ module Neo4Apis
40
44
  end
41
45
  end
42
46
 
43
- def self.default_flush_size
44
- 1000
45
- end
46
-
47
47
  end
48
48
  end
49
49
 
@@ -3,7 +3,7 @@ $:.unshift lib unless $:.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "neo4apis-twitter"
6
- s.version = '0.0.5'
6
+ s.version = '0.1.0'
7
7
  s.required_ruby_version = ">= 1.9.1"
8
8
 
9
9
  s.authors = "Brian Underwood"
@@ -18,7 +18,7 @@ A ruby gem using neo4apis to make importing twitter data to neo4j easy
18
18
  s.require_path = 'lib'
19
19
  s.files = Dir.glob("{bin,lib,config}/**/*") + %w(README.md Gemfile neo4apis-twitter.gemspec)
20
20
 
21
- s.add_dependency('neo4apis', "~> 0.1.0")
21
+ s.add_dependency('neo4apis', "~> 0.2.0")
22
22
  s.add_dependency('twitter', "~> 5.12.0")
23
23
 
24
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neo4apis-twitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Underwood
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-31 00:00:00.000000000 Z
11
+ date: 2014-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: neo4apis
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.1.0
19
+ version: 0.2.0
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
- version: 0.1.0
26
+ version: 0.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: twitter
29
29
  requirement: !ruby/object:Gem::Requirement