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 +4 -4
- data/lib/neo4apis/twitter.rb +4 -4
- data/neo4apis-twitter.gemspec +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1427ba9cc8ac90d30eb484718d84bc01fdde663d
|
4
|
+
data.tar.gz: b7459019f9bee650ad02163056336dee1a796c4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f9850d9a63dcfb44a42695d6c8b182e4118aecd19f9b420f34791fc2b03482c02865665891e055b0287a72a501f9fab3287553c3123462798e79aa32560eab6
|
7
|
+
data.tar.gz: a971a013742cd92e61ee61b4129b897a8913b12c4e38a04659a9b75d576aeb8345648254d6a8d3c445dba9839ee4197fe12a6b6510890ff540ad0e7561e42658
|
data/lib/neo4apis/twitter.rb
CHANGED
@@ -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
|
|
data/neo4apis-twitter.gemspec
CHANGED
@@ -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
|
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.
|
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
|
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-
|
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.
|
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.
|
26
|
+
version: 0.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: twitter
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|