elasticrepo 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf7865804a9fb04e180fd3fbd804d93caebf1c59
4
- data.tar.gz: 5413451aca453ec6f5425533b0728d12988b8609
3
+ metadata.gz: 56603fcfd136f7504f3987047358e24d2987f5d2
4
+ data.tar.gz: c1be2af01694f38c4e3173d632a126369370c948
5
5
  SHA512:
6
- metadata.gz: f90a45a390a2be6ab6cc59ac3eeec36c9d62e0ddbe5dab2d87297193dd0da2108bf89aac082e6eda8ee9effeb3985d9180e5da53933506cfd9517b3b3ebec76b
7
- data.tar.gz: 81b5c4ef3eb90404b4b485aa2d81f6ff6d8354d98df91dfa10825a3d66c61b71bf9590b069f650d502b3f5041f0b8fbacbdc9cc00d4b178f04ebe2dc5e3da31e
6
+ metadata.gz: 5209cc6b721bf1d10df0e0506b5b865e26b9632aeec311cacb268773f5bce0aa359029f1aa00ebb39c304b530681b3c1820b3800c2519f9bb8373d2f6a500acc
7
+ data.tar.gz: 74b40af8d9fd64312a67b61179b45c12b49bcd4c164a8d93bdcdc7bc8cea522da84b668c37c79aff7b2331e70e1c69e74e904e8d326cff788d893eb249e251cf
@@ -1,19 +1,14 @@
1
1
  module Elasticrepo
2
2
  class Extractor
3
+ attr_reader :repos
3
4
 
4
5
  # GET /users/:user/starred
5
- # ex: /users/lapaty/starred --> array of hashes
6
+ # extract fields subset from each repo
7
+ # then get back an array of lighter repos
6
8
 
7
- # ex:
8
- # results = Elasticrepo::Extractor.new("lapaty")
9
- # results.extract
10
-
11
- def initialize(owner)
12
- @repos = Octokit.starred(owner)
13
- end
14
-
15
- def extract
16
- @repos.map!{|repo|Elasticrepo::RepoSubset.new(repo)}
9
+ def initialize owner
10
+ repos = Octokit.starred owner
11
+ @repos = repos.map!{|repo|Elasticrepo::RepoSubset.new(repo)}
17
12
  end
18
13
  end
19
14
  end
@@ -1,45 +1,67 @@
1
1
  module Elasticrepo
2
2
  class Indexer
3
- attr_reader :results
3
+ #attr_reader :indexed
4
4
 
5
- def initialize owner
6
- extractor = Elasticrepo::Extractor.new(owner)
7
- @results = extractor.extract
5
+ def initialize(owner)
6
+ @owner = owner
7
+ @idx = "repositories"
8
8
  end
9
9
 
10
10
  def import
11
- Tire.index 'repository' do
11
+ # extract subset fields by user repositories starred list
12
+ # GET /users/:user/starred
13
+ #
14
+ repos = Elasticrepo::Extractor.new(@owner).repos
12
15
 
13
- #its(:full_name) { should eq("twitter/bootstrap") }
14
-
15
- # Create the index with proper mapping (if not exists already)
16
+ # index the extraction
17
+ #
18
+ @index = Tire::Index.new(@idx) do
19
+ # Create the index with proper mapping (if doesn not exist already
16
20
  #
17
21
  create :mappings => {
18
22
  :question => {
19
23
  :properties => {
20
24
  :id => { :type => 'integer', :analyzer => 'keyword' },
21
- :owner => { :type => 'string', :analyzer => 'keyword' },
22
- :name => { :type => 'string', :analyzer => 'keyword' },
23
- #:full_name => { :type => 'string', :analyzer => 'keyword' },
24
- :url => { :type => 'string', :analyzer => 'snowball' },
25
- :description => { :type => 'string', :analyzer => 'snowball' },
26
- :organization => { :type => 'string', :analyzer => 'keyword' },
27
- :language => { :type => 'string', :analyzer => 'keyword' },
28
- :created_at => { :type => 'date', :analyzer => 'keyword' },
29
- :pushed_at => { :type => 'date', :analyzer => 'keyword' },
30
- :updated_at => { :type => 'date', :analyzer => 'keyword' }
25
+ :owner => { :type => 'string', :analyzer => 'keyword' },
26
+ :name => { :type => 'string', :analyzer => 'keyword' },
27
+ #:full_name => { :type => 'string', :analyzer => 'keyword' },
28
+ :url => { :type => 'string', :analyzer => 'snowball' },
29
+ :description => { :type => 'string', :analyzer => 'snowball' },
30
+ :organization => { :type => 'string', :analyzer => 'keyword' },
31
+ :language => { :type => 'string', :analyzer => 'keyword' },
32
+ :created_at => { :type => 'date', :analyzer => 'keyword' },
33
+ :pushed_at => { :type => 'date', :analyzer => 'keyword' },
34
+ :updated_at => { :type => 'date', :analyzer => 'keyword' }
31
35
  }
32
36
  }
33
- }
34
-
37
+ }
35
38
  # Import documents
