movieDB 0.1.4 → 0.1.5

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: cb3e2e01f275f062bcc50c824d5b7b72c5d628f0
4
- data.tar.gz: 1657959d2bbeee2c73b819257b3142ef46eaa06c
3
+ metadata.gz: 745f9c699483e8e9225c785db74f0813b994b6b1
4
+ data.tar.gz: 4f271e484f9335b363301b2b3a4ffb0ccdffa542
5
5
  SHA512:
6
- metadata.gz: 080f7247eed09318069a90b96fdba2980e4e65f51d552f4da442acbf37925e0c436c78ddf756a7178fe9017c94b9f545ec009f7d84f200252dbedcb0f06e14d5
7
- data.tar.gz: 57a911a9026c1fe1b298687825ba2d11390d06c73c9011c43a71f604b24a14d52cc9739863e0dda3ee74c3c73708d6e63903d92cd92a6369a52e605caf0da313
6
+ metadata.gz: a24f68d4b3fa8d85d44ecc8a463ebc76f5836a1a8abd363d41cb46bab4ca1cef8a6c3bee3b9e9822ec25177d8d5b746c53f0d1ec90fa63e937e989db31916885
7
+ data.tar.gz: 01a0f744e9b4801d03abc458618b3e41715ff86db32a578903c63ec6f27b20ef451ffcdb3d695c34384e9a4e7cfb6b0f7ed86a27359e1f598f149c9fc2e9b0bf
data/README.md CHANGED
@@ -1,13 +1,16 @@
1
- # MovieDB - Open Source Movie Data Analysis Tool
1
+ # MovieDB - Movie Data Analysis Tool
2
2
 
3
3
  ## Description
4
4
 
5
- A Simple Ruby Movie/Film library that data store.
5
+ A ruby wrapper that inspects, cleans, transform and model imdb data and provides useful information, suggesting conclusion.
6
+ The objective is to help movie/film producers make decisions based on archival data.
6
7
 
7
- Basic functions:
8
- * Allows a user to create, read, update and delete movie items from the data store via API.
9
- * Raises an error and perform validations on film titles
10
- * Allows a user to search for actors, actresses, directors, writers etc.
8
+ Basic functions and Data Analysis:
9
+ * Data mining
10
+ * Business Intelligence
11
+ * Descriptive Satistics
12
+ * Exploratory Data Analysis
13
+ * Confirmatory Data Analysis
11
14
 
12
15
  ## Installation
13
16
 
@@ -17,7 +20,7 @@ Add this line to your application's Gemfile:
17
20
 
18
21
  And then execute:
19
22
 
20
- $ bundle
23
+ $ bundle install
21
24
 
22
25
  Or install it yourself as:
23
26
 
@@ -25,3 +28,4 @@ Or install it yourself as:
25
28
 
26
29
  ## Usage
27
30
 
31
+ work-in-progress
data/lib/movieDB.rb CHANGED
@@ -2,7 +2,10 @@ require 'rubygems'
2
2
  require 'active_support/all'
3
3
  require 'time'
4
4
  require 'MovieDB/base'
5
- require 'MovieDB/Person'
5
+ require "open-uri"
6
+ require 'nokogiri'
7
+ require "imdb"
8
+ require "MovieDB/Person"
6
9
  require "movieDB/version"
7
10
 
8
11
  ##
@@ -0,0 +1,16 @@
1
+
2
+ ##
3
+ #TODO:Work-In_Porgress
4
+
5
+ module MovieDB
6
+
7
+ class BusinessIntelligence
8
+ attr_accessor :movie_id1, :movie_id2
9
+
10
+ def initialize(movie_id1 = nil, movie_id2 = nil)
11
+ @movie_id1 = Imdb::Movie.new(movie_id1)
12
+ @movie_id2 = Imdb::Movie.new(movie_id2)
13
+ end
14
+
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+
2
+ ##
3
+ #TODO:Work-In_Porgress
4
+
5
+ module MovieDB
6
+
7
+ class ConfirmatoryDataAnalysis
8
+ attr_accessor :movie_id1, :movie_id2
9
+
10
+ def initialize(movie_id1 = nil, movie_id2 = nil)
11
+ @movie_id1 = Imdb::Movie.new(movie_id1)
12
+ @movie_id2 = Imdb::Movie.new(movie_id2)
13
+ end
14
+
15
+ end
16
+ end
@@ -0,0 +1,48 @@
1
+
2
+ ## Reference imdb gem
3
+ #TODO:Work-In_Porgress
4
+
5
+ module MovieDB
6
+
7
+ class DataMining
8
+ attr_accessor :movie_id1, :movie_id2
9
+
10
+ def initialize(movie_id1 = nil, movie_id2 = nil)
11
+ @movie_id1 = Imdb::Movie.new(movie_id1)
12
+ @movie_id2 = Imdb::Movie.new(movie_id2)
13
+ end
14
+
15
+ def series(value)
16
+ if value is_a? Integer
17
+ begin
18
+ @serie = Imdb::Serie.new(value.to_s)
19
+
20
+ rescue
21
+ end
22
+ else
23
+ raise ArgumentError, "value is not an integer"
24
+ end
25
+ end
26
+
27
+ def analyse_title
28
+ @episode.title
29
+ end
30
+
31
+ def analyse_season_number(season_num, episode_integer)
32
+ @season = @serie.seasons.first
33
+ @episode = @season.episode(integer)
34
+ end
35
+
36
+ def analyse_episode_number
37
+ @episode.episode
38
+ end
39
+
40
+ def analyse_plot
41
+ @episode.plot
42
+ end
43
+
44
+ def analyse_air_date
45
+ @episode.air_date
46
+ end
47
+ end
48
+ end
File without changes
@@ -0,0 +1,16 @@
1
+
2
+ ##
3
+ #TODO:Work-In_Porgress
4
+
5
+ module MovieDB
6
+
7
+ class ExploratoryDataAnalysis
8
+ attr_accessor :movie_id1, :movie_id2
9
+
10
+ def initialize(movie_id1 = nil, movie_id2 = nil)
11
+ @movie_id1 = Imdb::Movie.new(movie_id1)
12
+ @movie_id2 = Imdb::Movie.new(movie_id2)
13
+ end
14
+
15
+ end
16
+ end
@@ -1,3 +1,3 @@
1
1
  module MovieDB
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: movieDB
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Albert_McKeever
@@ -150,6 +150,11 @@ files:
150
150
  - Rakefile
151
151
  - lib/movieDB.rb
152
152
  - lib/movieDB/base.rb
153
+ - lib/movieDB/business_intelligence.rb
154
+ - lib/movieDB/confirmatory_data_analysis.rb
155
+ - lib/movieDB/data_mining.rb
156
+ - lib/movieDB/descriptive_statistic.rb
157
+ - lib/movieDB/exploratory_data_analysis.rb
153
158
  - lib/movieDB/genre_parser.rb
154
159
  - lib/movieDB/genres/en.txt
155
160
  - lib/movieDB/movie_error.rb