36
- import @results
37
-
39
+ #
40
+ import repos
38
41
  # Refresh the index for immediate searching
39
42
  #
40
43
  refresh
41
44
  end
42
- end
43
-
44
- end
45
- end
45
+ end # end import
46
+
47
+ def search(sub_string)
48
+ # search for a sub_string
49
+ #
50
+ search = Tire::Search::Search.new(@idx)
51
+ search.query { string('description:*"#{sub_string}"*') }
52
+ search.results
53
+ end
54
+
55
+ def update
56
+ # Just refresh the index as is
57
+ #
58
+ @index.refresh
59
+ end
60
+
61
+ def delete
62
+ # delete 'repositories' index
63
+ #
64
+ @index.delete
65
+ end
66
+ end # end class
67
+ end # end module
@@ -7,7 +7,7 @@ module Elasticrepo
7
7
  @owner = attributes["owner"]["login"]
8
8
  @name = attributes["name"]
9
9
  @url = attributes["url"]
10
- @description = attributes["description"]
10
+ @description = attributes["description"]
11
11
  @created_at = attributes["created_at"]
12
12
  @pushed_at = attributes["pushed_at"]
13
13
  @organization = attributes["owner"]["type"]
@@ -15,5 +15,17 @@ module Elasticrepo
15
15
  @language = attributes["language"]
16
16
  @updated_at = attributes["updated_at"]
17
17
  end
18
+
19
+ def to_indexed_json
20
+ self.to_json
21
+ end
22
+
23
+ # retourns json :
24
+
25
+ # repos[0].to_indexed_json
26
+ # "[\"5392501\",\"cainlevy\",\"photor\",\"https://api.github.com/repos/cainlevy/photor\",\"Photo Organizer (in Ruby)\",\"2012-08-12T22:26:08Z\",\"2013-02-19T03:11:10Z\",\"User\",\"cainlevy/photor\",\"Ruby\",\"2013-03-13T02:05:33Z\"]"
27
+
28
+ # repos[1].to_indexed_json
29
+ # "[\"612595\",\"aino\",\"galleria\",\"https://api.github.com/repos/aino/galleria\",\"The JavaScript Image Gallery\",\"2010-04-15T21:11:51Z\",\"2013-03-01T20:16:55Z\",\"Organization\",\"aino/galleria\",\"JavaScript\",\"2013-04-25T15:27:54Z\"]"
18
30
  end
19
- end
31
+ end
@@ -1,3 +1,3 @@
1
1
  module Elasticrepo
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/elasticrepo.rb CHANGED
@@ -11,7 +11,7 @@ module Elasticrepo
11
11
  autoload :Version, "elasticrepo/version"
12
12
 
13
13
  Tire::Configuration.url "http://localhost:9200"
14
- Tire::Configuration.logger 'elasticsearch.log', :level => 'debug'
14
+ #Tire::Configuration.logger 'elasticsearch.log', :level => 'debug'
15
15
 
16
16
  #class ElasticrepoError < StandardError
17
17
  #end
@@ -3,46 +3,57 @@ require "spec_helper"
3
3
  # http://developer.github.com/v3/repos/
4
4
  # https://github.com/pengwynn/octokit/blob/master/lib/octokit/client/users.rb
5
5
 
6
- describe Elasticrepo::Extractor do
7
- let(:fixture_repos) { Yajl::Parser.parse(fixture("repositories.json").read) }
8
- # when online, works with "live" GitrHub V3 APIs ( uncomment following line )
9
- # subject(:live_repos) { Elasticrepo::Extractor.new("lapaty").repositories }
10
-
11
- # when offline, works with local fixtures ( uncomment following line )
12
- subject(:live_repos) { fixture_repos }
13
-
14
- describe "#new" do
15
- context "get a list of two repos starred by user" do
16
- its(:size) { should eq(2) }
6
+ describe Elasticrepo::Extractor do
7
+ let(:fixture_repos) { Yajl::Parser.parse(fixture("repositories.json").read) }
8
+ let(:live_extracted) { Elasticrepo::Extractor.new("lapaty") }
9
+
10
+ describe "#extract" do
11
+
12
+ context "specs debugging" do
13
+ it "print the content of running specs" do
14
+ print "live_extracted.repos: #{live_extracted.repos} \n \n"
15
+ print "live_extracted.repos.class: #{live_extracted.repos.class} \n \n"
16
+ print "live_extracted.repos.to_json: #{live_extracted.repos.to_json} \n \n"
17
+ print "live_extracted.repos[0].to_json: #{live_extracted.repos[0].to_json} \n \n"
18
+ print "live_extracted.repos[0].owner: #{live_extracted.repos[0].owner} \n \n"
19
+ print "live_extracted.repos[0].organization: #{live_extracted.repos[0].organization} \n \n"
20
+
21
+ print "fixture_repos: #{fixture_repos} \n \n"
22
+ print "fixture_repos.class: #{fixture_repos.class} \n \n"
23
+ print "fixture_repos.to_json: #{fixture_repos[0].to_json} \n \n"
24
+ print "fixture_repos[0].to_json: #{fixture_repos[0].to_json} \n \n"
25
+ print "fixture_repos[0]['owner']['login']: #{fixture_repos[0]['owner']['login']} \n \n"
26
+ print "fixture_repos[0]['organization']: #{fixture_repos[0]['organization']} \n \n"
17
27
  end
18
- context "compare 'fixtures' with 'live github APIs'" do
19
- # check well forming data set
20
- it { fixture_repos.should be_a(Array) }
21
- it { live_repos.should be_a(Array) }
22
- it { fixture_repos.should_not be_empty }
23
- it { live_repos.should_not be_empty }
24
- # compare fixture to live API V3
25
- its(["id"]) { "#{live_repos[1]['id']}".should eq("#{fixture_repos[1]['id']}") }
26
- its(["owner"]) { "#{live_repos[1]['id']}".should eq("#{fixture_repos[1]['id']}") }
27
- its(["name"]) { "#{live_repos[1]['id']}".should eq("#{fixture_repos[1]['id']}") }
28
- end
29
- end
30
-
31
- describe "#extract" do
32
- subject(:subset) { Elasticrepo::Extractor.new("lapaty").extract }
33
-
34
- context "get list of repos starred by user" do
35
- its("checks extracted id field") { "#{live_repos[0]['id']}".should eq("#{subset[0].id}") }
36
- its("checks extracted id field") { "#{live_repos[1]['id']}".should eq("#{subset[1].id}") }
37
-
38
- its("checks extracted owner field") { "#{live_repos[0]['owner']['login']}".should eq("#{subset[0].owner}") }
39
- its("checks extracted owner field") { "#{live_repos[1]['owner']['login']}".should eq("#{subset[1].owner}") }
40
-
41
- its("checks extracted name field") { "#{live_repos[0]['name']}".should eq("#{subset[0].name}") }
42
- its("checks extracted name field") { "#{live_repos[1]['name']}".should eq("#{subset[1].name}") }
43
-
44
- end
45
- end
28
+ end
29
+
30
+ context "extract fields subset from each repo" do
31
+ its("fixture_repos[0]['id']") { fixture_repos[0]['id'].should eq live_extracted.repos[0].id }
32
+ #its("fixture_repos[0]['owner']['login']") { fixture_repos[0]['owner']['login'].should eq live_extracted.repos[0].owner['login'] }
33
+ its("fixture_repos[0]['name']") { fixture_repos[0]['name'].should eq live_extracted.repos[0].name }
34
+ its("fixture_repos[0]['url']") { fixture_repos[0]['url'].should eq live_extracted.repos[0].url }
35
+ its("fixture_repos[0]['description']") { fixture_repos[0]['description'].should eq live_extracted.repos[0].description }
36
+ its("fixture_repos[0]['created_at']") { fixture_repos[0]['created_at'].should eq live_extracted.repos[0].created_at }
37
+ its("fixture_repos[0]['pushed_at']") { fixture_repos[0]['pushed_at'].should eq live_extracted.repos[0].pushed_at }
38
+ #its("fixture_repos[0]['organization']") { fixture_repos[0]['organization'].should eq live_extracted.repos[0].organization }
39
+ its("fixture_repos[0]['language']") { fixture_repos[0]['language'].should eq live_extracted.repos[0].language }
40
+ its("fixture_repos[0]['full_name']") { fixture_repos[0]['full_name'].should eq live_extracted.repos[0].full_name }
41
+ #its("fixture_repos[0]['updated_at']") { fixture_repos[0]['updated_at'].should eq live_extracted.repos[0].updated_at }
42
+
43
+ its("fixture_repos[1]['id']") { fixture_repos[1]['id'].should eq live_extracted.repos[1].id }
44
+ #its("fixture_repos[1]['owner']['login']") { fixture_repos[1]['owner']['login'].should eq live_extracted.repos[1].owner['login'] }
45
+ its("fixture_repos[1]['url']") { fixture_repos[1]['url'].should eq live_extracted.repos[1].url }
46
+ its("fixture_repos[1]['description']") { fixture_repos[1]['description'].should eq live_extracted.repos[1].description }
47
+ its("fixture_repos[1]['name']") { fixture_repos[1]['name'].should eq live_extracted.repos[1].name }
48
+ its("fixture_repos[1]['created_at']") { fixture_repos[1]['created_at'].should eq live_extracted.repos[1].created_at }
49
+ its("fixture_repos[1]['pushed_at']") { fixture_repos[1]['pushed_at'].should eq live_extracted.repos[1].pushed_at }
50
+ #its("fixture_repos[1]['organization']") { fixture_repos[1]['organization'].should eq live_extracted.repos[1].organization }
51
+ its("fixture_repos[1]['full_name']") { fixture_repos[1]['full_name'].should eq live_extracted.repos[1].full_name }
52
+ its("fixture_repos[1]['language']") { fixture_repos[1]['language'].should eq live_extracted.repos[1].language }
53
+ #its("fixture_repos[1]['updated_at']") { fixture_repos[1]['updated_at'].should eq live_extracted.repos[1].updated_at }
54
+ end
55
+
46
56
  end
47
57
 
48
-
58
+ end
59
+
@@ -1,16 +1,32 @@
1
1
  require "spec_helper"
2
2
 
3
3
  describe Elasticrepo::Indexer do
4
+ let(:repos) { Elasticrepo::Indexer.new("lapaty") }
5
+ subject(:indexer) { repos.import }
4
6
 
5
- let(:indexer) { Elasticrepo::Indexer.new("lapaty") }
7
+ context "print Elasticrepo::Indexer instantiation for debugging purposes" do
8
+ its("repos") { print "#{repos} \n \n" }
9
+ its("repos.class") { print "#{repos.class} \n \n" }
10
+ its("repos.inspect") { print "#{repos.inspect} \n \n" }
6
11
 
7
- describe "#import" do
8
- subject { indexer.import }
12
+ its("repos.extracted") { print "#{repos.extracted} \n \n" }
13
+ its("repos.extracted.class") { print "#{repos.extracted.class} \n \n" }
14
+ its("repos.extracted.inspect") { print "#{repos.extracted.inspect} \n \n" }
15
+ end
9
16
 
10
- it { print "indexer.inspect : #{indexer.inspect}" }
11
- it { print "indexer.results : #{indexer.results}" }
17
+ context "print before instance import for debugging purposes" do
18
+ its("indexer.extracted") { print "indexer: #{indexer.extracted} \n \n" }
19
+ its("indexer.extracted.class") { print "indexer.extracted.class: #{imported.class} \n \n" }
20
+ its("indexer.extracted.inspect") { print "indexer.extracted.inspect: #{indexer.extracted.inspect} \n \n" }
12
21
  end
13
22
 
23
+ #describe "#import" do
24
+ #it { subject.to_json.should include(5392501,"cainlevy","photor") }
25
+ # its("imported") { print "imported #{imported} \n \n" }
26
+ #end
27
+
28
+ #[{"id":5392501,"owner":"cainlevy","name":"photor","url":"https://api.github.com/repos/cainlevy/photor","description":"Photo Organizer (in Ruby)","created_at":"2012-08-12T22:26:08Z","pushed_at":"2013-02-19T03:11:10Z","organization":"User","full_name":"cainlevy/photor","language":"Ruby","updated_at":"2013-03-13T02:05:33Z"},{"id":612595,"owner":"aino","name":"galleria","url":"https://api.github.com/repos/aino/galleria","description":"The JavaScript Image Gallery","created_at":"2010-04-15T21:11:51Z","pushed_at":"2013-03-01T20:16:55Z","organization":"Organization","full_name":"aino/galleria","language":"JavaScript","updated_at":"2013-04-18T06:30:41Z"}]
29
+
14
30
  # describe "GET index" do
15
31
  # it "assigns all reports as @reports" do
16
32
  # report = Report.create! valid_attributes
@@ -57,28 +73,3 @@ end
57
73
  # end
58
74
  # end
59
75
  # end
60
- #end
61
-
62
- #--------------------------------------------------------------------------------
63
- # context "get list of repos starred by a user" do
64
- # describe "#new" do # Elasticrepo::Extractor.new("lapaty").repositories
65
- # let(:parsed ) { Yajl::Parser.parse(fixture("repositories.json").read) }
66
- # subject(:ockto_get) { Elasticrepo::Extractor.new("lapaty").repositories }
67
-
68
- # # just to show the content while rspec'ing
69
- # it "print" do
70
- # print "parsed: #{parsed[1]["id"]} \n + \n +\n"
71
- # print "ockto_get: #{ockto_get[1]["id"]} \n + \n +\n"
72
- # end
73
-
74
- # it { parsed.should be_a(Array) }
75
- # it { ockto_get.should be_a(Array) }
76
- # it { parsed.should_not be_empty }
77
- # it { ockto_get.should_not be_empty }
78
-
79
- # its(:size) { should eq(2) }
80
- # its(["id"]) { "#{ockto_get[1]['id']}".should eq("#{parsed[1]['id']}") }
81
- # its(["owner"]) { "#{ockto_get[1]['id']}".should eq("#{parsed[1]['id']}") }
82
- # its(["name"]) { "#{ockto_get[1]['id']}".should eq("#{parsed[1]['id']}") }
83
- # end
84
- # end
@@ -0,0 +1 @@
1
+ {"id":5392501,"name":"photor","full_name":"cainlevy/photor","owner":{"login":"cainlevy","id":4449,"avatar_url":"https://secure.gravatar.com/avatar/2573ddee29779e76b7da7d3c2c9ff18d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png","gravatar_id":"2573ddee29779e76b7da7d3c2c9ff18d","url":"https://api.github.com/users/cainlevy","html_url":"https://github.com/cainlevy","followers_url":"https://api.github.com/users/cainlevy/followers","following_url":"https://api.github.com/users/cainlevy/following","gists_url":"https://api.github.com/users/cainlevy/gists{/gist_id}","starred_url":"https://api.github.com/users/cainlevy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cainlevy/subscriptions","organizations_url":"https://api.github.com/users/cainlevy/orgs","repos_url":"https://api.github.com/users/cainlevy/repos","events_url":"https://api.github.com/users/cainlevy/events{/privacy}","received_events_url":"https://api.github.com/users/cainlevy/received_events","type":"User"},"private":false,"html_url":"https://github.com/cainlevy/photor","description":"Photo Organizer (in Ruby)","fork":false,"url":"https://api.github.com/repos/cainlevy/photor","forks_url":"https://api.github.com/repos/cainlevy/photor/forks","keys_url":"https://api.github.com/repos/cainlevy/photor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cainlevy/photor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cainlevy/photor/teams","hooks_url":"https://api.github.com/repos/cainlevy/photor/hooks","issue_events_url":"https://api.github.com/repos/cainlevy/photor/issues/events{/number}","events_url":"https://api.github.com/repos/cainlevy/photor/events","assignees_url":"https://api.github.com/repos/cainlevy/photor/assignees{/user}","branches_url":"https://api.github.com/repos/cainlevy/photor/branches{/branch}","tags_url":"https://api.github.com/repos/cainlevy/photor/tags{/tag}","blobs_url":"https://api.github.com/repos/cainlevy/photor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cainlevy/photor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cainlevy/photor/git/refs{/sha}","trees_url":"https://api.github.com/repos/cainlevy/photor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cainlevy/photor/statuses/{sha}","languages_url":"https://api.github.com/repos/cainlevy/photor/languages","stargazers_url":"https://api.github.com/repos/cainlevy/photor/stargazers","contributors_url":"https://api.github.com/repos/cainlevy/photor/contributors","subscribers_url":"https://api.github.com/repos/cainlevy/photor/subscribers","subscription_url":"https://api.github.com/repos/cainlevy/photor/subscription","commits_url":"https://api.github.com/repos/cainlevy/photor/commits{/sha}","git_commits_url":"https://api.github.com/repos/cainlevy/photor/git/commits{/sha}","comments_url":"https://api.github.com/repos/cainlevy/photor/comments{/number}","issue_comment_url":"https://api.github.com/repos/cainlevy/photor/issues/comments/{number}","contents_url":"https://api.github.com/repos/cainlevy/photor/contents/{+path}","compare_url":"https://api.github.com/repos/cainlevy/photor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cainlevy/photor/merges","archive_url":"https://api.github.com/repos/cainlevy/photor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cainlevy/photor/downloads","issues_url":"https://api.github.com/repos/cainlevy/photor/issues{/number}","pulls_url":"https://api.github.com/repos/cainlevy/photor/pulls{/number}","milestones_url":"https://api.github.com/repos/cainlevy/photor/milestones{/number}","notifications_url":"https://api.github.com/repos/cainlevy/photor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cainlevy/photor/labels{/name}","created_at":"2012-08-12T22:26:08Z","updated_at":"2013-03-13T02:05:33Z","pushed_at":"2013-02-19T03:11:10Z","git_url":"git://github.com/cainlevy/photor.git","ssh_url":"git@github.com:cainlevy/photor.git","clone_url":"https://github.com/cainlevy/photor.git","svn_url":"https://github.com/cainlevy/photor","homepage":null,"size":312,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":4,"master_branch":"master","default_branch":"master"}
@@ -0,0 +1 @@
1
+ {"id":5392501,"owner":"cainlevy","name":"photor","url":"https://api.github.com/repos/cainlevy/photor","description":"Photo Organizer (in Ruby)","created_at":"2012-08-12T22:26:08Z","pushed_at":"2013-02-19T03:11:10Z","organization":"User","full_name":"cainlevy/photor","language":"Ruby","updated_at":"2013-03-13T02:05:33Z"}
data/spec/spec_helper.rb CHANGED
@@ -1,8 +1,9 @@
1
1
  $LOAD_PATH.unshift(File.dirname(__FILE__))
2
2
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
3
3
 
4
- require 'fakeweb'
5
4
  require 'elasticrepo'
5
+ #require 'json_spec'
6
+ #require 'fakeweb'
6
7
  require 'octokit'
7
8
  require 'tire'
8
9
  require 'yajl'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticrepo
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
  - Luca G. Soave
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-20 00:00:00.000000000 Z
11
+ date: 2013-04-26 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  Feed me.
@@ -22,10 +22,11 @@ files:
22
22
  - lib/elasticrepo/version.rb
23
23
  - lib/elasticrepo/indexer.rb
24
24
  - lib/elasticrepo/extractor.rb
25
- - lib/elasticsearch.log
26
25
  - spec/elasticrepo/extractor_spec.rb
27
26
  - spec/elasticrepo/repo_subset_spec.rb
28
27
  - spec/elasticrepo/indexer_spec.rb
28
+ - spec/fixtures/live_extracted.repos[0].to_json
29
+ - spec/fixtures/fixture_repos[0].to_json
29
30
  - spec/fixtures/repositories.json
30
31
  - spec/fixtures/repository.json
31
32
  - spec/elasticrepo_spec.rb
File without changes